Create a custom object
wc3_create_objectCreate custom Warcraft III objects by deriving from base types and setting field values, then save the map.
Instructions
Create a custom object (unit/item/ability/buff/destructable/doodad/upgrade) derived from a base type, setting any fields. newId is a fresh 4-char code (e.g. "x000"); baseId is the 4-char code to copy (e.g. "hfoo"). fields are { id (4-char field code), type, value, level?, column? }. Saves the map.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mapPath | Yes | Absolute path to the .w3x/.w3m map file | |
| kind | Yes | ||
| baseId | Yes | Base type to derive from, e.g. "hfoo" | |
| newId | Yes | New 4-char id for the custom object, e.g. "x000" | |
| fields | Yes | Field overrides for the new object | |
| outPath | No | Output map path. Defaults to "<map>.edited.<ext>" beside the source; pass the source path to overwrite in place. |