MV Changing Classes Mid Battle

I'm trying to make a system like in Persona games, where you can change your Persona during Main Character turn. I'm using
YEP_ClassChangeCore and YEP_InstantCast to do it.
The problem is, when i call a scene_class with skill (no matter common event or Lunatic Mode) and exit it, battle just freezes and i can't do anything. Battle restarts if no other plugins
are enabled. I read that this is just how SceneManager works. What can do about it? I need a list of classes, not just change into specific class like in other solutions.

Here is a list of my plugins if you need it:
Correct, battle is its own scene. So calling another scene, by definition, takes you out of battle.

You would have to get a copy of the applicable windows declared as a part of the Scene_Battle type.

Just to put it out there, another approach would be to implement the Personas as an item.

That way they'd work with the existing plugins for changing equipment during battle.

The only trick with that method is getting them to gain exp and level up. Doable with Yanfly's Independent Items turned on, but again you'd have to get custom code made for it.

It would also make them easier to use with existing plugins for synthesizing and combining items.
Correct, battle is its own scene. So calling another scene, by definition, takes you out of battle.

You would have to get a copy of the applicable windows declared as a part of the Scene_Battle type.

Just to put it out there, another approach would be to implement the Personas as an item.

That way they'd work with the existing plugins for changing equipment during battle.

The only trick with that method is getting them to gain exp and level up. Doable with Yanfly's Independent Items turned on, but again you'd have to get custom code made for it.

It would also make them easier to use with existing plugins for synthesizing and combining items.
Basically, i need to have Personas as equipment instead of classes? And how can i make the class change when item is equipped? I guess i can also use consumables items that changes class, that would be much easier but not exactly what i want.
Is there a way to include class change in battle menu, like and with the party scene in YEP_PartySystem? It works perfectly, so maybe the class scene can also work like that? Or because it need to choose a character, it won't work?

Maybe i could make my own menu with common event, that basically copies the class menu one? I think i can do that.

Thank you for your answer, though.
Basically, i need to have Personas as equipment instead of classes?
I'm not saying you need to, just suggesting a way I might do it.

And how can i make the class change when item is equipped?
The point is you don't need their class to change.

The purposes of a class in RPG Maker are to determine the actor's base parameters - Personas don't do that, the characters have their own stats the Personas augment - and to learn skills by level - Personas do do that, which is what I said at the end of my first post, finding a way to make them gain exp and levels.

Is there a way to include class change in battle menu, like and with the party scene in YEP_PartySystem? It works perfectly, so maybe the class scene can also work like that? Or because it need to choose a character, it won't work?
As I said in my first post, someone could write code to add the appropriate windows to the battle scene, but it wouldn't have anything to do with the party system.

Maybe i could make my own menu with common event, that basically copies the class menu one?
You could do that, make the Persona command into a skill that calls a common event and goes from there.

Original thread: https://forums.rpgmakerweb.com/threads/changing-classes-mid-battle.166787/