Multi Elemental Spell

I am not sure what plugins this will take but I am sure it requires some. I want to make a spell that cast 5 random elemental magics, either hitting 5 times or everyone.
It needs to be a different element (can't repeat) and needs to use the elements animation. However, this is beyond my skills. Anyone have advice or know how?
@J_spencer93 It sounds like you need a pseudo-combo attack with multiple animations. You should be able to get something like that to work using Yanfly's Action Sequence Packs which require Yanfly's Battle Core plugin as well. Take a look and see if they will provide what you need. Best! 🙂
@J_spencer93 It sounds like you need a pseudo-combo attack with multiple animations. You should be able to get something like that to work using Yanfly's Action Sequence Packs which require Yanfly's Battle Core plugin as well. Take a look and see if they will provide what you need. Best! 🙂
Thank you. I have those but will go back to the videos and pages and see if I can figure this out.
Assuming you know which character or boss enemy will use the attack, I believe you could do this without plugins. Create the five elemental skills separately in your database, each with their own element. For the first skill, give it a Common Event in the Features box; the Common Event should have a Force Action line that has the character (or boss) use the second skill on "Last Target". For the second skill, give it a Common Event with a Force Action that has the character use the third skill, and so on until the last skill is used (this last skill needs no common event).
Assuming you know which character or boss enemy will use the attack, I believe you could do this without plugins. Create the five elemental skills separately in your database, each with their own element. For the first skill, give it a Common Event in the Features box; the Common Event should have a Force Action line that has the character (or boss) use the second skill on "Last Target". For the second skill, give it a Common Event with a Force Action that has the character use the third skill, and so on until the last skill is used (this last skill needs no common event).
That doesn't do everything the skill needs to do. Also, the action sequence plugins dont really help. I do not see a way to use a different skill within them.

It needs to randomly cast 5 elemental spells, hitting 5 (or maybe everybody) targets.
@Wavelength Thank you for your suggestion to the OP. I had wondered if the OP intent was to do 5 damages with one combo attack. You have enlightened me about stringing linear combos. I am much obliged.

@J_spencer93 Wavelength's idea should still work. Here's the part you need to add in: the common events should generate random numbers until there's only 1 event left, and the common event should force a following event based upon the random value generated. It gets a little tricky because you also want no repeats, so you need to keep track of which events are still eligible going into the next common event to force an action, but I know this is doable if you are careful with your logic setting up the events. Also, remember to reset everything after the skill is used so it can all be done again and happen uniquely on the next skill use.
@Wavelength Thank you for your suggestion to the OP. I had wondered if the OP intent was to do 5 damages with one combo attack. You have enlightened me about stringing linear combos. I am much obliged.

@J_spencer93 Wavelength's idea should still work. Here's the part you need to add in: the common events should generate random numbers until there's only 1 event left, and the common event should force a following event based upon the random value generated. It gets a little tricky because you also want no repeats, so you need to keep track of which events are still eligible going into the next common event to force an action, but I know this is doable if you are careful with your logic setting up the events. Also, remember to reset everything after the skill is used so it can all be done again and happen uniquely on the next skill use.
Ok, I will see if i can turn that into something lol
That doesn't do everything the skill needs to do. Also, the action sequence plugins dont really help. I do not see a way to use a different skill within them.

It needs to randomly cast 5 elemental spells, hitting 5 (or maybe everybody) targets.

Then have a "base" spell that does nothing (except run a common event), and inside that common event do this 5 times: pick a random number 1 through X (X is the number of possible elemental spells it can choose), using the Control Variables event command. For each number, have a conditional branch that says if the variable is this number, Force Action on a certain spell for that battler. (You can either copy and paste all this long eventing 5 times, or you can use a Loop by incrementing another variable every time you run through, and then breaking the loop once that variable is >5 and finally setting it back to 0 outside the loop.)

If you refuse to have repeats, it gets more complicated. You have to set aside 4 more variables to hold the random number X you chose the 1st through 4th times, and then after you pick a random number (but before you use Force Action), you have to check whether your number matches any of those four holder variables. If not, you don't run the action, but instead you pick another number, and you keep doing it until you've picked one that doesn't match. You can do this by adding a loop to the pick-a-number, match-numbers selection process. Break the loop only once you've found that your number matches none of the holders, and move on to the actual Force Action. Like I said, it's complex. Checking for "unique" values is always a bit of a slog, even in programming.

You mentioned you want random targets. In that case, just choose "Random" in force action rather than "Last Target".

@mathmaster74 Very glad I could help you out! 🙂
Then have a "base" spell that does nothing (except run a common event), and inside that common event do this 5 times: pick a random number 1 through X (X is the number of possible elemental spells it can choose), using the Control Variables event command. For each number, have a conditional branch that says if the variable is this number, Force Action on a certain spell for that battler. (You can either copy and paste all this long eventing 5 times, or you can use a Loop by incrementing another variable every time you run through, and then breaking the loop once that variable is >5 and finally setting it back to 0 outside the loop.)

If you refuse to have repeats, it gets more complicated. You have to set aside 4 more variables to hold the random number X you chose the 1st through 4th times, and then after you pick a random number (but before you use Force Action), you have to check whether your number matches any of those four holder variables. If not, you don't run the action, but instead you pick another number, and you keep doing it until you've picked one that doesn't match. You can do this by adding a loop to the pick-a-number, match-numbers selection process. Break the loop only once you've found that your number matches none of the holders, and move on to the actual Force Action. Like I said, it's complex. Checking for "unique" values is always a bit of a slog, even in programming.

You mentioned you want random targets. In that case, just choose "Random" in force action rather than "Last Target".

@mathmaster74 Very glad I could help you out! 🙂
Thank you. The more in depth description helps.

Original thread: https://forums.rpgmakerweb.com/threads/multi-elemental-spell.109169/