Create damage skill
create_damage_skillCreate a complete damaging skill for RPG Maker MV with one API call. Specify name, formula (e.g., 'a.mat * 4 - b.mdf * 2'), and optional parameters to define damage type, scope, and more.
Instructions
Create a complete damaging skill in one call. The formula uses MV damage syntax where a is the user and b the target, e.g. 'a.mat * 4 - b.mdf * 2' or 'a.atk * 2 - b.def'. Returns the new skill id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| note | No | ||
| scope | No | Target scope: 1 one enemy, 2 all enemies, 3-6 random enemies (1-4), 7 one ally, 8 all allies, 9 one dead ally, 10 all dead allies, 11 the user | |
| mpCost | No | ||
| tpCost | No | ||
| tpGain | No | TP the user gains on use | |
| formula | Yes | Damage formula, e.g. 'a.mat * 4 - b.mdf * 2' | |
| hitType | No | Hit type (affects evasion/reflection rules) | magical |
| stypeId | No | Skill type id (1 = Magic by default) | |
| critical | No | Can critically hit | |
| occasion | No | When usable: 0 always, 1 battle only, 2 menu only, 3 never | |
| variance | No | Damage variance % | |
| elementId | No | Element id from System types (0 = none, -1 = normal attack element) | |
| iconIndex | No | Icon sheet index | |
| damageType | No | What the damage hits (drain variants absorb into the user) | hp |
| animationId | No | Animation id from the Animations database (0 = none, -1 = normal attack) | |
| description | No | Two-line description shown in menus |