Trying to make a triple-team skill that requires 3 specific actors to both be present in the current party and free of several states that would preclude them using the skill (dead, sleep, frozen, etc). I've been using the provided script for a dual skill that works perfectly, but I can't figure out how to add another actor to the mix. I thought it would be as simple as just adding an && and then slapping the second actor after it, but that didn't work. Pls halp
Code:
<Custom Requirement>
if ($gameParty.members().contains($gameActors.actor(1))) {
var status = [1, 8, 10, 36, 93, 94];
value = true;
for (var i in status) {
if ($gameActors.actor(2).isStateAffected(status[i])){
value = false;
break;
}
}
} else {
value = false;
}
</Custom Requirement>