Hey, I've been using a plugin which edits Game_Party.prototype.maxBattleMembers to only let the first two characters enter battle.
So let's say the party has 4 members: John, Vincent, Patsy and Marshall. With the plugin on, only John and Vincent take part in the battle. Outside of battle, Patsy and Marshall are still in the team.
Now things get complicated because I'm trying to setup a way to change one of the two battling members with the other two mid-battle.
I have no idea how the engine handle these things but maxBattleMembers set to 2 doesn't really remove Patsy and Marshall entirely from the party during the battle. In fact, running a script mid-battle (via a Skill that calls a Common Event)
where x is John and y is Marshall, does indeed swap John for Marshall.
But there are some things which don't work the same way, as if maxBattleMembers actually removed these characters from the game.
Let's say I want to bring up a choice between Patsy and Marshall when I want to kick John out of the battle.
I setup a Show Choice with /P[1], /P[2], /P[3] and /P[4] as options but only John and Vincent names appear on the window. Choice n°3 and 4 work, but are empty for some reason. Disabling the plugin gives me Patsy and Marshall names.
Setting up Conditional Variables for each party member to check if they are available or not before running the swap script also doesn't work in battle. If I make it an event in the overworld, it works as intended. So it has to be that maxBattleMembers plugin that removes some info regarding the characters.
What I need is a way to force the game to "return" all the necessary info about non-battling characters when making a switch during battle, until the switch is made. Or an alternative to the plugin I have been using. Thanks for your attention.
Code:
Game_Party.prototype.maxBattleMembers = function() { return 2;
Now things get complicated because I'm trying to setup a way to change one of the two battling members with the other two mid-battle.
I have no idea how the engine handle these things but maxBattleMembers set to 2 doesn't really remove Patsy and Marshall entirely from the party during the battle. In fact, running a script mid-battle (via a Skill that calls a Common Event)
Code:
$gameParty.swapOrder(x, y)
But there are some things which don't work the same way, as if maxBattleMembers actually removed these characters from the game.
Let's say I want to bring up a choice between Patsy and Marshall when I want to kick John out of the battle.
I setup a Show Choice with /P[1], /P[2], /P[3] and /P[4] as options but only John and Vincent names appear on the window. Choice n°3 and 4 work, but are empty for some reason. Disabling the plugin gives me Patsy and Marshall names.
Setting up Conditional Variables for each party member to check if they are available or not before running the swap script also doesn't work in battle. If I make it an event in the overworld, it works as intended. So it has to be that maxBattleMembers plugin that removes some info regarding the characters.
What I need is a way to force the game to "return" all the necessary info about non-battling characters when making a switch during battle, until the switch is made. Or an alternative to the plugin I have been using. Thanks for your attention.