Map callback constants

This commit is contained in:
PikalaxALT 2016-01-06 07:44:50 -05:00
parent 80aba7fc13
commit ce019e6347
100 changed files with 191 additions and 193 deletions

View File

@ -12,6 +12,13 @@ const_value SET $f1
const MAPSETUP_BADWARP const MAPSETUP_BADWARP
const MAPSETUP_FLY const MAPSETUP_FLY
const_value SET 1
const MAPCALLBACK_TILES
const MAPCALLBACK_OBJECTS
const MAPCALLBACK_PALETTES
const MAPCALLBACK_SPRITES
const MAPCALLBACK_NEWMAP
; Command descriptions from Condensation water's scripting compendium. const_def ; Command descriptions from Condensation water's scripting compendium. const_def
const_def const_def

View File

@ -350,7 +350,7 @@ CheckTileEvent: ; 96874
call CheckCoordEventScriptFlag call CheckCoordEventScriptFlag
jr z, .coord_events_disabled jr z, .coord_events_disabled
call CheckCurrentNextMapXYTriggers call CheckCurrentMapXYTriggers
jr c, .coord_event jr c, .coord_event
.coord_events_disabled .coord_events_disabled
@ -391,7 +391,7 @@ CheckTileEvent: ; 96874
ret ret
.coord_event .coord_event
ld hl, EngineBuffer5 ld hl, wCurCoordEventScriptAddr
ld a, [hli] ld a, [hli]
ld h, [hl] ld h, [hl]
ld l, a ld l, a

View File

@ -306,7 +306,7 @@ SuspendMapAnims: ; 154d3
; 154d7 ; 154d7
LoadObjectsRunCallback_02: ; 154d7 LoadObjectsRunCallback_02: ; 154d7
ld a, 2 ld a, MAPCALLBACK_OBJECTS
call RunMapCallback call RunMapCallback
callba LoadObjectMasks callba LoadObjectMasks
callba InitializeVisibleSprites callba InitializeVisibleSprites

View File

@ -166,7 +166,7 @@ endr
RunCallback_04: ; 14209 RunCallback_04: ; 14209
ld a, $4 ld a, MAPCALLBACK_SPRITES
call RunMapCallback call RunMapCallback
call GetUsedSprites call GetUsedSprites
call .LoadMiscTiles call .LoadMiscTiles

View File

@ -146,7 +146,7 @@ StartMenu:: ; 125cd
call .DrawBugContestStatus call .DrawBugContestStatus
call UpdateSprites call UpdateSprites
call ret_d90 call ret_d90
call Function2b5c call FinishExitMenu
ret ret
; 126d3 ; 126d3

View File

@ -5,11 +5,11 @@ RunCallback_05_03: ; 1045b0
call ResetFlashIfOutOfCave call ResetFlashIfOutOfCave
call GetCurrentMapTrigger call GetCurrentMapTrigger
call ResetBikeFlags call ResetBikeFlags
ld a, $5 ld a, MAPCALLBACK_NEWMAP
call RunMapCallback call RunMapCallback
RunCallback_03: ; 1045c4 RunCallback_03: ; 1045c4
callba ClearCmdQueue callba ClearCmdQueue
ld a, $3 ld a, MAPCALLBACK_PALETTES
call RunMapCallback call RunMapCallback
call GetMapHeaderTimeOfDayNybble call GetMapHeaderTimeOfDayNybble
ld [wMapTimeOfDay], a ld [wMapTimeOfDay], a

View File

