Anyone familiar w/ Yanfly's Battle AI Core in RPG Maker MV?
7 years ago
If you are, I need help: https://twitter.com/PandorasArtbox/.....59341516193794
It seemed like a simple problem that'd have a simple solution, but I can't figure anything out.
I got close a few times, but most of them ended up with all the supporters casting the same move until the end of the turn (it's redundant after the first time),
It seemed like a simple problem that'd have a simple solution, but I can't figure anything out.
I got close a few times, but most of them ended up with all the supporters casting the same move until the end of the turn (it's redundant after the first time),
FA+

<AI Priority>
Eval user.name() === "MyNiceBoss" && STATE !== MagicReflect: CastMagicReflectSpell, "MyNiceBoss"
</AI Priority>
<AI Priority>
--enter your own code here--
</AI Priority>
This would evaluate that the first action is always to check if the boss/enemy has your magic reflection spell (obviously, modify the words here to suit your purpose) and if there is no magic reflect spell, to cast it on the boss.
Otherwise, the AI would continue with additional behaviours and act normally (assuming you have additional behaviours set for them; otherwise, they revert to default behaviour).
I've never used that thing and only read for about 20 minutes, but I hope it helps. :3
if STAT = Sleep
then WAKE
else if
attack;
So basically allowing the NPCs in a party to all act on each other.
//Support unit code
if STAT = Protect
then attack
if HP < (HP * 1/4)
heal
many ways to set up simple AI, but it's mainly still going to go threw the list of commands the programmer (you) write into them. One of the key differences between human and AI is likely to be "multi input", the NPCs can't see and respond to everything around them, they can not so something until the code falls on the list of conditions to behave a set way. But yeah sounds like you want a command to just have them not do an action if something is present.