MZ Skill hitting 5 or more random targets

Hello everyone,
I want to make a skill that hits multiple random targets. I'm using VS Action Sequences plugins but my problem is that the skill I'm creating is hitting the same target 5 times, instead of changing (or not) for each hit. I'm doing something wrong but I don't know what...
I'm assuming you're using a Common Event for the skill's action sequence? Does it hit all enemies at once or one at a time? ("ACSET: All Targets Action Set" Vs."ACSET: Each Target Action Set")

If the latter, make sure to use the command "TARGET: Next Target" after the attack, and use a label with the same name you gave it in said command right before the action (motions and animations included if necessary).

If I remember correctly, this should cycle through the specified number of targets until all 5 are hit, then continue with the rest of the common event.
I'm assuming you're using a Common Event for the skill's action sequence? Does it hit all enemies at once or one at a time? ("ACSET: All Targets Action Set" Vs."ACSET: Each Target Action Set")

If the latter, make sure to use the command "TARGET: Next Target" after the attack, and use a label with the same name you gave it in said command right before the action (motions and animations included if necessary).

If I remember correctly, this should cycle through the specified number of targets until all 5 are hit, then continue with the rest of the common event.
Thank you for replying. I'm using only the "ACSET: Each Target Action Set". I've just set the Label (before the action) and "TARGET: Next Target" (after the action) like you said. But I don't know how to set the number of targets to 5 (or anything more than 4) as the database only allow 4 or less. I must admit the Action Sequences looks powerful but I have so much difficulties to understand how it works compared to other plugins...
But I don't know how to set the number of targets to 5 (or anything more than 4) as the database only allow 4 or less.

This is done via a notetag in the skill itself, specifically the following:
<Target: x Random Enemies>
<Target: x Random Allies>
<Target: x Random Any>
(replace x with 5 in this case)
Adding the notetag on the skill overrides whatever targeting options you gave it in the database, so no need to worry about that.

Action sequences let you do quite a lot of things, but they do require a lot of work and trial and error to put together, and the common events usually end up looking an overwhelming mess. I personally find it helpful to use a bunch of Comments just to keep track of what's going on, like this:

Capture.PNG
This is done via a notetag in the skill itself, specifically the following:
<Target: x Random Enemies>
<Target: x Random Allies>
<Target: x Random Any>
(replace x with 5 in this case)
Adding the notetag on the skill overrides whatever targeting options you gave it in the database, so no need to worry about that.

Action sequences let you do quite a lot of things, but they do require a lot of work and trial and error to put together, and the common events usually end up looking an overwhelming mess. I personally find it helpful to use a bunch of Comments just to keep track of what's going on, like this:

View attachment 325396
Thank you for your help. I just tried it and it works fine ! I didnt even know there were "target-related" notetags, I was looking in the "Action sequences" category...
Now I use comments too, and it helps a lot. But my skill works even without the label you mentioned before. Thank you, you helped me a lot !
Thank you for your help. I just tried it and it works fine ! I didnt even know there were "target-related" notetags, I was looking in the "Action sequences" category...
Now I use comments too, and it helps a lot. But my skill works even without the label you mentioned before. Thank you, you helped me a lot !

Glad it worked!

Ah, probably using the next target and label is only needed if there's more stuff going on for each target. For instance I use it in a skill where the character moves up to an enemy, hits it, then moves on to the next, hits it and so on.

Original thread: https://forums.rpgmakerweb.com/threads/skill-hitting-5-or-more-random-targets.173809/