[Yanfly's Battle A.I. Core] - Eval Question

Cinderbird

Veteran
Veteran
Joined
May 16, 2016
Messages
30
Reaction score
10
First Language
Spanish
Primarily Uses
RMMV
Hi, I've been using Yanfly's Battle A.I. Core for a while, and was trying to recreate the following:

An enemy will randomly attack (Basic Attack Skill) any one of my party members, as long as Actor 1 doesn't have State 11.
As soon as he gets the state, the enemy will cast another skill on every character that doesn't have State 11.

From what i understand, I should use

<AI Priority>
Eval (expression to check if my actor has State 11): Skill 1, Random
State !== State 11: Skill 3, Random
</AI Priority>

So now for the questions that brought me here:

1) In case I get the condition right, will it work as intended?
2) How do I check for said condition? I tried !$gameActors.Actor(1)._state(11) but it doesn't work...

Thanks in advance to anyone who can help me solve this!
 

lolshtar

Master of Magic thatknow nospell
Veteran
Joined
Apr 13, 2013
Messages
694
Reaction score
101
First Language
French
Primarily Uses
RMMV
<AI Priority>
Eval $gameParty.members()[0].isStateAffected(11): Skill 3
Always: Skill 1, Random
</AI Priority>
 

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,862
Messages
1,017,047
Members
137,569
Latest member
Shtelsky
Top