@ -2,7 +2,7 @@
Clearwc7e8:: ; 210f Clearwc7e8:: ; 210f
ld hl, wc7e8 ld hl, wc7e8
ld bc, $0018 ld bc, 24
ld a, $0 ld a, $0
call ByteFill call ByteFill
ret ret
@ -308,9 +308,8 @@ GetDestinationWarpNumber:: ; 2252
ret ret
.IncreaseHLTwice .IncreaseHLTwice
rept 2
inc hl inc hl
endr inc hl
scf scf
ret ret
; 22a7 ; 22a7
@ -424,9 +423,8 @@ ReadMapEventHeader:: ; 2336
ld a, [hli] ld a, [hli]
ld h, [hl] ld h, [hl]
ld l, a ld l, a
rept 2
inc hl inc hl
endr inc hl
call ReadWarps call ReadWarps
call ReadCoordEvents call ReadCoordEvents
call ReadSignposts call ReadSignposts
@ -563,11 +561,11 @@ ReadWarps:: ; 23da
ReadCoordEvents:: ; 23f1 ReadCoordEvents:: ; 23f1
ld a, [hli] ld a, [hli]
ld c, a ld c, a
ld [wCurrentNextMapXYTriggerCount], a ld [wCurrentMapXYTriggerCount], a
ld a, l ld a, l
ld [wCurrentNextMapXYTriggerHeaderPointer], a ld [wCurrentMapXYTriggerHeaderPointer], a
ld a, h ld a, h
ld [wCurrentNextMapXYTriggerHeaderPointer + 1], a ld [wCurrentMapXYTriggerHeaderPointer + 1], a
ld a, c ld a, c
and a and a
@ -737,7 +735,7 @@ LoadBlockData:: ; 24cd
call ByteFill call ByteFill
call ChangeMap call ChangeMap
call FillMapConnections call FillMapConnections
ld a, $1 ld a, MAPCALLBACK_TILES
call RunMapCallback call RunMapCallback
ret ret
; 24e4 ; 24e4
@ -1198,7 +1196,7 @@ MaskObject:: ; 2712
ld d, $0 ld d, $0
ld hl, wObjectMasks ld hl, wObjectMasks
add hl, de add hl, de
ld [hl], -1 ; ,masked ld [hl], -1 ; , masked
ret ret
; 271e ; 271e
@ -1340,9 +1338,8 @@ UpdateBGMapRow:: ; 27d3
ld a, d ld a, d
ld [hli], a ld [hli], a
ld a, e ld a, e
rept 2
inc a inc a
endr inc a
and $1f and $1f
ld b, a ld b, a
ld a, e ld a, e
@ -1568,8 +1565,8 @@ SaveScreen_LoadNeighbor:: ; 28f7
GetMovementPermissions:: ; 2914 GetMovementPermissions:: ; 2914
xor a xor a
ld [TilePermissions], a ld [TilePermissions], a
call GetLeftRightCollision call .LeftRight
call GetUpDownCollision call .UpDown
; get coords of current tile ; get coords of current tile
ld a, [PlayerNextMapX] ld a, [PlayerNextMapX]
ld d, a ld d, a
@ -1577,12 +1574,12 @@ GetMovementPermissions:: ; 2914
ld e, a ld e, a
call GetCoordTile call GetCoordTile
ld [PlayerNextTile], a ld [PlayerNextTile], a
call Function29ff call .CheckHiNybble
ret nz ret nz
ld a, [PlayerNextTile] ld a, [PlayerNextTile]
and 7 and 7
ld hl, .data_2945 ld hl, .MovementPermissionsData
add l add l
ld l, a ld l, a
ld a, 0 ld a, 0
@ -1595,11 +1592,11 @@ GetMovementPermissions:: ; 2914
ret ret
; 2945 ; 2945
.data_2945 ; 2945 .MovementPermissionsData ; 2945
db 1, 2, 4, 8, 9, 10, 5, 6 db 1, 2, 4, 8, 9, 10, 5, 6
; 294d ; 294d
GetUpDownCollision:: ; 294d .UpDown
ld a, [PlayerNextMapX] ld a, [PlayerNextMapX]
ld d, a ld d, a
ld a, [PlayerNextMapY] ld a, [PlayerNextMapY]
@ -1609,17 +1606,17 @@ GetUpDownCollision:: ; 294d
inc e inc e
call GetCoordTile call GetCoordTile
ld [TileDown], a ld [TileDown], a
call Function298b call .Down
pop de pop de
dec e dec e
call GetCoordTile call GetCoordTile
ld [TileUp], a ld [TileUp], a
call Function29a8 call .Up
ret ret
; 296c ; 296c
GetLeftRightCollision:: ; 296c .LeftRight
ld a, [PlayerNextMapX] ld a, [PlayerNextMapX]
ld d, a ld d, a
ld a, [PlayerNextMapY] ld a, [PlayerNextMapY]
@ -1629,93 +1626,93 @@ GetLeftRightCollision:: ; 296c
dec d dec d
call GetCoordTile call GetCoordTile
ld [TileLeft], a ld [TileLeft], a
call Function29e2 call .Left
pop de pop de
inc d inc d
call GetCoordTile call GetCoordTile
ld [TileRight], a ld [TileRight], a
call Function29c5 call .Right
ret ret
; 298b ; 298b
Function298b:: ; 298b .Down
call Function29ff call .CheckHiNybble
ret nz ret nz
ld a, [TileDown] ld a, [TileDown]
and 7 and 7
cp $2 cp $2
jr z, .ok jr z, .ok_down
cp $6 cp $6
jr z, .ok jr z, .ok_down
cp $7 cp $7
ret nz ret nz
.ok .ok_down
ld a, [TilePermissions] ld a, [TilePermissions]
or FACE_DOWN or FACE_DOWN
ld [TilePermissions], a ld [TilePermissions], a
ret ret
; 29a8 ; 29a8
Function29a8:: ; 29a8 .Up
call Function29ff call .CheckHiNybble
ret nz ret nz
ld a, [TileUp] ld a, [TileUp]
and 7 and 7
cp $3 cp $3
jr z, .ok jr z, .ok_up
cp $4 cp $4
jr z, .ok jr z, .ok_up
cp $5 cp $5
ret nz ret nz
.ok .ok_up
ld a, [TilePermissions] ld a, [TilePermissions]
or FACE_UP or FACE_UP
ld [TilePermissions], a ld [TilePermissions], a
ret ret
; 29c5 ; 29c5
Function29c5:: ; 29c5 .Right
call Function29ff call .CheckHiNybble
ret nz ret nz
ld a, [TileRight] ld a, [TileRight]
and 7 and 7
cp $1 cp $1
jr z, .ok jr z, .ok_right
cp $5 cp $5
jr z, .ok jr z, .ok_right
cp $7 cp $7
ret nz ret nz
.ok .ok_right
ld a, [TilePermissions] ld a, [TilePermissions]
or FACE_RIGHT or FACE_RIGHT
ld [TilePermissions], a ld [TilePermissions], a
ret ret
; 29e2 ; 29e2
Function29e2:: ; 29e2 .Left
call Function29ff call .CheckHiNybble
ret nz ret nz
ld a, [TileLeft] ld a, [TileLeft]
and 7 and 7
cp $0 cp $0
jr z, .ok jr z, .ok_left
cp $4 cp $4
jr z, .ok jr z, .ok_left
cp $6 cp $6
ret nz ret nz
.ok .ok_left
ld a, [TilePermissions] ld a, [TilePermissions]
or FACE_LEFT or FACE_LEFT
ld [TilePermissions], a ld [TilePermissions], a
ret ret
; 29ff ; 29ff
Function29ff:: ; 29ff .CheckHiNybble
and $f0 and $f0
cp $b0 cp $b0
ret z ret z
@ -1733,9 +1730,8 @@ GetFacingTileCoord:: ; 2a07
srl a srl a
ld l, a ld l, a
ld h, 0 ld h, 0
rept 2 add hl, hl
add hl,hl add hl, hl
endr
ld de, .Directions ld de, .Directions
add hl, de add hl, de
@ -1777,9 +1773,8 @@ GetCoordTile:: ; 2a3c
jr z, .nope jr z, .nope
ld l, a ld l, a
ld h, $0 ld h, $0
rept 2 add hl, hl
add hl,hl add hl, hl
endr
ld a, [TilesetCollisionAddress] ld a, [TilesetCollisionAddress]
ld c, a ld c, a
ld a, [TilesetCollisionAddress + 1] ld a, [TilesetCollisionAddress + 1]
@ -1792,9 +1787,8 @@ endr
.nocarry .nocarry
rr e rr e
jr nc, .nocarry2 jr nc, .nocarry2
rept 2
inc hl inc hl
endr inc hl
.nocarry2 .nocarry2
ld a, [TilesetCollisionBank] ld a, [TilesetCollisionBank]
@ -1895,16 +1889,16 @@ CheckIfFacingTileCoordIsSign:: ; 2aaa
.copysign .copysign
pop hl pop hl
ld de, EngineBuffer1 ld de, wCurSignpostYCoord
ld bc, 5 ; signpost event length ld bc, 5 ; signpost event length
call CopyBytes call CopyBytes
scf scf
ret ret
; 2ad4 ; 2ad4
CheckCurrentNextMapXYTriggers:: ; 2ad4 CheckCurrentMapXYTriggers:: ; 2ad4
; If there are no xy triggers, we don't need to be here. ; If there are no xy triggers, we don't need to be here.
ld a, [wCurrentNextMapXYTriggerCount] ld a, [wCurrentMapXYTriggerCount]
and a and a
ret z ret z
; Copy the trigger count into c. ; Copy the trigger count into c.
@ -1912,16 +1906,15 @@ CheckCurrentNextMapXYTriggers:: ; 2ad4
ld a, [hROMBank] ld a, [hROMBank]
push af push af
call SwitchToMapScriptHeaderBank call SwitchToMapScriptHeaderBank
call CheckStandingOnXYTrigger call .TriggerCheck
pop hl pop hl
ld a, h ld a, h
rst Bankswitch rst Bankswitch
ret ret
; 2ae7
CheckStandingOnXYTrigger:: ; 2ae7 .TriggerCheck
; Checks to see if you are standing on an xy-trigger. If yes, copies the trigger to EngineBuffer1 and sets carry. ; Checks to see if you are standing on an xy-trigger. If yes, copies the trigger to EngineBuffer1 and sets carry.
ld hl, wCurrentNextMapXYTriggerHeaderPointer ld hl, wCurrentMapXYTriggerHeaderPointer
ld a, [hli] ld a, [hli]
ld h, [hl] ld h, [hl]
ld l, a ld l, a
@ -1969,7 +1962,7 @@ CheckStandingOnXYTrigger:: ; 2ae7
.copytrigger .copytrigger
pop hl pop hl
ld de, EngineBuffer1 ld de, wCurCoordEventTriggerID
ld bc, 8 ; xy-trigger size ld bc, 8 ; xy-trigger size
call CopyBytes call CopyBytes
scf scf
@ -1992,7 +1985,7 @@ CloseSubmenu:: ; 2b3c
call UpdateSprites call UpdateSprites
call Call_ExitMenu call Call_ExitMenu
call ret_d90 call ret_d90
jr Function2b5c jr FinishExitMenu
; 2b4d ; 2b4d
ExitAllMenus:: ; 2b4d ExitAllMenus:: ; 2b4d
@ -2001,7 +1994,7 @@ ExitAllMenus:: ; 2b4d
call ReloadTilesetAndPalettes call ReloadTilesetAndPalettes
call UpdateSprites call UpdateSprites
call ret_d90 call ret_d90
Function2b5c:: ; 2b5c FinishExitMenu:: ; 2b5c
ld b, SCGB_MAPPALS ld b, SCGB_MAPPALS
call GetSGBLayout call GetSGBLayout
callba LoadOW_BGPal7 callba LoadOW_BGPal7
@ -2066,8 +2059,6 @@ GetMapHeaderPointer:: ; 2be5
ld b, a ld b, a
ld a, [MapNumber] ld a, [MapNumber]
ld c, a ld c, a
; 2bed
GetAnyMapHeaderPointer:: ; 0x2bed GetAnyMapHeaderPointer:: ; 0x2bed
; Prior to calling this function, you must have switched banks so that ; Prior to calling this function, you must have switched banks so that
; MapGroupPointers is visible. ; MapGroupPointers is visible.
@ -2085,9 +2076,8 @@ GetAnyMapHeaderPointer:: ; 0x2bed
ld c, b ld c, b
ld b, 0 ld b, 0
ld hl, MapGroupPointers ld hl, MapGroupPointers
rept 2
add hl, bc add hl, bc
endr add hl, bc
ld a, [hli] ld a, [hli]
ld h, [hl] ld h, [hl]
@ -2116,8 +2106,6 @@ GetMapHeaderMember:: ; 0x2c04
ld b, a ld b, a
ld a, [MapNumber] ld a, [MapNumber]
ld c, a ld c, a
; fallthrough
GetAnyMapHeaderMember:: ; 0x2c0c GetAnyMapHeaderMember:: ; 0x2c0c
; bankswitch ; bankswitch
ld a, [hROMBank] ld a, [hROMBank]
@ -2142,8 +2130,6 @@ SwitchToMapBank:: ; 2c1c
ld b, a ld b, a
ld a, [MapNumber] ld a, [MapNumber]
ld c, a ld c, a
; 2c24
SwitchToAnyMapBank:: ; 2c24 SwitchToAnyMapBank:: ; 2c24
call GetAnyMapBank call GetAnyMapBank
rst Bankswitch rst Bankswitch
@ -2155,8 +2141,6 @@ GetMapBank:: ; 2c29
ld b, a ld b, a
ld a, [MapNumber] ld a, [MapNumber]
ld c, a ld c, a
; 2c31
GetAnyMapBank:: ; 2c31 GetAnyMapBank:: ; 2c31
push hl push hl
push de push de
@ -2253,8 +2237,7 @@ GetMapPermission:: ; 2c8a
ret ret
; 2c98 ; 2c98
Function2c98:: ; 2c98 ret ; XXX
ret
; 2c99 ; 2c99
GetAnyMapPermission:: ; 2c99 GetAnyMapPermission:: ; 2c99

