2017-12-26 23:45:04 +00:00
|
|
|
; BattleAnimCommands indexes (see engine/battle_anims/anim_commands.asm)
|
2020-07-08 19:30:23 +00:00
|
|
|
const_def $d0
|
2022-06-06 21:25:42 +00:00
|
|
|
DEF FIRST_BATTLE_ANIM_CMD EQU const_value
|
2015-11-10 21:53:37 +00:00
|
|
|
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_wait
|
2021-03-22 00:09:34 +00:00
|
|
|
assert (\1) < FIRST_BATTLE_ANIM_CMD, "anim_wait argument must be less than {FIRST_BATTLE_ANIM_CMD}"
|
|
|
|
db \1
|
|
|
|
ENDM
|
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_obj_command ; $d0
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_obj
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_obj_command
|
2022-06-06 21:25:42 +00:00
|
|
|
if _NARG <= 4
|
|
|
|
db \1 ; object
|
|
|
|
db \2 ; x
|
|
|
|
db \3 ; y
|
|
|
|
db \4 ; param
|
|
|
|
else
|
|
|
|
; LEGACY: Support the tile+offset format
|
|
|
|
db \1 ; object
|
2023-07-27 00:50:16 +00:00
|
|
|
db (\2) * TILE_WIDTH + (\3) ; x_tile, x
|
|
|
|
db (\4) * TILE_WIDTH + (\5) ; y_tile, y
|
2022-06-06 21:25:42 +00:00
|
|
|
db \6 ; param
|
|
|
|
endc
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_1gfx_command ; $d1
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_1gfx
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_1gfx_command
|
2015-01-20 08:01:23 +00:00
|
|
|
db \1 ; gfx1
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_2gfx_command ; $d2
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_2gfx
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_2gfx_command
|
2015-01-20 08:01:23 +00:00
|
|
|
db \1 ; gfx1
|
|
|
|
db \2 ; gfx2
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_3gfx_command ; $d3
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_3gfx
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_3gfx_command
|
2015-01-20 08:01:23 +00:00
|
|
|
db \1 ; gfx1
|
|
|
|
db \2 ; gfx2
|
|
|
|
db \3 ; gfx3
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_4gfx_command ; $d4
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_4gfx
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_4gfx_command
|
2015-01-20 08:01:23 +00:00
|
|
|
db \1 ; gfx1
|
|
|
|
db \2 ; gfx2
|
|
|
|
db \3 ; gfx3
|
|
|
|
db \4 ; gfx4
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_5gfx_command ; $d5
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_5gfx
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_5gfx_command
|
2015-01-20 08:01:23 +00:00
|
|
|
db \1 ; gfx1
|
|
|
|
db \2 ; gfx2
|
|
|
|
db \3 ; gfx3
|
|
|
|
db \4 ; gfx4
|
|
|
|
db \5 ; gfx5
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_incobj_command ; $d6
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_incobj
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_incobj_command
|
2018-01-01 09:40:15 +00:00
|
|
|
db \1 ; object_id
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_setobj_command ; $d7
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_setobj
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_setobj_command
|
2018-01-01 09:40:15 +00:00
|
|
|
db \1 ; object_id
|
|
|
|
db \2 ; value
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_incbgeffect_command ; $d8
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_incbgeffect
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_incbgeffect_command
|
2015-01-20 08:01:23 +00:00
|
|
|
db \1 ; effect
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_battlergfx_2row_command ; $d9
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_battlergfx_2row
|
2019-02-17 18:31:28 +00:00
|
|
|
db anim_battlergfx_2row_command
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_battlergfx_1row_command ; $da
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_battlergfx_1row
|
2019-02-17 18:31:28 +00:00
|
|
|
db anim_battlergfx_1row_command
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_checkpokeball_command ; $db
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_checkpokeball
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_checkpokeball_command
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_transform_command ; $dc
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_transform
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_transform_command
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_raisesub_command ; $dd
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_raisesub
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_raisesub_command
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_dropsub_command ; $de
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_dropsub
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_dropsub_command
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_resetobp0_command ; $df
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_resetobp0
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_resetobp0_command
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_sound_command ; $e0
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_sound
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_sound_command
|
2015-12-23 22:10:50 +00:00
|
|
|
db (\1 << 2) | \2 ; duration, tracks
|
2018-01-01 09:40:15 +00:00
|
|
|
db \3 ; sound_id
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_cry_command ; $e1
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_cry
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_cry_command
|
2015-01-20 08:01:23 +00:00
|
|
|
db \1 ; pitch
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_minimizeopp_command ; $e2
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_minimizeopp
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_minimizeopp_command
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_oamon_command ; $e3
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_oamon
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_oamon_command
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_oamoff_command ; $e4
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_oamoff
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_oamoff_command
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_clearobjs_command ; $e5
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_clearobjs
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_clearobjs_command
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_beatup_command ; $e6
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_beatup
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_beatup_command
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_0xe7_command ; $e7
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_0xe7
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_0xe7_command
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_updateactorpic_command ; $e8
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_updateactorpic
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_updateactorpic_command
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_minimize_command ; $e9
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_minimize
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_minimize_command
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_0xea_command ; $ea
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_0xea
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_0xea_command
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_0xeb_command ; $eb
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_0xeb
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_0xeb_command
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_0xec_command ; $ec
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_0xec
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_0xec_command
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_0xed_command ; $ed
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_0xed
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_0xed_command
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_if_param_and_command ; $ee
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_if_param_and
|
2016-05-05 19:07:37 +00:00
|
|
|
db anim_if_param_and_command
|
2015-01-20 08:01:23 +00:00
|
|
|
db \1 ; value
|
|
|
|
dw \2 ; address
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_jumpuntil_command ; $ef
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_jumpuntil
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_jumpuntil_command
|
2015-01-20 08:01:23 +00:00
|
|
|
dw \1 ; address
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_bgeffect_command ; $f0
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_bgeffect
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_bgeffect_command
|
2015-01-20 08:01:23 +00:00
|
|
|
db \1 ; effect
|
2019-04-08 12:15:10 +00:00
|
|
|
db \2 ; jumptable index
|
|
|
|
db \3 ; battle turn
|
2015-01-20 08:01:23 +00:00
|
|
|
db \4 ; unknown
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_bgp_command ; $f1
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_bgp
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_bgp_command
|
2015-01-20 08:01:23 +00:00
|
|
|
db \1 ; colors
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_obp0_command ; $f2
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_obp0
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_obp0_command
|
2015-01-20 08:01:23 +00:00
|
|
|
db \1 ; colors
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_obp1_command ; $f3
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_obp1
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_obp1_command
|
2015-01-20 08:01:23 +00:00
|
|
|
db \1 ; colors
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_keepsprites_command ; $f4
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_keepsprites
|
2019-02-17 18:31:28 +00:00
|
|
|
db anim_keepsprites_command
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_0xf5_command ; $f5
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_0xf5
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_0xf5_command
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_0xf6_command ; $f6
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_0xf6
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_0xf6_command
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_0xf7_command ; $f7
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_0xf7
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_0xf7_command
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_if_param_equal_command ; $f8
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_if_param_equal
|
2016-05-05 19:07:37 +00:00
|
|
|
db anim_if_param_equal_command
|
2015-01-20 08:01:23 +00:00
|
|
|
db \1 ; value
|
|
|
|
dw \2 ; address
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_setvar_command ; $f9
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_setvar
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_setvar_command
|
2015-01-20 08:01:23 +00:00
|
|
|
db \1 ; value
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_incvar_command ; $fa
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_incvar
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_incvar_command
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_if_var_equal_command ; $fb
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_if_var_equal
|
2016-05-05 19:07:37 +00:00
|
|
|
db anim_if_var_equal_command
|
2015-01-20 08:01:23 +00:00
|
|
|
db \1 ; value
|
|
|
|
dw \2 ; address
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_jump_command ; $fc
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_jump
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_jump_command
|
2015-01-20 08:01:23 +00:00
|
|
|
dw \1 ; address
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_loop_command ; $fd
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_loop
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_loop_command
|
2015-01-20 08:01:23 +00:00
|
|
|
db \1 ; count
|
|
|
|
dw \2 ; address
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_call_command ; $fe
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_call
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_call_command
|
2015-01-20 08:01:23 +00:00
|
|
|
dw \1 ; address
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const anim_ret_command ; $ff
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO anim_ret
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_ret_command
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|