mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
c3331eb7b1
Co-authored-by: Rangi <35663410+Rangi42@users.noreply.github.com>
45 lines
833 B
NASM
45 lines
833 B
NASM
Route16_MapScripts:
|
|
def_scene_scripts
|
|
|
|
def_callbacks
|
|
callback MAPCALLBACK_NEWMAP, Route16AlwaysOnBikeCallback
|
|
|
|
Route16AlwaysOnBikeCallback:
|
|
readvar VAR_YCOORD
|
|
ifless 5, .CanWalk
|
|
readvar VAR_XCOORD
|
|
ifgreater 13, .CanWalk
|
|
setflag ENGINE_ALWAYS_ON_BIKE
|
|
endcallback
|
|
|
|
.CanWalk:
|
|
clearflag ENGINE_ALWAYS_ON_BIKE
|
|
endcallback
|
|
|
|
CyclingRoadSign:
|
|
jumptext CyclingRoadSignText
|
|
|
|
CyclingRoadSignText:
|
|
text "CYCLING ROAD"
|
|
|
|
para "DOWNHILL COASTING"
|
|
line "ALL THE WAY!"
|
|
done
|
|
|
|
Route16_MapEvents:
|
|
db 0, 0 ; filler
|
|
|
|
def_warp_events
|
|
warp_event 3, 1, ROUTE_16_FUCHSIA_SPEECH_HOUSE, 1
|
|
warp_event 14, 6, ROUTE_16_GATE, 3
|
|
warp_event 14, 7, ROUTE_16_GATE, 4
|
|
warp_event 9, 6, ROUTE_16_GATE, 1
|
|
warp_event 9, 7, ROUTE_16_GATE, 2
|
|
|
|
def_coord_events
|
|
|
|
def_bg_events
|
|
bg_event 5, 5, BGEVENT_READ, CyclingRoadSign
|
|
|
|
def_object_events
|