Hotswapping Classes and Skills mid-combat

First I would like to preface this by stating it may be in the wrong place and if it is please move it to the appropriate place as I don't really know where to post this question.

The Details: Well, I am building a system in a project that enables you to steal the class of an enemy and make it your own, this part works fine after a lot of tinkering I can change class mid combat, all the stats and everything change.

HOWEVER, thats the kicker, just the stats change, none of the skills change related to the class, I have tried forgetting all other skills within the common event that restored HP and removes status effects within the class change which, it seems to as it greys out the abilities, but I want them to disappear entirely from the list as there are about 10 unique moves "one for each class" that I only want the relevent one to be visible and I also need the level of the character to remain what it is after the change.

Any helpful suggestions will be taken while I continue to try find a way but wheenver I search for something similar to this I don't find answers only questions, could just be I'm bad at finding answers

Many, Many thanks in advance.
I cant tell you much about what to do without seeing what youve done and how youve done it, but something you can try to do is run the initSkills() fuction on your actors when you change their classes. that should clear and rebuild their skill list when called
I will admit, that's not a function I even knew about and wouldn't really know where to put it.
Below are some images of how the system works, to change the class by simply getting info mid combat to trigger a thing, the common even clears a bunch of status effects as well as restoring some stuff simply as to how the game works, if you think V-Rising style blood changes, it's like that but built into RPG maker through a "probably" over complicated way but it works.
Apart from the bit that doesn't work.

I feel my lack of actual coding knowledge may inhibit me somewhat but I still try.
Right after you use the change class command, enter a new event command and choose "Script" at the end of the last page. this is what youll put in it
Code:
$gameActors.actor(x).initSkills()
and youll replace the x with Cyran's actor Id
YUP! I just figured that out through trial and error, and it worked perfectly, thank you so much! 😀 I have literallyspent days trying to figure this out, now I can crack on making it work for everything and build in all the stuff!

Original thread: https://forums.rpgmakerweb.com/threads/hotswapping-classes-and-skills-mid-combat.174554/