1vs1 sv battle

Hi!
I am trying to make 1 vs 1 battles with the ability to switch my battlers.
I was looking for a solution and I've found this :
Game_Party.prototype.maxBattleMembers = function() {
return 4;
};
Somebody said that turning 4 into 1 should fix the problem, but no. Not really. I mean, it works, but not in the way I wanted. Because when I choose "formation" I see only one actor. Even if the party is bigger.

I also thought about members selection with events. I saw someone here with this idea. Before the fight there could be a simple question about who am I choosing to fight. But the problem is that the party in my game will be very random. You can meet some actors, and some not. It's gonna be all about luck. That's why I can't ask the player about specific actor before the battle.

So.. does anyone know another way to do that?
Hi there! Well, I think that code can work... Because if I remember correctly, it only leaves the other party members greyed out on the menu. But in any case, try to use my plugin Eli_Utilities.js I implement this, for you to choose how many actors go to the battle. But I don't remember if this affects followers' numbers or not.
This option in your plugin is exactly the same thing that I've found in rpg_objects.js.
I have nothing against that as it's clearly easier to change but still it doesn't work for me. I have only one actor if I use it.
It's probably because of some other plugins that I have. I'm using Trainer plugin from Beast Masters. I could try without it but that's gonna be a lot of rebuilding. Anyway, thanks for your help


EDIT:
Okay, now I know what was the problem. I've had too much different plugins. After deleting them all, changing that number from my first post's quote in rpg_objects.js did the job.
So would your plugin do, I assume.
Now the only problem is to have the possibility to switch my actors during the battle and to have a non-combat leader. And I have to look up for some plugin changing the battle style (enemy HP gauges) that will work with that MaxBattleMembers line.

Original thread: https://forums.rpgmakerweb.com/threads/1vs1-sv-battle.120346/