Hello everyone,
I want an enemy to do a skill only when not affected by X states.
To do that, I used Skill Core and I put this code in the skill's notebox :
But it doesn't work. What did I missed ?
Thank you for your answers !
I want an enemy to do a skill only when not affected by X states.
To do that, I used Skill Core and I put this code in the skill's notebox :
JavaScript:
<Custom Requirement>
if (battler.isStateAffected(37) || battler.isStateAffected(38) || battler.isStateAffected(39) || battler.isStateAffected(40) || battler.isStateAffected(41) || battler.isStateAffected(42)) {
value = false;
} else {
value = true;
}
</Custom Requirement>
But it doesn't work. What did I missed ?
Thank you for your answers !