How to make a skill that makes you pick a respective target for multiple hits?

What I want to do is to make a sort of magic barrage attack, where after you press the button for the spell, you get to select a respective target for around 4 or so consecutive attacks (along with the ability to hit all four of them on one target if so desired).
How exactly would one go about doing this?
If you want to select ONE target to hit 4 times, it's easy - simply use the scope "One Enemy" and use the "Repeats" field (set it to 4) to make it hit that same target multiple times.

If you want the player to be able to select a target for EACH hit, and they can select the same foe or different foes for each hit... well, my advice would be don't bother. The problem is that it would require making a big change to the whole internal flow of battle control for this one skill. It would be a huge can of worms that would open your game up to a lot of technical risk.

If you have a lot of different skills that you want to use this kind of functionality, and this really is an important mechanic to add into your game, then you can post a request on the JS Plugin Requests board (or if you know JavaScript, you can make the changes to the code base yourself), but since this is a pretty complicated change to make, there's no guarantee someone will make it for you.
Zevia made a plugin for this over here, it worked for me last time I tried it:
https://forums.rpgmakerweb.com/index.php?threads/select-multiple-targets-v2-0-0.104341/

Edit: oh, I misremembered slightly, seems it clashed with Yanfly's Selection Control when I tried it (discussion link).
Don't know if this is what you want exactly, but you could try using these plugins by Yanfly
http://www.yanfly.moe/wiki/Skill_Core_(YEP)
http://www.yanfly.moe/wiki/Limited_Skill_Uses_(YEP)
http://www.yanfly.moe/wiki/Instant_Cast_(YEP)

You can give your skill a limit of 4 uses, and instant cast will let you use it all in one turn while still being able to select different targets.
And if you want the skill to be reusable, Limited Skill Uses has a notetag for recovering skill uses that you can add to another skill.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-a-skill-that-makes-you-pick-a-respective-target-for-multiple-hits.112672/