Hey. I'm using Yanfly's Class Change and Subclass plugins and I'd like to know if there's any way to make a skill that allows to switch an actor's class and subclass midbattle. For instance, if an actor has a warrior class and a mage subclass and he uses this skill, his class will become mage and his subclass will become warrior.
Thanks in advance.
Theoretically yes, practically it depends on your battle system.
There should be commands to change class given by the plugin description, and you can use those commands in a common event called by a skill or in a troop event.
The problem is somewhere else.
Some battle systems require additional data for the actors to function. A lot of the plugins that create those battlesystems only create that additional data at battlestart.
So changing the actors during battle will suddenly have the actors with the wrong data assigned to them, and that can cause any unknown problem or crash in the game.
That is also the reason why summoning plugins have to be specifically designed for each battlesystem and won't work with a different set of battleplugins - the new actors are often missing vital data unless the plugin knows what data to add for the other plugins to continue working.
Okay, then how do I get the user's (of the skill) ID through a Common Event and what is the script call for changing the Subclass? That way I can probably make it work.