create_weapon
Create a new weapon in an RPG Maker MZ project's Weapons.json. Only a name is required; optional fields for stats, traits, price, and more use sensible defaults. Allocates the next available weapon ID.
Instructions
Create a new weapon in data/Weapons.json. Only name is required; omitted fields use the editor's new-weapon defaults (Weapon equip slot, no stat bonuses). params is a flat 8-length stat bonus [maxHP, maxMP, atk, def, mat, mdf, agi, luk]. Allocates and returns the next unused weapon id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Weapon name | |
| note | No | Note field | |
| price | No | Buy price | |
| dryRun | No | Preview only: return a diff of what would change without writing to disk. | |
| params | No | 8 flat stat bonuses [maxHP, maxMP, atk, def, mat, mdf, agi, luk] | |
| traits | No | Trait objects { code, dataId, value } | |
| wtypeId | No | Weapon type id (System.json weaponTypes) | |
| iconIndex | No | Icon index (IconSet.png) | |
| animationId | No | Attack animation id | |
| description | No | In-game description text |