Attack Next Alive Enemy?

As the title says, is there a way to force the game to attack the next alive enemy in battle? Say for instance I have an attack that hits multiple times and the damage is enough to destroy the enemy. However in the base game the multiple hit attack would continue to attack the same enemy regardless if it has any health remaining or not.

I'm wondering if there is a way to stop the attack once the enemy has run out of health and move on with the remaining number of hits to the next enemy?

I don't mind if this can be done either via plugins or scripting, I'm just wondering if it is even at all possible? I tried searching around the forums and I couldn't find an answer to the problem I'm having. Maybe I'm not using the right keywords or the question just hasn't been asked?

Any help at all would be fantastic!
Sounds like you are referring to skills with a Repeat value higher than 1. No, that's not possible without rewriting the way that repeats function. Can't say I've even come across this request before, either.

If you use a multi-hit single target attack in virtually any RPG that I can think of, any unspent hits won't intelligently overflow to another target.

It's certainly an interesting idea. You'd need to find someone interested enough in coding it if you wanted to use the Repeat value.

Thinking more about it, a Magic Missile type attack that had X repeats and could overflow to a second or third target is very interesting.

I can already think of a lot of potential things that might need to be implemented with this from a plugin perspective, too. For example, should the attack animation trigger on the next target?

This almost sounds like something you might be able to hack together with Yanfly's action sequences instead of the default Repeat function, though I have zero knowledge of how action sequences work.
Sounds like you are referring to skills with a Repeat value higher than 1. No, that's not possible without rewriting the way that repeats function. Can't say I've even come across this request before, either.

If you use a multi-hit single target attack in virtually any RPG that I can think of, any unspent hits won't intelligently overflow to another target.

This almost sounds like something you might be able to hack together with Yanfly's action sequences instead of the default Repeat function, though I have zero knowledge of how action sequences work.
Yes that's basically what I'm looking for! I do have Yanfly's action sequences and there is a "stop" action in that. It just discontinues the remaining hits if the target has run out of HP, that's how I've been using it so far anyway. I was just hoping there was a bit more intuitive solution to the problem.
You may want to consider asking around in threads dedicated to Yanfly's action sequences to see if what you are asking for has already been worked out. If not, you are probably entering custom plugin territory.
You may want to consider asking around in threads dedicated to Yanfly's action sequences to see if what you are asking for has already been worked out. If not, you are probably entering custom plugin territory.
I'll probably try that then. I think there's a pretty long action sequence thread here on the forums I can look through. Thanks for the suggestion though!

Original thread: https://forums.rpgmakerweb.com/threads/attack-next-alive-enemy.137849/