pokecrystal/maps/Route16.asm

52 lines
813 B
NASM
Raw Normal View History

2015-07-10 08:45:35 +00:00
Route16_MapScriptHeader:
.SceneScripts:
db 0
.MapCallbacks:
db 1
callback MAPCALLBACK_NEWMAP, .AlwaysOnBike
.AlwaysOnBike:
checkcode VAR_YCOORD
2018-01-12 06:40:20 +00:00
if_less_than 5, .CanWalk
checkcode VAR_XCOORD
2018-01-12 06:40:20 +00:00
if_greater_than 13, .CanWalk
2015-07-10 12:08:03 +00:00
setflag ENGINE_ALWAYS_ON_BIKE
return
.CanWalk:
clearflag ENGINE_ALWAYS_ON_BIKE
return
2016-04-07 04:59:45 +00:00
CyclingRoadSign:
jumptext CyclingRoadSignText
2016-04-07 04:59:45 +00:00
CyclingRoadSignText:
text "CYCLING ROAD"
para "DOWNHILL COASTING"
line "ALL THE WAY!"
done
2015-07-10 08:45:35 +00:00
Route16_MapEventHeader:
; filler
db 0, 0
.Warps:
db 5
warp_def 3, 1, 1, ROUTE_16_FUCHSIA_SPEECH_HOUSE
warp_def 14, 6, 3, ROUTE_16_GATE
warp_def 14, 7, 4, ROUTE_16_GATE
warp_def 9, 6, 1, ROUTE_16_GATE
warp_def 9, 7, 2, ROUTE_16_GATE
.CoordEvents:
db 0
.BGEvents:
db 1
bg_event 5, 5, BGEVENT_READ, CyclingRoadSign
.ObjectEvents:
db 0