YEP action sequences to perform action on each enemy

anatong123

Warper
Member
Joined
Nov 3, 2016
Messages
3
Reaction score
1
First Language
English
Primarily Uses
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
 

JamesRyan

Game Designer
Veteran
Joined
Sep 13, 2014
Messages
696
Reaction score
215
First Language
Vietnamese
Primarily Uses
RMMV
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>
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,088
Reaction score
1,508
First Language
EN
Primarily Uses
RMMZ
^ 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>
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,865
Messages
1,017,059
Members
137,575
Latest member
akekaphol101
Top