Plugin : http://yanfly.moe/plugins/en/YEP_BattleAICore.js
Hi,
I'm trying to code : when party level is superior to level 5, the enemy cast : Sleep.
I know there is already a default feature for that but it never worked for me so I'm trying to do it with Yanfly plugin
<AI Priority>
Average Party Level > 5: Sleep,
State !== State 10: Sleep, Random
</AI Priority>
The problem is that the code ignore the first line and read only the second.
@Riff kindly tried to help me (in Yanfly original thread since I didn't know by then if it was a bug or not) but it isn't working, unfortunaly.
First solution :
<AI Priority>
((Average Party Level > 5) && State !== State 10): Sleep, Random
</AI Priority>
Second solution :
<AI Priority>
Eval (($gameParty.averageLevel() > 5) && (!target.isStateAffected(10)): Sleep, Random
</AI Priority>

Hi,
I'm trying to code : when party level is superior to level 5, the enemy cast : Sleep.
I know there is already a default feature for that but it never worked for me so I'm trying to do it with Yanfly plugin
<AI Priority>
Average Party Level > 5: Sleep,
State !== State 10: Sleep, Random
</AI Priority>
The problem is that the code ignore the first line and read only the second.
@Riff kindly tried to help me (in Yanfly original thread since I didn't know by then if it was a bug or not) but it isn't working, unfortunaly.
First solution :
<AI Priority>
((Average Party Level > 5) && State !== State 10): Sleep, Random
</AI Priority>
Second solution :
<AI Priority>
Eval (($gameParty.averageLevel() > 5) && (!target.isStateAffected(10)): Sleep, Random
</AI Priority>


