Set the order of execution of multiple autorun events

WhimsicalFae

Warper
Member
Joined
Nov 28, 2020
Messages
3
Reaction score
0
First Language
English
Primarily Uses
RMXP
I have two autorun events (one triggers an animation of a door opening, the other triggers a NPC to come greet the player if a certain condition is met). But they are not running in the order I desire - the character comes greet the player before the door opens.

The question is, how can I make it so the door event always triggers first?
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,605
Reaction score
14,329
First Language
English
Primarily Uses
RMVXA
Autoruns run in the event order by ID. If you need them to run in a precise order you should use one event and have it control both items.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,787
Reaction score
7,876
First Language
German
Primarily Uses
RMMV
combine them into one autorun that controls both the door and the NPC to let them move in the order you want them to move.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
40,787
Reaction score
14,016
First Language
English
Primarily Uses
RMMV
You should not have 2 autorun events active at the same time. Parallel Process events will run at the same time, but autorun events will only run one at a time, and I believe the order is according to the event id.

If the two are linked, just have one controlling autorun event that makes the NPC walk to the correct point, then open the door, then (I assume) walk to the player.

Otherwise if they're actually independent and have different triggers, make the one that's going to be finished first a parallel process event, and the one that's going to take longest an autorun.
Or, depending on what triggers them both (say, stepping onto a certain tile with a Player Touch trigger), make THAT event control the others and avoid autorun and parallel process altogether.
 

Latest Threads

Latest Profile Posts

Ami


Imagine you (as Miner) Sleep in the Cave,the other side is a Bunch of Golds,how d'you feel?
finally got footage of my main character running around his corrupted street...
I finally got the ships and water to flow like I wanted to~ the canals are a success. Now to loop the animation for the kites. So many kites.
Bendyizzt wrote on staggqueen's profile.
Hello Newcomer...

Forum statistics

Threads
107,698
Messages
1,031,507
Members
139,829
Latest member
GarcezPedro
Top