146 lines
3.5 KiB
PHP
146 lines
3.5 KiB
PHP
@ TODO: Add explanatory comments to macros
|
|
|
|
@ Initialize the Battle Dome challenge
|
|
.macro dome_init
|
|
setvar VAR_0x8004, BATTLE_DOME_FUNC_INIT
|
|
special CallBattleDomeFunction
|
|
.endm
|
|
|
|
@ Get the value of some DOME_DATA_*. See GetDomeData for the data types that can be retrieved
|
|
.macro dome_get data:req
|
|
setvar VAR_0x8004, BATTLE_DOME_FUNC_GET_DATA
|
|
setvar VAR_0x8005, \data
|
|
special CallBattleDomeFunction
|
|
.endm
|
|
|
|
@ Set some DOME_DATA_* to val. See SetDomeData for the data types that can be set
|
|
.macro dome_set data:req, val=0xFFFF
|
|
setvar VAR_0x8004, BATTLE_DOME_FUNC_SET_DATA
|
|
setvar VAR_0x8005, \data
|
|
.if \val != 0xFFFF
|
|
setvar VAR_0x8006, \val
|
|
.endif
|
|
special CallBattleDomeFunction
|
|
.endm
|
|
|
|
@
|
|
.macro dome_getroundtext
|
|
setvar VAR_0x8004, BATTLE_DOME_FUNC_GET_ROUND_TEXT
|
|
special CallBattleDomeFunction
|
|
.endm
|
|
|
|
@
|
|
.macro dome_getopponentname
|
|
setvar VAR_0x8004, BATTLE_DOME_FUNC_GET_OPPONENT_NAME
|
|
special CallBattleDomeFunction
|
|
.endm
|
|
|
|
@
|
|
.macro dome_initopponentparty
|
|
setvar VAR_0x8004, BATTLE_DOME_FUNC_INIT_OPPONENT_PARTY
|
|
special CallBattleDomeFunction
|
|
.endm
|
|
|
|
@
|
|
.macro dome_showopponentinfo
|
|
setvar VAR_0x8004, BATTLE_DOME_FUNC_SHOW_OPPONENT_INFO
|
|
special CallBattleDomeFunction
|
|
.endm
|
|
|
|
@
|
|
.macro dome_showtourneytree
|
|
setvar VAR_0x8004, BATTLE_DOME_FUNC_SHOW_TOURNEY_TREE
|
|
special CallBattleDomeFunction
|
|
.endm
|
|
|
|
@
|
|
.macro dome_showresultstree
|
|
setvar VAR_0x8004, BATTLE_DOME_FUNC_SHOW_PREV_RESULTS_TREE
|
|
special CallBattleDomeFunction
|
|
.endm
|
|
|
|
@
|
|
.macro dome_setopponent
|
|
setvar VAR_0x8004, BATTLE_DOME_FUNC_SET_OPPONENT_ID
|
|
special CallBattleDomeFunction
|
|
.endm
|
|
|
|
@
|
|
.macro dome_setopponentgfx
|
|
setvar VAR_0x8004, BATTLE_DOME_FUNC_SET_OPPONENT_GFX
|
|
special CallBattleDomeFunction
|
|
.endm
|
|
|
|
@
|
|
.macro dome_showstatictourneytree
|
|
setvar VAR_0x8004, BATTLE_DOME_FUNC_SHOW_STATIC_TOURNEY_TREE
|
|
special CallBattleDomeFunction
|
|
.endm
|
|
|
|
@
|
|
.macro dome_resolvewinners arg:req
|
|
setvar VAR_0x8004, BATTLE_DOME_FUNC_RESOLVE_WINNERS
|
|
setvar VAR_0x8005, \arg
|
|
special CallBattleDomeFunction
|
|
.endm
|
|
|
|
@ Save the game and set the challenge status
|
|
.macro dome_save challengeStatus:req
|
|
setvar VAR_0x8004, BATTLE_DOME_FUNC_SAVE
|
|
setvar VAR_0x8005, \challengeStatus
|
|
special CallBattleDomeFunction
|
|
.endm
|
|
|
|
@ Unused. Increment the win streaks for the current challenge by one
|
|
.macro dome_incrementstreaks
|
|
setvar VAR_0x8004, BATTLE_DOME_FUNC_INCREMENT_STREAK
|
|
special CallBattleDomeFunction
|
|
.endm
|
|
|
|
@
|
|
.macro dome_settrainers
|
|
setvar VAR_0x8004, BATTLE_DOME_FUNC_SET_TRAINERS
|
|
special CallBattleDomeFunction
|
|
.endm
|
|
|
|
@ If any moves were copied using Sketch during the challenge then restore them to Sketch
|
|
.macro dome_resetsketch
|
|
setvar VAR_0x8004, BATTLE_DOME_FUNC_RESET_SKETCH
|
|
special CallBattleDomeFunction
|
|
.endm
|
|
|
|
@
|
|
.macro dome_restorehelditems
|
|
setvar VAR_0x8004, BATTLE_DOME_FUNC_RESTORE_HELD_ITEMS
|
|
special CallBattleDomeFunction
|
|
.endm
|
|
|
|
@
|
|
.macro dome_reduceparty
|
|
setvar VAR_0x8004, BATTLE_DOME_FUNC_REDUCE_PARTY
|
|
special CallBattleDomeFunction
|
|
.endm
|
|
|
|
@
|
|
.macro dome_compareseeds
|
|
setvar VAR_0x8004, BATTLE_DOME_FUNC_COMPARE_SEEDS
|
|
special CallBattleDomeFunction
|
|
.endm
|
|
|
|
@ Buffer the name of the winner for the last Dome challenge to STR_VAR_1
|
|
.macro dome_getwinnersname
|
|
setvar VAR_0x8004, BATTLE_DOME_FUNC_GET_WINNER_NAME
|
|
special CallBattleDomeFunction
|
|
.endm
|
|
|
|
@ TODO: Document this macro and its function
|
|
.macro dome_21
|
|
setvar VAR_0x8004, BATTLE_DOME_FUNC_21
|
|
special CallBattleDomeFunction
|
|
.endm
|
|
|
|
@
|
|
.macro dome_inittrainers
|
|
setvar VAR_0x8004, BATTLE_DOME_FUNC_INIT_TRAINERS
|
|
special CallBattleDomeFunction
|
|
.endm
|