View File

@ -25,7 +25,7 @@ AzaleaTown_MapScriptHeader:
db 1 db 1
; callbacks ; callbacks
dbw 5, .Flypoint dbw MAPCALLBACK_NEWMAP, .Flypoint
.Trigger0 .Trigger0
end end

View File

@ -12,8 +12,8 @@ BattleTowerOutside_MapScriptHeader:
db 2 db 2
; callbacks ; callbacks
dbw 1, .Callback1 dbw MAPCALLBACK_TILES, .Callback1
dbw 2, .Callback2 dbw MAPCALLBACK_OBJECTS, .Callback2
.Callback1 .Callback1
return return

View File

@ -17,8 +17,8 @@ BlackthornCity_MapScriptHeader:
db 2 db 2
; callbacks ; callbacks
dbw 5, .FlyPoint dbw MAPCALLBACK_NEWMAP, .FlyPoint
dbw 2, .Santos dbw MAPCALLBACK_OBJECTS, .Santos
.FlyPoint .FlyPoint
setflag ENGINE_FLYPOINT_BLACKTHORN setflag ENGINE_FLYPOINT_BLACKTHORN

View File

@ -13,7 +13,7 @@ BlackthornGym1F_MapScriptHeader:
db 1 db 1
; callbacks ; callbacks
dbw 1, .Boulders dbw MAPCALLBACK_TILES, .Boulders
.Boulders .Boulders
checkevent EVENT_BOULDER_IN_BLACKTHORN_GYM_1 checkevent EVENT_BOULDER_IN_BLACKTHORN_GYM_1

View File

@ -16,14 +16,14 @@ BlackthornGym2F_MapScriptHeader:
db 1 db 1
; callbacks ; callbacks
dbw 3, .Boulders dbw MAPCALLBACK_PALETTES, .Boulders
.Boulders .Boulders
writecmdqueue .BoulderCmdQueue writecmdqueue .BoulderCmdQueue
return return
.BoulderCmdQueue .BoulderCmdQueue
dbw 2, .BoulderTable ; check if any stones are sitting on a warp dbw MAPCALLBACK_OBJECTS, .BoulderTable ; check if any stones are sitting on a warp
db 0, 0 ; filler db 0, 0 ; filler
.BoulderTable .BoulderTable

View File

@ -14,7 +14,7 @@ BrunosRoom_MapScriptHeader:
; callbacks ; callbacks
dbw 1, UnknownScript_0x180998 dbw MAPCALLBACK_TILES, UnknownScript_0x180998
UnknownScript_0x180993: UnknownScript_0x180993:
priorityjump UnknownScript_0x1809ad priorityjump UnknownScript_0x1809ad

View File

@ -19,7 +19,7 @@ BurnedTower1F_MapScriptHeader:
; callbacks ; callbacks
dbw 1, .HoleAndLadder dbw MAPCALLBACK_TILES, .HoleAndLadder
.Trigger0: .Trigger0:
priorityjump .EusineTrigger priorityjump .EusineTrigger

View File

@ -22,7 +22,7 @@ BurnedTowerB1F_MapScriptHeader:
; callbacks ; callbacks
dbw 1, UnknownScript_0x186160 dbw MAPCALLBACK_TILES, UnknownScript_0x186160
UnknownScript_0x18615e: UnknownScript_0x18615e:
end end

View File

@ -17,7 +17,7 @@ CeladonCity_MapScriptHeader:
db 1 db 1
; callbacks ; callbacks
dbw 5, .FlyPoint dbw MAPCALLBACK_NEWMAP, .FlyPoint
.FlyPoint .FlyPoint
setflag ENGINE_FLYPOINT_CELADON setflag ENGINE_FLYPOINT_CELADON

