Actor not inheriting skills associated with a class change despite the fact that they are level 1 skills! Please Help!!

I have two "Dragon" classes. I duplicated the one and added another skill type to the duplicated class "Love" skill type. The dragon in the party will only change classes at the event if the party has boughten the Dragon's Ballad from an NPC way earlier in the game.

This is the Dragon class that Beautiful Dragon started out with (NSFW move blacked out):

Capture2.JPG

There is no "Love" skill type

I have an event set up for the dragon to change classes
Capture3.JPG

A Google search told me to do the variable operation in order for the actor to get her XP back.

This is the class she changed into

Capture.JPG


However, Beautiful Dragon does not have the "Dragon's Love" skill despite changing classes to a class that knows it. She does have the "Love" skill type now so the class change was successful but the game never gave her the level 1 Love skill type skill despite the fact that that class knows it at level 1. She does have Fire but she knew fire from prior to her switching classes. I verified that it definitely is set to "Love" I ended up creating a "debug event" that I walk over to add the skill and it did add, so it definitely IS the right skill type but it refuses to add it on its own through class change.

No matter how many times I redo the event, she does not inherit this move.

Not sure if it is a long issue? Like do I need to put a wait so it has time to register? but then again, Fire.

Does anybody know what the problem could be?

Edit: I also want to mention that Beautiful Dragon does start at level 1 because she is considerably stronger.
I have two "Dragon" classes. I duplicated the one and added another skill type to the duplicated class "Love" skill type. The dragon in the party will only change classes at the event if the party has boughten the Dragon's Ballad from an NPC way earlier in the game.

This is the Dragon class that Beautiful Dragon started out with (NSFW move blacked out):

View attachment 263461

There is no "Love" skill type

I have an event set up for the dragon to change classes
View attachment 263464

A Google search told me to do the variable operation in order for the actor to get her XP back.

This is the class she changed into

View attachment 263463


However, Beautiful Dragon does not have the "Dragon's Love" skill despite changing classes to a class that knows it. She does have the "Love" skill type now so the class change was successful but the game never gave her the level 1 Love skill type skill despite the fact that that class knows it at level 1. She does have Fire but she knew fire from prior to her switching classes. I verified that it definitely is set to "Love" I ended up creating a "debug event" that I walk over to add the skill and it did add, so it definitely IS the right skill type but it refuses to add it on its own through class change.

No matter how many times I redo the event, she does not inherit this move.

Not sure if it is a long issue? Like do I need to put a wait so it has time to register? but then again, Fire.

Does anybody know what the problem could be?

Edit: I also want to mention that Beautiful Dragon does start at level 1 because she is considerably stronger.
I've had this kind of annoying problem myself in RPG Maker MV. In the middle of the game I decided to suddenly create a new class, and then added skills to that class, and changed one of my actors to that class, and they still didn't get the skills included. Unfortunately for me, I had to start my game all over again in order for the new skills for the new class to take effect after re-assigning my actor's class. But, yeah, I've been here before. And I know how frustrating it is. Unfortunately you might have to start your game over from the beginning in order to do this, or perhaps adapt and instead keep using the actor the way she currently is. If you're not that far into the game you don't have that much back-tracking to have to do though, at least.
In your class change event command, did you *definitely* select ID 8 and not ID 3?
In your class change event command, did you *definitely* select ID 8 and not ID 3?
Yes. I already said after changing classes, she now has the "love" skill type. just not the skill within that type. As I said, She would not have even had that skill type listed if I selected the wrong one

Please reread my OP because that question was already answered.


@SpyroFan67 we are more like 12 hours into gameplay. level 88 is everybody else. I had to install a level cap increaser script because the story is far from over yet it has been a long game already.
Yes. I already said after changing classes, she now has the "love" skill type. just not the skill within that type. As I said, She would not have even had that skill type listed if I selected the wrong one

Please reread my OP because that question was already answered.


@SpyroFan67 we are more like 12 hours into gameplay. level 88 is everybody else. I had to install a level cap increaser script because the story is far from over yet it has been a long game already.
Christ, that's a huge oversight with VX Ace that I've never noticed before.

The Change Class command doesn't actually modify skills, at all. It only changes the experience value/features and determines what skills the character will learn in subsequent level ups. I'm going to have to think about the best approach to resolving that; adding a call to init_skills into change_class should work but I'll have to consider potential side-effects.
I know you said the skill type is definitely set to love, but can you show the database entry just to verify?
Can't you see it in the screenshot? One of the dragon classes has it and the other dragon class does not. The actor obtained the "love" skill type when she changed classes. she just did not acquire "Dragon's Love" the skill.

Adding it manually through another event works so it is not the skill itself.
Yeah, I edited my reply. What I'd been asking for though was a screenshot of the *skill tab*, showing that Dragon's Love had Love set as its skill type. That wasn't visible in any of your screenshots, but it's a moot point now.

