I'm currently using Visustella's action sequences for some skills in a project of mine.
I wanted to have a few skills that have a different effect depending if the target has a state, or is below or above a certain percentage of their hp
I was able to get the state part working by using "BattleManager._target.isStateAffected(X)" in a conditional branch, though I can't really figure out how to get the HP Percentage part working... I currently have "BattleManager._target.hpRate >= 0.90", but whenever using that, it always returns the "Else" result...
I'm terrible at js in general, so any help here would be appreciated :,)
I wanted to have a few skills that have a different effect depending if the target has a state, or is below or above a certain percentage of their hp
I was able to get the state part working by using "BattleManager._target.isStateAffected(X)" in a conditional branch, though I can't really figure out how to get the HP Percentage part working... I currently have "BattleManager._target.hpRate >= 0.90", but whenever using that, it always returns the "Else" result...
I'm terrible at js in general, so any help here would be appreciated :,)