View File

@ -11,7 +11,7 @@ CeladonDeptStore6F_MapScriptHeader:
; callbacks ; callbacks
dbw 1, .Callback dbw MAPCALLBACK_TILES, .Callback
.Callback: .Callback:
changeblock $c, $0, $3 changeblock $c, $0, $3

View File

@ -14,7 +14,7 @@ CeruleanCity_MapScriptHeader:
db 1 db 1
; callbacks ; callbacks
dbw 5, .FlyPoint dbw MAPCALLBACK_NEWMAP, .FlyPoint
.FlyPoint .FlyPoint
setflag ENGINE_FLYPOINT_CERULEAN setflag ENGINE_FLYPOINT_CERULEAN

View File

@ -17,7 +17,7 @@ CherrygroveCity_MapScriptHeader:
db 1 db 1
; callbacks ; callbacks
dbw 5, .FlyPoint dbw MAPCALLBACK_NEWMAP, .FlyPoint
.Trigger0 .Trigger0
end end

View File

@ -24,7 +24,7 @@ CianwoodCity_MapScriptHeader:
db 1 db 1
; callbacks ; callbacks
dbw 5, .FlyPointAndSuicune dbw MAPCALLBACK_NEWMAP, .FlyPointAndSuicune
.Trigger0 .Trigger0
end end

View File

@ -9,7 +9,7 @@ CinnabarIsland_MapScriptHeader:
db 1 db 1
; callbacks ; callbacks
dbw 5, .FlyPoint dbw MAPCALLBACK_NEWMAP, .FlyPoint
.FlyPoint .FlyPoint
setflag ENGINE_FLYPOINT_CINNABAR setflag ENGINE_FLYPOINT_CINNABAR

View File

@ -16,9 +16,9 @@ Colosseum_MapScriptHeader:
; callbacks ; callbacks
dbw 2, ColosseumScript_SetWhichChris dbw MAPCALLBACK_OBJECTS, ColosseumScript_SetWhichChris
dbw 5, ColosseumScript_InitializeCB dbw MAPCALLBACK_NEWMAP, ColosseumScript_InitializeCB
.Trigger0: .Trigger0:
priorityjump ColosseumScript_Initialize priorityjump ColosseumScript_Initialize

View File

@ -15,7 +15,7 @@ CopycatsHouse2F_MapScriptHeader:
; callbacks ; callbacks
dbw 2, CopycatsHouse2FCallback dbw MAPCALLBACK_OBJECTS, CopycatsHouse2FCallback
CopycatsHouse2FCallback: CopycatsHouse2FCallback:
checkflag ENGINE_PLAYER_IS_FEMALE checkflag ENGINE_PLAYER_IS_FEMALE

View File

@ -11,7 +11,7 @@ DayCare_MapScriptHeader:
; callbacks ; callbacks
dbw 2, .EggCheckCallback dbw MAPCALLBACK_OBJECTS, .EggCheckCallback
.EggCheckCallback: .EggCheckCallback:
checkflag ENGINE_DAYCARE_MAN_HAS_EGG checkflag ENGINE_DAYCARE_MAN_HAS_EGG

View File

@ -22,7 +22,7 @@ DragonsDenB1F_MapScriptHeader:
; callbacks ; callbacks
dbw 5, .CheckSilver dbw MAPCALLBACK_NEWMAP, .CheckSilver
.Trigger0: .Trigger0:
end end

View File

@ -15,7 +15,7 @@ EcruteakCity_MapScriptHeader:
db 1 db 1
; callbacks ; callbacks
dbw 5, .FlyPoint dbw MAPCALLBACK_NEWMAP, .FlyPoint
.FlyPoint .FlyPoint
setflag ENGINE_FLYPOINT_ECRUTEAK setflag ENGINE_FLYPOINT_ECRUTEAK

View File

@ -17,7 +17,7 @@ EcruteakHouse_MapScriptHeader:
; callbacks ; callbacks
dbw 2, .InitializeSages dbw MAPCALLBACK_OBJECTS, .InitializeSages
.Trigger0: .Trigger0:
end end

View File

@ -23,7 +23,7 @@ ElmsLab_MapScriptHeader:
; callbacks ; callbacks
dbw 2, .Callback_MoveElm dbw MAPCALLBACK_OBJECTS, .Callback_MoveElm
.Trigger0: .Trigger0:
priorityjump ElmsLab_AutowalkUpToElm priorityjump ElmsLab_AutowalkUpToElm

View File

@ -12,7 +12,7 @@ FuchsiaCity_MapScriptHeader:
db 1 db 1
; callbacks ; callbacks
dbw 5, .FlyPoint dbw MAPCALLBACK_NEWMAP, .FlyPoint
.FlyPoint .FlyPoint
setflag ENGINE_FLYPOINT_FUCHSIA setflag ENGINE_FLYPOINT_FUCHSIA

View File

@ -23,8 +23,8 @@ GoldenrodCity_MapScriptHeader:
db 2 db 2
; callbacks ; callbacks
dbw 5, .FlyPointAndFloria dbw MAPCALLBACK_NEWMAP, .FlyPointAndFloria
dbw 2, .MoveTutor dbw MAPCALLBACK_OBJECTS, .MoveTutor
.FlyPointAndFloria .FlyPointAndFloria
setflag ENGINE_FLYPOINT_GOLDENROD setflag ENGINE_FLYPOINT_GOLDENROD

View File

@ -15,7 +15,7 @@ GoldenrodDeptStore5F_MapScriptHeader:
; callbacks ; callbacks
dbw 2, .CheckIfSunday dbw MAPCALLBACK_OBJECTS, .CheckIfSunday
.CheckIfSunday: .CheckIfSunday:
checkcode VAR_WEEKDAY checkcode VAR_WEEKDAY

View File

@ -17,9 +17,9 @@ GoldenrodDeptStoreB1F_MapScriptHeader:
; callbacks ; callbacks
dbw 1, UnknownScript_0x7d781 dbw MAPCALLBACK_TILES, UnknownScript_0x7d781
dbw 5, UnknownScript_0x7d7ac dbw MAPCALLBACK_NEWMAP, UnknownScript_0x7d7ac
UnknownScript_0x7d781: UnknownScript_0x7d781:
checkevent EVENT_RECEIVED_CARD_KEY checkevent EVENT_RECEIVED_CARD_KEY

View File

@ -17,9 +17,9 @@ GoldenrodDeptStoreRoof_MapScriptHeader:
; callbacks ; callbacks
dbw 1, .CheckSaleChangeBlock dbw MAPCALLBACK_TILES, .CheckSaleChangeBlock
dbw 2, .CheckSaleChangeClerk dbw MAPCALLBACK_OBJECTS, .CheckSaleChangeClerk
.CheckSaleChangeBlock: .CheckSaleChangeBlock:
checkflag ENGINE_GOLDENROD_DEPT_STORE_SALE_IS_ON checkflag ENGINE_GOLDENROD_DEPT_STORE_SALE_IS_ON

View File

