Skip to content

Doodads

ChiefOfGxBxL edited this page Dec 22, 2019 · 7 revisions

Translator

Translator.Doodads

Usage

var result = new Translator.Doodads.jsonToWar(doodadData);
// Now you can write result.buffer to a war3map.doo file

Specification

doodadData: [<Doodad>]; // Array of doodads

Where <Doodad> is a doodad structure defined by:

{
  id: <Int>,
  type: <String>,
  variation: <Int = 0>,
  position: [<Float>, <Float>, <Float>],
  angle: <Float = 0>, // in degrees
  scale: [<Float = 1>, <Float = 1>, <Float = 1>],
  life: <Int = 100> // % health (0-100),
  flags: { <Object = { visible: true, solid: true }>
    visible: true,
    solid: true
  }
}

Translators

World entities

Place entities like units, doodads, etc. on the map

Units (unit or item)
Doodads
Terrain
Regions
Cameras
Sounds

Object definitions

Edit objects in the object editor

Units
Items
Destructables
Doodads
Abilities
Buffs
Upgrades

Other

Miscellaneous files like imports and strings

Imports
Strings
Info

Clone this wiki locally