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,932
Reaction score
14,764
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
33,652
Reaction score
8,483
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
43,320
Reaction score
15,150
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 Posts

Latest Profile Posts

Working in the IT industry:
- "How long does it take?".
- "It takes 1 month".
- "What if we add more people to the project?".
- "It would take 2 months".
Doing RPG Maker News for 16th September 2021

Stream is live! I am currently doing pixel art and will be practicing shading! Feel free to drop by!
wow, Surface Tension is really one MF of an FPS level huh
So, I got let go from my current job because my skill set didn't align with the department's goals anymore. I have some hope, because I am currently in contact with a manager from a different department, and they are desperate for more employees. We'll see what happens... :kaoswt:

Forum statistics

Threads
115,121
Messages
1,087,375
Members
149,607
Latest member
iamicon
Top