build_battle_processing
Constructs a Battle Processing event command for RPG Maker MZ, supporting direct, variable, or random troop IDs, and configurable escape/loss options for battle outcome branches.
Instructions
Build a Battle Processing (301) event command for insertion via insert_event_commands — start a battle against a troop (direct id, a variable holding the id, or "random" like the map encounters). canEscape/canLose gate the battle result branches. Read-only: returns { command }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| troop | No | How the troop is chosen (default direct) | |
| indent | No | Indentation level (default 0) | |
| canLose | No | Continue the event if the party loses (default false) | |
| troopId | No | direct: the troop id; variable: the variable id holding it | |
| canEscape | No | Allow the party to escape (default false) |