I am using Yanfly's AutoPassiveStates plugin. I am trying to make it so when a user is below a certain amount of health, an actor receives a state. The problem is, the way I have it now below, the actor always has the state active. How do I make it so the actor only receives the state when the user is below a certain amount of health?
<Custom Passive Condition>
if (user.hp / user.mhp <= 0.26) {
$gameActors.actor(1).addState(23);
condition = true;
} else {
condition = false;
}
</Custom Passive Condition>
<Custom Passive Condition>
if (user.hp / user.mhp <= 0.26) {
$gameActors.actor(1).addState(23);
condition = true;
} else {
condition = false;
}
</Custom Passive Condition>