YEP Action Sequence Help - Random Targeting Skills

Good Morning / Afternoon / Evening

I am in need of assistance.

I am having trouble with YEP's action sequences as I want to create a skill that targets random enemies BUT the action keeps repeating multiple times in battle. I get this is how the default maker works, but is there a way to make it so for example:

Whirlwind skill attacks 2 random enemies.

- actor performs action
- animation (the slash effect, which only affects an enemy and not the whole screen) is displayed all targeted enemies at once (lets say you have 5 enemies in battle, the animation will play on 3 of those randomly selected enemies)
- common event playing seperate whole screen animation of a tornado
- wait for base animation selected in database (the slash effect) to end
- damage being dealt
- end

Is there a way to achieve this with the Action Sequences plugin?

Any help is appreciated.
- common event playing seperate whole screen animation of a tornado
Why would you randomly use a common event in the middle of an action sequence just to play an animation?

As far as the random enemies, the easiest thing to do is use the Target Core to make the skill pass two random targets into the action sequence.
Why would you randomly use a common event in the middle of an action sequence just to play an animation?

As far as the random enemies, the easiest thing to do is use the Target Core to make the skill pass two random targets into the action sequence.
Just for an added effect!

So, how do I make it so it does that? I have the Target Core Plugin as well!

I tried this

<Target: Target 2 Random Foes>
<Whole Action>
perform action
action animation: target
wait for animation
action effect: target
death break
wait: 22
perform finish
</Whole Action>

but it keeps repeating itself in battle...
Just for an added effect!
...my question was not about adding the effect, it's why you would use a common event for it instead of simply using the built-in action sequence command.

So, how do I make it so it does that? I have the Target Core Plugin as well!
It's right in the instructions - there's a notetag to target X random foes.
I tried this

<Target: Target 2 Random Foes>
<Whole Action>
perform action
action animation: target
wait for animation
action effect: target
death break
wait: 22
perform finish
</Whole Action>

but it did not seem to work... the actor keeps repeating the action. What I'm trying to acheive is the random targets being damaged once then the action ends.
Why do you randomly have a death break in there? You don't want the actor to wait 22 frames before stepping back if the enemies die from the attack?

the actor keeps repeating the action.
Because you only specified the whole action. By default, there's also the target action which will execute the skill against each target individually.

Just make a blank target action section.
Why do you randomly have a death break in there? You don't want the actor to wait 22 frames before stepping back if the enemies die from the attack?


Because you only specified the whole action. By default, there's also the target action which will execute the skill against each target individually.

Just make a blank target action section.
<Target Action>
</Target Action>
<Whole Action>
perform action
action animation: target
common event: 21
wait for animation
action effect: target
wait: 22
perform finish
</Whole Action>

This worked for what I wanted to do! Thank you so much!
Now I have another issue I'm facing that is probably more complicated to fix, the random target probably works like this by default but sometimes it will only hit 1 target twice because it only chose 2 out of 3 random targets... is there a way to make it so that if there are only 2 enemies remaining in battle despite the spell hitting 3 random targets only affect the two alive enemies?

I can't seem to make this work.

Original thread: https://forums.rpgmakerweb.com/threads/yep-action-sequence-help-random-targeting-skills.164199/