2017-12-09 05:50:59 +00:00
|
|
|
; hMapEntryMethod values
|
2017-12-27 06:29:15 +00:00
|
|
|
; MapSetupScripts indexes (see data/maps/setup_scripts.asm)
|
2018-01-31 16:38:45 +00:00
|
|
|
const_def $f1
|
2017-12-26 22:47:05 +00:00
|
|
|
const MAPSETUP_WARP ; f1
|
|
|
|
const MAPSETUP_CONTINUE ; f2
|
|
|
|
const MAPSETUP_RELOADMAP ; f3
|
|
|
|
const MAPSETUP_TELEPORT ; f4
|
|
|
|
const MAPSETUP_DOOR ; f5
|
|
|
|
const MAPSETUP_FALL ; f6
|
|
|
|
const MAPSETUP_CONNECTION ; f7
|
|
|
|
const MAPSETUP_LINKRETURN ; f8
|
|
|
|
const MAPSETUP_TRAIN ; f9
|
|
|
|
const MAPSETUP_SUBMENU ; fa
|
|
|
|
const MAPSETUP_BADWARP ; fb
|
|
|
|
const MAPSETUP_FLY ; fc
|
2016-01-06 12:44:50 +00:00
|
|
|
|
2018-04-01 15:01:51 +00:00
|
|
|
; MapSetupCommands indexes (see engine/overworld/map_setup.asm)
|
2017-12-09 05:50:59 +00:00
|
|
|
; Names taken from Condensation water's scripting compendium
|
|
|
|
; https://hax.iimarck.us/files/scriptingcodes_eng.htm
|
2015-10-24 23:49:19 +00:00
|
|
|
const_def
|
2015-11-30 02:34:59 +00:00
|
|
|
const map_lcd_on ; 00
|
|
|
|
const map_lcd_off ; 01
|
|
|
|
const map_sound_off ; 02
|
|
|
|
const map_music ; 03
|
|
|
|
const map_start_music ; 04
|
|
|
|
const map_fade_music ; 05
|
|
|
|
const map_fade ; 06
|
|
|
|
const map_bike_music ; 07
|
|
|
|
const map_music_force ; 08
|
|
|
|
const map_max_volume ; 09
|
|
|
|
const map_load_blocks ; 0a
|
|
|
|
const map_connection_blocks ; 0b
|
|
|
|
const map_save_screen ; 0c
|
|
|
|
const map_buffer_screen ; 0d
|
|
|
|
const map_load_graphics ; 0e
|
2017-12-26 17:50:32 +00:00
|
|
|
const map_load_tileset ; 0f
|
2015-11-30 02:34:59 +00:00
|
|
|
const map_time_of_day ; 10
|
|
|
|
const map_palettes ; 11
|
|
|
|
const map_wildmons ; 12
|
|
|
|
const map_sprites ; 13
|
|
|
|
const map_change_callback ; 14
|
|
|
|
const map_start_callback ; 15
|
|
|
|
const map_load_objects ; 16
|
|
|
|
const map_load_spawn ; 17
|
|
|
|
const map_load_connection ; 18
|
|
|
|
const map_load_warp ; 19
|
2018-02-03 21:58:49 +00:00
|
|
|
const map_load_attributes ; 1a
|
|
|
|
const map_load_attributes_2 ; 1b
|
2015-11-30 02:34:59 +00:00
|
|
|
const map_clear_bg_palettes ; 1c
|
|
|
|
const map_fade_out_palettes ; 1d
|
|
|
|
const map_fade_in_palettes ; 1e
|
|
|
|
const map_anchor_screen ; 1f
|
|
|
|
const map_warp_face ; 20
|
|
|
|
const map_face_down ; 21
|
|
|
|
const map_spawn_coord ; 22
|
|
|
|
const map_player_coord ; 23
|
|
|
|
const map_prolong_sprites ; 24
|
|
|
|
const map_delay_sprites ; 25
|
|
|
|
const map_update_roam ; 26
|
|
|
|
const map_keep_roam ; 27
|
|
|
|
const map_fade_out_music ; 28
|
|
|
|
const map_animations_on ; 29
|
|
|
|
const map_animations_off ; 2a
|
|
|
|
const map_keep_palettes ; 2b
|
|
|
|
const map_text_scroll_off ; 2c
|
|
|
|
const map_stop_script ; 2d
|
2015-12-14 16:12:18 +00:00
|
|
|
map_end EQU -1
|
2017-12-26 22:47:05 +00:00
|
|
|
|
|
|
|
; callback types
|
2018-01-31 16:38:45 +00:00
|
|
|
const_def 1
|
2017-12-26 22:47:05 +00:00
|
|
|
const MAPCALLBACK_TILES
|
|
|
|
const MAPCALLBACK_OBJECTS
|
|
|
|
const MAPCALLBACK_CMDQUEUE
|
|
|
|
const MAPCALLBACK_SPRITES
|
|
|
|
const MAPCALLBACK_NEWMAP
|