@ -21,7 +21,7 @@ GoldenrodGameCorner_MapScriptHeader:
; callbacks ; callbacks
dbw 2, .Callback dbw MAPCALLBACK_OBJECTS, .Callback
.Callback .Callback
checkevent EVENT_BEAT_ELITE_FOUR checkevent EVENT_BEAT_ELITE_FOUR

View File

@ -14,14 +14,14 @@ IcePathB1F_MapScriptHeader:
; callbacks ; callbacks
dbw 3, .SetUpStoneTable dbw MAPCALLBACK_PALETTES, .SetUpStoneTable
.SetUpStoneTable: .SetUpStoneTable:
writecmdqueue .CommandQueue writecmdqueue .CommandQueue
return return
.CommandQueue: .CommandQueue:
dbw 2, .StoneTable ; check if any stones are sitting on a warp dbw MAPCALLBACK_OBJECTS, .StoneTable ; check if any stones are sitting on a warp
db 0, 0 ; filler db 0, 0 ; filler
.StoneTable: .StoneTable:

View File

@ -20,7 +20,7 @@ IlexForest_MapScriptHeader:
; callbacks ; callbacks
dbw 2, .FarfetchdCallback dbw MAPCALLBACK_OBJECTS, .FarfetchdCallback
.FarfetchdCallback: .FarfetchdCallback:
checkevent EVENT_GOT_HM01_CUT checkevent EVENT_GOT_HM01_CUT

View File

@ -18,7 +18,7 @@ IndigoPlateauPokeCenter1F_MapScriptHeader:
; callbacks ; callbacks
dbw 5, UnknownScript_0x18000a dbw MAPCALLBACK_NEWMAP, UnknownScript_0x18000a
UnknownScript_0x180009: UnknownScript_0x180009:
end end

View File

@ -14,7 +14,7 @@ KarensRoom_MapScriptHeader:
; callbacks ; callbacks
dbw 1, UnknownScript_0x180bc1 dbw MAPCALLBACK_TILES, UnknownScript_0x180bc1
UnknownScript_0x180bbc: UnknownScript_0x180bbc:
priorityjump UnknownScript_0x180bd6 priorityjump UnknownScript_0x180bd6

View File

@ -14,7 +14,7 @@ KogasRoom_MapScriptHeader:
; callbacks ; callbacks
dbw 1, UnknownScript_0x18072d dbw MAPCALLBACK_TILES, UnknownScript_0x18072d
UnknownScript_0x180728: UnknownScript_0x180728:
priorityjump UnknownScript_0x180742 priorityjump UnknownScript_0x180742

View File

@ -13,9 +13,9 @@ KrissHouse2F_MapScriptHeader:
; callbacks ; callbacks
dbw 5, .InitializeRoom dbw MAPCALLBACK_NEWMAP, .InitializeRoom
dbw 1, .SetSpawn dbw MAPCALLBACK_TILES, .SetSpawn
.Null: .Null:
end end

View File

@ -14,7 +14,7 @@ KurtsHouse_MapScriptHeader:
; callbacks ; callbacks
dbw 2, UnknownScript_0x18e154 dbw MAPCALLBACK_OBJECTS, UnknownScript_0x18e154
UnknownScript_0x18e154: UnknownScript_0x18e154:
checkevent EVENT_CLEARED_SLOWPOKE_WELL checkevent EVENT_CLEARED_SLOWPOKE_WELL

View File

@ -25,8 +25,8 @@ LakeofRage_MapScriptHeader:
; callbacks ; callbacks
dbw 5, .FlyPoint dbw MAPCALLBACK_NEWMAP, .FlyPoint
dbw 2, .Wesley dbw MAPCALLBACK_OBJECTS, .Wesley
.Trigger0 .Trigger0
end end

View File

@ -16,7 +16,7 @@ LancesRoom_MapScriptHeader:
; callbacks ; callbacks
dbw 1, UnknownScript_0x180e3e dbw MAPCALLBACK_TILES, UnknownScript_0x180e3e
UnknownScript_0x180e39: UnknownScript_0x180e39:
priorityjump UnknownScript_0x180e53 priorityjump UnknownScript_0x180e53

View File

@ -12,7 +12,7 @@ LavenderTown_MapScriptHeader:
db 1 db 1
; callbacks ; callbacks
dbw 5, .FlyPoint dbw MAPCALLBACK_NEWMAP, .FlyPoint
.FlyPoint .FlyPoint
setflag ENGINE_FLYPOINT_LAVENDER setflag ENGINE_FLYPOINT_LAVENDER

View File

@ -18,7 +18,7 @@ MahoganyMart1F_MapScriptHeader:
; callbacks ; callbacks
dbw 1, UnknownScript_0x6c35b dbw MAPCALLBACK_TILES, UnknownScript_0x6c35b
UnknownScript_0x6c356: UnknownScript_0x6c356:
end end

View File

@ -16,7 +16,7 @@ MahoganyTown_MapScriptHeader:
db 1 db 1
; callbacks ; callbacks
dbw 5, .FlyPoint dbw MAPCALLBACK_NEWMAP, .FlyPoint
.Trigger0 .Trigger0
end end

View File

@ -15,9 +15,9 @@ MountMoonSquare_MapScriptHeader:
; callbacks ; callbacks
dbw 5, UnknownScript_0x77093 dbw MAPCALLBACK_NEWMAP, UnknownScript_0x77093
dbw 2, UnknownScript_0x77097 dbw MAPCALLBACK_OBJECTS, UnknownScript_0x77097
UnknownScript_0x77092: UnknownScript_0x77092:
end end

View File

@ -15,7 +15,7 @@ NewBarkTown_MapScriptHeader:
db 1 db 1
; callbacks ; callbacks
dbw 5, .FlyPoint dbw MAPCALLBACK_NEWMAP, .FlyPoint
.Trigger0 .Trigger0
end end

View File

@ -16,7 +16,7 @@ OlivineCity_MapScriptHeader:
db 1 db 1
; callbacks ; callbacks
dbw 5, .FlyPoint dbw MAPCALLBACK_NEWMAP, .FlyPoint
.Trigger0 .Trigger0
end end

View File

@ -10,7 +10,7 @@ PalletTown_MapScriptHeader:
db 1 db 1
; callbacks ; callbacks
dbw 5, .FlyPoint dbw MAPCALLBACK_NEWMAP, .FlyPoint
.FlyPoint .FlyPoint
setflag ENGINE_FLYPOINT_PALLET setflag ENGINE_FLYPOINT_PALLET

View File

@ -13,7 +13,7 @@ PewterCity_MapScriptHeader:
db 1 db 1
; callbacks ; callbacks
dbw 5, .FlyPoint dbw MAPCALLBACK_NEWMAP, .FlyPoint
.FlyPoint .FlyPoint
setflag ENGINE_FLYPOINT_PEWTER setflag ENGINE_FLYPOINT_PEWTER

View File

@ -16,7 +16,7 @@ RadioTower3F_MapScriptHeader:
; callbacks ; callbacks
dbw 1, UnknownScript_0x5e543 dbw MAPCALLBACK_TILES, UnknownScript_0x5e543
UnknownScript_0x5e543: UnknownScript_0x5e543:
checkevent EVENT_USED_THE_CARD_KEY_IN_THE_RADIO_TOWER checkevent EVENT_USED_THE_CARD_KEY_IN_THE_RADIO_TOWER

