So I now have 2 states.
One is called Vampirism and the other is Necrotic.
I want Necrotic to be on at the start of battle so long as hp is .3 of mhp, else I want Vampirism on.
The code I tried (which doesnt work) is:
<Custom Passive Condition>
if (user.hp / user.mhp <= 0.3) {
condition = true;
<Passive State: Vampirism>
} else {
condition = false;
<Passive State: Necrotic> }
</Custom Passive Condition>
Bit of a nub here. anyone got any tips?
One is called Vampirism and the other is Necrotic.
I want Necrotic to be on at the start of battle so long as hp is .3 of mhp, else I want Vampirism on.
The code I tried (which doesnt work) is:
<Custom Passive Condition>
if (user.hp / user.mhp <= 0.3) {
condition = true;
<Passive State: Vampirism>
} else {
condition = false;
<Passive State: Necrotic> }
</Custom Passive Condition>
Bit of a nub here. anyone got any tips?