Yanfly Battle A.I. Core: Help with setting up enemy escaping behavior

Hungry Moogle

A Rat in the Wall
Veteran
Joined
May 4, 2017
Messages
36
Reaction score
7
First Language
English
Primarily Uses
RMMV
I was wondering if I could some help with setting up an enemy A.I. behavior wherein when the enemy forces have been reduced to a single remaining enemy, the sole survivor will run away. I've been trying to setup this behavior with Yanfly's Battle A.I. Core plugin, using the following AI Priority:

<AI Priority>
Troop Alive Members = 1: Escape
<AI Priority>

Unfortunately, this setup hasn't been working as intended, as the enemy will instead run away despite all of their allies being alive, those craven curs. I'm not sure why it isn't working, I would have thought that 'Troop Alive Members = 1' would translate to the enemy running away when the number of enemies was equal to one, but evidently not since its working the way I wanted it to.

There's also a 'group DEAD MEMBERS eval' option as well, which (unless I'm misinterpreting its function) counts the number of enemies currently KO'd in the battle. The issue I with this have this option though, is that (unless, once-again, I'm misinterpreting the manner in which its works) this would be problematic with enemy formations with varying numbers of enemies. For example, if the enemy is setup with the AI Priority 'Troop Dead Members <= 3: Escape', the enemy would run away from the battle once the number of enemies dropped below three, despite there being two enemies left to continue the fight.

I also wondering if it is at possible to include a <=25% HP trigger to go along with the A.I. instructions for an enemy to escape when alone, so that an enemy would only run away if it is both alone and it's HP is in critical.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,040
Members
137,569
Latest member
Shtelsky
Top