Karbonic

Off Brand OFF
Veteran
Joined
Dec 24, 2015
Messages
73
Reaction score
25
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

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
41,274
Reaction score
14,274
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,454
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
73
Reaction score
25
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. 
 

Latest Threads

Latest Posts

Latest Profile Posts

I wrote RPGMakerMZ JavaScript reference in Japanese.
But I think you'll be able to read it through the translator.

back in April of 2019, I watched my friend's art stream on twitch. that was when I got inspired to draw most of the assets for my game. it's been a LONG journey since, but totally worth it.
RPG MZ multiplayer in development
Square-Enix, why you didn't released the classic Dragon Quests on Steam yet? :kaocry:
This is by far my most favorite boss monster I've made, its name is Gosck

Forum statistics

Threads
109,139
Messages
1,042,484
Members
141,648
Latest member
Tronfol
Top