http://yanfly.moe/2015/10/19/yep-16-battle-a-i-core/
I was having trouble figuring out how to have a skill condition in the AI priority check something about the user of the skill while still being able to target the other party from that condition.
<AI Priority>
Eval user.isStateAffected(13) +++ Random 30%: ■[E]Volte
</AI Priority>
Eventually I realized that using a custom Eval condition would do the job! The above eval checks to see if the user of the skill has a specific state. If they do and the random chance passes, the skill will be performed on the other party.
But I'm unfamiliar with how to use the eval to check other things from the user, such as their HP/MP/TP, etc. Like seeing if their HP is above/below/equal to a certain percentage. Does anyone know this?
I was having trouble figuring out how to have a skill condition in the AI priority check something about the user of the skill while still being able to target the other party from that condition.
<AI Priority>
Eval user.isStateAffected(13) +++ Random 30%: ■[E]Volte
</AI Priority>
Eventually I realized that using a custom Eval condition would do the job! The above eval checks to see if the user of the skill has a specific state. If they do and the random chance passes, the skill will be performed on the other party.
But I'm unfamiliar with how to use the eval to check other things from the user, such as their HP/MP/TP, etc. Like seeing if their HP is above/below/equal to a certain percentage. Does anyone know this?