build_change_items
Generate an RPG Maker MZ event command to add or remove items, weapons, or armor by a constant or variable amount, with optional counting of equipped copies.
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) |