Wanted to test out a health regeneration passive state when the player is outside combat.
But can't figure out the right script call. Nor the best way to format it.
Trying:
<Custom Passive Condition>
if (user.hp / user.mhp <= 0.30 || !$gameParty.inBattle()) {
condition = true;
} else {
condition = false;
}
</Custom Passive Condition>
but it doesn't trigger properly. I'm assuming perhaps !$gameParty.inBattle() isn't the opposite as I thought.
===
A retest of a separated state conditions seems to work outside of combat, then removes it when in combat, but doesn't reapply it once outside combat.
But can't figure out the right script call. Nor the best way to format it.
Trying:
<Custom Passive Condition>
if (user.hp / user.mhp <= 0.30 || !$gameParty.inBattle()) {
condition = true;
} else {
condition = false;
}
</Custom Passive Condition>
but it doesn't trigger properly. I'm assuming perhaps !$gameParty.inBattle() isn't the opposite as I thought.
===
A retest of a separated state conditions seems to work outside of combat, then removes it when in combat, but doesn't reapply it once outside combat.
<Passive Condition: HP Below 30%>
<Custom Passive Condition>
condition = !$gameParty.inBattle();
</Custom Passive Condition>
<Custom Passive Condition>
condition = !$gameParty.inBattle();
</Custom Passive Condition>