Status
Not open for further replies.

kyklops

Mista's 4th Bullet
Member
Joined
Feb 26, 2019
Messages
11
Reaction score
0
First Language
Dutch
Primarily Uses
RMMV
Hello! I'm working on a game and I am trying to create a bar, I have a script set up so that the bartender walks around and interacts with other NPC's, the movement route for him will keep looping so that he keeps walking the same path the entire time that you're in the same room as the bartender, but there's an empty seat where you can greet the bartender to request a drink or food. The problem is though, that when you interact with the Bartender he will continue moving along his path instead of standing still and waiting for your dialogue/interaction with him to finish.
I've got 2 seperate events for this. One that is made to make him move and one which is the bartender himself, which allows you to talk with the bartender.
TL;DR (as it might get very confusing)
Bartender has looped movement route but won't stop moving upon player interaction with the bartender. How do I make him stop?
The movement route:
Help1.png Help2.png

The interaction with the Bartender himself:
Help3.pngHelp4.png
If anything else is needed I can post it in the comments. (Sorry if its very confusing)
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
33,664
Reaction score
8,485
First Language
German
Primarily Uses
RMMV
the problem is that the parallal process will continue to give move commands, overriding the interaction on the barkeeper event.
you either need to stop that parallel event when the player talks to the barkeeper, or to use autonomous movement instead of set move route for that movement.

both versions will require an extensive rework of what you do, and I don't have time to describe that for you.
 

kyklops

Mista's 4th Bullet
Member
Joined
Feb 26, 2019
Messages
11
Reaction score
0
First Language
Dutch
Primarily Uses
RMMV
Thank you again Andar, (i had a message here before this but it was incorrect so i fixed the script and rewrote the message) since your comment made me see a simpler method to fixing this problem, which is adding a Switch.
For others experiencing the same problem i had here's what to do:
Create a Switch
Put that Switch under the items after you've received them from the bartender (also under NO so it doesn't keep looping)
In the Processor, put on the very top of the event page (Name of your switch) = OFF so it will turn back to off next time you talk with him so he doesn't have this same problem again after you've talked to him.
Put an IF command with the Else option enabled at the point where your bartender or person can interact with the player. (The IF command has to demand for the Switch to be ON)
Put a label above the IF command
In the IF command put the rest of the movement route so that he shall move after the switch is turned on.
under Else put "Jump to Label" with the Label Name you put above the IF Command, if that's confusing i'll upload the screenshots of what I did in a second.
Thanks.pngThanks1.pngThanks2.png
 
Last edited:

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
16,105
Reaction score
8,923
First Language
English
Primarily Uses
RMMV

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

finished the second chapter of deltarune today, I gotta say that the 3 years wait was worth it lol
Happy Friday, y'all! I just got home from work and am sitting down with a nice cider, and I'm ready to chill and enjoy myself. Not sure if I'm gonna dive into any of my game-related projects or not tonight.... we'll see how I feel after unwinding for a bit I guess!
Just found out that mint tea made from chocolate mint tastes a bit like hot cocoa with candy cane stirred in. As I'm allergic to chocolate this makes me very happy.
It's special day for me tomorrow so time to vanish for 24 hours lol.

Forum statistics

Threads
115,145
Messages
1,087,611
Members
149,667
Latest member
Asta
Top