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 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,868
Messages
1,017,066
Members
137,576
Latest member
SadaSoda
Top