public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers

Yanfly's plugin : Battle AI core

BMM Archive · July 15, 2026

Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.

Original Source

  • Original title: Yanfly's plugin : Battle AI core
  • Original author: Chaos17
  • Original date: March 16, 2016
  • Source thread: https://forums.rpgmakerweb.com/threads/yanflys-plugin-battle-ai-core.58813/
  • Source forum path: Game Development Engines > RPG Maker Javascript Plugins > Javascript/Plugin Support

Summary

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

Archived First Post

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>


01.png.c37eb5e606825cec0468f238a6534d3a.png



Second solution :


<AI Priority>


Eval (($gameParty.averageLevel() > 5) && (!target.isStateAffected(10)): Sleep, Random


</AI Priority>


Protected download

Downloads / Referenced Files

Log in to download

Log in, then follow the RPG Maker Developers Group to see these download links.

Log in to download

Referenced Images / Attachments

02.png
02.png
Creator Claims / Removal

If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.

#039#rpg-maker-archive#js-support

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar