problem with Batlle Ai Yanfly Plugin

I'm using YEPBattleAI but I can't make it work.

y intention is for the enemy to use the revive skill only when there are other enemies dead. This skill is called 'Sopro Púrpura.' So, I created another random skill ("Bater") for testing.

But even with live enemies, it keeps using "Sopro Púrpura" only. I set the frequency of "Bater" to 1 because the intention was for it to be used only when there are live enemies, but it continues to use Sopro Púrpura.

Somebody help?
1688486157260.png
anf
Your syntax is wrong; the correct syntax is condition: skill x, target.

Condition is a condition that must be met before the skill will be used. In this case, you want it to only use the revive if there are dead enemies, so the condition is "State 1". (The dead state)

Skill x is whatever the skill ID of your skill is.

Target can be omitted in this case, since we already specified in 'condition' that it should only target dead enemies.

Another thing to take note of is that there is an AI level, which by default is set to 80, which means that there is an 80% chance that the AI follows each instruction in the notebox before skipping to the next. If you want it to follow the priority list all the time, you will either need to change the default in the plugin parameters or use the notetag <AI Level: 100>

So the AI Priority notetag should look something like:
Code:
<AI Level: 100>
<AI Priority>
State 1: Skill 70
</AI Priority>
Your syntax is wrong; the correct syntax is condition: skill x, target.

Condition is a condition that must be met before the skill will be used. In this case, you want it to only use the revive if there are dead enemies, so the condition is "State 1". (The dead state)

Skill x is whatever the skill ID of your skill is.

Target can be omitted in this case, since we already specified in 'condition' that it should only target dead enemies.

Another thing to take note of is that there is an AI level, which by default is set to 80, which means that there is an 80% chance that the AI follows each instruction in the notebox before skipping to the next. If you want it to follow the priority list all the time, you will either need to change the default in the plugin parameters or use the notetag <AI Level: 100>

So the AI Priority notetag should look something like:
Code:
<AI Level: 100>
<AI Priority>
State 1: Skill 70
</AI Priority>
like this?
1688491746058.png

It doesn't work yet."
Is skill 70 your revive skill, and have you set it up correctly? Also, have you applied the changes and saved the game before testing?
I think yes
1688494419088.png



1688494035860.png

1688494383858.png
I set the frequency of "Bater" to 1
Aside fromn everything else, it seems that the translation into your language also messed up a few things.

There is no frequency in the action patterns, and if you checked the help file you would have learned that the rank number woirk differently than you assume.

The engine first looks for the highest rank with the condition fulfilled. That would be 5 in your pattern.
Then it removes all skills whose rank is more than two points less.

With the highest number 5, only skills with ranks 3, 4 and 5 are allowed.
All skills with ranks 1 and 2 will be REMOVED - which is why the rank 1 is never selected.
Aside fromn everything else, it seems that the translation into your language also messed up a few things.

There is no frequency in the action patterns, and if you checked the help file you would have learned that the rank number woirk differently than you assume.

The engine first looks for the highest rank with the condition fulfilled. That would be 5 in your pattern.
Then it removes all skills whose rank is more than two points less.

With the highest number 5, only skills with ranks 3, 4 and 5 are allowed.
All skills with ranks 1 and 2 will be REMOVED - which is why the rank 1 is never selected.
well... i change it, but only works on first turn

1688495164552.png
Aside fromn everything else, it seems that the translation into your language also messed up a few things.

There is no frequency in the action patterns, and if you checked the help file you would have learned that the rank number woirk differently than you assume.

The engine first looks for the highest rank with the condition fulfilled. That would be 5 in your pattern.
Then it removes all skills whose rank is more than two points less.

With the highest number 5, only skills with ranks 3, 4 and 5 are allowed.
All skills with ranks 1 and 2 will be REMOVED - which is why the rank 1 is never selected.
i can' t fix, but i make a kludge
thank you, guys, i love you.

Original thread: https://forums.rpgmakerweb.com/threads/problem-with-batlle-ai-yanfly-plugin.158956/