Help with implementing varied "attacks" in an auto-battler (RPG MAKER MV)

Hi all,

I am trying to create a fairly simple auto-battler where when you enter a battle, you characters automatically attack.

Id like the action a character performs to be tied to their class, so for example, a Fighter will always perform a physical attack, a Mage will perform a basic Magic attack and a Cleric will always hit a random ally with an HP Healing spell.

The way I've gone about this is inflicting all characters with either the Berserk state or a modified version of Berserk that targets a random ally. I have also equipped each character with a weapon with the <skill_id: x> tag that references an ability. So even when my Cleric auto-attacks, she actually casts a Healing Skill.

THE PROBLEM

The issue I'm encountering is trying to make classes that target multiple enemies. Maybe a Pyromancer doesn't hit as hard as a Mage, but targets all enemies. The problem is that even when I have his auto-attacks pull a skill that targets ALL ENEMIES or ALL ALLIES, the attack is still only hitting ONE target. I believe this to be because the Berserk State Restriction only gives me the option to target AN ally or AN enemy, so even though the ability is being called (it even shows the hit ALL animation), only one target is affected.

Does anyone have any experience on how to get around this apparent limitation? Maybe there's a better way for me to be going about this? I own the entire YanFly plug in catalog so if anyone has a suggestion for one that would help, I would greatly appreciate the advice. THANK YOU!
Heya! It sounds as though you may wish to look at Yanfly's Actor Auto Battle A.I!

And then you could set your characters to all go through auto battle, with stricter AI settings that should achieve what you're looking for without any of the drawbacks/side effects that might come from the berserk/skill on weapon combo you're using right now.
To be honest, I think you can just give your actors an auto battle flag, give them no skills at all, use a plugin to give each actor it's own "attack" command. (I think weapon unleash can do this? )

And then just make action sequences. Roll a random variable within the AS, and make if conditions for each number, and each of them does a different animation/target/effect.

Your healer can just have a heal skill that does "random ally". Make an AS with a random variable again and each number does maybe a differently strong heal/effect.
Awesome, thank you both for the suggestions! I have been messing around with the Yanfly Actor AI Plugin and it allows me to force the character to always use the desired skills and when used, it obeys the existing target rules established by the skill and target tags so this works perfectly!

Thank you both again for the suggestions!

Original thread: https://forums.rpgmakerweb.com/threads/help-with-implementing-varied-attacks-in-an-auto-battler-rpg-maker-mv.154483/