How to make town reject vehicle?

Karbonic

Off Brand OFF
Veteran
Joined
Dec 24, 2015
Messages
57
Reaction score
20
First Language
English
Primarily Uses
RMMV
Okay, So I was wondering if it is at all possible to make a transfer event reject the player


if they are in a vehicle. I need this because I have had my car enter some towns


with some strange consequences. Is there a way to force the player to exit the vehicle


before they can enter a town?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
38,848
Reaction score
12,257
First Language
English
Primarily Uses
RMMV
Can you just add a Get On/Off Vehicle command prior to the transfer?  I think there's a conditional branch for 'vehicle X being driven' if you want to go to that effort, but I don't think it would be necessary (if you're not in a vehicle, then you're not going to get out of the vehicle).  The only issue might be that it could leave the vehicle on the same tile as the transfer event, which could be problematic.  In that case, using the conditional branch, followed by a Get On/Off Vehicle, followed by a Set Vehicle Location to just move the car a few tiles away (so it's not obstructing the transfer event, but the player won't land right on it once they leave the town) might be a better solution.
 

Victor Sant

Veteran
Veteran
Joined
Mar 17, 2012
Messages
1,694
Reaction score
1,442
First Language
Portuguese
Primarily Uses
use a conditional branch with a script code on the transfer event to check if the player is on a vehicle


the code is: $game_player.normal_walk?


This way the event will not process the events inside of the conditional branch while the player is on a vehicle.
 
Last edited by a moderator:

Karbonic

Off Brand OFF
Veteran
Joined
Dec 24, 2015
Messages
57
Reaction score
20
First Language
English
Primarily Uses
RMMV
In that case, using the conditional branch, followed by a Get On/Off Vehicle, followed by a Set Vehicle Location to just move the car a few tiles away (so it's not obstructing the transfer event, but the player won't land right on it once they leave the town) might be a better solution.

use a conditional branch with a script code on the transfer event to check if the player is on a vehicle


the code is: $game_player.normal_walk?


This way the event will not process the events inside of the conditional branch while the player is on a vehicle.
This works!


Sorry about that, I didn't notice the vehicle section of continental branch. Sort of embarrassing, I've been using RPGM for years.


Thanks a lot! This fixed a huge problem I've been dealing with for a while. 
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Is it okay to hug a tree? :/
The new intro Logo for my videos.

I speed it up, the one I use to use was to long.
The workweek is now over. Now I can work on my GamZzzzzZzzzzZzzzZzzZz....
Just watched Onward with the family. One of the best movies I've ever seen. <3

Forum statistics

Threads
95,824
Messages
932,213
Members
126,259
Latest member
Illuminachos
Top