pokecrystal-board/macros/scripts/battle_anims.asm

301 lines
5.0 KiB
NASM
Raw Normal View History

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