Doubt related to assigning a class to a character

I have a relatively simple problem: the player can choose between 4 classes available through an NPC, who assigns the class through the command "Change Class". However, when acquiring the new class, the skills that I defined in the database for level 1 of that class are not transferred and the character remains with 0 skills!! Why does it happen? Is it a bug? Or should I check the "Maintain Level" option?

Thoughtful solutions

1 - Assign the skills manually when changing classes;
2 - Assign a "Learn Skill" (for each skill learned) in the space where the parameters of the class are placed (not tested);
3 - Check the option "Maintain Level" (not tested).

Is there any solution other than one of the above?
I believe 'Maintain Level' is the intended command. However, if it retains the level and not the skills, you may have to assign them manually.

...of course, you could always make this a feature. Sure, you can change classes at any time, but you may lose some of your progress with that character. Some games (Miitopia comes to mind, though I know there are others) have features like that to prevent players from swapping back and forth between classes all willy-nilly.
Do you have 'initialize' checked? Because that will reset your character.
If your problem is that Change Class does not apply skills the character should learn for their new class at their current level, then I have exactly what you need.

Put this in a plugin (name it SFG_SkillTweaks.js or whatever you prefer).
JavaScript:
(function(){
    var old_changeClass = Game_Actor.prototype.changeClass;
    Game_Actor.prototype.changeClass = function(classId, keepExp) {
        old_changeClass.call(this, classId, keepExp);
        var oldSkills = this._skills;
        this.initSkills();
        // This means the new skills from the new class get added on the end of your existing skill list
        this._skills.splice(0, 0, ...oldSkills);
    };
})();

When you change classes, you will keep any skills you already had from the old class and also gain any new skills you should have from the new class at your current level. If you don't want to keep the skills of the old class, you can add // at the beginning of the line that contains "splice", but note that that will also clear out any skills you learned through items or events.

Original thread: https://forums.rpgmakerweb.com/threads/doubt-related-to-assigning-a-class-to-a-character.123298/