Mutli-evaluations with Yanfly's AI Core

TakaDynasty

Apologetic Lurker
Veteran
Joined
Dec 21, 2016
Messages
41
Reaction score
8
First Language
English
Primarily Uses
Yet another question from me! I'm on a roll. Or perhaps I'm just dense...

In any case, I discovered through searches that it's apparently impossible to use eval in Yanfly's AI Core to evaluate state !== plus another condition, due to the way state !== works. I was hoping someone might help me find a workable alternative.

What I'm essentially looking for is for my Shield Wall ability to only be used when two conditions are true:
 

  1. user state !== Shield Wall
  2. troop alive members > 1



Shield Wall applies an identically named state which raises all allies' Defense while lowering Agility. However, it doesn't make much sense for a lone fighter to form a shield wall. :p I could just leave it at condition 2 and let random, unnecessary Shield Walls trigger, but I'd rather not do so if I can help it.

Any thoughts?


Edit: Right now I've got it set up like...


Random 75%: Attack, Lowest Agi


Troop Alive Members < 2: Attack


State !== Shield Wall: Shield Wall


I'd prefer a better solution, but if I'm right, this should mean that Shield Wall is only used when there are at least two members, because with less than that, AI says attack.

Then again I suppose this mains AI Level will have to be 100... Eh, I'll play with it and see what happens.
 
Last edited by a moderator:

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

Latest Threads

Latest Posts

Latest Profile Posts

Homie, this so amazing! Old but Gold :)
I cannot get the Benny Hill Theme out of my head
A wave of cold air has hit Canada... I know it's "always cold", but this one is especially cold... I'm freezing to death lol.
Have fun with English: a "fire grenade" is not portable napalm but a fire extinguisher tool.
2 days ago someone tried to convert me to Islam. Today youtube tried to convert me to Catholicism. The only thing left would be to meet sone Jehova's witnesses.

Forum statistics

Threads
93,422
Messages
912,222
Members
122,930
Latest member
bloojacie
Top