How to stop an NPC resetting route after dialogue [MV]

BrutalBarracuda

Villager
Member
Joined
Jul 24, 2018
Messages
11
Reaction score
1
First Language
English
Primarily Uses
RMMV
So I'm a complete no0b, but i have managed to make an NPC and have him move along a custom route. I have finally managed to get the NPC to say 3 different things every time you talk to him using switches, but by doing this he restarts his custom route from wherever he was standing when spoken too. As you can imagine this messes his route up completely. I have already un-ticked "Skip If Cannot Move" and this hasn't helped. Is there anyone out there that can help me?

Cheers people! :)
 

Canini

Veteran
Veteran
Joined
Mar 29, 2016
Messages
1,025
Reaction score
686
First Language
Swedish
Primarily Uses
RMVXA
Could you post a screenshot of your current event page set-up?
 

Sakurra

Is probably eating a brownie
Veteran
Joined
Sep 1, 2015
Messages
562
Reaction score
743
First Language
English
Primarily Uses
RMMV
If you are wanting random messages you can do that with variables instead of switches? And I would use self switch instead of an actual switch.

Please also provide a screenshot.
 

SwiftSign

Veteran
Veteran
Joined
Aug 5, 2015
Messages
184
Reaction score
45
First Language
English
Primarily Uses
RMMV
I'm guessing each time you activate a self switch (and a new page becomes active) the custom movement starts again.

Try using just one page and use the method outlined above:

Control Var (Random 1-3)
If Var = 1 ...
If Var = 2 ...
If Var = 3 ...
 

OnslaughtSupply

Ssshhh...
Veteran
Joined
May 14, 2017
Messages
731
Reaction score
764
First Language
English
Primarily Uses
RMMV
If you don't want random dialogue but in order it could still be done with 1 event page and 1 variable and conditional branches. Have conditional branch if variable NPC = 0 then dialogue and +1 to variable NPC, if variable NPC = 1 then dialogue and +1 to variable NPC, if variable NPC = 2 then dialogue.
 

gstv87

Veteran
Veteran
Joined
Oct 20, 2015
Messages
2,248
Reaction score
1,250
First Language
Spanish
Primarily Uses
RMVXA
but by doing this he restarts his custom route from wherever he was standing when spoken too
you can probably add a small custom route manager that'd keep the NPC moving along a path or an area, and it wouldn't matter where it ends up when it's done talking.
region IDs are useful for this.

basically, "move if region == X", "turn if not".
since it's always evaluating the region in front of it, it would never step out of it's intended path, because it won't move unless (region == X), and it would turn, and it would test again, and so on.

you can put that as the moving route, and use one page, as stated above.

if you need a kind of "patrol route" route, you can order it to move "in whatever direction the region ID states", and you'd basically draw the path you want onto the floor.

 
Last edited:

BrutalBarracuda

Villager
Member
Joined
Jul 24, 2018
Messages
11
Reaction score
1
First Language
English
Primarily Uses
RMMV
Thanks all for your help but i couldn't get it to work, i'm clearly doing something wrong :) I've just changed his route to stop it messing up.
 

OnslaughtSupply

Ssshhh...
Veteran
Joined
May 14, 2017
Messages
731
Reaction score
764
First Language
English
Primarily Uses
RMMV
You know Yanfly's move route core might help. Instead of move commands like move left, move left, move down, etc and hope everything is where it's supposed to be, you can use a point argument. MOVE TO: 8, 4 This way if your NPC gets interrupted he'll just continue to point 8, 4 on the map or whatever.
 

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