Skill Change Actor Class

Hello. I'm trying to make a skill that changes an actor's class.

I'm using Yanfly's Class Change Core for in the menu, but opening it in battle is a little cumbersome and I know I could make it better by simply making a skill that instantly changes the class without having to go through all those menus.

However this is bizarrely difficult. The main problem is that when I try to call a common event to change the actor's class, I have to pick the actor in the editor. There's no option to simply change the class of whoever used the skill. So basically what I need is a way for the game to know which actor used the skill, so I can change specifically their class.
have the skill apply an invisible state without function as a target state to the skill target in addition to calling a common event
then in the common event, check which actor has the state and apply the effect on that actor before removing the target state again.
have the skill apply an invisible state without function as a target state to the skill target in addition to calling a common event
then in the common event, check which actor has the state and apply the effect on that actor before removing the target state again.

Ah very nice, who knows how long it would have taken me to come up with that. Thank you very much!

Original thread: https://forums.rpgmakerweb.com/threads/skill-change-actor-class.92755/