pokecrystal-board/maps/Route16.asm
Remy Oukaour c05b7f41dd Renaming: (fix #412)
- MapTriggers / maptrigger → SceneScripts / scene_script
- XYTriggers / xy_trigger → CoordEvents / coord_event
- Signposts / signpost → BGEvents / bg_event
- PersonEvents / person_event → ObjectEvents / object_event
2017-12-24 14:33:17 -05:00

52 lines
817 B
NASM

Route16_MapScriptHeader:
.SceneScripts:
db 0
.MapCallbacks:
db 1
dbw MAPCALLBACK_NEWMAP, .AlwaysOnBike
.AlwaysOnBike:
checkcode VAR_YCOORD
if_less_than $5, .CanWalk
checkcode VAR_XCOORD
if_greater_than $d, .CanWalk
setflag ENGINE_ALWAYS_ON_BIKE
return
.CanWalk:
clearflag ENGINE_ALWAYS_ON_BIKE
return
CyclingRoadSign:
jumptext CyclingRoadSignText
CyclingRoadSignText:
text "CYCLING ROAD"
para "DOWNHILL COASTING"
line "ALL THE WAY!"
done
Route16_MapEventHeader:
; filler
db 0, 0
.Warps:
db 5
warp_def $1, $3, 1, ROUTE_16_FUCHSIA_SPEECH_HOUSE
warp_def $6, $e, 3, ROUTE_16_GATE
warp_def $7, $e, 4, ROUTE_16_GATE
warp_def $6, $9, 1, ROUTE_16_GATE
warp_def $7, $9, 2, ROUTE_16_GATE
.CoordEvents:
db 0
.BGEvents:
db 1
bg_event 5, 5, BGEVENT_READ, CyclingRoadSign
.ObjectEvents:
db 0