RPG Maker Forums

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.

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,837
Latest member
Dabi
Top