create_troop
Create a new enemy troop (battle group) in RPG Maker MZ's Troops.json, with configurable members, battle-event pages, and validation so invalid writes are refused 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 |