- Joined
- Nov 26, 2016
- Messages
- 6
- Reaction score
- 3
- First Language
- English
- Primarily Uses
Hi!
I'm looking for a way to remove an actor from the battle team using a script call. (Not remove the actor from the party.)
I have YEP Party System plugin installed, and I figured there must be a way to reference this to do what I want (which is basically the equivalent of using the "remove" option in the YEP version of the formation menu), but I'm not sure what object/method I'm looking for.
Basically I want to check to see if a particular actor is in the battle team, and if they are, I want to remove them and lock them (but keep them in the active party).
Here's what I have so far:
Any help would be much appreciated.
I'm looking for a way to remove an actor from the battle team using a script call. (Not remove the actor from the party.)
I have YEP Party System plugin installed, and I figured there must be a way to reference this to do what I want (which is basically the equivalent of using the "remove" option in the YEP version of the formation menu), but I'm not sure what object/method I'm looking for.
Basically I want to check to see if a particular actor is in the battle team, and if they are, I want to remove them and lock them (but keep them in the active party).
Here's what I have so far:
Code:
var i;
for (i = 0; i < $gameParty._battleMembers.length; i++) {
if($gameParty._battleMembers[i] === 4) {
// WANT TO REMOVE THE ACTOR HERE
var lockInterpreter = new Game_Interpreter()
lockInterpreter.pluginCommand('LockActor', [4]);
}
}


