I'm having trouble getting the enemy AI and state checks. I want the AI to check and see if the target is under a specific state, and if not, use a specific move. My AI is setup as follows...
<AI Priority>
Eval user.hp >= Math.floor(user.mhp * 0.9): Attack
Eval user.hp >= Math.floor(user.mhp * 0.8): Cheap Shot
Random 01%: Attack
Eval user.hp >= Math.floor(user.mhp * 0.6): Cheap Shot, Lowest HP%
Random 01%: Attack
State !== State 12: Flashbang Grenade {This is where I want to check to happen but it doesn't work}
State === State 12: Sucker Punch
Always: Cheap Shot
</AI Priority>
How am I supposed to tell the AI to target the enemy (player) or target itself to debuff?
<AI Priority>
Eval user.hp >= Math.floor(user.mhp * 0.9): Attack
Eval user.hp >= Math.floor(user.mhp * 0.8): Cheap Shot
Random 01%: Attack
Eval user.hp >= Math.floor(user.mhp * 0.6): Cheap Shot, Lowest HP%
Random 01%: Attack
State !== State 12: Flashbang Grenade {This is where I want to check to happen but it doesn't work}
State === State 12: Sucker Punch
Always: Cheap Shot
</AI Priority>
How am I supposed to tell the AI to target the enemy (player) or target itself to debuff?