build_change_items
Creates RPG Maker MZ event commands to add or remove items, weapons, or armor, using a constant or variable amount, with an option to include equipped gear.
Instructions
Build a Change Items (126), Change Weapons (127), or Change Armors (128) event command for insertion via insert_event_commands — gain/lose an item/weapon/armor by a constant or variable amount. includeEquip (weapon/armor only) also counts equipped copies when removing. Read-only: returns { command }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The item/weapon/armor id | |
| kind | Yes | Which inventory to change | |
| indent | No | Indentation level (default 0) | |
| operand | Yes | The amount to gain/lose (constant or variable) | |
| operation | Yes | Gain or lose | |
| includeEquip | No | weapon/armor: also count equipped copies (default false) |