What would be the easiest way to go about limiting the number of battles an actor can participate in?
The way it works is that when you go into the dungeon you have x amount of BP(battle points or whatever you want to call it). After a battle is resolved(win or run away) you lose 1BP and if a character has 0BP then that character will complain about being tired and leave the active party until you leave the dungeon.
So far I set up a post battle common event which checks for character being in the party and if so then it reduces MP by one(I don't use MP for skills or anything else so I decided to use it for BP instead), sets a variable to actor's MP, checks if it's zero and if so displays a message and after that I'm stuck.
I thought that Yanfly's Party System plugin would help but after looking at the plugin commands I realized that it does not. It doesn't have commands to put an actor into the reserve party and while it does have lock commands, to prevent a party member from being moved around, the locked character has to be in the active party so even if I could move the tired character into the reserve there'd be no way for me to make sure that the player doesn't just swap the character back in.
If there's a plugin or some other way to do what I want to do(put characters in reserve and lock them in there until their MP is above 0) I'd appreciate some help, hope it's not too difficult to implement. Thanks in advance.
The way it works is that when you go into the dungeon you have x amount of BP(battle points or whatever you want to call it). After a battle is resolved(win or run away) you lose 1BP and if a character has 0BP then that character will complain about being tired and leave the active party until you leave the dungeon.
So far I set up a post battle common event which checks for character being in the party and if so then it reduces MP by one(I don't use MP for skills or anything else so I decided to use it for BP instead), sets a variable to actor's MP, checks if it's zero and if so displays a message and after that I'm stuck.
I thought that Yanfly's Party System plugin would help but after looking at the plugin commands I realized that it does not. It doesn't have commands to put an actor into the reserve party and while it does have lock commands, to prevent a party member from being moved around, the locked character has to be in the active party so even if I could move the tired character into the reserve there'd be no way for me to make sure that the player doesn't just swap the character back in.
If there's a plugin or some other way to do what I want to do(put characters in reserve and lock them in there until their MP is above 0) I'd appreciate some help, hope it's not too difficult to implement. Thanks in advance.