build_change_actor
Construct an RPG Maker MZ event command for altering actor stats (HP, MP, EXP, level, states, recover all) with fixed or variable targets and amounts, ready for insertion via event commands.
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 |