set_movement_route
Insert a forced route command into an RPG Maker MZ event page to move a character. Validates the route and refuses invalid writes unless overridden.
Instructions
Insert a forced "Set Movement Route" (event command 205, plus the 505 continuation rows the editor expects) into an event page’s command list, moving a character as part of that page. characterId: -1 player, 0 this event, N event id. Pass a moveRoute from create_move_route. A structurally invalid route or page refuses the write (nothing is saved) — pass force: true to override.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Write even if validation finds structural problems (wrong parameter count, unterminated command list). Off by default: such a write is refused and nothing is written. Advisory warnings never block regardless. | |
| mapId | Yes | The ID of the map | |
| dryRun | No | Preview only: return a diff of what would change without writing to disk. | |
| indent | No | Indentation level in the list (default 0) | |
| eventId | Yes | The ID of the event | |
| position | No | Insertion index; defaults to the end of the list | |
| moveRoute | Yes | The move route to force (e.g. from create_move_route) | |
| pageIndex | Yes | Zero-based page index | |
| characterId | Yes | Target character: -1 player, 0 this event, N event id on the map |