View File

@ -8,7 +8,7 @@ Route16_MapScriptHeader:
; callbacks ; callbacks
dbw 5, UnknownScript_0x1ad318 dbw MAPCALLBACK_NEWMAP, UnknownScript_0x1ad318
UnknownScript_0x1ad318: UnknownScript_0x1ad318:
checkcode VAR_YCOORD checkcode VAR_YCOORD

View File

@ -13,7 +13,7 @@ Route17_MapScriptHeader:
; callbacks ; callbacks
dbw 5, UnknownScript_0x1ad0ab dbw MAPCALLBACK_NEWMAP, UnknownScript_0x1ad0ab
UnknownScript_0x1ad0ab: UnknownScript_0x1ad0ab:
setflag ENGINE_ALWAYS_ON_BIKE setflag ENGINE_ALWAYS_ON_BIKE

View File

@ -15,7 +15,7 @@ Route19_MapScriptHeader:
; callbacks ; callbacks
dbw 1, .ClearRocks dbw MAPCALLBACK_TILES, .ClearRocks
.ClearRocks .ClearRocks
checkevent EVENT_CINNABAR_ROCKS_CLEARED checkevent EVENT_CINNABAR_ROCKS_CLEARED

View File

@ -12,7 +12,7 @@ Route20_MapScriptHeader:
; callbacks ; callbacks
dbw 5, .ClearRocks dbw MAPCALLBACK_NEWMAP, .ClearRocks
.ClearRocks .ClearRocks
setevent EVENT_CINNABAR_ROCKS_CLEARED setevent EVENT_CINNABAR_ROCKS_CLEARED

View File

@ -7,7 +7,7 @@ Route23_MapScriptHeader:
db 1 db 1
; callbacks ; callbacks
dbw 5, .FlyPoint dbw MAPCALLBACK_NEWMAP, .FlyPoint
.FlyPoint .FlyPoint
setflag ENGINE_FLYPOINT_INDIGO_PLATEAU setflag ENGINE_FLYPOINT_INDIGO_PLATEAU

View File

@ -21,7 +21,7 @@ Route29_MapScriptHeader:
; callbacks ; callbacks
dbw 2, .Tuscany dbw MAPCALLBACK_OBJECTS, .Tuscany
.Trigger0: .Trigger0:
end end

View File

@ -16,7 +16,7 @@ Route31_MapScriptHeader:
; callbacks ; callbacks
dbw 5, .CheckMomCall dbw MAPCALLBACK_NEWMAP, .CheckMomCall
.CheckMomCall: .CheckMomCall:
checkevent EVENT_TALKED_TO_MOM_AFTER_MYSTERY_EGG_QUEST checkevent EVENT_TALKED_TO_MOM_AFTER_MYSTERY_EGG_QUEST

View File

@ -28,7 +28,7 @@ Route32_MapScriptHeader:
; callbacks ; callbacks
dbw 2, .Frieda dbw MAPCALLBACK_OBJECTS, .Frieda
.Trigger0: .Trigger0:
end end

View File

@ -22,7 +22,7 @@ Route34_MapScriptHeader:
; callbacks ; callbacks
dbw 2, .EggCheckCallback dbw MAPCALLBACK_OBJECTS, .EggCheckCallback
.EggCheckCallback: .EggCheckCallback:
checkflag ENGINE_DAYCARE_MAN_HAS_EGG checkflag ENGINE_DAYCARE_MAN_HAS_EGG

View File

@ -13,7 +13,7 @@ Route34IlexForestGate_MapScriptHeader:
; callbacks ; callbacks
dbw 2, UnknownScript_0x62d2d dbw MAPCALLBACK_OBJECTS, UnknownScript_0x62d2d
UnknownScript_0x62d2d: UnknownScript_0x62d2d:
checkevent EVENT_FOREST_IS_RESTLESS checkevent EVENT_FOREST_IS_RESTLESS

View File

@ -17,9 +17,9 @@ Route35NationalParkgate_MapScriptHeader:
; callbacks ; callbacks
dbw 5, Route35NationalParkgate_CheckIfStillInContest dbw MAPCALLBACK_NEWMAP, Route35NationalParkgate_CheckIfStillInContest
dbw 2, Route35NationalParkgate_CheckIfContestDay dbw MAPCALLBACK_OBJECTS, Route35NationalParkgate_CheckIfContestDay
Route35NationalParkgate_Trigger1: Route35NationalParkgate_Trigger1:
end end

View File

@ -22,7 +22,7 @@ Route36_MapScriptHeader:
; callbacks ; callbacks
dbw 2, ArthurCallback dbw MAPCALLBACK_OBJECTS, ArthurCallback
UnknownScript_0x19400d: UnknownScript_0x19400d:
end end

View File

@ -26,9 +26,9 @@ Route36NationalParkgate_MapScriptHeader:
; callbacks ; callbacks
dbw 5, .CheckIfContestRunning dbw MAPCALLBACK_NEWMAP, .CheckIfContestRunning
dbw 2, .CheckIfContestAvailable dbw MAPCALLBACK_OBJECTS, .CheckIfContestAvailable
.Trigger0: .Trigger0:
end end

View File

@ -16,7 +16,7 @@ Route37_MapScriptHeader:
; callbacks ; callbacks
dbw 2, SunnyCallback dbw MAPCALLBACK_OBJECTS, SunnyCallback
SunnyCallback: SunnyCallback:
checkcode VAR_WEEKDAY checkcode VAR_WEEKDAY

View File

@ -21,7 +21,7 @@ Route40_MapScriptHeader:
; callbacks ; callbacks
dbw 2, MonicaCallback dbw MAPCALLBACK_OBJECTS, MonicaCallback
MonicaCallback: MonicaCallback:
clearevent EVENT_BATTLE_TOWER_OUTSIDE_SAILOR clearevent EVENT_BATTLE_TOWER_OUTSIDE_SAILOR

View File

@ -11,7 +11,7 @@ Route40BattleTowerGate_MapScriptHeader:
; callbacks ; callbacks
dbw 2, UnknownScript_0x9f665 dbw MAPCALLBACK_OBJECTS, UnknownScript_0x9f665
UnknownScript_0x9f665: UnknownScript_0x9f665:
clearevent EVENT_BATTLE_TOWER_OUTSIDE_SAILOR clearevent EVENT_BATTLE_TOWER_OUTSIDE_SAILOR

View File

@ -17,7 +17,7 @@ Route43_MapScriptHeader:
; callbacks ; callbacks
dbw 5, UnknownScript_0x19d051 dbw MAPCALLBACK_NEWMAP, UnknownScript_0x19d051
UnknownScript_0x19d051: UnknownScript_0x19d051:
checkevent EVENT_CLEARED_ROCKET_HIDEOUT checkevent EVENT_CLEARED_ROCKET_HIDEOUT

View File

@ -16,7 +16,7 @@ Route43Gate_MapScriptHeader:
; callbacks ; callbacks
dbw 5, UnknownScript_0x19abca dbw MAPCALLBACK_NEWMAP, UnknownScript_0x19abca
UnknownScript_0x19abc5: UnknownScript_0x19abc5:
priorityjump UnknownScript_0x19abda priorityjump UnknownScript_0x19abda

