create_troop
Create an enemy troop (battle group) in RPG Maker MZ with a required name, optional members and event pages. Validates enemy references and event structure, refusing invalid writes unless forced.
Instructions
Create a new troop (enemy battle group) in data/Troops.json. name is required; members defaults to empty and pages to one blank battle-event page. Every member.enemyId must reference an existing enemy. A structurally invalid battle-event page refuses the write (nothing is saved) — pass force: true to override.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Troop name shown in the database | |
| force | No | Write even if validation finds structural problems (wrong parameter count, unterminated command list). Off by default: such a write is refused and nothing is written. Advisory warnings never block regardless. | |
| pages | No | Battle-event pages { conditions, list, span }; defaults to one blank page | |
| dryRun | No | Preview only: return a diff of what would change without writing to disk. | |
| members | No | Placed enemies; each references an existing enemyId | |
| verbose | No | Echo the full written record instead of the default summary. Off by default: the response reports identity, counts and command-list shape, which is what you would assert on, and omits the parameters/conditions you would only re-read. Read the full record with the matching get_* tool. |