I have event scripts for characters to change classes, but the skills that they should learn from their new class don't show up even though they're set to learn at level 1. I assume I'm missing something?
Skills not showing up upon class change
RPG Maker MV SupportI seem to recall this was an issue in ACE too. The best solution I found was to make all skills learnable at level 2 onwards, then once they leveled up you learned the skills.
So there's no way to have them auto-learn class skills when switching classes?
There has to be. I don't want to have to program a whole damn tree of "IF ACTOR IS LEVEL # LEARN SKILL #" branches for my TEN characters multiplied by however many skills I feel like giving them.
There has to be. I don't want to have to program a whole damn tree of "IF ACTOR IS LEVEL # LEARN SKILL #" branches for my TEN characters multiplied by however many skills I feel like giving them.
What you are missing is how characters learn skills. They learn a skill upon leveling up in a class and the skill is learned by the character and not by the character class. This means that if I have a level 5 character who leveled up into the Hero class he has knows all hero's skill until level 5. If the class changes for any reason then the character retains all the already learned skills and starts leraning skills of the new class upon leveling up.
To fix this you should do something like this:
EDIT: you need no condition branches, you only need to initialize the character and remove the level 1 skills of the default class. Anyway try to not add scripts for functions the engine already has. I strongly recommend you to read this thread and what Andar says about adding or not a script (point 15).
To fix this you should do something like this:
- save character EXP into a variable
- remove all the already known skills of the previous class
- change character class
- add all level 1 skills of the new class
- add the value of the variable to character EXP
EDIT: you need no condition branches, you only need to initialize the character and remove the level 1 skills of the default class. Anyway try to not add scripts for functions the engine already has. I strongly recommend you to read this thread and what Andar says about adding or not a script (point 15).
. . .does the new class have the skill type of the said learned skill's skill type?
Yes. I have the skills categorized as "Attacks," I've added "Add Skill Type: Attacks" to the trait menu for the new class, but when I open up the "Attacks" menu in battle, the skills aren't there.
This seems like way more of a pain than it should be.
Here's what I'm gonna do.
Each of my characters is always going to be either Class A or Class B (think Power Rangers).
I'm going to add all of their skills to both classes, but only in Class B will they have access to those skills. That way when they level up they learn the skill no matter which class they are.
The silver lining is, at least I know that if I have events "unlock new skills" that they don't learn by levelling, they won't unlearn them when switching classes. That kind of solves a different problem I was wondering about in my head.
Original thread: https://forums.rpgmakerweb.com/threads/skills-not-showing-up-upon-class-change.50249/