2018-06-24 07:09:41 -07:00
|
|
|
MapSetupScripts:
|
2017-12-26 14:47:05 -08:00
|
|
|
; entries correspond to MAPSETUP_* constants (see constants/map_setup_constants.asm)
|
|
|
|
dw MapSetupScript_Warp
|
|
|
|
dw MapSetupScript_Continue
|
|
|
|
dw MapSetupScript_ReloadMap
|
|
|
|
dw MapSetupScript_Teleport
|
|
|
|
dw MapSetupScript_Door
|
|
|
|
dw MapSetupScript_Fall
|
|
|
|
dw MapSetupScript_Connection
|
|
|
|
dw MapSetupScript_LinkReturn
|
|
|
|
dw MapSetupScript_Train
|
|
|
|
dw MapSetupScript_Submenu
|
|
|
|
dw MapSetupScript_BadWarp
|
|
|
|
dw MapSetupScript_Fly
|
|
|
|
|
2020-07-22 10:37:43 -07:00
|
|
|
; valid commands are listed in MapSetupCommands (see data/maps/setup_script_pointers.asm)
|
|
|
|
mapsetup: MACRO
|
|
|
|
db (\1_MapSetupCmd - MapSetupCommands) / 3
|
|
|
|
ENDM
|
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
MapSetupScript_Teleport:
|
2020-07-22 10:37:43 -07:00
|
|
|
mapsetup ResetPlayerObjectAction
|
2018-06-24 07:09:41 -07:00
|
|
|
MapSetupScript_Fly:
|
2020-07-22 10:37:43 -07:00
|
|
|
mapsetup FadeOutPalettes
|
|
|
|
mapsetup JumpRoamMons
|
2018-06-24 07:09:41 -07:00
|
|
|
MapSetupScript_Warp:
|
2020-07-22 10:37:43 -07:00
|
|
|
mapsetup DisableLCD
|
|
|
|
mapsetup InitSound
|
|
|
|
mapsetup EnterMapSpawnPoint
|
|
|
|
mapsetup LoadMapAttributes
|
|
|
|
mapsetup HandleNewMap
|
|
|
|
mapsetup SpawnPlayer
|
|
|
|
mapsetup RefreshPlayerCoords
|
|
|
|
mapsetup GetMapScreenCoords
|
|
|
|
mapsetup LoadBlockData
|
|
|
|
mapsetup BufferScreen
|
|
|
|
mapsetup LoadMapGraphics
|
|
|
|
mapsetup LoadMapTimeOfDay
|
|
|
|
mapsetup LoadMapObjects
|
|
|
|
mapsetup EnableLCD
|
|
|
|
mapsetup LoadMapPalettes
|
|
|
|
mapsetup SpawnInFacingDown
|
|
|
|
mapsetup RefreshMapSprites
|
|
|
|
mapsetup PlayMapMusicBike
|
|
|
|
mapsetup FadeInToMusic
|
|
|
|
mapsetup FadeInPalettes
|
|
|
|
mapsetup ActivateMapAnims
|
|
|
|
mapsetup LoadWildMonData
|
|
|
|
db -1 ; end
|
2017-12-26 14:47:05 -08:00
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
MapSetupScript_BadWarp:
|
2020-07-22 10:37:43 -07:00
|
|
|
mapsetup EnterMapSpawnPoint
|
|
|
|
mapsetup LoadMapAttributes
|
|
|
|
mapsetup HandleNewMap
|
|
|
|
mapsetup SpawnPlayer
|
|
|
|
mapsetup RefreshPlayerCoords
|
|
|
|
mapsetup GetMapScreenCoords
|
|
|
|
mapsetup LoadBlockData
|
|
|
|
mapsetup BufferScreen
|
|
|
|
mapsetup DisableLCD
|
|
|
|
mapsetup LoadMapGraphics
|
|
|
|
mapsetup LoadMapTimeOfDay
|
|
|
|
mapsetup FadeOutMapMusic
|
|
|
|
mapsetup EnableLCD
|
|
|
|
mapsetup LoadMapObjects
|
|
|
|
mapsetup LoadMapPalettes
|
|
|
|
mapsetup SpawnInFacingDown
|
|
|
|
mapsetup RefreshMapSprites
|
|
|
|
mapsetup FadeToMapMusic
|
|
|
|
mapsetup FadeInPalettes
|
|
|
|
mapsetup ActivateMapAnims
|
|
|
|
mapsetup LoadWildMonData
|
|
|
|
db -1 ; end
|
2017-12-26 14:47:05 -08:00
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
MapSetupScript_Connection:
|
2020-07-22 10:37:43 -07:00
|
|
|
mapsetup SuspendMapAnims
|
|
|
|
mapsetup EnterMapConnection
|
|
|
|
mapsetup LoadMapAttributes
|
|
|
|
mapsetup HandleNewMap
|
|
|
|
mapsetup RefreshPlayerCoords
|
|
|
|
mapsetup LoadBlockData
|
|
|
|
mapsetup LoadMapTileset
|
|
|
|
mapsetup SaveScreen
|
|
|
|
mapsetup LoadMapObjects
|
|
|
|
mapsetup FadeToMapMusic
|
|
|
|
mapsetup LoadMapPalettes
|
|
|
|
mapsetup InitMapNameSign
|
|
|
|
mapsetup ApplyMapPalettes
|
|
|
|
mapsetup LoadWildMonData
|
|
|
|
mapsetup UpdateRoamMons
|
|
|
|
mapsetup ActivateMapAnims
|
|
|
|
db -1 ; end
|
2017-12-26 14:47:05 -08:00
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
MapSetupScript_Fall:
|
2020-07-22 10:37:43 -07:00
|
|
|
mapsetup ResetPlayerObjectAction
|
2018-06-24 07:09:41 -07:00
|
|
|
MapSetupScript_Door:
|
2020-07-22 10:37:43 -07:00
|
|
|
mapsetup FadeOutPalettes
|
2018-06-24 07:09:41 -07:00
|
|
|
MapSetupScript_Train:
|
2020-07-22 10:37:43 -07:00
|
|
|
mapsetup EnterMapWarp
|
|
|
|
mapsetup LoadMapAttributes
|
|
|
|
mapsetup GetWarpDestCoords
|
|
|
|
mapsetup HandleNewMap
|
|
|
|
mapsetup RefreshPlayerCoords
|
|
|
|
mapsetup LoadBlockData
|
|
|
|
mapsetup BufferScreen
|
|
|
|
mapsetup DisableLCD
|
|
|
|
mapsetup LoadMapGraphics
|
|
|
|
mapsetup LoadMapTimeOfDay
|
|
|
|
mapsetup FadeOutMapMusic
|
|
|
|
mapsetup EnableLCD
|
|
|
|
mapsetup LoadMapObjects
|
|
|
|
mapsetup LoadMapPalettes
|
|
|
|
mapsetup RefreshMapSprites
|
|
|
|
mapsetup FadeToMapMusic
|
|
|
|
mapsetup FadeInPalettes
|
|
|
|
mapsetup ActivateMapAnims
|
|
|
|
mapsetup LoadWildMonData
|
|
|
|
mapsetup UpdateRoamMons
|
|
|
|
db -1 ; end
|
2017-12-26 14:47:05 -08:00
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
MapSetupScript_ReloadMap:
|
2020-07-22 10:37:43 -07:00
|
|
|
mapsetup FadeMapMusicAndPalettes
|
|
|
|
mapsetup ClearBGPalettes
|
|
|
|
mapsetup DisableLCD
|
|
|
|
mapsetup InitSound
|
|
|
|
mapsetup LoadBlockData
|
|
|
|
mapsetup LoadConnectionBlockData
|
|
|
|
mapsetup LoadMapGraphics
|
|
|
|
mapsetup LoadMapTimeOfDay
|
|
|
|
mapsetup EnableLCD
|
|
|
|
mapsetup LoadMapPalettes
|
|
|
|
mapsetup RefreshMapSprites
|
|
|
|
mapsetup ForceMapMusic
|
|
|
|
mapsetup FadeInPalettes
|
|
|
|
mapsetup ActivateMapAnims
|
|
|
|
mapsetup LoadWildMonData
|
|
|
|
db -1 ; end
|
2017-12-26 14:47:05 -08:00
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
MapSetupScript_LinkReturn:
|
2020-07-22 10:37:43 -07:00
|
|
|
mapsetup FadeMapMusicAndPalettes
|
|
|
|
mapsetup DisableLCD
|
|
|
|
mapsetup InitSound
|
|
|
|
mapsetup HandleNewMap
|
|
|
|
mapsetup LoadBlockData
|
|
|
|
mapsetup BufferScreen
|
|
|
|
mapsetup LoadMapGraphics
|
|
|
|
mapsetup LoadMapTimeOfDay
|
|
|
|
mapsetup EnableLCD
|
|
|
|
mapsetup LoadMapPalettes
|
|
|
|
mapsetup RefreshMapSprites
|
|
|
|
mapsetup PlayMapMusicBike
|
|
|
|
mapsetup FadeInPalettes
|
|
|
|
mapsetup ActivateMapAnims
|
|
|
|
mapsetup LoadWildMonData
|
|
|
|
mapsetup EnableTextAcceleration
|
|
|
|
db -1 ; end
|
2017-12-26 14:47:05 -08:00
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
MapSetupScript_Continue:
|
2020-07-22 10:37:43 -07:00
|
|
|
mapsetup DisableLCD
|
|
|
|
mapsetup InitSound
|
|
|
|
mapsetup LoadMapAttributes_SkipObjects
|
|
|
|
mapsetup GetMapScreenCoords
|
|
|
|
mapsetup HandleContinueMap
|
|
|
|
mapsetup LoadBlockData
|
|
|
|
mapsetup LoadConnectionBlockData
|
|
|
|
mapsetup BufferScreen
|
|
|
|
mapsetup LoadMapGraphics
|
|
|
|
mapsetup LoadMapTimeOfDay
|
|
|
|
mapsetup EnableLCD
|
|
|
|
mapsetup LoadMapPalettes
|
|
|
|
mapsetup RefreshMapSprites
|
|
|
|
mapsetup PlayMapMusicBike
|
|
|
|
mapsetup FadeInPalettes
|
|
|
|
mapsetup ActivateMapAnims
|
|
|
|
mapsetup LoadWildMonData
|
|
|
|
db -1 ; end
|
2017-12-26 14:47:05 -08:00
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
MapSetupScript_Submenu:
|
2020-07-22 10:37:43 -07:00
|
|
|
mapsetup LoadBlockData
|
|
|
|
mapsetup LoadConnectionBlockData
|
|
|
|
db -1 ; end
|