View File

@ -12,7 +12,7 @@ RuinsofAlphAerodactylChamber_MapScriptHeader:
; callbacks ; callbacks
dbw 1, UnknownScript_0x58db9 dbw MAPCALLBACK_TILES, UnknownScript_0x58db9
UnknownScript_0x58dad: UnknownScript_0x58dad:
checkevent EVENT_WALL_OPENED_IN_AERODACTYL_CHAMBER checkevent EVENT_WALL_OPENED_IN_AERODACTYL_CHAMBER

View File

@ -12,7 +12,7 @@ RuinsofAlphHoOhChamber_MapScriptHeader:
; callbacks ; callbacks
dbw 1, UnknownScript_0x5857c dbw MAPCALLBACK_TILES, UnknownScript_0x5857c
UnknownScript_0x5856d: UnknownScript_0x5856d:
special SpecialHoOhChamber special SpecialHoOhChamber

View File

@ -15,7 +15,7 @@ RuinsofAlphKabutoChamber_MapScriptHeader:
; callbacks ; callbacks
dbw 1, UnknownScript_0x58737 dbw MAPCALLBACK_TILES, UnknownScript_0x58737
UnknownScript_0x5872b: UnknownScript_0x5872b:
checkevent EVENT_WALL_OPENED_IN_KABUTO_CHAMBER checkevent EVENT_WALL_OPENED_IN_KABUTO_CHAMBER

View File

@ -12,7 +12,7 @@ RuinsofAlphOmanyteChamber_MapScriptHeader:
; callbacks ; callbacks
dbw 1, UnknownScript_0x58bf8 dbw MAPCALLBACK_TILES, UnknownScript_0x58bf8
UnknownScript_0x58be9: UnknownScript_0x58be9:
special SpecialOmanyteChamber special SpecialOmanyteChamber

View File

@ -18,7 +18,7 @@ RuinsofAlphOutside_MapScriptHeader:
; callbacks ; callbacks
dbw 2, UnknownScript_0x5800f dbw MAPCALLBACK_OBJECTS, UnknownScript_0x5800f
UnknownScript_0x5800d: UnknownScript_0x5800d:
end end

View File

@ -16,7 +16,7 @@ RuinsofAlphResearchCenter_MapScriptHeader:
; callbacks ; callbacks
dbw 2, UnknownScript_0x59185 dbw MAPCALLBACK_OBJECTS, UnknownScript_0x59185
UnknownScript_0x59180: UnknownScript_0x59180:
end end

View File

@ -16,7 +16,7 @@ SaffronCity_MapScriptHeader:
db 1 db 1
; callbacks ; callbacks
dbw 5, .FlyPoint dbw MAPCALLBACK_NEWMAP, .FlyPoint
.FlyPoint .FlyPoint
setflag ENGINE_FLYPOINT_SAFFRON setflag ENGINE_FLYPOINT_SAFFRON

View File

@ -7,7 +7,7 @@ SilverCaveOutside_MapScriptHeader:
db 1 db 1
; callbacks ; callbacks
dbw 5, .FlyPoint dbw MAPCALLBACK_NEWMAP, .FlyPoint
.FlyPoint .FlyPoint
setflag ENGINE_FLYPOINT_SILVER_CAVE setflag ENGINE_FLYPOINT_SILVER_CAVE

View File

@ -18,7 +18,7 @@ TeamRocketBaseB1F_MapScriptHeader:
; callbacks ; callbacks
dbw 2, .Callback1 dbw MAPCALLBACK_OBJECTS, .Callback1
.Trigger0: .Trigger0:
end end

View File

@ -29,7 +29,7 @@ TeamRocketBaseB2F_MapScriptHeader:
; callbacks ; callbacks
dbw 1, UnknownScript_0x6cf89 dbw MAPCALLBACK_TILES, UnknownScript_0x6cf89
UnknownScript_0x6cf85: UnknownScript_0x6cf85:
end end

View File

@ -29,7 +29,7 @@ TeamRocketBaseB3F_MapScriptHeader:
; callbacks ; callbacks
dbw 1, .CheckGiovanniDoor dbw MAPCALLBACK_TILES, .CheckGiovanniDoor
.Trigger0: .Trigger0:
priorityjump LanceScript_0x6dffc priorityjump LanceScript_0x6dffc

View File

@ -15,7 +15,7 @@ TimeCapsule_MapScriptHeader:
; callbacks ; callbacks
dbw 2, TimeCapsule_SetWhichChris dbw MAPCALLBACK_OBJECTS, TimeCapsule_SetWhichChris
.Trigger0: .Trigger0:
priorityjump TimeCapsule_Initialize priorityjump TimeCapsule_Initialize

View File

@ -23,9 +23,9 @@ TinTower1F_MapScriptHeader:
; callbacks ; callbacks
dbw 2, UnknownScript_0x18502f dbw MAPCALLBACK_OBJECTS, UnknownScript_0x18502f
dbw 1, UnknownScript_0x185084 dbw MAPCALLBACK_TILES, UnknownScript_0x185084
UnknownScript_0x18502a: UnknownScript_0x18502a:
priorityjump UnknownScript_0x18508f priorityjump UnknownScript_0x18508f

View File

@ -10,7 +10,7 @@ TinTowerRoof_MapScriptHeader:
; callbacks ; callbacks
dbw 2, UnknownScript_0x77230 dbw MAPCALLBACK_OBJECTS, UnknownScript_0x77230
UnknownScript_0x77230: UnknownScript_0x77230:
checkevent EVENT_FOUGHT_HO_OH checkevent EVENT_FOUGHT_HO_OH

View File

@ -15,7 +15,7 @@ TradeCenter_MapScriptHeader:
; callbacks ; callbacks
dbw 2, TradeCenter_SetWhichChris dbw MAPCALLBACK_OBJECTS, TradeCenter_SetWhichChris
.Trigger0: .Trigger0:
priorityjump TradeCenter_Initialize priorityjump TradeCenter_Initialize

View File

@ -56,7 +56,7 @@ UndergroundPathSwitchRoomEntrances_MapScriptHeader:
; callbacks ; callbacks
dbw 1, .UpdateDoorPositions dbw MAPCALLBACK_TILES, .UpdateDoorPositions
.Trigger0: .Trigger0:
end end

View File

@ -16,7 +16,7 @@ UndergroundWarehouse_MapScriptHeader:
; callbacks ; callbacks
dbw 5, .ResetSwitches dbw MAPCALLBACK_NEWMAP, .ResetSwitches
.ResetSwitches: .ResetSwitches:
clearevent EVENT_SWITCH_1 clearevent EVENT_SWITCH_1

View File

@ -15,7 +15,7 @@ UnionCaveB2F_MapScriptHeader:
; callbacks ; callbacks
dbw 2, UnknownScript_0x5a30d dbw MAPCALLBACK_OBJECTS, UnknownScript_0x5a30d
UnknownScript_0x5a30d: UnknownScript_0x5a30d:
checkflag ENGINE_UNION_CAVE_LAPRAS checkflag ENGINE_UNION_CAVE_LAPRAS

