Yanfly battle ai core help!

Hey all,

Thanks for taking the time to read my question.

What I want to do is have a boss use a skill when his HP is at or below 40% but that he only uses it once. And then he’ll use it again, or something different, at 25%.

Is there a way of doing that using yanfly’s battle ai core?

Thanks in advance!
Theoretically that could be done even without a plugin, although the action pattern for such a thing would be a nightmare to design.
I don't use the battle ai core (because I think it's too limited), but it should be able to do this with the correct number of switches or states to remember how often the skill had been used. But you need someone else to tell you how.

That said, have you considered a slightly different approach with using troop events to trigger a force-action of that skill? Make the troop event have the correct condition and set its span to battle, with one event for each use of the skill and you would be finished.
The problem with this approach is that you might end up with that enemy having two actions in that battleturn - the regular action and the forced action from the troop event.
@Andar Thanks for the reply Andar. I guess I could do the forced action and you've helped me try to think of this in a different way.

You say you don't use the battle ai core. Is there something else you use instead? Or you use switches, troop events, etc.?
Is there something else you use instead? Or you use switches, troop events, etc.?
The default methods (without any plugins or scripts) can do a lot more than most people think - it's just a lot of work to set them up correctly. But if you do it correctly, you can have enemies reacting to other enemy data, and that is something most AI scripts (which are focused on single enemy control) can't do.
There are a few things missing in the engine that would help greatly with troop control, but it's nothing that can be explained in a few sentences.

I've been writing parts of a tutorial on troop control and battle AI for about a year now, often delayed by real life and health problems. It will probably take another year to complete that tutorial, and until it is complete the way how I handle things is difficult to explain. Because it's a combination of action patterns, troop events and states with a few other things thrown in for finetuning.
Definitely looking forward to that tutorial!

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-battle-ai-core-help.119182/