Turns out this problem's been noticed before and there's a script for fixing it: https://forums.rpgmakerweb.com/index.php?threads/class-changing.16576/
Actually, I can report to you all that this issue has been present ever since RMXP. 😮
Does anybody know what the problem could be?
The class change does not do skill learning.
This is a grab from another script I wrote with a method from a modified yanfly class change script.
With this you don't need the exp gain commands you were doing. the exp is maintained if you want it to do that. Yet you said you want the change to start at level one? Anyways give this a try.
Spoiler: Class Change learn skills
Ruby:
# ╔═════════════════════════════════════╦════════════════════╗
# ║ Title: Forget Class skills          ║  Version: 1.00     ║
# ║ Author: Roninator2                  ║                    ║
# ╠═════════════════════════════════════╬════════════════════╣
# ║ Function:                           ║   Date Created     ║
# ║                                     ╠════════════════════╣
# ║ Option to forget skills from class  ║    27 May 2023     ║
# ╚═════════════════════════════════════╩════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Instructions:                                            ║
# ║   Specify if you want class changes to maintain          ║
# ║   the skills they learned previously                     ║
# ║   do the class change from the event command or          ║
# ║   other script                                           ║
# ╚══════════════════════════════════════════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Updates:                                                 ║
# ║ 1.00 - Script created with code from Yanfly Class script ║
# ╚══════════════════════════════════════════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Terms of use:                                            ║
# ║ Free for all uses in RPG Maker                           ║
# ╚══════════════════════════════════════════════════════════╝
module R2_yanfly_skills
  Forget_skills = true
  Maintain_Levels = true
end

class Game_Actor < Game_Battler
 
  def change_class(class_id, keep_exp = false)
    old_id = self.class_id
    @exp[class_id] = exp if keep_exp
    @exp[class_id] = exp if R2_yanfly_skills::Maintain_Levels
    @class_id = class_id
    forget_class_skills(old_id) if R2_yanfly_skills::Forget_skills
    change_exp(@exp[@class_id] || 0, false)
    learn_class_skills(class_id)
    refresh
  end
 
  def forget_class_skills(class_id)
    return if class_id <= 0
    return if $data_classes[class_id].nil?
    $data_classes[class_id].learnings.each do |learning|
      forget_skill(learning.skill_id)
    end
  end

  def learn_class_skills(class_id)
    return if class_id <= 0
    return if $data_classes[class_id].nil?
    $data_classes[class_id].learnings.each do |learning|
      learn_skill(learning.skill_id) if learning.level <= class_level(class_id)
    end
  end
    #————————————————————————–
    # new method: class_level Edited by DisturbedInside
    #————————————————————————–
    def class_level(class_id)
    temp_class = $data_classes[class_id]
    @exp[class_id] = 0 if @exp[class_id].nil?
    #declare a max level (using EXP)
    #If you can’t find it, go to the class database and select exp curve
    #then switch view to total at the top
    @exp[max_level] = 2547133 #This is the value to change. It declares a max level
    #You need to calculate how much exp for max level
    #Do it manually if using Yanfly-Adjusting Limits
    #To calculate max level exp if using Yanfly-adjusting limits is all math!!

    # Level 99 = 2547133
    # to calculate past there…. have to add on multiples of 50744
    # Level 110 = 3156061
    # To go from 99 -> 110 have to add on 12 multiples of 50744.
    n = 1          
    loop do
      break if temp_class.exp_for_level(n+1) > @exp[class_id]
      n += 1
      #add a restriction to “kick out” of loop if exp exceeds max level exp
      break if temp_class.exp_for_level(n+1) > @exp[max_level]
    end
        return n
    end
end
Actually, I can report to you all that this issue has been present ever since RMXP. 😮
And I see issues in RPG Maker VX Ace that has been issues since the PS1 version. Things like the trigger reverting to default at some point (even though it was working previously) or event commands deleting themselves.

Anyway, the Hime script that was posted by @Trihan seems to work. Thankfully Windows Volume Shadow Copy backed up a previous version of my save less than 24 hours ago. I only lost exiting a huge building of dragons.
Yes. I already said after changing classes, she now has the "love" skill type. just not the skill within that type. As I said, She would not have even had that skill type listed if I selected the wrong one

Please reread my OP because that question was already answered.


@SpyroFan67 we are more like 12 hours into gameplay. level 88 is everybody else. I had to install a level cap increaser script because the story is far from over yet it has been a long game already.
Oh God....that really sucks if the only way to fix this is to start over. I hope that is not what you will have to do. But if you do, trust me, I've had to do it before and I know how frustrating it is to start over when you're THAT far into a game. I was really far into one game, then wanted to add a new actor, and the only way to play as that awesome new character was to start over and I HATED it.
Perhaps I'm misunderstanding this, but is there a reason you don't just use the change skill event command instead of changing the entire class?
There's no need to worry about this anymore. That's why I made this brand new script to make it quite easy to solve that specific issue. I gotta admit that I tailored it to my own needs, yet, it might work in your game project as well. Just follow the instructions!

Original thread: https://forums.rpgmakerweb.com/threads/actor-not-inheriting-skills-associated-with-a-class-change-despite-the-fact-that-they-are-level-1-skills-please-help.157862/