add_class_learning
Add a 'learn skill at level' entry to a class in RPG Maker MZ, validating skill existence and sorting by level. Warns if the skill type lacks an Add Skill Type trait so actors can use the skill.
Instructions
Add a "learn skill at level" entry to a class (replaces the hack of attaching skills to an actor via an Add-Skill trait). Validates the skillId exists and keeps the learnings sorted by level. Warns (never blocks) when the skill's stypeId is not covered by an Add Skill Type trait ({ code: 41, dataId: stypeId, value: 1 }) on the class — without it the skill-type command never appears and actors cannot use the skill.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Optional note for the learning entry | |
| level | Yes | Level at which the skill is learned | |
| dryRun | No | Preview only: return a diff of what would change without writing to disk. | |
| classId | Yes | The ID of the class to add the learning to | |
| skillId | Yes | The skill learned (must exist in data/Skills.json) |