All map triggers use the maptrigger macro, not dw

.MapTriggers and .MapCallbacks lists are formatted consistently with .Warps, .XYTriggers, .Signposts, and .PersonEvents
This commit is contained in:
Remy Oukaour
2017-12-10 17:53:21 -05:00
parent 66527d861f
commit 62f5913943
133 changed files with 659 additions and 1082 deletions

View File

@@ -4,20 +4,17 @@ Route16_MapScriptHeader:
.MapCallbacks:
db 1
dbw MAPCALLBACK_NEWMAP, .AlwaysOnBike
; callbacks
dbw MAPCALLBACK_NEWMAP, UnknownScript_0x1ad318
UnknownScript_0x1ad318:
.AlwaysOnBike:
checkcode VAR_YCOORD
if_less_than $5, UnknownScript_0x1ad328
if_less_than $5, .CanWalk
checkcode VAR_XCOORD
if_greater_than $d, UnknownScript_0x1ad328
if_greater_than $d, .CanWalk
setflag ENGINE_ALWAYS_ON_BIKE
return
UnknownScript_0x1ad328:
.CanWalk:
clearflag ENGINE_ALWAYS_ON_BIKE
return