Author a fight in one call
make_battleCreate a complete RPG Maker MZ battle (enemy and troop rows) and optionally an encounter region from one request. Names are validated against project data, and repeated runs leave one foe.
Instructions
Both rows a battle needs — the Enemies row and the Troops row that holds it — from one ask, plus the region that rolls it if you want it met by walking. create_database_entry will write either row, but it has to be handed the whole thing, and the shapes here are the ones that fail quietly: a drop is {kind, dataId, denominator} where kind 0 is an empty slot and denominator: 3 means one chance in three (30 would be read as one in 30, not 30%); a trait is {code, dataId, value} — 11 element rate, 12 debuff rate, 14 state resist, 21 param, 22 hit and evasion, 31 attack element, 32 attack state, 63 collapse type — where the key is value, unlike an item effect, which uses value1/value2; and an action naming a skill that has no Skills row is a battle that throws on the turn the foe decides to act. So names are resolved against the project's own tables, what is not there is refused, and what was written comes back in words. Idempotent by name: a build script that runs twice leaves one foe, not one foe per run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| foe | No | ||
| zone | No | Roll this troop in a region — `make_encounter_zone` for this one group | |
| troop | No | ||
| dryRun | No |