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,879
Reaction score
14,702
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,301
Reaction score
8,369
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
42,827
Reaction score
14,980
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

Ok is telling someone that their drawing isnt good rude
I'm familiar with MZ thanks to jam now. I say it's a better working and looking MV. Lots of plugins too and FOSSIL helps alot. It's not bad.
Some more progress <3 and in most important news:
ALPACARAPTOR SPRITE! (not animated yet, though :( )
h4u90Sz.png
Caz
At the risk of giving myself even more work to do, I kinda wanna redraw the faces of the MV RTP to be a little less.. uhhhhh..

mv-redraw.png
Hmm...you'd think in this day and age, what with Japanese Schoolgirls frequenting anime, JRGs and whatever else...that someone might have made some gym clothes for the generator. You know, the ones with the short bloomers.

Forum statistics

Threads
113,651
Messages
1,076,430
Members
147,671
Latest member
somsomsom
Top