2017-12-28 12:23:44 +00:00
|
|
|
anim_wait: MACRO
|
2015-01-20 08:01:23 +00:00
|
|
|
if \1 >= $d0
|
2018-02-26 01:05:37 +00:00
|
|
|
fail "anim_wait argument must be less than $d0."
|
2015-01-20 08:01:23 +00:00
|
|
|
endc
|
|
|
|
db \1
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2017-12-26 23:45:04 +00:00
|
|
|
; BattleAnimCommands indexes (see engine/battle_anims/anim_commands.asm)
|
2015-11-10 21:53:37 +00:00
|
|
|
enum_start $d0
|
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_obj_command ; $d0
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_obj: MACRO
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_obj_command
|
2017-12-29 18:38:04 +00:00
|
|
|
if _NARG <= 4
|
|
|
|
db \1 ; object
|
|
|
|
db \2 ; x
|
|
|
|
db \3 ; y
|
|
|
|
db \4 ; param
|
|
|
|
else
|
2018-11-20 20:53:45 +00:00
|
|
|
; LEGACY: Support the tile+offset format
|
2017-12-29 18:38:04 +00:00
|
|
|
db \1 ; object
|
|
|
|
db (\2) * 8 + (\3) ; x_tile, x
|
|
|
|
db (\4) * 8 + (\5) ; y_tile, y
|
2015-12-24 03:51:50 +00:00
|
|
|
db \6 ; param
|
2017-12-29 18:38:04 +00:00
|
|
|
endc
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_1gfx_command ; $d1
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_1gfx: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_2gfx_command ; $d2
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_2gfx: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_3gfx_command ; $d3
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_3gfx: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_4gfx_command ; $d4
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_4gfx: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_5gfx_command ; $d5
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_5gfx: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_incobj_command ; $d6
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_incobj: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_setobj_command ; $d7
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_setobj: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_incbgeffect_command ; $d8
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_incbgeffect: MACRO
|
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
|
|
|
|
2019-02-17 18:31:28 +00:00
|
|
|
enum anim_battlergfx_2row_command ; $d9
|
2018-11-25 22:57:38 +00:00
|
|
|
anim_battlergfx_2row: MACRO
|
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
|
|
|
|
2019-02-17 18:31:28 +00:00
|
|
|
enum anim_battlergfx_1row_command ; $da
|
2018-11-25 22:57:38 +00:00
|
|
|
anim_battlergfx_1row: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_checkpokeball_command ; $db
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_checkpokeball: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_transform_command ; $dc
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_transform: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_raisesub_command ; $dd
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_raisesub: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_dropsub_command ; $de
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_dropsub: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_resetobp0_command ; $df
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_resetobp0: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_sound_command ; $e0
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_sound: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_cry_command ; $e1
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_cry: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_minimizeopp_command ; $e2
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_minimizeopp: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_oamon_command ; $e3
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_oamon: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_oamoff_command ; $e4
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_oamoff: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_clearobjs_command ; $e5
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_clearobjs: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_beatup_command ; $e6
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_beatup: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_0xe7_command ; $e7
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_0xe7: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_updateactorpic_command ; $e8
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_updateactorpic: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_minimize_command ; $e9
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_minimize: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_0xea_command ; $ea
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_0xea: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_0xeb_command ; $eb
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_0xeb: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_0xec_command ; $ec
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_0xec: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_0xed_command ; $ed
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_0xed: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_if_param_and_command ; $ee
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_if_param_and: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_jumpuntil_command ; $ef
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_jumpuntil: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_bgeffect_command ; $f0
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_bgeffect: MACRO
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_bgeffect_command
|
2015-01-20 08:01:23 +00:00
|
|
|
db \1 ; effect
|
|
|
|
db \2 ; unknown
|
|
|
|
db \3 ; unknown
|
|
|
|
db \4 ; unknown
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_bgp_command ; $f1
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_bgp: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_obp0_command ; $f2
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_obp0: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_obp1_command ; $f3
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_obp1: MACRO
|
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
|
|
|
|
2019-02-17 18:31:28 +00:00
|
|
|
enum anim_keepsprites_command ; $f4
|
2019-02-16 11:55:15 +00:00
|
|
|
anim_keepsprites: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_0xf5_command ; $f5
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_0xf5: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_0xf6_command ; $f6
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_0xf6: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_0xf7_command ; $f7
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_0xf7: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_if_param_equal_command ; $f8
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_if_param_equal: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_setvar_command ; $f9
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_setvar: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_incvar_command ; $fa
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_incvar: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_if_var_equal_command ; $fb
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_if_var_equal: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_jump_command ; $fc
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_jump: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_loop_command ; $fd
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_loop: MACRO
|
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
|
|
|
|
2017-12-15 05:38:52 +00:00
|
|
|
enum anim_call_command ; $fe
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_call: MACRO
|
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
|
|
|
|
2018-07-28 10:14:04 +00:00
|
|
|
enum anim_ret_command ; $ff
|
2017-12-28 12:23:44 +00:00
|
|
|
anim_ret: MACRO
|
2015-11-10 21:53:37 +00:00
|
|
|
db anim_ret_command
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|