Switching party members mid battle

I'm looking for a way to switch party members in the middle of battle. I've done this with VisuStella but I can't get the battles to play the way I want them to with it.
I found an old thread https://forums.rpgmakerweb.com/index.php?threads/concept-mid-battle-party-switch.147025/ that had some information from ct_bolt but I can't get it to work the way I want it on my game.
I don't want the main character to be able to switch. I already have him locked with the plugin MID_LockFormationLeader.
What have you tried and how did it not work for you? What errors are you getting?

Original thread: https://forums.rpgmakerweb.com/threads/switching-party-members-mid-battle.165861/