Can state counters be used as part of a condition in Yanfly's Battle AI Core? I have a boss based around increasing stacks of a state to its max, and then using a powerful attack that deals more damage the more stacks that the target has. I want the boss to be able to know how many stacks a given target has so that it can know when its reached the max stacks on a given target.
I was using the following in the AI Priority list, but it gave me an error:
I assume it was my use of "target.getStateCounter(29)," but I'm not certain what I could use outside of some loop that checks each individual party member for the state. Any suggestions?
I was using the following in the AI Priority list, but it gave me an error:
Code:
State === State 29 +++ Eval target.getStateCounter(29) < 3: Skill 23, Highest ATK
I assume it was my use of "target.getStateCounter(29)," but I'm not certain what I could use outside of some loop that checks each individual party member for the state. Any suggestions?