Write WC3 object data
wc3_write_objectsWrite modified object data (units, items, abilities, etc.) back into a Warcraft 3 map. Accepts the original and custom object tables and saves to a specified output path or an edited copy.
Instructions
Write an object-data table back into the map and save. Pass the same { original, custom } shape returned by wc3_read_objects. Saves to outPath, or ".edited.w3x" beside the source if omitted (pass the source path to overwrite in place).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mapPath | Yes | Absolute path to the source .w3x/.w3m map file | |
| kind | Yes | Which object-data table to write | |
| data | Yes | The object modification table ({ original, custom }) | |
| outPath | No | Output map path. Defaults to "<map>.edited.w3x". |