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,855
Reaction score
8,578
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,147
Reaction score
8,936
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

 …So I was looking at a question someone had asked and did some related experimentation. Apparently the Jump… movement route command works like the ultimate through. Including letting you move around outside the confines of the map entirely. o_O
Jump.png
Okay so today I heard the dumbest theory I have heard in a loooooooong while. It's so stupid I just have to share... Appearantly I have learned to draw 'hot chicks' so that 'real men' get physically excited by looking at it and I can then swoop in and 'turn' them.... Wow... Just... Amazing how some brains works...
What the writer wrote: "The curtain is blue."
The readers: "There must be a hidden meaning behind this, perhaps to convey the character emotions ...".
What the writer has in mind: "The curtain is frickin' blue".
Time to share something!
hmZFwQe.png

I made these a while ago for my game. I took reference from various huts in Africa.
Have a great night! :D
I really need to buy a new mouse. Mine's keeps double-clicking and makes me waste A LOT of time eventing

Forum statistics

Threads
115,844
Messages
1,093,364
Members
151,037
Latest member
deadb33t
Top