View File

@ -14,7 +14,7 @@ VermilionCity_MapScriptHeader:
db 1 db 1
; callbacks ; callbacks
dbw 5, .FlyPoint dbw MAPCALLBACK_NEWMAP, .FlyPoint
.FlyPoint .FlyPoint
setflag ENGINE_FLYPOINT_VERMILION setflag ENGINE_FLYPOINT_VERMILION

View File

@ -15,7 +15,7 @@ VermilionPort_MapScriptHeader:
db 1 db 1
; callbacks ; callbacks
dbw 5, .FlyPoint dbw MAPCALLBACK_NEWMAP, .FlyPoint
.Trigger0 .Trigger0
end end

View File

@ -16,7 +16,7 @@ VioletCity_MapScriptHeader:
db 1 db 1
; callbacks ; callbacks
dbw 5, .FlyPoint dbw MAPCALLBACK_NEWMAP, .FlyPoint
.FlyPoint .FlyPoint
setflag ENGINE_FLYPOINT_VIOLET setflag ENGINE_FLYPOINT_VIOLET

View File

@ -12,7 +12,7 @@ ViridianCity_MapScriptHeader:
db 1 db 1
; callbacks ; callbacks
dbw 5, .FlyPoint dbw MAPCALLBACK_NEWMAP, .FlyPoint
.FlyPoint .FlyPoint
setflag ENGINE_FLYPOINT_VIRIDIAN setflag ENGINE_FLYPOINT_VIRIDIAN

View File

@ -18,11 +18,11 @@ WarehouseEntrance_MapScriptHeader:
; callbacks ; callbacks
dbw 5, .ResetSwitches dbw MAPCALLBACK_NEWMAP, .ResetSwitches
dbw 1, .CheckBasementKey dbw MAPCALLBACK_TILES, .CheckBasementKey
dbw 2, .CheckDayOfWeek dbw MAPCALLBACK_OBJECTS, .CheckDayOfWeek
.ResetSwitches: .ResetSwitches:
clearevent EVENT_SWITCH_1 clearevent EVENT_SWITCH_1

View File

@ -10,7 +10,7 @@ WhirlIslandLugiaChamber_MapScriptHeader:
; callbacks ; callbacks
dbw 2, UnknownScript_0x18c504 dbw MAPCALLBACK_OBJECTS, UnknownScript_0x18c504
UnknownScript_0x18c504: UnknownScript_0x18c504:
checkevent EVENT_FOUGHT_LUGIA checkevent EVENT_FOUGHT_LUGIA

View File

@ -14,7 +14,7 @@ WillsRoom_MapScriptHeader:
; callbacks ; callbacks
dbw 1, UnknownScript_0x1804cb dbw MAPCALLBACK_TILES, UnknownScript_0x1804cb
UnknownScript_0x1804c6: UnknownScript_0x1804c6:
priorityjump UnknownScript_0x1804e0 priorityjump UnknownScript_0x1804e0

View File

@ -19,7 +19,7 @@ WiseTriosRoom_MapScriptHeader:
; callbacks ; callbacks
dbw 2, UnknownScript_0x98574 dbw MAPCALLBACK_OBJECTS, UnknownScript_0x98574
UnknownScript_0x98572: UnknownScript_0x98572:
end end

View File

@ -3061,7 +3061,7 @@ Function1013aa: ; 1013aa
call ReloadTilesetAndPalettes call ReloadTilesetAndPalettes
callba Function106464 callba Function106464
call UpdateSprites call UpdateSprites
call Function2b5c call FinishExitMenu
ret ret
; 1013c0 ; 1013c0
@ -3069,7 +3069,7 @@ Function1013c0: ; 1013c0
callba BlankScreen callba BlankScreen
callba MobileFunc_106462 callba MobileFunc_106462
callba Function106464 callba Function106464
call Function2b5c call FinishExitMenu
ret ret
; 1013d6 ; 1013d6

View File

@ -5573,7 +5573,7 @@ Function11a9ce: ; 11a9ce
callba MobileFunc_106462 callba MobileFunc_106462
callba Function106464 callba Function106464
call ret_d90 call ret_d90
callba Function2b5c callba FinishExitMenu
call UpdateSprites call UpdateSprites
ret ret
; 11a9f0 ; 11a9f0

View File

@ -4708,7 +4708,7 @@ Function17f555: ; 17f555
Function17f5c3: ; 17f5c3 Function17f5c3: ; 17f5c3
call Function17f5e4 call Function17f5e4
callba Function2b5c callba FinishExitMenu
ld a, $1 ld a, $1
ld [wc303], a ld [wc303], a
ret ret

View File

@ -1905,6 +1905,8 @@ MenuItemsList::
CurFruitTree:: CurFruitTree::
CurInput:: CurInput::
wElevatorPointerBank:: wElevatorPointerBank::
wCurCoordEventTriggerID::
wCurSignpostYCoord::
EngineBuffer1:: ; d03e EngineBuffer1:: ; d03e
ds 1 ds 1
@ -1913,24 +1915,30 @@ wJumpStdScriptBuffer::
CurFruit:: ; d03f CurFruit:: ; d03f
MartPointerBank:: MartPointerBank::
wElevatorPointerLo:: wElevatorPointerLo::
wCurCoordEventMapY::
wCurSignpostXCoord::
EngineBuffer2:: EngineBuffer2::
ds 1 ds 1
wd040:: wd040::
wElevatorPointerHi:: wElevatorPointerHi::
MartPointer:: ; d040 MartPointer:: ; d040
wCurCoordEventMapX::
wCurSignpostType::
EngineBuffer3:: EngineBuffer3::
ds 1 ds 1
wd041:: wd041::
wElevatorOriginFloor:: wElevatorOriginFloor::
EngineBuffer4::
wTempTrainerHeader:: wTempTrainerHeader::
wTempTrainerEventFlagLo:: wTempTrainerEventFlagLo::
wCurSignpostScriptAddr::
EngineBuffer4::
ds 1 ds 1
wTempTrainerEventFlagHi:: wTempTrainerEventFlagHi::
MovementAnimation:: ; d042 MovementAnimation:: ; d042
wCurCoordEventScriptAddr::
EngineBuffer5:: EngineBuffer5::
ds 1 ds 1
@ -2963,8 +2971,8 @@ wCurrentCaller:: ds 2
wCurrMapWarpCount:: ds 1 wCurrMapWarpCount:: ds 1
wCurrMapWarpHeaderPointer:: ds 1 wCurrMapWarpHeaderPointer:: ds 1
wdbfd:: ds 1 wdbfd:: ds 1
wCurrentNextMapXYTriggerCount:: ds 1 wCurrentMapXYTriggerCount:: ds 1
wCurrentNextMapXYTriggerHeaderPointer:: ds 1 wCurrentMapXYTriggerHeaderPointer:: ds 1
wdc00:: ds 1 wdc00:: ds 1
wCurrentMapSignpostCount:: ds 1 wCurrentMapSignpostCount:: ds 1
wCurrentMapSignpostHeaderPointer:: wCurrentMapSignpostHeaderPointer::