I have a skill which I would like to be visible, but greyed out (aka disabled) until the condition is met to enable it; that condition being that ANY enemy's HP must be 20%=<. My JS is OK, but not great. Am I on the right track here, or can someone give me the solution? lol :eswt:
I'm sure I'm way off here, but hopefully this will clue a more advanced scripter as to what I'm trying to do. TIA
Code:
<Custom Show Eval>
if (gameTroop.aliveMembers.hp =< (0.2 * gameTroop.aliveMembers.mhp)) {
enable = true;
} else {
disable = false;
}
</Custom Show Eval>
I'm sure I'm way off here, but hopefully this will clue a more advanced scripter as to what I'm trying to do. TIA