Add a region
wc3_add_regionAdd a rectangular region to a Warcraft 3 map by specifying left, right, bottom, top boundaries. Optionally set weather, ambient sound, and color. The region gets an ID usable from JASS as gg_rct_ and the map is saved.
Instructions
Add a rectangular region defined by world-coordinate bounds (left/right/bottom/top). Returns the region with its assigned id (usable from JASS as gg_rct_). Saves the map.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mapPath | Yes | Absolute path to the .w3x/.w3m map file | |
| left | Yes | ||
| right | Yes | ||
| bottom | Yes | ||
| top | Yes | ||
| name | No | ||
| weatherEffect | No | 4-char weather code, e.g. "RAhr"; omit for none | |
| ambientSound | No | ||
| color | No | [r,g,b] 0-255 editor tint | |
| outPath | No | Output map path. Defaults to "<map>.edited.<ext>" beside the source; pass the source path to overwrite in place. |