pokecrystal-board/maps/Route16.asm

45 lines
819 B
NASM
Raw Normal View History

Route16_MapScripts:
db 0 ; scene scripts
db 1 ; callbacks
callback MAPCALLBACK_NEWMAP, .AlwaysOnBike
.AlwaysOnBike:
checkcode VAR_YCOORD
2018-01-11 22:40:20 -08:00
if_less_than 5, .CanWalk
checkcode VAR_XCOORD
2018-01-11 22:40:20 -08:00
if_greater_than 13, .CanWalk
2015-07-10 05:08:03 -07:00
setflag ENGINE_ALWAYS_ON_BIKE
return
.CanWalk:
clearflag ENGINE_ALWAYS_ON_BIKE
return
2016-04-06 21:59:45 -07:00
CyclingRoadSign:
jumptext CyclingRoadSignText
2016-04-06 21:59:45 -07:00
CyclingRoadSignText:
text "CYCLING ROAD"
para "DOWNHILL COASTING"
line "ALL THE WAY!"
done
Route16_MapEvents:
db 0, 0 ; filler
db 5 ; warp events
warp_event 3, 1, 1, ROUTE_16_FUCHSIA_SPEECH_HOUSE
warp_event 14, 6, 3, ROUTE_16_GATE
warp_event 14, 7, 4, ROUTE_16_GATE
warp_event 9, 6, 1, ROUTE_16_GATE
warp_event 9, 7, 2, ROUTE_16_GATE
db 0 ; coord events
db 1 ; bg events
bg_event 5, 5, BGEVENT_READ, CyclingRoadSign
db 0 ; object events