Modify placed unit(s)
wc3_modify_unitChange unit properties like position, ownership, scale, facing, type, hitpoints, and mana in a Warcraft III map. Output to a specified or automatically named file.
Instructions
Change fields on the unit(s) matched by select — move them, re-own them, rescale, re-face, swap type, or set HP/mana. Saves to outPath, or ".edited." beside the source (pass the source path to overwrite in place).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mapPath": "<mapPath>",
"select": "<select>",
"set": "<set>"
},
"name": "wc3_modify_unit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mapPath | Yes | Absolute path to the source .w3x/.w3m map file | |
| select | Yes | Which unit(s) to target — provide at least one field; `type` can match many | |
| set | Yes | Fields to change on every matched unit | |
| outPath | No | Output map path. Defaults to "<map>.edited.<ext>". |