build_change_actor
Generate an RPG Maker MZ event command that changes actor HP, MP, EXP, level, or states, or fully recovers them, targeting a fixed actor or variable.
Instructions
Build an actor stat-change scene command for insertion via insert_event_commands: hp (311), mp (312), state (313), recover_all (314), exp (315), or level (316). Targets a fixed actor (0 = whole party) or a variable. hp/mp/exp/level take an increase/decrease operand (constant or variable); state takes add/remove + stateId; recover_all takes nothing extra. Read-only: returns { command }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Which actor change to build | |
| indent | No | Indentation level (default 0) | |
| target | Yes | Which actor(s) the change applies to | |
| operand | No | hp/mp/exp/level: the amount (constant/variable) | |
| stateId | No | state: the state id | |
| operation | No | hp/mp/exp/level: gain or lose (default increase) | |
| showLevelUp | No | exp/level: show the level-up message (default false) | |
| allowKnockout | No | hp: allow the change to reduce HP to 0/death (default false) | |
| stateOperation | No | state: add or remove the state |