create_skill
Create a new RPG Maker MZ skill with custom properties, including damage, effects, costs, scope, and messages; omitted fields fall back to defaults.
Instructions
Create a new skill with custom properties. Omitted fields use new-skill defaults: stypeId 1 (Magic), scope 1, occasion 1 (battle only), hitType derived — 0 certain for recovery or ally/user scopes, else 2 magical for Magic skills, else 1 physical if it deals damage, else 0. An effect referencing a missing record throws: Add/Remove State (code 21/22) → state, Learn Skill (43) → skill, Common Event (44) → common event.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Skill name | |
| note | No | Note field (notetags) | |
| scope | No | Target scope (1=enemy single, 2=enemy all, 7=ally all, etc.) | |
| speed | No | Speed correction (-2000..2000; positive acts earlier). Default 0 | |
| damage | No | Damage configuration | |
| dryRun | No | Preview only: return a diff of what would change without writing to disk. | |
| mpCost | No | MP cost | |
| tpCost | No | TP cost | |
| tpGain | No | User TP gained on use. Default 0 | |
| effects | No | Skill effects (buffs, debuffs, states, etc.) | |
| hitType | No | 0 certain hit, 1 physical (HIT/EVA, counterable), 2 magical (MEV, reflectable). Default derived from stypeId/scope/damage | |
| repeats | No | Number of hits (1-9). Default 1 | |
| stypeId | No | Skill type (0=none — typical for enemy-only skills, not sealed by Silence; 1=magic, 2=special, etc.). Default 1 | |
| message1 | No | Battle message (line 1, %1 = user name) | |
| message2 | No | Battle message line 2 | |
| occasion | No | Usable: 0 always, 1 battle only (default), 2 menu only, 3 never | |
| iconIndex | No | Icon index (0-1000+) | |
| animationId | No | Animation ID | |
| description | No | Skill description | |
| successRate | No | Success rate percent. Default 100 | |
| requiredWtypeId1 | No | Required weapon type 1 (0=none) | |
| requiredWtypeId2 | No | Required weapon type 2 (0=none) |