There is a skill custom requirement plug in, if the eval comes true, the skill is usable, otherwise will not.
Someone helped me with this in the past:
This checks if someone in the enemy troop has the state 22.
Now, what I need is a code that checks if all alive game Party members have state X, lets say 172.
So if all party members have the state 172, the skill is unusable, otherwise, is usable.
Thanks!
Someone helped me with this in the past:
Code:
if ($gameTroop.aliveMembers().some(function(member) { return member.isStateAffected(22) })) {
value = false;
} else {
value = true;
}
Now, what I need is a code that checks if all alive game Party members have state X, lets say 172.
So if all party members have the state 172, the skill is unusable, otherwise, is usable.
Thanks!