MV Yanfly A.I Battle Core Help!

Hello everyone! I'm here to ask for help to see if I'm doing something wrong or not.
I'm using Yanfly's A.I Battle Core, basically allowing you to make the A.I control the enemies better,
I've got a pretty good understanding of it so far (at least I hope) but I'm having trouble with one thing, and it
has to do with the enemy's buffing themselves, I couldn't really find the right parameter I needed cause a lot of them didn't seem like it would fit what i needed the A.I to do. I want the enemies to buff themselves at the start of their turn and then if the buff runs out they will buff themselves again, so I looked up to see if anyone had an idea and someone suggested this > Eval user._buffs[2] >= 0: Skill ???, Highest HP parameter.
So this is what my Boss has.
<AI Priority>
Eval user._buffs[3] >= 0: Skill 433, Highest HP
Party Alive Members > 1: Talon Storm, Highest HP%
Always : Darkness, Lowest DEF
</AI Priority>

Skill 433 is Sky Dance, it buffs his Magic Attack.

The problem for me is the enemy is ALWAYS buffing himself and doesn't resort to any other moves, I can't tell if it's glitched or if the "Eval user._buffs[3] >= 0: Skill 433, Highest HP" is even correct, (I got it from another forum btw.)
Any help is appreciated!

Here is an image of the boss Action Patterns and the AI Priority.
image_2025-04-18_170550986.png

I just started using this plugin and watched the video as guidance... BUT so far everything else I want the enemies to do is working fine, I have tested each of them for hours making sure it works as intended!
Eval user._buffs[3] >= 0: Skill 433, Highest HP
That's a 'greater than or equal' set up, which reads like it will buff itself if it is not debuffed, I think. Have you tried "<="?
That's a 'greater than or equal' set up, which reads like it will buff itself if it is not debuffed, I think. Have you tried "<="?
I just did what you suggested, still the same results unfortunately X_X thank you for trying!
So this is what my Boss has.
<AI Priority>
Eval user._buffs[3] >= 0: Skill 433, Highest HP
Party Alive Members > 1: Talon Storm, Highest HP%
Always : Darkness, Lowest DEF
</AI Priority>

Skill 433 is Sky Dance, it buffs his Magic Attack.

As I understand it, what your code will do is:

Check to see if the user's defence is neutral, or has been buffed. It it returns true, it will use skill 433, and then buff its own magic attack.

Since the defence is always going to be either neutral or buffed, that condition will always be true, so it will always use that skill.

What you probably want to do instead is:

Eval user._buffs[4] <= 0: Skill 433, User

This will check to see if the user's Magic Attack is neutral or debuffed, and if it is, use the Magic Attack buff on itself.

Note that "4" is the Magic Attack, and "3" is Defence.
As I understand it, what your code will do is:

Check to see if the user's defence is neutral, or has been buffed. It it returns true, it will use skill 433, and then buff its own magic attack.

Since the defence is always going to be either neutral or buffed, that condition will always be true, so it will always use that skill.

What you probably want to do instead is:

Eval user._buffs[4] <= 0: Skill 433, User

This will check to see if the user's Magic Attack is neutral or debuffed, and if it is, use the Magic Attack buff on itself.

Note that "4" is the Magic Attack, and "3" is Defence.
Thank you! It actually works as intended now! Also I didn't know what numbers were which for the buffs so thank you!
The full list should be:

Basic parameter IDs:
• 0 = MHP • 1 = MMP • 2 = ATK • 3 = DEF
• 4 = MAT • 5 = MDF • 6 = AGI • 7 = LUK
The full list should be:

Basic parameter IDs:
• 0 = MHP • 1 = MMP • 2 = ATK • 3 = DEF
• 4 = MAT • 5 = MDF • 6 = AGI • 7 = LUK
Oh thank you! Okay I thought it'd be 1 - 7 I was not expecting a zero lol

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-a-i-battle-core-help.177051/