- 428
- Posts
- 5
- Years
- Zekko
- Seen Nov 21, 2023
The player character is automatically dismounting the bike every time he travels from one map to another while on a bike.
Move from Pallet Town to Route 1? Bike dismount. Move back into Pallet? Bike dismount. Ride into or out of a building? Bike dismount.
What's causing this? Why can't my player character stay on his bike?
If it helps, I did this to the Bike Check code. This didn't fix the problem but at least it allowed me to use the bike in the first place.
Move from Pallet Town to Route 1? Bike dismount. Move back into Pallet? Bike dismount. Ride into or out of a building? Bike dismount.
What's causing this? Why can't my player character stay on his bike?
If it helps, I did this to the Bike Check code. This didn't fix the problem but at least it allowed me to use the bike in the first place.
Code:
def pbBikeCheck
return true
# if $PokemonGlobal.surfing || $PokemonGlobal.diving ||
# (!$PokemonGlobal.bicycle && $game_player.pbTerrainTag.must_walk)
# pbMessage(_INTL("Can't use that here."))
# return false
# end
# if !$game_player.can_ride_vehicle_with_follower?
# pbMessage(_INTL("It can't be used when you have someone with you."))
# return false
# end
# map_metadata = $game_map.metadata
# if $PokemonGlobal.bicycle
# if map_metadata&.always_bicycle
# pbMessage(_INTL("You can't dismount your Bike here."))
# return false
# end
# return true
# end
# if !map_metadata || (!map_metadata.can_bicycle && !map_metadata.outdoor_map)
# pbMessage(_INTL("Can't use that here."))
# return false
# end
# return true
end