YEP action sequences to perform action on each enemy

Hi, I tried to make sequences to make the actor move to enemies and perform action on each enemy once
I was making "Steal All" skill which perform steal on each enemy so i set the skill target to all enemies
I tried making script like this

<setup action>
display action
immortal: target, true
</setup action>

<target action>

move user: target, front, 20

wait for movement

wait: 2

action animation

wait for animation

action effect

</target action>
The problem is the actor perform the action before moving to the enemy and play action animation on all enemies first
and then move to play animation again on each monster

How can i solve this?

sorry for putting in wrong section it should be in plugin support but i dont know how to move this thread
For skill with "All Targets" scope (All Enemies, All Allies, etc), you should perform actions in <whole action> tags, and leave <target action> blank like this:
Code:
<setup action>
//do setup actions
</setup action>

<whole action>
//perform actions here!
</whole action>

<target action>
</target action>
^ As JamesRyan mentions, <whole action> affects all targets simultaneously but <target action> affects each target in turn. The default action sequence depends on the scope: "All" scopes get a blank <target action> and a default <whole action>. What you're seeing is that default <whole action> followed by your custom <target action>.

So, if I've understood correctly, I think you just need to add an empty <whole action> to your action sequence:
Code:
<whole action>
</whole action>
Thank you 🙂

Original thread: https://forums.rpgmakerweb.com/threads/yep-action-sequences-to-perform-action-on-each-enemy.107330/