Change "Target: All" functionality

I want to change the "target: all" functionality so that it will execute the damage one-by-one to all enemies rather than all at once. I thought it's gonna be as simple as making a for loop but I'm lost at how the damages are executed. So what is the function that is responsible for executing the damage to all enemies?
You're gonna need to explain this a little more, because afaik, the default battle system does show damage pop-ups one at a time, which is slow and annoying. Yanfly's Battle Engine Core is the first plugin that comes to mind that uses the style you seemingly don't want, so if you don't have it, I'm not sure what's happening. Perhaps I've misunderstood what you're asking for.
@Sword_of_Dusk is correct, the default engine displays damage sequentially - so if you're not seeing that, you must already be changing it.

You can find the plugin that's doing that change and disable it (or hopefully be able to change it in a plugin parameter).

You can also use Yanfly's Action Sequences to control skills very specifically. Using a target action rather than a whole action will cause the commands within to be performed on enemies sequentially vs. simultaneously.
@ATT_Turan @Sword_of_Dusk
I want the damage to happen one-by-one not all at once because I noticed it's actually causing lag.
I don't know the default does that? Didn't expect that answer @.@
Yeah I've been using Yanfly Engine since the beginning of time.
It's what made me buy RMMV in the first place.

So what line of code in the Yanfly Engine should I change to go back to the default? I don't want to totally remove the plugins as they provide a lot more than I can lose. I just want to remove the specific feature.
I'm no coder, so Turan will have to tackle that, however I do have some questions. First off, you sure the lag isn't coming from something else? I've never noticed any lag due to damage pop-ups on multiple enemies occurring all at once. That sounds like something that should be investigated.

Secondly, if it is the Battle Engine Core, is the lag bad enough to warrant changing the way it handles pop-ups? The vanilla way is insanely slow, and there's a decent chance that having to deal with it could potentially annoy players enough to drop your game.
With Yanfly plugins you can change some setting about skills being able to select all. Then I THINK if the scope of the skill is one target but you use it on all it will do it one by one. No idea where the setting is either.
I'm no coder, so Turan will have to tackle that, however I do have some questions. First off, you sure the lag isn't coming from something else? I've never noticed any lag due to damage pop-ups on multiple enemies occurring all at once. That sounds like something that should be investigated.

Secondly, if it is the Battle Engine Core, is the lag bad enough to warrant changing the way it handles pop-ups? The vanilla way is insanely slow, and there's a decent chance that having to deal with it could potentially annoy players enough to drop your game.
There's a lot of effects that trigger when damaged and dealing damage.
I can only imagine those effects are triggering at the same time all at once on all enemies when the skill target is 'all' so it's causing lag as there is no wait time.
With Yanfly plugins you can change some setting about skills being able to select all. Then I THINK if the scope of the skill is one target but you use it on all it will do it one by one. No idea where the setting is either.
I don't want to change the scope as that will also change targetting. Just the way it handles the damage execution when target is "all enemies".
There's a lot of effects that trigger when damaged and dealing damage.
I can only imagine those effects are triggering at the same time all at once on all enemies when the skill target is 'all' so it's causing lag as there is no wait time.

I don't want to change the scope as that will also change targetting. Just the way it handles the damage execution when target is "all enemies".
I meant change the scope in the editor to one target and using Yanflys plugins selection plugin use the notetag <Single or Multiple Select> on the skill and when they select multiple it will do the skill one by one. Might not be exactly what you want but it will work.

edit: section to selection
I'm not sure how viable this is to you, but you can make an action sequence be a <target action> and select all enemies in the editor. That will do the skill effect on each enemy separately.
I meant change the scope in the editor to one target and using Yanflys plugins selection plugin use the notetag <Single or Multiple Select> on the skill and when they select multiple it will do the skill one by one.
The problem with that solution is it presumes the OP wants the player to have the option of targeting singly. If it's supposed to only be an all-target skill, as described, that won't help. But it's good to know it works that way, I didn't know that.

There's a lot of effects that trigger when damaged and dealing damage.
I can only imagine those effects are triggering at the same time all at once on all enemies when the skill target is 'all' so it's causing lag as there is no wait time.
Are you willing to share an example? I would suggest if there's so much stuff being called in common events that it can cause lag, there might be a more efficient way for you to do it.

If that's the reason, then hitting each target singly is just a workaround rather than a solution, and someone with suboptimal computer specs might still experience lag just from that.

Other than that, what I already mentioned about putting action sequences in the skills is how to do it without digging through the plugin and trying to edit the code. It's not a parameter.

Original thread: https://forums.rpgmakerweb.com/threads/change-target-all-functionality.154019/