Simultaneous events for the same npc?

Kerfuffle

Warper
Member
Joined
May 18, 2018
Messages
3
Reaction score
0
First Language
English
Primarily Uses
RMMV
Hi,

I'm relatively new to RPG Maker and there is something that I can't figure out. What I'm trying to do is set a custom route for an NPC and when the npc is done with that route, he will stand there. During the time that the npc is standing there, I'm trying to make it to where you can speak to him and his route will continue after you speak to him, or he will start his route again after 30 seconds of completing his previous route. Since speaking to the npc is an action and a timer would be parallel, I would think that would require two event pages so I can't figure out how to do those at the same time. Is it possible? Any help is appreciated.

Thanks
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
I'd probably put the move route on the first page, and at the end of the move route, turn on a switch. Then create a second page on the event conditioned by the switch, with action button trigger, so you can speak to him. At the end of that page, turn the switch off.

Create a second event that is a parallel process and conditioned by the same switch. In the event commands, do a wait for 30 seconds and turn off the same switch.

So the event takes care of its own move route, and turns on the "waiting" state. The waiting state triggers the parallel process event and the talk to npc page. Both of them flip the event back into move route mode at the appropriate time, each one disabling the other after it executes.
 

Kerfuffle

Warper
Member
Joined
May 18, 2018
Messages
3
Reaction score
0
First Language
English
Primarily Uses
RMMV
I'd probably put the move route on the first page, and at the end of the move route, turn on a switch. Then create a second page on the event conditioned by the switch, with action button trigger, so you can speak to him. At the end of that page, turn the switch off.

Create a second event that is a parallel process and conditioned by the same switch. In the event commands, do a wait for 30 seconds and turn off the same switch.

So the event takes care of its own move route, and turns on the "waiting" state. The waiting state triggers the parallel process event and the talk to npc page. Both of them flip the event back into move route mode at the appropriate time, each one disabling the other after it executes.
That's what I initially thought would work and I tried it, but if you have two pages conditioned by the same event, it can only process one page at a time right? So it would only be executing the wait command before turning off the switch. Is my logic wrong?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
that is why the switch condition is there.
If this doesn't work correctly for you, then you probably made a mistake with the event, and we need to see a screenshot of the event to determine where you went wrong.
 

Kerfuffle

Warper
Member
Joined
May 18, 2018
Messages
3
Reaction score
0
First Language
English
Primarily Uses
RMMV
I figured it out. I was creating another page for the wait time instead of another event like Shaz mentioned. Thank you for your replies!
 

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,574
Latest member
nikisknight
Top