MV Polymorph into another Class during battle then become normal after

is there a script or a way to help me make a polymorph skill that modify the class during battle?
There are a number of ways to do this, and it depends on how you want to implement it. (you'll probably get a good handful of relevant threads if you Google it)

You can make the skill call a common event that has the Change Class event command in it - the important thing to consider with this method is you need to do a bit of a workaround to make the common event know which battler to target.

I think the easiest thing to do is to use Yanfly's Buffs & States Core and make your skill apply a state. You can have an Apply Effect that stores the ID of the battler's original class then changes to the new one, then a Remove Effect that restores it back to the stored ID.

Original thread: https://forums.rpgmakerweb.com/threads/polymorph-into-another-class-during-battle-then-become-normal-after.149600/