From 901f3ff55715ec6bdeda5c711e7e73b4c38ab55a Mon Sep 17 00:00:00 2001 From: garak Date: Fri, 19 Oct 2018 15:57:19 -0400 Subject: [PATCH] use sound panning constants in battle_anim_scripts --- data/battle_anim_scripts.s | 1976 ++++++++++----------- include/battle_anim.h | 3 - include/constants/battle_anim.h | 14 + src/battle_anim.c | 36 +- src/battle_anim_sound_tasks.c | 12 +- src/battle_controller_link_opponent.c | 6 +- src/battle_controller_link_partner.c | 6 +- src/battle_controller_opponent.c | 6 +- src/battle_controller_player.c | 6 +- src/battle_controller_player_partner.c | 6 +- src/battle_controller_recorded_opponent.c | 6 +- src/battle_controller_recorded_player.c | 4 +- src/battle_controller_safari.c | 4 +- src/battle_interface.c | 5 +- 14 files changed, 1051 insertions(+), 1039 deletions(-) diff --git a/data/battle_anim_scripts.s b/data/battle_anim_scripts.s index 624a5c69f..92aa51deb 100644 --- a/data/battle_anim_scripts.s +++ b/data/battle_anim_scripts.s @@ -422,7 +422,7 @@ Move_POUND: loadspritegfx 0x2797 monbg ANIM_TARGET setalpha 0x80C - playsewithpan SE_W003, +63 + playsewithpan SE_W003, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x2, 0, 0, 1, 2 createvisualtask sub_80D51AC, 0x2, 1, 3, 0, 6, 1 waitforvisualfinish @@ -438,7 +438,7 @@ Move_DOUBLE_SLAP: AnimScript_82C93DA: createvisualtask sub_80D51AC, 0x2, 1, 3, 0, 6, 1 - playsewithpan SE_W003, +63 + playsewithpan SE_W003, SOUND_PAN_TARGET waitforvisualfinish clearmonbg ANIM_TARGET blendoff @@ -455,7 +455,7 @@ AnimScript_82C9408: Move_POISON_POWDER: loadspritegfx 0x2751 loadspritegfx 0x27A6 - loopsewithpan SE_W077, +63, 0xA, 0x6 + loopsewithpan SE_W077, SOUND_PAN_TARGET, 0xA, 0x6 createsprite gUnknown_08592148, 0x82, -30, -22, 117, 80, 5, 1 createsprite gUnknown_08592148, 0x82, 10, -22, 117, 80, -5, 1 createsprite gUnknown_08592148, 0x82, -25, -22, 117, 112, 5, 3 @@ -479,7 +479,7 @@ Move_POISON_POWDER: Move_STUN_SPORE: loadspritegfx 0x2754 - loopsewithpan SE_W077, +63, 0xA, 0x6 + loopsewithpan SE_W077, SOUND_PAN_TARGET, 0xA, 0x6 createsprite gUnknown_08592130, 0x82, -30, -22, 117, 80, 5, 1 createsprite gUnknown_08592130, 0x82, 10, -22, 117, 80, -5, 1 createsprite gUnknown_08592130, 0x82, -25, -22, 117, 112, 5, 3 @@ -503,7 +503,7 @@ Move_STUN_SPORE: Move_SLEEP_POWDER: loadspritegfx 0x2753 - loopsewithpan SE_W077, +63, 0xA, 0x6 + loopsewithpan SE_W077, SOUND_PAN_TARGET, 0xA, 0x6 createsprite gUnknown_08592118, 0x82, -30, -22, 117, 80, 5, 1 createsprite gUnknown_08592118, 0x82, 10, -22, 117, 80, -5, 1 createsprite gUnknown_08592118, 0x82, -25, -22, 117, 112, 5, 3 @@ -530,21 +530,21 @@ Move_SWIFT: loadspritegfx 0x2797 monbg ANIM_DEF_PARTNER setalpha 0x80C - playsewithpan SE_W129, -64 + playsewithpan SE_W129, SOUND_PAN_ATTACKER createsprite gUnknown_08592404, 0x83, 20, -10, 20, 0, 22, 20, 1 delay 0x5 - playsewithpan SE_W129, -64 + playsewithpan SE_W129, SOUND_PAN_ATTACKER createsprite gUnknown_08592404, 0x83, 20, -10, 20, 5, 22, -18, 1 delay 0x5 - playsewithpan SE_W129, -64 + playsewithpan SE_W129, SOUND_PAN_ATTACKER createsprite gUnknown_08592404, 0x83, 20, -10, 20, -10, 22, 15, 1 createvisualtask sub_80D52D0, 0x2, 1, 2, 0, 18, 1 createvisualtask sub_80D52D0, 0x2, 3, 2, 0, 18, 1 delay 0x5 - playsewithpan SE_W129, -64 + playsewithpan SE_W129, SOUND_PAN_ATTACKER createsprite gUnknown_08592404, 0x83, 20, -10, 20, 0, 22, -20, 1 delay 0x5 - playsewithpan SE_W129, -64 + playsewithpan SE_W129, SOUND_PAN_ATTACKER createsprite gUnknown_08592404, 0x83, 20, -10, 20, 0, 22, 12, 1 delay 0x5 waitforvisualfinish @@ -556,20 +556,20 @@ Move_STRENGTH: loadspritegfx 0x2797 monbg ANIM_DEF_PARTNER setalpha 0x80C - playsewithpan SE_W036, -64 + playsewithpan SE_W036, SOUND_PAN_ATTACKER createvisualtask sub_80D5644, 0x5, 0, 2, 0, 96, 30 waitforvisualfinish delay 0xA createsprite gUnknown_0857FE58, 0x2, 0, 0, 4 createvisualtask sub_80D5830, 0x2, 1, 18, 6, 2, 4 delay 0x4 - playsewithpan SE_W025B, +63 + playsewithpan SE_W025B, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x3, 16, 12, 1, 1 delay 0x4 - playsewithpan SE_W025B, +63 + playsewithpan SE_W025B, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x3, -16, -12, 1, 1 delay 0x4 - playsewithpan SE_W025B, +63 + playsewithpan SE_W025B, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x3, 3, 4, 1, 1 waitforvisualfinish createvisualtask sub_80D52D0, 0x2, 1, 2, 0, 8, 1 @@ -586,7 +586,7 @@ Move_TACKLE: delay 0x6 createsprite gUnknown_08597358, 0x2, 0, 0, 1, 2 createvisualtask sub_80D51AC, 0x2, 1, 3, 0, 6, 1 - playsewithpan SE_W004, +63 + playsewithpan SE_W004, SOUND_PAN_TARGET waitforvisualfinish clearmonbg ANIM_TARGET blendoff @@ -596,14 +596,14 @@ Move_BODY_SLAM: loadspritegfx 0x2797 monbg ANIM_DEF_PARTNER setalpha 0x80C - playsewithpan SE_W036, -64 + playsewithpan SE_W036, SOUND_PAN_ATTACKER createsprite gUnknown_0857FE40, 0x2, 6, 1, 0 waitforvisualfinish delay 0xB createsprite gUnknown_0857FE70, 0x2, 0, 26, 0, 0, 5 delay 0x6 createsprite gUnknown_08597358, 0x4, -10, 0, 1, 0 - loopsewithpan SE_W025B, +63, 0xA, 0x2 + loopsewithpan SE_W025B, SOUND_PAN_TARGET, 0xA, 0x2 delay 0x1 createsprite gUnknown_0857FE70, 0x2, 1, -28, 0, 0, 3 waitforvisualfinish @@ -636,7 +636,7 @@ Move_SUPERSONIC: end AnimScript_82C99FF: - playsewithpan SE_W048, -64 + playsewithpan SE_W048, SOUND_PAN_ATTACKER createsprite gUnknown_08593428, 0x82, 16, 0, 0, 0, 30, 0 delay 0x2 return @@ -652,7 +652,7 @@ Move_SCREECH: end AnimScript_82C9A4C: - playsewithpan SE_W103, -64 + playsewithpan SE_W103, SOUND_PAN_ATTACKER createsprite gUnknown_08593440, 0x82, 16, 0, 0, 0, 30, 0 delay 0x2 return @@ -662,31 +662,31 @@ Move_FLAME_WHEEL: monbg ANIM_DEF_PARTNER monbgprio_2A ANIM_TARGET createsprite gUnknown_08595584, 0x3, 0, 0, 56, 0 - playsewithpan SE_W172, -64 + playsewithpan SE_W172, SOUND_PAN_ATTACKER delay 0x2 createsprite gUnknown_08595584, 0x3, 0, 0, 56, 4 - playsewithpan SE_W172, -64 + playsewithpan SE_W172, SOUND_PAN_ATTACKER delay 0x2 createsprite gUnknown_08595584, 0x3, 0, 0, 56, 8 - playsewithpan SE_W172, -64 + playsewithpan SE_W172, SOUND_PAN_ATTACKER delay 0x2 createsprite gUnknown_08595584, 0x3, 0, 0, 56, 12 - playsewithpan SE_W172, -64 + playsewithpan SE_W172, SOUND_PAN_ATTACKER delay 0x2 createsprite gUnknown_08595584, 0x3, 0, 0, 56, 16 - playsewithpan SE_W172, -64 + playsewithpan SE_W172, SOUND_PAN_ATTACKER delay 0x2 createsprite gUnknown_08595584, 0x3, 0, 0, 56, 20 - playsewithpan SE_W172, -64 + playsewithpan SE_W172, SOUND_PAN_ATTACKER delay 0x2 createsprite gUnknown_08595584, 0x3, 0, 0, 56, 24 - playsewithpan SE_W172, -64 + playsewithpan SE_W172, SOUND_PAN_ATTACKER waitforvisualfinish createsprite gUnknown_0857FE70, 0x2, 0, 24, 0, 0, 6 delay 0x4 createvisualtask sub_80D51AC, 0x2, 1, 5, 0, 8, 1 createvisualtask sub_80A7B98, 0x3, 1, RGB_RED, 12, 1, 1 - playsewithpan SE_W172B, +63 + playsewithpan SE_W172B, SOUND_PAN_TARGET call AnimScript_82D2D18 delay 0x7 createsprite gUnknown_0857FE58, 0x2, 0, 0, 9 @@ -705,22 +705,22 @@ Move_PIN_MISSILE: monbg ANIM_TARGET monbgprio_28 ANIM_TARGET setalpha 0x80C - playsewithpan SE_W026, -64 + playsewithpan SE_W026, SOUND_PAN_ATTACKER createsprite gUnknown_08596A5C, 0x2, 20, -8, -8, -8, 20, -32 delay 0xF createsprite gUnknown_08596A5C, 0x2, 20, -8, 8, 8, 20, -40 delay 0x4 - playsewithpan SE_W030, +63 + playsewithpan SE_W030, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x3, -8, -8, 1, 2 createvisualtask sub_80D52D0, 0x2, 1, 3, 0, 2, 1 delay 0x9 createsprite gUnknown_08596A5C, 0x2, 20, -8, 0, 0, 20, -32 delay 0x4 - playsewithpan SE_W030, +63 + playsewithpan SE_W030, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x3, 8, 8, 1, 2 createvisualtask sub_80D52D0, 0x2, 1, 3, 0, 2, 1 delay 0xE - playsewithpan SE_W030, +63 + playsewithpan SE_W030, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x3, 0, 0, 1, 2 createvisualtask sub_80D52D0, 0x2, 1, 3, 0, 2, 1 waitforvisualfinish @@ -734,22 +734,22 @@ Move_ICICLE_SPEAR: monbg ANIM_TARGET monbgprio_28 ANIM_TARGET setalpha 0x80C - playsewithpan SE_W196, -64 + playsewithpan SE_W196, SOUND_PAN_ATTACKER createsprite gUnknown_08596A74, 0x2, 20, -8, -8, -8, 20, -32 delay 0xF createsprite gUnknown_08596A74, 0x2, 20, -8, 8, 8, 20, -40 delay 0x4 - playsewithpan SE_W030, +63 + playsewithpan SE_W030, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x3, -8, -8, 1, 2 createvisualtask sub_80D52D0, 0x2, 1, 3, 0, 2, 1 delay 0x9 createsprite gUnknown_08596A74, 0x2, 20, -8, 0, 0, 20, -32 delay 0x4 - playsewithpan SE_W030, +63 + playsewithpan SE_W030, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x3, 8, 8, 1, 2 createvisualtask sub_80D52D0, 0x2, 1, 3, 0, 2, 1 delay 0xE - playsewithpan SE_W030, +63 + playsewithpan SE_W030, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x3, 0, 0, 1, 2 createvisualtask sub_80D52D0, 0x2, 1, 3, 0, 2, 1 waitforvisualfinish @@ -765,7 +765,7 @@ Move_TAKE_DOWN: delay 0x23 createsprite gUnknown_0859728C, 0x2, 31, 3, 1, 0, 10, 0, 0 createsprite gUnknown_08597358, 0x4, -10, 0, 1, 0 - playsewithpan SE_W025B, +63 + playsewithpan SE_W025B, SOUND_PAN_TARGET delay 0x1 createsprite gUnknown_0857FE70, 0x2, 1, -16, 0, 0, 4 waitforvisualfinish @@ -782,19 +782,19 @@ Move_TAKE_DOWN: Move_DOUBLE_EDGE: loadspritegfx 0x2797 - playsewithpan SE_W129, -64 + playsewithpan SE_W129, SOUND_PAN_ATTACKER createsprite gUnknown_0859728C, 0x2, 2, 4, 2, 0x7FFF, 10, 0, 0 waitforvisualfinish delay 0xA - playsewithpan SE_W207, -64 - waitplaysewithpan SE_W207, -64, 0x8 + playsewithpan SE_W207, SOUND_PAN_ATTACKER + waitplaysewithpan SE_W207, SOUND_PAN_ATTACKER, 0x8 createvisualtask sub_80D5830, 0x2, 0, 18, 6, 2, 4 waitforvisualfinish createsprite gUnknown_08597274, 0x2, 1, 0, 16, 16, RGB_WHITE createsprite gUnknown_0857FE70, 0x2, 0, 20, 0, 0, 4 delay 0x3 waitforvisualfinish - playsewithpan SE_W025B, +63 + playsewithpan SE_W025B, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x84, -10, 0, 1, 0 createsprite gUnknown_0857FE70, 0x2, 1, -32, 0, 0, 3 waitforvisualfinish @@ -820,12 +820,12 @@ Move_POISON_STING: monbg ANIM_TARGET monbgprio_28 ANIM_TARGET setalpha 0x80C - playsewithpan SE_W013B, -64 + playsewithpan SE_W013B, SOUND_PAN_ATTACKER createsprite gUnknown_08596A44, 0x82, 20, 0, -8, 0, 20 waitforvisualfinish createsprite gUnknown_08597358, 0x3, 0, 0, 1, 2 createvisualtask sub_80D52D0, 0x2, 1, 2, 0, 5, 1 - playsewithpan SE_W030, +63 + playsewithpan SE_W030, SOUND_PAN_TARGET waitforvisualfinish call AnimScript_82D7A71 waitforvisualfinish @@ -839,13 +839,13 @@ Move_TWINEEDLE: monbg ANIM_TARGET monbgprio_28 ANIM_TARGET setalpha 0x80C - loopsewithpan SE_W013B, -64, 0x6, 0x2 + loopsewithpan SE_W013B, SOUND_PAN_ATTACKER, 0x6, 0x2 createsprite gUnknown_08596A44, 0x82, 10, -4, 0, -4, 20 createsprite gUnknown_08596A44, 0x82, 20, 12, 10, 12, 20 delay 0x14 createvisualtask sub_80D52D0, 0x2, 1, 2, 0, 5, 1 createsprite gUnknown_08597370, 0x3, 0, -4, 1, 3 - loopsewithpan SE_W030, +63, 0x5, 0x2 + loopsewithpan SE_W030, SOUND_PAN_TARGET, 0x5, 0x2 delay 0x1 createsprite gUnknown_08597370, 0x3, 10, 12, 1, 3 waitforvisualfinish @@ -905,29 +905,29 @@ AnimScript_82CA02D: Move_LEECH_SEED: loadspritegfx 0x2716 - playsewithpan SE_W077, -64 + playsewithpan SE_W077, SOUND_PAN_ATTACKER createsprite gUnknown_085922BC, 0x82, 15, 0, 0, 24, 35, -32 delay 0x8 - playsewithpan SE_W077, -64 + playsewithpan SE_W077, SOUND_PAN_ATTACKER createsprite gUnknown_085922BC, 0x82, 15, 0, -16, 24, 35, -40 delay 0x8 - playsewithpan SE_W077, -64 + playsewithpan SE_W077, SOUND_PAN_ATTACKER createsprite gUnknown_085922BC, 0x82, 15, 0, 16, 24, 35, -37 delay 0xC - loopsewithpan SE_W039, +63, 0xA, 0x8 + loopsewithpan SE_W039, SOUND_PAN_TARGET, 0xA, 0x8 waitforvisualfinish end Move_EMBER: loadspritegfx 0x272D - loopsewithpan SE_W052, -64, 0x5, 0x2 + loopsewithpan SE_W052, SOUND_PAN_ATTACKER, 0x5, 0x2 createsprite gUnknown_085954D4, 0x82, 20, 0, -16, 24, 20, 1 delay 0x4 createsprite gUnknown_085954D4, 0x82, 20, 0, 0, 24, 20, 1 delay 0x4 createsprite gUnknown_085954D4, 0x82, 20, 0, 16, 24, 20, 1 delay 0x10 - playsewithpan SE_W172, +63 + playsewithpan SE_W172, SOUND_PAN_TARGET call AnimScript_82CA135 call AnimScript_82CA135 call AnimScript_82CA135 @@ -945,7 +945,7 @@ Move_MEGA_PUNCH: delay 0x2 createsprite gUnknown_08597274, 0x2, 1, 0, 0, 16, RGB_BLACK setalpha 0x80C - playsewithpan SE_W025, +63 + playsewithpan SE_W025, SOUND_PAN_TARGET createsprite gUnknown_08595F48, 0x3, 0, 0, 0, 50 createvisualtask sub_8116620, 0xA, 4, 2, 0, 7, 0x7FFF delay 0x32 @@ -954,7 +954,7 @@ Move_MEGA_PUNCH: createvisualtask sub_80D52D0, 0x2, 1, 4, 0, 22, 1 createvisualtask sub_8116620, 0xA, 4, 2, 0, 0, 0x7FFF createsprite gUnknown_0859728C, 0x2, 31, 3, 1, 0, 8, 0, 0 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET waitforvisualfinish clearmonbg ANIM_TARGET blendoff @@ -993,11 +993,11 @@ Move_MEGA_KICK: delay 0x2 createsprite gUnknown_08597274, 0x2, 1, 0, 0, 16, RGB_BLACK setalpha 0x80C - playsewithpan SE_W025, +63 + playsewithpan SE_W025, SOUND_PAN_TARGET createsprite gUnknown_08595F48, 0x3, 0, 0, 1, 50 createvisualtask sub_8116620, 0xA, 4, 2, 0, 7, 0x7FFF delay 0x32 - playsewithpan SE_W025B, +63 + playsewithpan SE_W025B, SOUND_PAN_TARGET call AnimScript_82CA1E9 createsprite gUnknown_08597358, 0x2, 0, 0, 1, 0 createvisualtask sub_80D52D0, 0x2, 1, 4, 0, 22, 1 @@ -1020,7 +1020,7 @@ Move_COMET_PUNCH: AnimScript_82CA2D7: createvisualtask sub_80D51AC, 0x2, 1, 3, 0, 6, 1 - playsewithpan SE_W004, +63 + playsewithpan SE_W004, SOUND_PAN_TARGET waitforvisualfinish clearmonbg ANIM_TARGET blendoff @@ -1053,7 +1053,7 @@ Move_SONIC_BOOM: end AnimScript_82CA372: - playsewithpan SE_W013B, -64 + playsewithpan SE_W013B, SOUND_PAN_ATTACKER createsprite gUnknown_08593398, 0x82, 16, 0, 0, 0, 15 delay 0x4 return @@ -1070,7 +1070,7 @@ Move_THUNDER_SHOCK: waitforvisualfinish delay 0xA createvisualtask sub_810A7DC, 0x5, 0, -44, 0 - playsewithpan SE_W085, +63 + playsewithpan SE_W085, SOUND_PAN_TARGET delay 0x9 createvisualtask sub_8116620, 0xA, 4, 0, 0, 13, 0 waitforvisualfinish @@ -1092,13 +1092,13 @@ Move_THUNDERBOLT: waitforvisualfinish delay 0xA createvisualtask sub_810A7DC, 0x5, 24, -52, 0 - playsewithpan SE_W085, +63 + playsewithpan SE_W085, SOUND_PAN_TARGET delay 0x7 createvisualtask sub_810A7DC, 0x5, -24, -52, 0 - playsewithpan SE_W085, +63 + playsewithpan SE_W085, SOUND_PAN_TARGET delay 0x7 createvisualtask sub_810A7DC, 0x5, 0, -60, 1 - playsewithpan SE_W085, +63 + playsewithpan SE_W085, SOUND_PAN_TARGET delay 0x9 createvisualtask sub_8116620, 0xA, 4, 0, 0, 13, 0 waitforvisualfinish @@ -1114,7 +1114,7 @@ Move_THUNDERBOLT: createsprite gUnknown_085957F8, 0x84, 0, 0, 16, 44, 96, 40, 1, -32765 createsprite gUnknown_085957F8, 0x84, 0, 0, 16, 44, 160, 40, 0, -32765 createsprite gUnknown_085957F8, 0x84, 0, 0, 16, 44, 224, 40, 2, -32765 - playsewithpan SE_W063, +63 + playsewithpan SE_W063, SOUND_PAN_TARGET delay 0x0 createvisualtask sub_8116620, 0xA, 1, 0, 2, 2, 0 delay 0x6 @@ -1125,7 +1125,7 @@ Move_THUNDERBOLT: createvisualtask sub_8116620, 0xA, 1, 0, 6, 6, 0 waitforvisualfinish delay 0x14 - waitplaysewithpan SE_W085B, +63, 0x13 + waitplaysewithpan SE_W085B, SOUND_PAN_TARGET, 0x13 call AnimScript_82D7BEA waitforvisualfinish delay 0x14 @@ -1141,9 +1141,9 @@ Move_THUNDER_WAVE: waitforvisualfinish delay 0xA createvisualtask sub_810A7DC, 0x5, 0, -48, 0 - playsewithpan SE_W086, +63 + playsewithpan SE_W086, SOUND_PAN_TARGET delay 0x14 - loopsewithpan SE_W085B, +63, 0xA, 0x4 + loopsewithpan SE_W085B, SOUND_PAN_TARGET, 0xA, 0x4 createsprite gUnknown_08595840, 0x82, -16, -16 delay 0x4 createsprite gUnknown_08595840, 0x82, -16, 0 @@ -1171,24 +1171,24 @@ AnimScript_82CA648: createsprite gUnknown_08597358, 0x82, -20, -20, 1, 2 createsprite gUnknown_08595E98, 0x83, -20, -12, 8, 1, 0 createvisualtask sub_80D51AC, 0x2, 1, 3, 0, 6, 1 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET delay 0x8 createsprite gUnknown_08597358, 0x82, 8, 0, 1, 2 createsprite gUnknown_08595E98, 0x83, 8, 8, 8, 1, 0 createvisualtask sub_80D51AC, 0x2, 1, 3, 0, 6, 1 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET goto AnimScript_82CA643 AnimScript_82CA6B9: createsprite gUnknown_08597358, 0x82, 12, -20, 1, 2 createsprite gUnknown_08595E98, 0x83, 12, -12, 8, 1, 0 createvisualtask sub_80D51AC, 0x2, 1, 3, 0, 6, 1 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET delay 0x8 createsprite gUnknown_08597358, 0x82, -12, 0, 1, 2 createsprite gUnknown_08595E98, 0x83, -12, 8, 8, 1, 0 createvisualtask sub_80D51AC, 0x2, 1, 3, 0, 6, 1 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET goto AnimScript_82CA643 Move_STOMP: @@ -1196,19 +1196,19 @@ Move_STOMP: loadspritegfx 0x2797 monbg ANIM_TARGET setalpha 0x80C - playsewithpan SE_W104, +63 + playsewithpan SE_W104, SOUND_PAN_TARGET createsprite gUnknown_08595F60, 0x3, 0, -32, 15 delay 0x13 createsprite gUnknown_08597358, 0x2, 0, -8, 1, 1 createvisualtask sub_80D51AC, 0x2, 1, 0, 4, 9, 1 - playsewithpan SE_W025B, +63 + playsewithpan SE_W025B, SOUND_PAN_TARGET waitforvisualfinish clearmonbg ANIM_TARGET blendoff end Move_TAIL_WHIP: - loopsewithpan SE_W039, -64, 0x18, 0x3 + loopsewithpan SE_W039, SOUND_PAN_ATTACKER, 0x18, 0x3 createvisualtask sub_80D5830, 0x2, 0, 12, 4, 2, 3 waitforvisualfinish end @@ -1217,7 +1217,7 @@ Move_CUT: loadspritegfx 0x279A monbg ANIM_TARGET setalpha 0x80C - playsewithpan SE_W015, +63 + playsewithpan SE_W015, SOUND_PAN_TARGET createsprite gUnknown_08592A1C, 0x2, 40, -32, 0 delay 0x5 createvisualtask sub_80D51AC, 0x2, 1, 0, 3, 10, 1 @@ -1229,14 +1229,14 @@ Move_CUT: Move_HIDDEN_POWER: loadspritegfx 0x27E9 - playsewithpan SE_W036, -64 + playsewithpan SE_W036, SOUND_PAN_ATTACKER createvisualtask sub_80D6064, 0x5, -7, -7, 11, 0, 0 waitforvisualfinish delay 0x1E createvisualtask sub_80A7B98, 0x5, 0, RGB(31, 31, 19), 12, 5, 1 delay 0x4 createvisualtask sub_80D6064, 0x5, -7, -7, 11, 0, 0 - playsewithpan SE_W179, -64 + playsewithpan SE_W179, SOUND_PAN_ATTACKER createsprite gUnknown_08593A04, 0x2, 26, 0 createsprite gUnknown_08593A04, 0x2, 26, 42 createsprite gUnknown_08593A04, 0x2, 26, 84 @@ -1245,7 +1245,7 @@ Move_HIDDEN_POWER: createsprite gUnknown_08593A04, 0x2, 26, 210 delay 0x34 setarg 0x7, 0xFFFF - playsewithpan SE_W115, -64 + playsewithpan SE_W115, SOUND_PAN_ATTACKER createvisualtask sub_80D6064, 0x5, -7, -7, 11, 0, 0 createsprite gUnknown_08593A1C, 0x82, 0 createsprite gUnknown_08593A1C, 0x82, 32 @@ -1261,13 +1261,13 @@ Move_REVERSAL: loadspritegfx 0x27FC loadspritegfx 0x279F loadspritegfx 0x2797 - playsewithpan SE_W197, -64 + playsewithpan SE_W197, SOUND_PAN_ATTACKER createsprite gUnknown_0859728C, 0x2, 31, 3, 3, 0x7FFF, 8, 0, 0 waitforvisualfinish delay 0x1E createvisualtask sub_8115A04, 0x2, 31, 3, 2, 0, 10, 0x7FFF delay 0xA - playsewithpan SE_W179, -64 + playsewithpan SE_W179, SOUND_PAN_ATTACKER createsprite gUnknown_085CE5D8, 0x2, 26, 0 createsprite gUnknown_085CE5D8, 0x2, 26, 42 createsprite gUnknown_085CE5D8, 0x2, 26, 84 @@ -1278,7 +1278,7 @@ Move_REVERSAL: delay 0x14 createsprite gUnknown_0857FE28, 0x2, 6, 4 delay 0x8 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET createsprite gUnknown_0859728C, 0x2, 31, 3, 1, 0x7FFF, 8, 0, 0 createsprite gUnknown_08595E98, 0x84, 0, 0, 10, 1, 0 createsprite gUnknown_08597358, 0x83, 0, 0, 1, 1 @@ -1304,13 +1304,13 @@ AnimScript_82CA996: end AnimScript_82CA99F: - playsewithpan SE_W004, +63 + playsewithpan SE_W004, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x3, 0, 0, 1, 2 createvisualtask sub_80D6388, 0x5, 0, 1, 6, 1, 0 goto AnimScript_82CA996 AnimScript_82CA9C8: - playsewithpan SE_W004, +63 + playsewithpan SE_W004, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x3, 0, 0, 1, 1 createvisualtask sub_80D6388, 0x5, 0, 1, 6, 1, 0 goto AnimScript_82CA996 @@ -1323,7 +1323,7 @@ Move_SPIKE_CANNON: setalpha 0x80C createvisualtask sub_80D5C50, 0x5, 0, -4, 0, 4, 6, 8, 4 waitforvisualfinish - loopsewithpan SE_W013B, -64, 0x5, 0x3 + loopsewithpan SE_W013B, SOUND_PAN_ATTACKER, 0x5, 0x3 createsprite gUnknown_0857FE58, 0x2, 0, 0, 5 createsprite gUnknown_08596A44, 0x2, 10, -8, -8, -8, 20 createsprite gUnknown_08596A44, 0x2, 18, 0, 0, 0, 20 @@ -1333,7 +1333,7 @@ Move_SPIKE_CANNON: createsprite gUnknown_08597370, 0x3, 0, 0, 1, 2 createsprite gUnknown_08597370, 0x3, 8, 8, 1, 2 createvisualtask sub_80D52D0, 0x2, 1, 3, 0, 7, 1 - loopsewithpan SE_W030, +63, 0x5, 0x3 + loopsewithpan SE_W030, SOUND_PAN_TARGET, 0x5, 0x3 waitforvisualfinish clearmonbg ANIM_TARGET blendoff @@ -1343,7 +1343,7 @@ Move_SWORDS_DANCE: loadspritegfx 0x2715 monbg ANIM_ATTACKER setalpha 0x80C - playsewithpan SE_W014, -64 + playsewithpan SE_W014, SOUND_PAN_ATTACKER createvisualtask sub_80D5830, 0x2, 0, 16, 6, 1, 4 createsprite gUnknown_08593380, 0x2, 0, 0 delay 0x16 @@ -1359,12 +1359,12 @@ Move_PSYCH_UP: monbg ANIM_ATK_PARTNER createvisualtask sub_8115B0C, 0x2, 1, 2, 6, 1, 11, 0 setalpha 0x80C - loopsewithpan SE_W060B, -64, 0x5, 0xA + loopsewithpan SE_W060B, SOUND_PAN_ATTACKER, 0x5, 0xA createsprite gUnknown_08596548, 0x2, 0, 0, 0, 0 createvisualtask sub_80D5EB8, 0x5, 0, 5, 2560, 8, 0 delay 0x7F delay 0x4 - playsewithpan SE_W060, -64 + playsewithpan SE_W060, SOUND_PAN_ATTACKER createvisualtask sub_80D6064, 0x5, -5, -5, 10, 0, 1 createvisualtask sub_8116620, 0x9, 2, 2, 10, 0, 1023 delay 0x1E @@ -1382,7 +1382,7 @@ Move_DIZZY_PUNCH: call AnimScript_82CAC77 createsprite gUnknown_08595E98, 0x85, 16, 8, 20, 1, 0 createsprite gUnknown_08597358, 0x84, 16, 0, 1, 1 - playsewithpan SE_W004, +63 + playsewithpan SE_W004, SOUND_PAN_TARGET createsprite gUnknown_08595F78, 0x83, 16, 8, 160, -32 createsprite gUnknown_08595F78, 0x83, 16, 8, -256, -40 createsprite gUnknown_08595F78, 0x83, 16, 8, 128, -16 @@ -1393,7 +1393,7 @@ Move_DIZZY_PUNCH: call AnimScript_82CAC77 createsprite gUnknown_08595E98, 0x85, -16, -8, 20, 1, 0 createsprite gUnknown_08597358, 0x84, -16, -16, 1, 1 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET createsprite gUnknown_08595F78, 0x83, -16, -8, 160, -32 createsprite gUnknown_08595F78, 0x83, -16, -8, -256, -40 createsprite gUnknown_08595F78, 0x83, -16, -8, 128, -16 @@ -1413,7 +1413,7 @@ AnimScript_82CAC77: Move_FIRE_SPIN: loadspritegfx 0x272D - playsewithpan SE_W221B, +63 + playsewithpan SE_W221B, SOUND_PAN_TARGET createvisualtask sub_80D51AC, 0x5, 1, 0, 2, 47, 1 call AnimScript_82CACBF call AnimScript_82CACBF @@ -1440,7 +1440,7 @@ Move_FURY_CUTTER: loadspritegfx 0x279A monbg ANIM_TARGET setalpha 0x80C - playsewithpan SE_W013, +63 + playsewithpan SE_W013, SOUND_PAN_TARGET createvisualtask sub_8107144, 0x2 jumpargeq 0x7, 0x0, AnimScript_82CADA7 goto AnimScript_82CADB9 @@ -1496,19 +1496,19 @@ Move_SELF_DESTRUCT: end AnimScript_82CAE9F: - playsewithpan SE_W120, -64 + playsewithpan SE_W120, SOUND_PAN_ATTACKER createsprite gUnknown_0859371C, 0x3, 0, 0, 0, 1 delay 0x6 - playsewithpan SE_W120, -64 + playsewithpan SE_W120, SOUND_PAN_ATTACKER createsprite gUnknown_0859371C, 0x3, 24, -24, 0, 1 delay 0x6 - playsewithpan SE_W120, -64 + playsewithpan SE_W120, SOUND_PAN_ATTACKER createsprite gUnknown_0859371C, 0x3, -16, 16, 0, 1 delay 0x6 - playsewithpan SE_W120, -64 + playsewithpan SE_W120, SOUND_PAN_ATTACKER createsprite gUnknown_0859371C, 0x3, -24, -12, 0, 1 delay 0x6 - playsewithpan SE_W120, -64 + playsewithpan SE_W120, SOUND_PAN_ATTACKER createsprite gUnknown_0859371C, 0x3, 16, 16, 0, 1 delay 0x6 return @@ -1518,12 +1518,12 @@ Move_SLAM: loadspritegfx 0x2797 monbg ANIM_TARGET setalpha 0x80C - playsewithpan SE_W004, -64 + playsewithpan SE_W004, SOUND_PAN_ATTACKER createsprite gUnknown_0857FE70, 0x2, 0, 20, 3, 0, 4 delay 0x1 createsprite gUnknown_085928D0, 0x2, 0, 0 delay 0x3 - playsewithpan SE_W025B, +63 + playsewithpan SE_W025B, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x3, 0, 0, 1, 1 createsprite gUnknown_0857FE70, 0x2, 1, -12, 10, 0, 3 createsprite gUnknown_0857FE58, 0x2, 0, 0, 5 @@ -1539,10 +1539,10 @@ Move_SLAM: Move_VINE_WHIP: loadspritegfx 0x282F - playsewithpan SE_W026, -64 + playsewithpan SE_W026, SOUND_PAN_ATTACKER createsprite gUnknown_0857FE28, 0x2, 4, 6 delay 0x6 - playsewithpan SE_W010, +63 + playsewithpan SE_W010, SOUND_PAN_TARGET createsprite gUnknown_085928E8, 0x82, 0, 0 delay 0x6 createvisualtask sub_80D52D0, 0x2, 1, 2, 0, 6, 1 @@ -1552,12 +1552,12 @@ Move_DRILL_PECK: loadspritegfx 0x2797 loadspritegfx 0x27B2 createsprite gUnknown_08592CD8, 0x2, 0 - playsewithpan SE_W029, -64 + playsewithpan SE_W029, SOUND_PAN_ATTACKER waitforvisualfinish delay 0x2 createsprite gUnknown_08592CD8, 0x2, 1 delay 0x2 - loopsewithpan SE_W030, +63, 0x4, 0x8 + loopsewithpan SE_W030, SOUND_PAN_TARGET, 0x4, 0x8 createvisualtask sub_810EB88, 0x5 createvisualtask sub_80D52D0, 0x2, 1, 4, 0, 18, 1 waitforvisualfinish @@ -1575,28 +1575,28 @@ Move_WATERFALL: setalpha 0x80C createvisualtask sub_80D51AC, 0x5, 0, 0, 2, 23, 1 delay 0x5 - playsewithpan SE_W152, -64 + playsewithpan SE_W152, SOUND_PAN_ATTACKER createsprite gUnknown_08595238, 0x2, 10, 10, 25, 0 delay 0x4 - playsewithpan SE_W152, -64 + playsewithpan SE_W152, SOUND_PAN_ATTACKER createsprite gUnknown_08595238, 0x2, -15, 0, 25, 0 delay 0x4 - playsewithpan SE_W152, -64 + playsewithpan SE_W152, SOUND_PAN_ATTACKER createsprite gUnknown_08595238, 0x2, 20, 10, 25, 0 delay 0x4 - playsewithpan SE_W152, -64 + playsewithpan SE_W152, SOUND_PAN_ATTACKER createsprite gUnknown_08595238, 0x2, 0, -10, 25, 0 delay 0x4 - playsewithpan SE_W152, -64 + playsewithpan SE_W152, SOUND_PAN_ATTACKER createsprite gUnknown_08595238, 0x2, -10, 15, 25, 0 delay 0x4 - playsewithpan SE_W152, -64 + playsewithpan SE_W152, SOUND_PAN_ATTACKER createsprite gUnknown_08595238, 0x2, 25, 20, 25, 0 delay 0x4 - playsewithpan SE_W152, -64 + playsewithpan SE_W152, SOUND_PAN_ATTACKER createsprite gUnknown_08595238, 0x2, -20, 20, 25, 0 delay 0x4 - playsewithpan SE_W152, -64 + playsewithpan SE_W152, SOUND_PAN_ATTACKER createsprite gUnknown_08595238, 0x2, 12, 0, 25, 0 waitforvisualfinish delay 0xA @@ -1609,7 +1609,7 @@ Move_WATERFALL: end AnimScript_82CB102: - playsewithpan SE_W127, +63 + playsewithpan SE_W127, SOUND_PAN_TARGET createvisualtask sub_80D52D0, 0x5, 1, 4, 0, 17, 1 createsprite gUnknown_08597388, 0x3, 0, 20, 1, 1 createsprite gUnknown_08595250, 0x4, 0, 20 @@ -1665,26 +1665,26 @@ Move_EXPLOSION: end AnimScript_82CB312: - playsewithpan SE_W153, -64 + playsewithpan SE_W153, SOUND_PAN_ATTACKER createsprite gUnknown_0859371C, 0x3, 0, 0, 0, 1 delay 0x6 - playsewithpan SE_W153, -64 + playsewithpan SE_W153, SOUND_PAN_ATTACKER createsprite gUnknown_0859371C, 0x3, 24, -24, 0, 1 delay 0x6 - playsewithpan SE_W153, -64 + playsewithpan SE_W153, SOUND_PAN_ATTACKER createsprite gUnknown_0859371C, 0x3, -16, 16, 0, 1 delay 0x6 - playsewithpan SE_W153, -64 + playsewithpan SE_W153, SOUND_PAN_ATTACKER createsprite gUnknown_0859371C, 0x3, -24, -12, 0, 1 delay 0x6 - playsewithpan SE_W153, -64 + playsewithpan SE_W153, SOUND_PAN_ATTACKER createsprite gUnknown_0859371C, 0x3, 16, 16, 0, 1 delay 0x6 return Move_DEFENSE_CURL: loadspritegfx 0x27FA - loopsewithpan SE_W161, -64, 0x12, 0x3 + loopsewithpan SE_W161, SOUND_PAN_ATTACKER, 0x12, 0x3 createvisualtask sub_811489C, 0x5, 0, 0 createvisualtask sub_815B338, 0x5 waitforvisualfinish @@ -1698,7 +1698,7 @@ Move_PROTECT: loadspritegfx 0x2828 monbg ANIM_ATK_PARTNER monbgprio_28 ANIM_ATTACKER - waitplaysewithpan SE_W115, -64, 0x10 + waitplaysewithpan SE_W115, SOUND_PAN_ATTACKER, 0x10 createsprite gUnknown_08592ADC, 0x2, 24, 0, 90 waitforvisualfinish clearmonbg ANIM_ATK_PARTNER @@ -1710,7 +1710,7 @@ Move_DETECT: waitforvisualfinish createvisualtask sub_8116620, 0xA, 2, 1, 0, 9, 0x7FFF delay 0x12 - playsewithpan SE_W197, -64 + playsewithpan SE_W197, SOUND_PAN_ATTACKER createsprite gUnknown_0853EE84, 0xD, 20, -20 waitforvisualfinish delay 0xA @@ -1737,15 +1737,15 @@ AnimScript_82CB45F: end AnimScript_82CB464: - playsewithpan SE_W082, -64 + playsewithpan SE_W082, SOUND_PAN_ATTACKER createvisualtask sub_80D52D0, 0x5, 0, 1, 0, 15, 1 createvisualtask sub_8116620, 0xA, 2, 3, 0, 9, 31 waitforvisualfinish delay 0x14 - playsewithpan SE_W207B, -64 + playsewithpan SE_W207B, SOUND_PAN_ATTACKER createsprite gUnknown_0859368C, 0x2, 0, 20, -28 waitforvisualfinish - playsewithpan SE_W207B, -64 + playsewithpan SE_W207B, SOUND_PAN_ATTACKER createsprite gUnknown_0859368C, 0x2, 0, 20, -28 waitforvisualfinish delay 0xA @@ -1753,47 +1753,47 @@ AnimScript_82CB464: delay 0x5 createvisualtask sub_80D52D0, 0x5, 1, 4, 0, 30, 1 createsprite gUnknown_08597358, 0x3, 0, 0, 1, 0 - playsewithpan SE_W004, +63 + playsewithpan SE_W004, SOUND_PAN_TARGET delay 0x5 createsprite gUnknown_08597358, 0x3, 24, 8, 1, 0 - playsewithpan SE_W004, +63 + playsewithpan SE_W004, SOUND_PAN_TARGET delay 0x5 createsprite gUnknown_08597358, 0x3, -24, -16, 1, 0 - playsewithpan SE_W004, +63 + playsewithpan SE_W004, SOUND_PAN_TARGET delay 0x5 createsprite gUnknown_08597358, 0x3, 8, 4, 1, 0 - playsewithpan SE_W004, +63 + playsewithpan SE_W004, SOUND_PAN_TARGET delay 0x5 createsprite gUnknown_08597358, 0x3, -16, 19, 1, 0 - playsewithpan SE_W004, +63 + playsewithpan SE_W004, SOUND_PAN_TARGET delay 0x5 createsprite gUnknown_08597358, 0x3, 18, -18, 1, 0 - playsewithpan SE_W004, +63 + playsewithpan SE_W004, SOUND_PAN_TARGET waitforvisualfinish createvisualtask sub_8116620, 0xA, 2, 3, 9, 0, 31 goto AnimScript_82CB45F AnimScript_82CB56A: - playsewithpan SE_W082, -64 + playsewithpan SE_W082, SOUND_PAN_ATTACKER createvisualtask sub_80D52D0, 0x5, 0, 1, 0, 15, 1 createvisualtask sub_8116620, 0xA, 2, 3, 0, 9, 31 waitforvisualfinish delay 0x14 - playsewithpan SE_W207B, -64 + playsewithpan SE_W207B, SOUND_PAN_ATTACKER createsprite gUnknown_0859368C, 0x2, 0, 20, -28 waitforvisualfinish delay 0x5 createvisualtask sub_815C3A8, 0x5 delay 0x7 - playsewithpan SE_W004, +63 + playsewithpan SE_W004, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x3, 0, 8, 1, 1 createvisualtask sub_80D52D0, 0x5, 1, 4, 0, 6, 1 delay 0xE - playsewithpan SE_W004, +63 + playsewithpan SE_W004, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x3, 12, -6, 1, 1 createvisualtask sub_80D52D0, 0x5, 1, 4, 0, 6, 1 delay 0xE - playsewithpan SE_W004, +63 + playsewithpan SE_W004, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x3, -12, -6, 1, 1 createvisualtask sub_80D52D0, 0x5, 1, 4, 0, 6, 1 waitforvisualfinish @@ -1801,19 +1801,19 @@ AnimScript_82CB56A: goto AnimScript_82CB45F AnimScript_82CB637: - playsewithpan SE_W207B, -64 + playsewithpan SE_W207B, SOUND_PAN_ATTACKER createsprite gUnknown_0859368C, 0x2, 0, 20, -28 waitforvisualfinish delay 0x5 createsprite gUnknown_0857FE28, 0x2, 4, 4 delay 0x6 - playsewithpan SE_W004, +63 + playsewithpan SE_W004, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x2, 10, 4, 1, 1 createvisualtask sub_80D52D0, 0x2, 1, 3, 0, 6, 1 waitforvisualfinish createsprite gUnknown_0857FE28, 0x2, 4, 4 delay 0x6 - playsewithpan SE_W004, +63 + playsewithpan SE_W004, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x2, -10, -4, 1, 2 createvisualtask sub_80D52D0, 0x2, 1, 3, 0, 6, 1 goto AnimScript_82CB45F @@ -1824,7 +1824,7 @@ AnimScript_82CB6B3: delay 0xA createsprite gUnknown_0857FE28, 0x2, 10, 2 delay 0xC - playsewithpan SE_W004, +63 + playsewithpan SE_W004, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x2, 0, 0, 1, 2 createvisualtask sub_80D52D0, 0x2, 1, 1, 0, 6, 1 goto AnimScript_82CB45F @@ -1833,14 +1833,14 @@ Move_SAFEGUARD: loadspritegfx 0x2804 monbg ANIM_ATK_PARTNER setalpha 0x808 - playsewithpan SE_W208, -64 + playsewithpan SE_W208, SOUND_PAN_ATTACKER createsprite gUnknown_08593C64, 0x2 delay 0x4 createsprite gUnknown_08593C64, 0x2 delay 0x4 createsprite gUnknown_08593C64, 0x2 waitforvisualfinish - playsewithpan SE_REAPOKE, -64 + playsewithpan SE_REAPOKE, SOUND_PAN_ATTACKER createvisualtask sub_8115A04, 0x2, 10, 0, 2, 0, 10, 0x7FFF waitforvisualfinish clearmonbg ANIM_ATK_PARTNER @@ -1876,7 +1876,7 @@ Move_VICE_GRIP: loadspritegfx 0x2797 monbg ANIM_DEF_PARTNER setalpha 0x80C - playsewithpan SE_W011, +63 + playsewithpan SE_W011, SOUND_PAN_TARGET createsprite gUnknown_08593590, 0x2, 0 createsprite gUnknown_08593590, 0x2, 1 delay 0x9 @@ -1894,7 +1894,7 @@ Move_GUILLOTINE: setalpha 0x80C fadetobgfromset BG_GUILLOTINE_OPPONENT, BG_GUILLOTINE_PLAYER, BG_GUILLOTINE_CONTESTS waitbgfadein - playsewithpan SE_W011, +63 + playsewithpan SE_W011, SOUND_PAN_TARGET createsprite gUnknown_085935D0, 0x2, 0 createsprite gUnknown_085935D0, 0x2, 1 createvisualtask sub_8116620, 0xA, 4, 2, 0, 16, 0 @@ -1904,7 +1904,7 @@ Move_GUILLOTINE: createvisualtask sub_80D52D0, 0x5, 1, 4, 0, 8, 1 createsprite gUnknown_08597358, 0x3, 0, 0, 1, 0 createsprite gUnknown_0859728C, 0x2, 31, 3, 1, 0, 8, 0, 0 - playsewithpan SE_W013, +63 + playsewithpan SE_W013, SOUND_PAN_TARGET waitforvisualfinish clearmonbg ANIM_DEF_PARTNER blendoff @@ -1918,10 +1918,10 @@ Move_PAY_DAY: monbg ANIM_TARGET monbgprio_28 ANIM_TARGET setalpha 0x80C - playsewithpan SE_W013B, -64 + playsewithpan SE_W013B, SOUND_PAN_ATTACKER createsprite gUnknown_085934D8, 0x2, 20, 0, 0, 0, 1152 waitforvisualfinish - playsewithpan SE_W006, +63 + playsewithpan SE_W006, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x1, 0, 0, 1, 2 createsprite gUnknown_085934F0, 0x2 createvisualtask sub_80D52D0, 0x2, 1, 1, 0, 6, 1 @@ -1932,7 +1932,7 @@ Move_PAY_DAY: Move_OUTRAGE: loadspritegfx 0x272D - loopsewithpan SE_W082, -64, 0x8, 0x3 + loopsewithpan SE_W082, SOUND_PAN_ATTACKER, 0x8, 0x3 createvisualtask sub_8115A04, 0x2, 7, 2, 5, 3, 8, 430 createvisualtask sub_80D5830, 0x2, 0, 12, 6, 5, 4 delay 0x0 @@ -1981,7 +1981,7 @@ Move_SPARK: loadspritegfx 0x271B delay 0x0 createvisualtask sub_8115A04, 0x2, 3, -31, 1, 5, 5, 23551 - playsewithpan SE_W085B, -64 + playsewithpan SE_W085B, SOUND_PAN_ATTACKER createsprite gUnknown_0859574C, 0x0, 32, 24, 190, 12, 0, 1, 0 delay 0x0 createsprite gUnknown_0859574C, 0x0, 80, 24, 22, 12, 0, 1, 0 @@ -1990,7 +1990,7 @@ Move_SPARK: createvisualtask sub_8115A04, 0x2, 3, -31, 1, 0, 0, 23551 delay 0xA createvisualtask sub_8115A04, 0x2, 3, -31, 1, 5, 5, 23551 - playsewithpan SE_W085B, -64 + playsewithpan SE_W085B, SOUND_PAN_ATTACKER createsprite gUnknown_0859574C, 0x0, 100, 24, 60, 10, 0, 1, 0 createsprite gUnknown_0859574C, 0x0, 170, 24, 42, 11, 0, 1, 1 delay 0x0 @@ -1999,7 +1999,7 @@ Move_SPARK: createvisualtask sub_8115A04, 0x2, 3, -31, 1, 0, 0, 23551 delay 0x14 createvisualtask sub_8115A04, 0x2, 3, -31, 1, 7, 7, 23551 - playsewithpan SE_W085B, -64 + playsewithpan SE_W085B, SOUND_PAN_ATTACKER createsprite gUnknown_085957F8, 0x4, 0, 0, 32, 12, 0, 20, 0, 0 createsprite gUnknown_085957F8, 0x4, 0, 0, 32, 12, 64, 20, 1, 0 createsprite gUnknown_085957F8, 0x4, 0, 0, 32, 12, 128, 20, 0, 0 @@ -2013,7 +2013,7 @@ Move_SPARK: createvisualtask sub_8115A04, 0x2, 3, -31, 1, 0, 0, 23551 createsprite gUnknown_0857FE28, 0x2, 4, 4 delay 0x4 - playsewithpan SE_W063, +63 + playsewithpan SE_W063, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x82, 0, 0, 1, 2 createvisualtask sub_80D51AC, 0x2, 1, 3, 0, 6, 1 waitforvisualfinish @@ -2024,12 +2024,12 @@ Move_SPARK: Move_ATTRACT: loadspritegfx 0x27E8 - loopsewithpan SE_W204, -64, 0xC, 0x3 + loopsewithpan SE_W204, SOUND_PAN_ATTACKER, 0xC, 0x3 createvisualtask sub_80D5EB8, 0x5, 0, 12, 4096, 4, 0 delay 0xF createsprite gUnknown_085939A0, 0x83, 20, -8 waitforvisualfinish - playsewithpan SE_W213, +63 + playsewithpan SE_W213, SOUND_PAN_TARGET createsprite gUnknown_085939B8, 0x83, 160, -32 createsprite gUnknown_085939B8, 0x83, -256, -40 createsprite gUnknown_085939B8, 0x83, 128, -16 @@ -2060,7 +2060,7 @@ Move_GROWTH: AnimScript_82CBDC0: createvisualtask sub_8115A04, 0x2, 2, 0, 2, 0, 8, 0x7FFF - playsewithpan SE_W036, -64 + playsewithpan SE_W036, SOUND_PAN_ATTACKER createvisualtask sub_80D6064, 0x5, -3, -3, 16, 0, 0 return @@ -2073,12 +2073,12 @@ Move_WHIRLWIND: createsprite gUnknown_085963D4, 0x2, 0, 24, 1, 60, 4 createsprite gUnknown_085963D4, 0x2, 0, 32, 1, 60, 0 delay 0x5 - loopsewithpan SE_W104, +63, 0xA, 0x4 + loopsewithpan SE_W104, SOUND_PAN_TARGET, 0xA, 0x4 createvisualtask sub_80D52D0, 0x2, 1, 4, 0, 15, 1 delay 0x1D createvisualtask sub_80D5830, 0x2, 1, 12, 6, 1, 5 delay 0x7 - playsewithpan SE_W081, +63 + playsewithpan SE_W081, SOUND_PAN_TARGET createvisualtask sub_80D5DB0, 0x5, 1, 8 waitforvisualfinish end @@ -2093,7 +2093,7 @@ Move_CONFUSE_RAY: createsprite gUnknown_08596D14, 0x82, 28, 0, 288 waitforvisualfinish setalpha 0x808 - playsewithpan SE_W081B, +63 + playsewithpan SE_W081B, SOUND_PAN_TARGET createsprite gUnknown_08596D2C, 0x82, 0, -16 waitforvisualfinish delay 0x0 @@ -2118,10 +2118,10 @@ Move_LOCK_ON: Move_MEAN_LOOK: loadspritegfx 0x27CB monbg ANIM_DEF_PARTNER - playsewithpan SE_W060, -64 + playsewithpan SE_W060, SOUND_PAN_ATTACKER createsprite gUnknown_08597274, 0x2, 1, 1, 0, 16, RGB_BLACK - loopsewithpan SE_W109, +63, 0xF, 0x4 - waitplaysewithpan SE_W043, +63, 0x55 + loopsewithpan SE_W109, SOUND_PAN_TARGET, 0xF, 0x4 + waitplaysewithpan SE_W043, SOUND_PAN_TARGET, 0x55 createsprite gUnknown_085CE104, 0x2 delay 0x78 createsprite gUnknown_08597274, 0x2, 1, 2, 16, 0, RGB_BLACK @@ -2134,20 +2134,20 @@ Move_ROCK_THROW: loadspritegfx 0x274A createsprite gUnknown_085972D8, 0x82, 6, 1, 15, 1 createsprite gUnknown_08596B04, 0x82, 0, 1, 0, 0 - playsewithpan SE_W088, +63 + playsewithpan SE_W088, SOUND_PAN_TARGET delay 0x6 createsprite gUnknown_08596B04, 0x82, 19, 1, 10, 0 - playsewithpan SE_W088, +63 + playsewithpan SE_W088, SOUND_PAN_TARGET delay 0x6 createsprite gUnknown_08596B04, 0x82, -23, 2, -10, 0 - playsewithpan SE_W088, +63 + playsewithpan SE_W088, SOUND_PAN_TARGET createvisualtask sub_80D51AC, 0x2, 1, 0, 5, 20, 1 delay 0x6 createsprite gUnknown_08596B04, 0x82, -15, 1, -10, 0 - playsewithpan SE_W088, +63 + playsewithpan SE_W088, SOUND_PAN_TARGET delay 0x6 createsprite gUnknown_08596B04, 0x82, 23, 2, 10, 0 - playsewithpan SE_W088, +63 + playsewithpan SE_W088, SOUND_PAN_TARGET waitforvisualfinish end @@ -2156,16 +2156,16 @@ Move_ROCK_SLIDE: monbg ANIM_DEF_PARTNER createsprite gUnknown_085972D8, 0x2, 7, 1, 11, 1 createsprite gUnknown_08596B04, 0x82, -5, 1, -5, 1 - playsewithpan SE_W088, +63 + playsewithpan SE_W088, SOUND_PAN_TARGET delay 0x2 createsprite gUnknown_08596B04, 0x82, 5, 0, 6, 1 - playsewithpan SE_W088, +63 + playsewithpan SE_W088, SOUND_PAN_TARGET delay 0x2 createsprite gUnknown_08596B04, 0x82, 19, 1, 10, 1 - playsewithpan SE_W088, +63 + playsewithpan SE_W088, SOUND_PAN_TARGET delay 0x2 createsprite gUnknown_08596B04, 0x82, -23, 2, -10, 1 - playsewithpan SE_W088, +63 + playsewithpan SE_W088, SOUND_PAN_TARGET createvisualtask sub_80D51AC, 0x2, 1, 0, 5, 50, 1 createvisualtask sub_80D51AC, 0x2, 3, 0, 5, 50, 1 delay 0x2 @@ -2177,28 +2177,28 @@ Move_ROCK_SLIDE: AnimScript_82CC083: createsprite gUnknown_08596B04, 0x82, -20, 0, -10, 1 - playsewithpan SE_W088, +63 + playsewithpan SE_W088, SOUND_PAN_TARGET delay 0x2 createsprite gUnknown_08596B04, 0x82, 28, 1, 10, 1 - playsewithpan SE_W088, +63 + playsewithpan SE_W088, SOUND_PAN_TARGET delay 0x2 createsprite gUnknown_08596B04, 0x82, -10, 1, -5, 1 - playsewithpan SE_W088, +63 + playsewithpan SE_W088, SOUND_PAN_TARGET delay 0x2 createsprite gUnknown_08596B04, 0x82, 10, 0, 6, 1 - playsewithpan SE_W088, +63 + playsewithpan SE_W088, SOUND_PAN_TARGET delay 0x2 createsprite gUnknown_08596B04, 0x82, 24, 1, 10, 1 - playsewithpan SE_W088, +63 + playsewithpan SE_W088, SOUND_PAN_TARGET delay 0x2 createsprite gUnknown_08596B04, 0x82, -32, 2, -10, 1 - playsewithpan SE_W088, +63 + playsewithpan SE_W088, SOUND_PAN_TARGET delay 0x2 createsprite gUnknown_08596B04, 0x82, -20, 0, -10, 1 - playsewithpan SE_W088, +63 + playsewithpan SE_W088, SOUND_PAN_TARGET delay 0x2 createsprite gUnknown_08596B04, 0x82, 30, 2, 10, 1 - playsewithpan SE_W088, +63 + playsewithpan SE_W088, SOUND_PAN_TARGET delay 0x2 return @@ -2211,7 +2211,7 @@ Move_THIEF: setalpha 0x80C createsprite gUnknown_0857FE28, 0x2, 6, 4 delay 0x6 - playsewithpan SE_W233, +63 + playsewithpan SE_W233, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x2, 0, 0, 1, 2 createvisualtask sub_80D52D0, 0x2, 1, 1, 0, 8, 1 waitforvisualfinish @@ -2242,22 +2242,22 @@ Move_BUBBLE_BEAM: AnimScript_82CC1AD: createsprite gUnknown_08595068, 0x2, 18, 0, 35, 70, 0, 256, 50 - playsewithpan SE_W145, -64 + playsewithpan SE_W145, SOUND_PAN_ATTACKER delay 0x3 createsprite gUnknown_08595068, 0x2, 18, 0, 20, 40, -10, 256, 50 - playsewithpan SE_W145, -64 + playsewithpan SE_W145, SOUND_PAN_ATTACKER delay 0x3 createsprite gUnknown_08595068, 0x2, 18, 0, 10, -60, 0, 256, 50 - playsewithpan SE_W145, -64 + playsewithpan SE_W145, SOUND_PAN_ATTACKER delay 0x3 createsprite gUnknown_08595068, 0x2, 18, 0, 15, -15, 10, 256, 50 - playsewithpan SE_W145, -64 + playsewithpan SE_W145, SOUND_PAN_ATTACKER delay 0x3 createsprite gUnknown_08595068, 0x2, 18, 0, 30, 10, -10, 256, 50 - playsewithpan SE_W145, -64 + playsewithpan SE_W145, SOUND_PAN_ATTACKER delay 0x3 createsprite gUnknown_08595068, 0x2, 18, 0, 25, -30, 10, 256, 50 - playsewithpan SE_W145, -64 + playsewithpan SE_W145, SOUND_PAN_ATTACKER delay 0x3 return @@ -2271,11 +2271,11 @@ Move_ICY_WIND: playsewithpan SE_W196, 0 waitbgfadein waitforvisualfinish - panse_1B SE_W016, -64, +63, +2, 0x0 + panse_1B SE_W016, SOUND_PAN_ATTACKER, SOUND_PAN_TARGET, +2, 0x0 call AnimScript_82CC2A8 delay 0x5 call AnimScript_82CC2A8 - playsewithpan SE_W016B, +63 + playsewithpan SE_W016B, SOUND_PAN_TARGET delay 0x37 call AnimScript_82D78F8 waitforvisualfinish @@ -2301,12 +2301,12 @@ AnimScript_82CC2A8: Move_SMOKESCREEN: loadspritegfx 0x2720 loadspritegfx 0x2721 - playsewithpan SE_W104, -64 + playsewithpan SE_W104, SOUND_PAN_ATTACKER createsprite gUnknown_085CE050, 0x82, 20, 0, 0, 0, 35, -25 waitforvisualfinish createvisualtask sub_815A160, 0x2 delay 0x2 - playsewithpan SE_W028, +63 + playsewithpan SE_W028, SOUND_PAN_TARGET createsprite gUnknown_085CE038, 0x84, 0, -12, 104, 0, 75 createsprite gUnknown_085CE038, 0x84, 0, -12, 72, 1, 75 createsprite gUnknown_085CE038, 0x84, 0, -6, 56, 1, 75 @@ -2328,7 +2328,7 @@ Move_CONVERSION: monbgprio_28 ANIM_ATTACKER setalpha 0x10 delay 0x0 - playsewithpan SE_W129, -64 + playsewithpan SE_W129, SOUND_PAN_ATTACKER createsprite gUnknown_08592E74, 0x2, -24, -24 delay 0x3 createsprite gUnknown_08592E74, 0x2, -8, -24 @@ -2337,7 +2337,7 @@ Move_CONVERSION: delay 0x3 createsprite gUnknown_08592E74, 0x2, 24, -24 delay 0x3 - playsewithpan SE_W129, -64 + playsewithpan SE_W129, SOUND_PAN_ATTACKER createsprite gUnknown_08592E74, 0x2, -24, -8 delay 0x3 createsprite gUnknown_08592E74, 0x2, -8, -8 @@ -2346,7 +2346,7 @@ Move_CONVERSION: delay 0x3 createsprite gUnknown_08592E74, 0x2, 24, -8 delay 0x3 - playsewithpan SE_W129, -64 + playsewithpan SE_W129, SOUND_PAN_ATTACKER createsprite gUnknown_08592E74, 0x2, -24, 8 delay 0x3 createsprite gUnknown_08592E74, 0x2, -8, 8 @@ -2355,7 +2355,7 @@ Move_CONVERSION: delay 0x3 createsprite gUnknown_08592E74, 0x2, 24, 8 delay 0x3 - playsewithpan SE_W129, -64 + playsewithpan SE_W129, SOUND_PAN_ATTACKER createsprite gUnknown_08592E74, 0x2, -24, 24 delay 0x3 createsprite gUnknown_08592E74, 0x2, -8, 24 @@ -2364,7 +2364,7 @@ Move_CONVERSION: delay 0x3 createsprite gUnknown_08592E74, 0x2, 24, 24 delay 0x14 - playsewithpan SE_W112, -64 + playsewithpan SE_W112, SOUND_PAN_ATTACKER createvisualtask sub_8115D94, 0x2, 10018, 1, 1, 14335, 12, 0, 0 delay 0x6 createvisualtask sub_81022D4, 0x5 @@ -2380,7 +2380,7 @@ Move_CONVERSION_2: monbgprio_2A ANIM_TARGET setalpha 0x1000 delay 0x0 - playsewithpan SE_W112, +63 + playsewithpan SE_W112, SOUND_PAN_TARGET createsprite gUnknown_08592EA4, 0x2, -24, -24, 60 createsprite gUnknown_08592EA4, 0x2, -8, -24, 65 createsprite gUnknown_08592EA4, 0x2, 8, -24, 70 @@ -2399,21 +2399,21 @@ Move_CONVERSION_2: createsprite gUnknown_08592EA4, 0x2, 24, 24, 135 createvisualtask sub_81023E0, 0x5 delay 0x3C - playsewithpan SE_W129, +63 + playsewithpan SE_W129, SOUND_PAN_TARGET delay 0xA - playsewithpan SE_W129, +63 + playsewithpan SE_W129, SOUND_PAN_TARGET delay 0xA - playsewithpan SE_W129, +63 + playsewithpan SE_W129, SOUND_PAN_TARGET delay 0xA - playsewithpan SE_W129, +63 + playsewithpan SE_W129, SOUND_PAN_TARGET delay 0xA - playsewithpan SE_W129, +63 + playsewithpan SE_W129, SOUND_PAN_TARGET delay 0xA - playsewithpan SE_W129, +63 + playsewithpan SE_W129, SOUND_PAN_TARGET delay 0xA - playsewithpan SE_W129, +63 + playsewithpan SE_W129, SOUND_PAN_TARGET delay 0xA - playsewithpan SE_W129, +63 + playsewithpan SE_W129, SOUND_PAN_TARGET waitforvisualfinish clearmonbg ANIM_DEF_PARTNER blendoff @@ -2425,14 +2425,14 @@ Move_ROLLING_KICK: monbg ANIM_TARGET setalpha 0x80C createvisualtask sub_80D5830, 0x2, 0, 18, 6, 1, 4 - playsewithpan SE_W104, -64 + playsewithpan SE_W104, SOUND_PAN_ATTACKER delay 0x6 - playsewithpan SE_W104, -64 + playsewithpan SE_W104, SOUND_PAN_ATTACKER waitforvisualfinish createsprite gUnknown_0857FE70, 0x2, 0, 20, 0, 0, 4 createsprite gUnknown_08595EE0, 0x2, -24, 0, 48, 10, 160, 0 delay 0x5 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x2, -8, 0, 1, 2 createvisualtask sub_80D51AC, 0x2, 1, 5, 0, 6, 1 waitforvisualfinish @@ -2444,7 +2444,7 @@ Move_ROLLING_KICK: Move_HEADBUTT: loadspritegfx 0x2797 createsprite gUnknown_08592CD8, 0x2, 0 - playsewithpan SE_W029, -64 + playsewithpan SE_W029, SOUND_PAN_ATTACKER waitforvisualfinish delay 0x2 createsprite gUnknown_08592CD8, 0x2, 1 @@ -2453,7 +2453,7 @@ Move_HEADBUTT: createvisualtask sub_80D51AC, 0x2, 1, 5, 0, 6, 1 createsprite gUnknown_08592CD8, 0x2, 2 createsprite gUnknown_085973E8, 0x83, 0, 0, 1, 1 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET waitforvisualfinish end @@ -2461,7 +2461,7 @@ Move_HORN_ATTACK: loadspritegfx 0x2797 loadspritegfx 0x2724 createsprite gUnknown_08592CD8, 0x2, 0 - playsewithpan SE_W029, -64 + playsewithpan SE_W029, SOUND_PAN_ATTACKER waitforvisualfinish delay 0x2 createsprite gUnknown_08592CD8, 0x2, 1 @@ -2471,7 +2471,7 @@ Move_HORN_ATTACK: createvisualtask sub_80D51AC, 0x2, 1, 5, 0, 6, 1 createsprite gUnknown_08592CD8, 0x2, 2 createsprite gUnknown_085973E8, 0x83, 0, 0, 1, 1 - playsewithpan SE_W030, +63 + playsewithpan SE_W030, SOUND_PAN_TARGET waitforvisualfinish end @@ -2490,14 +2490,14 @@ AnimScript_82CC7B8: createsprite gUnknown_08592F44, 0x84, 8, 8, 10 waitforvisualfinish createsprite gUnknown_085973E8, 0x83, 0, 0, 1, 1 - playsewithpan SE_W030, +63 + playsewithpan SE_W030, SOUND_PAN_TARGET goto AnimScript_82CC7A5 AnimScript_82CC7DE: createsprite gUnknown_08592F44, 0x84, -8, -8, 10 waitforvisualfinish createsprite gUnknown_085973E8, 0x83, 0, 0, 1, 1 - playsewithpan SE_W030, +63 + playsewithpan SE_W030, SOUND_PAN_TARGET goto AnimScript_82CC7A5 Move_HORN_DRILL: @@ -2512,7 +2512,7 @@ AnimScript_82CC821: waitbgfadein setalpha 0x80C createsprite gUnknown_08592CD8, 0x2, 0 - playsewithpan SE_W029, -64 + playsewithpan SE_W029, SOUND_PAN_ATTACKER waitforvisualfinish delay 0x2 createsprite gUnknown_08592CD8, 0x2, 1 @@ -2522,37 +2522,37 @@ AnimScript_82CC821: createvisualtask sub_80D5484, 0x2, 0, 2, 0, 40, 1 createvisualtask sub_80D5484, 0x2, 1, 10, 0, 40, 1 createsprite gUnknown_085973E8, 0x83, 0, 0, 1, 3 - playsewithpan SE_W030, +63 + playsewithpan SE_W030, SOUND_PAN_TARGET delay 0x4 createsprite gUnknown_085973E8, 0x83, 0, 2, 1, 3 - playsewithpan SE_W030, +63 + playsewithpan SE_W030, SOUND_PAN_TARGET delay 0x4 createsprite gUnknown_085973E8, 0x83, -4, 3, 1, 3 - playsewithpan SE_W030, +63 + playsewithpan SE_W030, SOUND_PAN_TARGET delay 0x4 createsprite gUnknown_085973E8, 0x83, -8, -5, 1, 3 - playsewithpan SE_W030, +63 + playsewithpan SE_W030, SOUND_PAN_TARGET delay 0x4 createsprite gUnknown_085973E8, 0x83, 4, -12, 1, 3 - playsewithpan SE_W030, +63 + playsewithpan SE_W030, SOUND_PAN_TARGET delay 0x4 createsprite gUnknown_085973E8, 0x83, 16, 0, 1, 3 - playsewithpan SE_W030, +63 + playsewithpan SE_W030, SOUND_PAN_TARGET delay 0x4 createsprite gUnknown_085973E8, 0x83, 5, 18, 1, 3 - playsewithpan SE_W030, +63 + playsewithpan SE_W030, SOUND_PAN_TARGET delay 0x4 createsprite gUnknown_085973E8, 0x83, -17, 12, 1, 2 - playsewithpan SE_W030, +63 + playsewithpan SE_W030, SOUND_PAN_TARGET delay 0x4 createsprite gUnknown_085973E8, 0x83, -21, -15, 1, 2 - playsewithpan SE_W030, +63 + playsewithpan SE_W030, SOUND_PAN_TARGET delay 0x4 createsprite gUnknown_085973E8, 0x83, 8, -27, 1, 2 - playsewithpan SE_W030, +63 + playsewithpan SE_W030, SOUND_PAN_TARGET delay 0x4 createsprite gUnknown_085973E8, 0x83, 32, 0, 1, 2 - playsewithpan SE_W030, +63 + playsewithpan SE_W030, SOUND_PAN_TARGET delay 0x4 createsprite gUnknown_08592CD8, 0x2, 2 waitforvisualfinish @@ -2575,15 +2575,15 @@ Move_THRASH: createvisualtask sub_8104CA4, 0x2 createsprite gUnknown_08595EB0, 0x83, 1, 10, 0 createvisualtask sub_80D5484, 0x2, 1, 4, 0, 7, 1 - playsewithpan SE_W004, +63 + playsewithpan SE_W004, SOUND_PAN_TARGET delay 0x1C createsprite gUnknown_08595EB0, 0x83, 1, 10, 1 createvisualtask sub_80D5484, 0x2, 1, 4, 0, 7, 1 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET delay 0x1C createsprite gUnknown_08595EB0, 0x83, 1, 10, 3 createvisualtask sub_80D5484, 0x2, 1, 8, 0, 16, 1 - playsewithpan SE_W025B, +63 + playsewithpan SE_W025B, SOUND_PAN_TARGET end Move_SING: @@ -2591,7 +2591,7 @@ Move_SING: monbg ANIM_DEF_PARTNER createvisualtask sub_8102BE8, 0x2 waitforvisualfinish - panse_1B SE_W047, -64, +63, +2, 0x0 + panse_1B SE_W047, SOUND_PAN_ATTACKER, SOUND_PAN_TARGET, +2, 0x0 createsprite gUnknown_08593008, 0x82, 7, 0, 12 delay 0x5 createsprite gUnknown_08593008, 0x82, 6, 1, 12 @@ -2630,7 +2630,7 @@ Move_LOW_KICK: delay 0x4 createsprite gUnknown_08597358, 0x82, -8, 8, 1, 2 createvisualtask sub_80D6134, 0x2, 6, 384, 1, 2 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET waitforvisualfinish createsprite gUnknown_0857FE58, 0x2, 0, 1, 4 end @@ -2649,7 +2649,7 @@ Move_FISSURE: loadspritegfx 0x275A createvisualtask sub_81152DC, 0x3, 5, 10, 50 createvisualtask sub_81152DC, 0x3, 1, 10, 50 - playsewithpan SE_W089, +63 + playsewithpan SE_W089, SOUND_PAN_TARGET delay 0x8 call AnimScript_82CCBFF delay 0xF @@ -2677,7 +2677,7 @@ AnimScript_82CCBFF: createsprite gUnknown_085971FC, 0x82, 1, 0, 16, -16, -10, 24 createsprite gUnknown_085971FC, 0x82, 1, 1, 14, -52, -18, 24 createsprite gUnknown_085971FC, 0x82, 1, 1, 12, -32, -16, 24 - playsewithpan SE_W091, +63 + playsewithpan SE_W091, SOUND_PAN_TARGET return AnimScript_82CCC50: @@ -2685,7 +2685,7 @@ AnimScript_82CCC50: createsprite gUnknown_085971FC, 0x82, 1, 0, 16, -38, -10, 24 createsprite gUnknown_085971FC, 0x82, 1, 1, 14, -20, -18, 24 createsprite gUnknown_085971FC, 0x82, 1, 1, 12, -36, -16, 24 - playsewithpan SE_W091, +63 + playsewithpan SE_W091, SOUND_PAN_TARGET return Move_DIG: @@ -2727,7 +2727,7 @@ AnimScript_82CCD06: delay 0x10 createsprite gUnknown_08597358, 0x2, -8, 0, 1, 2 createvisualtask sub_80D51AC, 0x2, 1, 5, 0, 6, 1 - playsewithpan SE_W025B, -64 + playsewithpan SE_W025B, SOUND_PAN_ATTACKER clearmonbg ANIM_ATTACKER goto AnimScript_82CCCAA @@ -2736,16 +2736,16 @@ AnimScript_82CCD6A: createsprite gUnknown_085971FC, 0x2, 0, 0, 16, 4, -10, 18 createsprite gUnknown_085971FC, 0x2, 0, 1, 14, 4, -18, 18 createsprite gUnknown_085971FC, 0x2, 0, 1, 12, 4, -16, 18 - playsewithpan SE_W091, -64 + playsewithpan SE_W091, SOUND_PAN_ATTACKER delay 0x20 return Move_MEDITATE: call AnimScript_82D7CD1 createvisualtask sub_810F7D4, 0x2 - playsewithpan SE_W029, -64 + playsewithpan SE_W029, SOUND_PAN_ATTACKER delay 0x10 - playsewithpan SE_W036, -64 + playsewithpan SE_W036, SOUND_PAN_ATTACKER waitforvisualfinish call AnimScript_82D7CDD end @@ -2755,15 +2755,15 @@ Move_AGILITY: setalpha 0x80C createvisualtask sub_80D5830, 0x2, 0, 24, 6, 4, 4 createvisualtask sub_81169C0, 0x2, 0, 4, 7, 10 - playsewithpan SE_W104, -64 + playsewithpan SE_W104, SOUND_PAN_ATTACKER delay 0xC - playsewithpan SE_W104, -64 + playsewithpan SE_W104, SOUND_PAN_ATTACKER delay 0xC - playsewithpan SE_W104, -64 + playsewithpan SE_W104, SOUND_PAN_ATTACKER delay 0xC - playsewithpan SE_W104, -64 + playsewithpan SE_W104, SOUND_PAN_ATTACKER delay 0xC - playsewithpan SE_W104, -64 + playsewithpan SE_W104, SOUND_PAN_ATTACKER delay 0xC waitforvisualfinish clearmonbg ANIM_ATK_PARTNER @@ -2777,11 +2777,11 @@ Move_QUICK_ATTACK: setalpha 0x80C createvisualtask sub_80D5830, 0x2, 0, 24, 6, 1, 5 createvisualtask sub_81169C0, 0x2, 0, 4, 7, 3 - playsewithpan SE_W026, -64 + playsewithpan SE_W026, SOUND_PAN_ATTACKER delay 0x4 createvisualtask sub_80D51AC, 0x2, 1, 5, 0, 6, 1 createsprite gUnknown_08597358, 0x84, 0, 0, 1, 1 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET waitforvisualfinish clearmonbg ANIM_ATK_PARTNER blendoff @@ -2795,16 +2795,16 @@ Move_RAGE: setalpha 0x80C createvisualtask sub_80A7B98, 0x3, 0, RGB_RED, 10, 0, 2 createsprite gUnknown_0859368C, 0x2, 0, -20, -28 - playsewithpan SE_W207B, -64 + playsewithpan SE_W207B, SOUND_PAN_ATTACKER delay 0x14 createsprite gUnknown_0859368C, 0x2, 0, 20, -28 - playsewithpan SE_W207B, -64 + playsewithpan SE_W207B, SOUND_PAN_ATTACKER waitforvisualfinish createsprite gUnknown_0857FE28, 0x2, 4, 6 delay 0x4 createsprite gUnknown_08597358, 0x2, 0, 0, 1, 2 createvisualtask sub_80D6388, 0x2, 1, 1, 10, 1, 0 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET waitforvisualfinish clearmonbg ANIM_TARGET end @@ -2812,7 +2812,7 @@ Move_RAGE: Move_TELEPORT: call AnimScript_82D7CD1 createvisualtask sub_810F83C, 0x2 - playsewithpan SE_W100, -64 + playsewithpan SE_W100, SOUND_PAN_ATTACKER delay 0xF call AnimScript_82D7CDD waitforvisualfinish @@ -2822,23 +2822,23 @@ Move_DOUBLE_TEAM: createvisualtask sub_81029B4, 0x2 setalpha 0x80C monbg ANIM_ATK_PARTNER - playsewithpan SE_W104, -64 + playsewithpan SE_W104, SOUND_PAN_ATTACKER delay 0x20 - playsewithpan SE_W104, -64 + playsewithpan SE_W104, SOUND_PAN_ATTACKER delay 0x18 - playsewithpan SE_W104, -64 + playsewithpan SE_W104, SOUND_PAN_ATTACKER delay 0x10 - playsewithpan SE_W104, -64 + playsewithpan SE_W104, SOUND_PAN_ATTACKER delay 0x8 - playsewithpan SE_W104, -64 + playsewithpan SE_W104, SOUND_PAN_ATTACKER delay 0x8 - playsewithpan SE_W104, -64 + playsewithpan SE_W104, SOUND_PAN_ATTACKER delay 0x8 - playsewithpan SE_W104, -64 + playsewithpan SE_W104, SOUND_PAN_ATTACKER delay 0x8 - playsewithpan SE_W104, -64 + playsewithpan SE_W104, SOUND_PAN_ATTACKER delay 0x8 - playsewithpan SE_W104, -64 + playsewithpan SE_W104, SOUND_PAN_ATTACKER waitforvisualfinish clearmonbg ANIM_ATK_PARTNER blendoff @@ -2848,7 +2848,7 @@ Move_DOUBLE_TEAM: Move_MINIMIZE: setalpha 0x80A createvisualtask sub_8104674, 0x2 - loopsewithpan SE_W107, -64, 0x22, 0x3 + loopsewithpan SE_W107, SOUND_PAN_ATTACKER, 0x22, 0x3 waitforvisualfinish blendoff end @@ -2857,11 +2857,11 @@ Move_METRONOME: loadspritegfx 0x2750 loadspritegfx 0x27E1 createsprite gUnknown_08593114, 0xB, 0, 100 - playsewithpan SE_W118, -64 + playsewithpan SE_W118, SOUND_PAN_ATTACKER delay 0x6 createsprite gUnknown_085931BC, 0xC, 0 delay 0x18 - loopsewithpan SE_W039, -64, 0x16, 0x3 + loopsewithpan SE_W039, SOUND_PAN_ATTACKER, 0x16, 0x3 waitforvisualfinish end @@ -2879,7 +2879,7 @@ AnimScript_82CCF99: AnimScript_82CCFA9: createsprite gUnknown_0857FE88, 0x2, 0, -24, 0, 0, 10, 0 - playsewithpan SE_W036, -64 + playsewithpan SE_W036, SOUND_PAN_ATTACKER waitforvisualfinish createvisualtask sub_80D6134, 0x2, 16, 96, 0, 2 waitforvisualfinish @@ -2890,14 +2890,14 @@ AnimScript_82CCFA9: AnimScript_82CCFE6: loadspritegfx 0x2797 createvisualtask sub_8101C94, 0x2, 0 - playsewithpan SE_W036, -64 + playsewithpan SE_W036, SOUND_PAN_ATTACKER waitforvisualfinish playse SE_BAN createsprite gUnknown_0859728C, 0x2, 1, 3, 1, 0, 14, 0x7FFF, 14 createvisualtask sub_80D5484, 0x2, 0, 2, 0, 40, 1 createvisualtask sub_80D5484, 0x2, 1, 10, 0, 40, 1 createsprite gUnknown_085973E8, 0x84, 0, 0, 1, 0 - loopsewithpan SE_W025B, +63, 0x8, 0x3 + loopsewithpan SE_W025B, SOUND_PAN_TARGET, 0x8, 0x3 waitforvisualfinish createvisualtask sub_8101C94, 0x2, 1 goto AnimScript_82CCF98 @@ -2907,9 +2907,9 @@ Move_AMNESIA: call AnimScript_82D7CD1 delay 0x8 createsprite gUnknown_08596744, 0x14 - playsewithpan SE_W118, -64 + playsewithpan SE_W118, SOUND_PAN_ATTACKER delay 0x36 - loopsewithpan SE_W118, -64, 0x10, 0x3 + loopsewithpan SE_W118, SOUND_PAN_ATTACKER, 0x10, 0x3 waitforvisualfinish call AnimScript_82D7CDD end @@ -2917,18 +2917,18 @@ Move_AMNESIA: Move_KINESIS: loadspritegfx 0x275B loadspritegfx 0x2771 - playsewithpan SE_W060, -64 + playsewithpan SE_W060, SOUND_PAN_ATTACKER call AnimScript_82D7CD1 createsprite gUnknown_085966DC, 0x14 createsprite gUnknown_08593344, 0x13, 32, -8, 0 createsprite gUnknown_08593344, 0x13, 32, 16, 1 - loopsewithpan SE_W109, -64, 0x15, 0x2 + loopsewithpan SE_W109, SOUND_PAN_ATTACKER, 0x15, 0x2 delay 0x3C - playsewithpan SE_W146, -64 + playsewithpan SE_W146, SOUND_PAN_ATTACKER delay 0x1E - loopsewithpan SE_W146, -64, 0x14, 0x2 + loopsewithpan SE_W146, SOUND_PAN_ATTACKER, 0x14, 0x2 delay 0x46 - playsewithpan SE_W207B, -64 + playsewithpan SE_W207B, SOUND_PAN_ATTACKER waitforvisualfinish call AnimScript_82D7CDD end @@ -2937,14 +2937,14 @@ Move_GLARE: loadspritegfx 0x2808 loadspritegfx 0x27EA createvisualtask sub_815E114, 0x5, 0 - playsewithpan SE_W060B, -64 + playsewithpan SE_W060B, SOUND_PAN_ATTACKER waitforvisualfinish createvisualtask sub_8116620, 0x5, 1, 0, 0, 16, 0 waitforvisualfinish createsprite gUnknown_08593A84, 0x0, -16, -8 createsprite gUnknown_08593A84, 0x0, 16, -8 createvisualtask sub_81064F8, 0x5 - playsewithpan SE_W043, -64 + playsewithpan SE_W043, SOUND_PAN_ATTACKER delay 0x2 createvisualtask sub_810A094, 0x3, 20, 1, 0 waitforvisualfinish @@ -2954,12 +2954,12 @@ Move_GLARE: Move_BARRAGE: loadspritegfx 0x280E createvisualtask sub_815E47C, 0x3 - playsewithpan SE_W207, -64 + playsewithpan SE_W207, SOUND_PAN_ATTACKER delay 0x18 createsprite gUnknown_085972D8, 0x2, 8, 1, 40, 1 createvisualtask sub_80D51AC, 0x3, 1, 0, 4, 20, 1 createvisualtask sub_80D51AC, 0x3, 3, 0, 4, 20, 1 - loopsewithpan SE_W070, +63, 0x8, 0x2 + loopsewithpan SE_W070, SOUND_PAN_TARGET, 0x8, 0x2 end Move_SKY_ATTACK: @@ -2981,7 +2981,7 @@ AnimScript_82CD1A0: delay 0xC createvisualtask sub_8116620, 0xA, 2, 1, 8, 0, 0 createvisualtask sub_81152DC, 0x5, 0, 2, 16 - loopsewithpan SE_W287, -64, 0x4, 0x8 + loopsewithpan SE_W287, SOUND_PAN_ATTACKER, 0x4, 0x8 createvisualtask sub_8116620, 0xA, 2, 1, 0, 15, 0x7FFF delay 0x14 createvisualtask sub_8116620, 0xA, 2, 1, 15, 0, 0x7FFF @@ -2998,7 +2998,7 @@ AnimScript_82CD217: delay 0xC createvisualtask sub_8116620, 0xA, 2, 1, 8, 0, 0 createvisualtask sub_81152DC, 0x5, 0, 2, 16 - playsewithpan SE_W287, -64 + playsewithpan SE_W287, SOUND_PAN_ATTACKER delay 0x8 createvisualtask sub_8116620, 0xA, 2, 1, 0, 15, 0x7FFF delay 0x14 @@ -3034,7 +3034,7 @@ AnimScript_82CD28E: goto AnimScript_82CD184 Move_FLASH: - playsewithpan SE_W043, -64 + playsewithpan SE_W043, SOUND_PAN_ATTACKER createvisualtask sub_8117494, 0x2 waitforvisualfinish end @@ -3042,7 +3042,7 @@ Move_FLASH: Move_SPLASH: createvisualtask sub_8104938, 0x2, 0, 3 delay 0x8 - loopsewithpan SE_W039, -64, 0x26, 0x3 + loopsewithpan SE_W039, SOUND_PAN_ATTACKER, 0x26, 0x3 waitforvisualfinish end @@ -3050,7 +3050,7 @@ Move_ACID_ARMOR: monbg ANIM_ATTACKER setalpha 0xF createvisualtask sub_815D240, 0x2, 0 - playsewithpan SE_W151, -64 + playsewithpan SE_W151, SOUND_PAN_ATTACKER waitforvisualfinish blendoff clearmonbg ANIM_ATTACKER @@ -3066,7 +3066,7 @@ Move_SHARPEN: Move_SUPER_FANG: loadspritegfx 0x27D0 createvisualtask sub_80D5484, 0x2, 0, 1, 0, 20, 1 - playsewithpan SE_W082, -64 + playsewithpan SE_W082, SOUND_PAN_ATTACKER waitforvisualfinish createvisualtask sub_80D5484, 0x2, 0, 3, 0, 48, 1 createvisualtask sub_80A7B98, 0x2, 0, RGB(31, 6, 1), 12, 4, 1 @@ -3075,7 +3075,7 @@ Move_SUPER_FANG: createsprite gUnknown_0857FE28, 0x2, 4, 4 delay 0x4 createsprite gUnknown_08592F74, 0x82 - playsewithpan SE_W044, +63 + playsewithpan SE_W044, SOUND_PAN_TARGET delay 0x8 createsprite gUnknown_0859728C, 0x2, 1, 3, 1, 2143, 14, 0x7FFF, 14 createvisualtask sub_80D51AC, 0x2, 1, 0, 7, 12, 1 @@ -3086,11 +3086,11 @@ Move_SUPER_FANG: Move_SLASH: loadspritegfx 0x27C7 createsprite gUnknown_08592D2C, 0x82, 1, -8, 0 - playsewithpan SE_W013, +63 + playsewithpan SE_W013, SOUND_PAN_TARGET delay 0x4 createsprite gUnknown_08592D2C, 0x82, 1, 8, 0 createvisualtask sub_80D52D0, 0x2, 1, 4, 0, 18, 1 - playsewithpan SE_W013, +63 + playsewithpan SE_W013, SOUND_PAN_TARGET waitforvisualfinish end @@ -3102,11 +3102,11 @@ Move_STRUGGLE: createvisualtask sub_80D5484, 0x2, 0, 3, 0, 12, 4 createsprite gUnknown_08593B80, 0x2, 0, 0, 2 createsprite gUnknown_08593B80, 0x2, 0, 1, 2 - loopsewithpan SE_W029, -64, 0xC, 0x4 + loopsewithpan SE_W029, SOUND_PAN_ATTACKER, 0xC, 0x4 waitforvisualfinish createsprite gUnknown_08597358, 0x3, 0, 0, 1, 2 createvisualtask sub_80D5484, 0x2, 1, 3, 0, 6, 1 - playsewithpan SE_W025B, +63 + playsewithpan SE_W025B, SOUND_PAN_TARGET waitforvisualfinish clearmonbg ANIM_TARGET blendoff @@ -3120,7 +3120,7 @@ Move_SKETCH: waitforvisualfinish clearmonbg ANIM_TARGET createvisualtask sub_8104938, 0x2, 0, 2 - loopsewithpan SE_W039, -64, 0x26, 0x2 + loopsewithpan SE_W039, SOUND_PAN_ATTACKER, 0x26, 0x2 end Move_NIGHTMARE: @@ -3130,7 +3130,7 @@ Move_NIGHTMARE: monbg ANIM_DEF_PARTNER createvisualtask sub_8111C50, 0x2 createvisualtask sub_80D51AC, 0x2, 1, 3, 0, 40, 1 - playsewithpan SE_W171, +63 + playsewithpan SE_W171, SOUND_PAN_TARGET waitforvisualfinish clearmonbg ANIM_DEF_PARTNER restorebg @@ -3140,7 +3140,7 @@ Move_NIGHTMARE: AnimScript_82CD4CF: createvisualtask sub_80A7B98, 0x2, 0, RGB_WHITE, 10, 2, 1 createvisualtask sub_80D51AC, 0x2, 0, 3, 0, 32, 1 - playsewithpan SE_W171, +63 + playsewithpan SE_W171, SOUND_PAN_TARGET waitforvisualfinish restorebg waitbgfadein @@ -3151,11 +3151,11 @@ Move_FLAIL: monbg ANIM_TARGET setalpha 0x80C createvisualtask sub_815C770, 0x2, 0 - loopsewithpan SE_W029, -64, 0x8, 0x2 + loopsewithpan SE_W029, SOUND_PAN_ATTACKER, 0x8, 0x2 waitforvisualfinish createsprite gUnknown_085973A0, 0x83, 1, 3 createvisualtask sub_80D6388, 0x2, 0, 1, 30, 1, 0 - playsewithpan SE_W025B, +63 + playsewithpan SE_W025B, SOUND_PAN_TARGET waitforvisualfinish clearmonbg ANIM_TARGET blendoff @@ -3163,12 +3163,12 @@ Move_FLAIL: Move_SPITE: fadetobg BG_GHOST - playsewithpan SE_W060, -64 + playsewithpan SE_W060, SOUND_PAN_ATTACKER waitbgfadein monbg ANIM_DEF_PARTNER createvisualtask sub_8115A04, 0x2, 2, 2, 6, 0, 8, 0x7FFF createvisualtask sub_8111E50, 0x2 - loopsewithpan SE_W060, +63, 0x14, 0x3 + loopsewithpan SE_W060, SOUND_PAN_TARGET, 0x14, 0x3 waitforvisualfinish restorebg waitbgfadein @@ -3190,11 +3190,11 @@ AnimScript_82CD57E: delay 0x0 setalpha 0x809 createvisualtask sub_80A8BC4, 0x2, 28968, 10 - playsewithpan SE_W026, -64 + playsewithpan SE_W026, SOUND_PAN_ATTACKER delay 0x6 createsprite gUnknown_08597358, 0x83, 0, 0, 1, 1 createsprite gUnknown_08595E98, 0x84, 0, 0, 8, 1, 0 - playsewithpan SE_W004, +63 + playsewithpan SE_W004, SOUND_PAN_TARGET createvisualtask sub_80D51AC, 0x2, 1, 3, 0, 6, 1 waitforvisualfinish clearmonbg ANIM_ATK_PARTNER @@ -3216,13 +3216,13 @@ Move_FORESIGHT: setalpha 0x10 createsprite gUnknown_085CE8C4, 0x82, 1 delay 0x11 - loopsewithpan SE_W166, +63, 0x10, 0x4 + loopsewithpan SE_W166, SOUND_PAN_TARGET, 0x10, 0x4 delay 0x30 delay 0x18 - playsewithpan SE_W166, +63 + playsewithpan SE_W166, SOUND_PAN_TARGET delay 0xA createvisualtask sub_80A7B98, 0x5, 1, RGB_WHITE, 12, 2, 1 - playsewithpan SE_W197, +63 + playsewithpan SE_W197, SOUND_PAN_TARGET waitforvisualfinish blendoff clearmonbg ANIM_DEF_PARTNER @@ -3231,16 +3231,16 @@ Move_FORESIGHT: Move_DESTINY_BOND: loadspritegfx 0x27CC fadetobg BG_GHOST - playsewithpan SE_W060, -64 + playsewithpan SE_W060, SOUND_PAN_ATTACKER waitbgfadein createvisualtask sub_81123C4, 0x5, 0, 48 - playsewithpan SE_W109, -64 + playsewithpan SE_W109, SOUND_PAN_ATTACKER delay 0x30 createvisualtask sub_80D5484, 0x2, 0, 2, 0, 24, 1 createvisualtask sub_8116664, 0x2, 6, 1, 0, 12, 30653 delay 0x18 createvisualtask sub_8116664, 0x2, 6, 1, 12, 0, 30653 - playsewithpan SE_W171, +63 + playsewithpan SE_W171, SOUND_PAN_TARGET waitforvisualfinish restorebg waitbgfadein @@ -3250,7 +3250,7 @@ Move_DESTINY_BOND: Move_ENDURE: loadspritegfx 0x27C8 - playsewithpan SE_W082, -64 + playsewithpan SE_W082, SOUND_PAN_ATTACKER call AnimScript_82CD6C7 delay 0x8 createvisualtask sub_8115A04, 0x2, 2, 2, 2, 0, 11, 31 @@ -3277,13 +3277,13 @@ Move_CHARM: loadspritegfx 0x27E2 createvisualtask sub_815C478, 0x5, 0, 2, 0 createsprite gUnknown_08593970, 0x3, 0, 20 - playsewithpan SE_W204, -64 + playsewithpan SE_W204, SOUND_PAN_ATTACKER delay 0xF createsprite gUnknown_08593970, 0x3, -20, 20 - playsewithpan SE_W204, -64 + playsewithpan SE_W204, SOUND_PAN_ATTACKER delay 0xF createsprite gUnknown_08593970, 0x3, 20, 20 - playsewithpan SE_W204, -64 + playsewithpan SE_W204, SOUND_PAN_ATTACKER waitforvisualfinish end @@ -3298,7 +3298,7 @@ Move_ROLLOUT: waitforvisualfinish createvisualtask sub_80D6388, 0x2, 0, 1, 30, 1, 0 createsprite gUnknown_08597358, 0x4, 0, 0, 1, 2 - playsewithpan SE_W025B, +63 + playsewithpan SE_W025B, SOUND_PAN_TARGET waitforvisualfinish clearmonbg ANIM_DEF_PARTNER blendoff @@ -3308,44 +3308,44 @@ Move_FALSE_SWIPE: loadspritegfx 0x282E loadspritegfx 0x2797 createsprite gUnknown_08592D44, 0x82 - playsewithpan SE_W233, +63 + playsewithpan SE_W233, SOUND_PAN_TARGET delay 0x10 createsprite gUnknown_08592D5C, 0x82, 0 - playsewithpan SE_W104, +63 + playsewithpan SE_W104, SOUND_PAN_TARGET delay 0x2 createsprite gUnknown_08592D5C, 0x82, 16 delay 0x2 createsprite gUnknown_08592D5C, 0x82, 32 - playsewithpan SE_W104, +63 + playsewithpan SE_W104, SOUND_PAN_TARGET delay 0x2 createsprite gUnknown_08592D5C, 0x82, 48 delay 0x2 createsprite gUnknown_08592D5C, 0x82, 64 - playsewithpan SE_W104, +63 + playsewithpan SE_W104, SOUND_PAN_TARGET delay 0x2 createsprite gUnknown_08592D5C, 0x82, 80 delay 0x2 waitforvisualfinish createvisualtask sub_80D51AC, 0x2, 1, 5, 0, 6, 1 createsprite gUnknown_08597358, 0x84, 0, 0, 1, 3 - playsewithpan SE_W004, +63 + playsewithpan SE_W004, SOUND_PAN_TARGET end Move_SWAGGER: loadspritegfx 0x2766 loadspritegfx 0x2767 createvisualtask sub_8104AB4, 0x2 - playsewithpan SE_W207, -64 + playsewithpan SE_W207, SOUND_PAN_ATTACKER waitforvisualfinish createsprite gUnknown_08593658, 0x2 - loopsewithpan SE_W207, -64, 0x4, 0x2 + loopsewithpan SE_W207, SOUND_PAN_ATTACKER, 0x4, 0x2 waitforvisualfinish delay 0x18 createsprite gUnknown_0859368C, 0x82, 1, -20, -28 - playsewithpan SE_W207B, +63 + playsewithpan SE_W207B, SOUND_PAN_TARGET delay 0xC createsprite gUnknown_0859368C, 0x82, 1, 20, -28 - playsewithpan SE_W207B, +63 + playsewithpan SE_W207B, SOUND_PAN_TARGET waitforvisualfinish end @@ -3356,14 +3356,14 @@ Move_MILK_DRINK: monbg ANIM_TARGET createsprite gUnknown_08592B3C, 0x2 delay 0x28 - playsewithpan SE_W152, -64 + playsewithpan SE_W152, SOUND_PAN_ATTACKER delay 0xC - playsewithpan SE_W152, -64 + playsewithpan SE_W152, SOUND_PAN_ATTACKER delay 0x14 - playsewithpan SE_W152, -64 + playsewithpan SE_W152, SOUND_PAN_ATTACKER waitforvisualfinish createsprite gUnknown_0859381C, 0x3, 0, 0, 1, 0 - playsewithpan SE_W208, -64 + playsewithpan SE_W208, SOUND_PAN_ATTACKER waitforvisualfinish clearmonbg ANIM_TARGET call AnimScript_82D7A28 @@ -3382,13 +3382,13 @@ AnimScript_82CD8C8: AnimScript_82CD8C9: createvisualtask sub_81152DC, 0x5, 5, 0, 50 createvisualtask sub_81152DC, 0x5, 4, 0, 50 - loopsewithpan SE_W070, +63, 0x8, 0xA + loopsewithpan SE_W070, SOUND_PAN_TARGET, 0x8, 0xA goto AnimScript_82CD8C8 AnimScript_82CD8EE: createvisualtask sub_81152DC, 0x5, 5, 0, 50 createvisualtask sub_81152DC, 0x5, 4, 0, 50 - loopsewithpan SE_W070, +63, 0x8, 0xA + loopsewithpan SE_W070, SOUND_PAN_TARGET, 0x8, 0xA delay 0xA createsprite gUnknown_0859728C, 0x2, 1, 3, 1, 0, 14, 0x7FFF, 14 delay 0x10 @@ -3401,15 +3401,15 @@ Move_RAPID_SPIN: monbg ANIM_ATTACKER createsprite gUnknown_085CE288, 0x2, 0, 0, 32, -32, 40, -2 createvisualtask sub_815ADB0, 0x2, 0, 2, 0 - loopsewithpan SE_W013B, -64, 0x8, 0x4 + loopsewithpan SE_W013B, SOUND_PAN_ATTACKER, 0x8, 0x4 waitforvisualfinish createsprite gUnknown_08597358, 0x82, 0, 0, 1, 2 createvisualtask sub_80D6388, 0x2, 0, 1, 10, 1, 0 - playsewithpan SE_W003, +63 + playsewithpan SE_W003, SOUND_PAN_TARGET waitforvisualfinish delay 0x8 createvisualtask sub_815ADB0, 0x2, 0, 2, 1 - loopsewithpan SE_W013B, -64, 0x8, 0x4 + loopsewithpan SE_W013B, SOUND_PAN_ATTACKER, 0x8, 0x4 waitforvisualfinish clearmonbg ANIM_ATTACKER end @@ -3453,7 +3453,7 @@ AnimScript_82CDA55: createvisualtask sub_8117660, 0x5, -2304, 0, 1, -1 waitbgfadein createvisualtask sub_810577C, 0x2 - loopsewithpan SE_W013B, -64, 0x8, 0x3 + loopsewithpan SE_W013B, SOUND_PAN_ATTACKER, 0x8, 0x3 waitforvisualfinish delay 0x1 createvisualtask sub_8117F60, 0x2 @@ -3462,19 +3462,19 @@ AnimScript_82CDA55: delay 0x12 createvisualtask sub_8105810, 0x2 delay 0x2 - playsewithpan SE_W004, +63 + playsewithpan SE_W004, SOUND_PAN_TARGET createsprite gUnknown_085973B8, 0x82, 1, 0, -12, 3 delay 0xA - playsewithpan SE_W004, +63 + playsewithpan SE_W004, SOUND_PAN_TARGET createsprite gUnknown_085973B8, 0x82, 1, 0, 12, 3 delay 0xA - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET createsprite gUnknown_085973B8, 0x82, 1, 0, 0, 3 waitforvisualfinish createvisualtask sub_8105AAC, 0x2 delay 0xA createvisualtask sub_810599C, 0x2 - loopsewithpan SE_W104, -64, 0x8, 0x4 + loopsewithpan SE_W104, SOUND_PAN_ATTACKER, 0x8, 0x4 waitforvisualfinish restorebg waitbgfadeout @@ -3497,19 +3497,19 @@ Move_UPROAR: monbg ANIM_DEF_PARTNER createvisualtask sub_8106D90, 0x2, 0 createsprite gUnknown_08593898, 0x3, 0, 0, 0, 0, 31, 8 - playsewithpan SE_W253, -64 + playsewithpan SE_W253, SOUND_PAN_ATTACKER createsprite gUnknown_08593BB8, 0x2, 0, 29, -12, 0 createsprite gUnknown_08593BB8, 0x2, 0, -12, -29, 1 delay 0x10 createvisualtask sub_8106D90, 0x2, 0 createsprite gUnknown_08593898, 0x3, 0, 0, 0, 0, 31, 8 - playsewithpan SE_W253, -64 + playsewithpan SE_W253, SOUND_PAN_ATTACKER createsprite gUnknown_08593BB8, 0x2, 0, 12, -29, 1 createsprite gUnknown_08593BB8, 0x2, 0, -29, -12, 0 delay 0x10 createvisualtask sub_8106D90, 0x2, 0 createsprite gUnknown_08593898, 0x3, 0, 0, 0, 0, 31, 8 - playsewithpan SE_W253, -64 + playsewithpan SE_W253, SOUND_PAN_ATTACKER createsprite gUnknown_08593BB8, 0x2, 0, 24, -24, 1 createsprite gUnknown_08593BB8, 0x2, 0, -24, -24, 0 waitforvisualfinish @@ -3521,7 +3521,7 @@ Move_HEAT_WAVE: createvisualtask sub_8116848, 0x5, 10261, 0, 6, 6, RGB_RED createvisualtask sub_8110BCC, 0x5, 1 createvisualtask sub_810A060, 0x6, 6, 31 - panse_1B SE_W257, -64, +63, +2, 0x0 + panse_1B SE_W257, SOUND_PAN_ATTACKER, SOUND_PAN_TARGET, +2, 0x0 delay 0x4 createvisualtask sub_8109DBC, 0x5 delay 0xC @@ -3558,10 +3558,10 @@ Move_TORMENT: waitforvisualfinish createvisualtask sub_80A7B98, 0x2, 1, RGB_RED, 10, 1, 1 createsprite gUnknown_0859368C, 0x82, 1, -20, -28 - playsewithpan SE_W207B, +63 + playsewithpan SE_W207B, SOUND_PAN_TARGET delay 0x14 createsprite gUnknown_0859368C, 0x82, 1, 20, -28 - playsewithpan SE_W207B, +63 + playsewithpan SE_W207B, SOUND_PAN_TARGET end Move_MEMENTO: @@ -3570,9 +3570,9 @@ Move_MEMENTO: createvisualtask sub_81143C0, 0x2 delay 0x1 createvisualtask sub_8113BAC, 0x5 - playsewithpan SE_W060, -64 + playsewithpan SE_W060, SOUND_PAN_ATTACKER delay 0x30 - playsewithpan SE_W060B, -64 + playsewithpan SE_W060B, SOUND_PAN_ATTACKER waitforvisualfinish createvisualtask sub_8114470, 0x2 delay 0xC @@ -3580,7 +3580,7 @@ Move_MEMENTO: delay 0x1 monbg_22 ANIM_TARGET createvisualtask sub_8113E78, 0x5 - playsewithpan SE_W060, +63 + playsewithpan SE_W060, SOUND_PAN_TARGET waitforvisualfinish clearmonbg_23 ANIM_TARGET delay 0x1 @@ -3592,7 +3592,7 @@ Move_FACADE: loadspritegfx 0x2803 createvisualtask sub_815DCA4, 0x2, 0, 3 createvisualtask sub_815DF0C, 0x2, 0, 72 - loopsewithpan SE_W207, -64, 0x18, 0x3 + loopsewithpan SE_W207, SOUND_PAN_ATTACKER, 0x18, 0x3 end Move_SMELLING_SALT: @@ -3602,22 +3602,22 @@ Move_SMELLING_SALT: createsprite gUnknown_085CE864, 0x82, 1, 1, 2 delay 0x20 createvisualtask sub_815E840, 0x3, 1, 2 - loopsewithpan SE_W003, +63, 0xC, 0x2 + loopsewithpan SE_W003, SOUND_PAN_TARGET, 0xC, 0x2 waitforvisualfinish delay 0x4 createvisualtask sub_80D52D0, 0x2, 1, 2, 0, 6, 2 createsprite gUnknown_085CE894, 0x82, 1, 8, 3 - loopsewithpan SE_W207B, +63, 0x10, 0x3 + loopsewithpan SE_W207B, SOUND_PAN_TARGET, 0x10, 0x3 end Move_FOLLOW_ME: loadspritegfx 0x2750 createsprite gUnknown_085931D4, 0x2, 0 - playsewithpan SE_W039, -64 + playsewithpan SE_W039, SOUND_PAN_ATTACKER delay 0x12 - playsewithpan SE_W213, -64 + playsewithpan SE_W213, SOUND_PAN_ATTACKER delay 0x47 - loopsewithpan SE_W039, -64, 0x16, 0x3 + loopsewithpan SE_W039, SOUND_PAN_ATTACKER, 0x16, 0x3 end Move_CHARGE: @@ -3629,26 +3629,26 @@ Move_CHARGE: createsprite gUnknown_08597274, 0x2, 1, 2, 0, 4, RGB_BLACK waitforvisualfinish createvisualtask sub_810AAFC, 0x2, 0, 60, 2, 12 - playsewithpan SE_W268, -64 + playsewithpan SE_W268, SOUND_PAN_ATTACKER delay 0x1E - playsewithpan SE_W268, -64 + playsewithpan SE_W268, SOUND_PAN_ATTACKER delay 0x1E - playsewithpan SE_W268, -64 + playsewithpan SE_W268, SOUND_PAN_ATTACKER createsprite gUnknown_0859595C, 0x2, 0 delay 0x19 - playsewithpan SE_W268, -64 + playsewithpan SE_W268, SOUND_PAN_ATTACKER delay 0x14 - playsewithpan SE_W268, -64 + playsewithpan SE_W268, SOUND_PAN_ATTACKER delay 0xF - playsewithpan SE_W268, -64 + playsewithpan SE_W268, SOUND_PAN_ATTACKER delay 0xA delay 0x6 - loopsewithpan SE_W268, -64, 0x6, 0x5 + loopsewithpan SE_W268, SOUND_PAN_ATTACKER, 0x6, 0x5 waitforvisualfinish createsprite gUnknown_0859598C, 0x2, 0, 16, 16 delay 0x2 createsprite gUnknown_0859598C, 0x2, 0, -16, -16 - playsewithpan SE_W085B, -64 + playsewithpan SE_W085B, SOUND_PAN_ATTACKER waitforvisualfinish createsprite gUnknown_08597274, 0x2, 1, 4, 4, 0, RGB_BLACK clearmonbg ANIM_ATTACKER @@ -3660,19 +3660,19 @@ Move_TAUNT: loadspritegfx 0x27E1 loadspritegfx 0x2767 createsprite gUnknown_08593114, 0xB, 0, 45 - playsewithpan SE_W118, -64 + playsewithpan SE_W118, SOUND_PAN_ATTACKER delay 0x6 createsprite gUnknown_0859324C, 0xC, 0 delay 0x4 - loopsewithpan SE_W039, -64, 0x10, 0x2 + loopsewithpan SE_W039, SOUND_PAN_ATTACKER, 0x10, 0x2 waitforvisualfinish delay 0x8 createsprite gUnknown_0859368C, 0x82, 1, -20, -28 - playsewithpan SE_W207B, +63 + playsewithpan SE_W207B, SOUND_PAN_TARGET waitforvisualfinish delay 0xC createsprite gUnknown_0859368C, 0x82, 1, 20, -28 - playsewithpan SE_W207B, +63 + playsewithpan SE_W207B, SOUND_PAN_TARGET end Move_HELPING_HAND: @@ -3717,7 +3717,7 @@ Move_SUPERPOWER: monbgprio_28 ANIM_ATTACKER setalpha 0x80C createsprite gUnknown_08595FEC, 0x82, 0 - playsewithpan SE_W025, -64 + playsewithpan SE_W025, SOUND_PAN_ATTACKER delay 0x14 createsprite gUnknown_085972D8, 0x2, 4, 1, 180, 1 createvisualtask sub_8159244, 0x5, 234, 0 @@ -3733,10 +3733,10 @@ Move_SUPERPOWER: createsprite gUnknown_08596004, 0x29, 60, 288, 3, 88 delay 0x4A createsprite gUnknown_0859601C, 0x83, 0 - playsewithpan SE_W207, -64 + playsewithpan SE_W207, SOUND_PAN_ATTACKER delay 0x10 createvisualtask sub_80D52D0, 0x2, 1, 8, 0, 16, 1 - playsewithpan SE_W025B, +63 + playsewithpan SE_W025B, SOUND_PAN_TARGET waitforvisualfinish clearmonbg ANIM_ATK_PARTNER blendoff @@ -3749,10 +3749,10 @@ Move_RECYCLE: setalpha 0x1000 delay 0x1 createsprite gUnknown_085CE9B0, 0x2 - loopsewithpan SE_W036, -64, 0x18, 0x3 + loopsewithpan SE_W036, SOUND_PAN_ATTACKER, 0x18, 0x3 waitforvisualfinish createvisualtask sub_80A7B98, 0x5, 0, RGB_WHITE, 12, 2, 1 - playsewithpan SE_W036, -64 + playsewithpan SE_W036, SOUND_PAN_ATTACKER waitforvisualfinish blendoff clearmonbg ANIM_ATTACKER @@ -3773,19 +3773,19 @@ AnimScript_82CE0A7: delay 0x4 delay 0x1 createsprite gUnknown_08597358, 0x3, -18, -18, 1, 1 - playsewithpan SE_W233, +63 + playsewithpan SE_W233, SOUND_PAN_TARGET delay 0x14 createsprite gUnknown_0857FE28, 0x2, 3, 8 delay 0x5 createsprite gUnknown_08597358, 0x3, 18, 18, 1, 1 - playsewithpan SE_W233, +63 + playsewithpan SE_W233, SOUND_PAN_TARGET delay 0x14 createvisualtask sub_80D5C50, 0x2, 0, -24, 0, 24, 10, 24, 3 createsprite gUnknown_08597274, 0x2, 1, 2, 0, 6, RGB_BLACK delay 0x25 createsprite gUnknown_08597358, 0x3, 0, 0, 1, 1 createsprite gUnknown_08595E98, 0x4, 0, 0, 10, 1, 0 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET waitforvisualfinish createsprite gUnknown_08597274, 0x2, 1, 2, 6, 0, RGB_BLACK waitforvisualfinish @@ -3800,25 +3800,25 @@ AnimScript_82CE154: createsprite gUnknown_08595F90, 0x3, 1, 0, 0, 90, 10 delay 0x1 createsprite gUnknown_08597358, 0x3, -18, -18, 1, 1 - playsewithpan SE_W233, +63 + playsewithpan SE_W233, SOUND_PAN_TARGET delay 0x14 createsprite gUnknown_0857FE28, 0x2, 3, 8 delay 0x5 createsprite gUnknown_08597358, 0x3, 18, 18, 1, 1 - playsewithpan SE_W233, +63 + playsewithpan SE_W233, SOUND_PAN_TARGET delay 0x14 createvisualtask sub_80D5C50, 0x2, 0, -24, 0, 24, 10, 24, 3 createsprite gUnknown_08597274, 0x2, 1, 2, 0, 6, RGB_BLACK delay 0x25 createsprite gUnknown_08597358, 0x3, 0, 0, 1, 1 createsprite gUnknown_08595E98, 0x4, 0, 0, 10, 1, 0 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET waitforvisualfinish createsprite gUnknown_08595FA8, 0x2, 1, 0, -8, -12 createsprite gUnknown_08595FA8, 0x2, 1, 1, 8, -12 createsprite gUnknown_08595FA8, 0x2, 1, 2, -8, 12 createsprite gUnknown_08595FA8, 0x2, 1, 3, 8, 12 - playsewithpan SE_W280, +63 + playsewithpan SE_W280, SOUND_PAN_TARGET waitforvisualfinish createsprite gUnknown_08597274, 0x2, 1, 2, 6, 0, RGB_BLACK waitforvisualfinish @@ -3828,33 +3828,33 @@ AnimScript_82CE154: Move_YAWN: loadspritegfx 0x2802 createvisualtask sub_815D64C, 0x2, 0 - playsewithpan SE_W281, -64 + playsewithpan SE_W281, SOUND_PAN_ATTACKER waitforvisualfinish createsprite gUnknown_085CE68C, 0x85, 2 - playsewithpan SE_W255, -64 + playsewithpan SE_W255, SOUND_PAN_ATTACKER delay 0x4 createsprite gUnknown_085CE68C, 0x85, 1 delay 0x4 createsprite gUnknown_085CE68C, 0x85, 0 waitforvisualfinish createvisualtask sub_815D64C, 0x2, 1 - playsewithpan SE_W281, +63 + playsewithpan SE_W281, SOUND_PAN_TARGET end Move_ENDEAVOR: loadspritegfx 0x2803 loadspritegfx 0x2797 createvisualtask sub_815DCA4, 0x2, 0, 2 - loopsewithpan SE_W039, -64, 0x18, 0x2 + loopsewithpan SE_W039, SOUND_PAN_ATTACKER, 0x18, 0x2 createvisualtask sub_80A7B98, 0x5, 0, RGB(31, 21, 0), 12, 1, 2 delay 0x6 createvisualtask sub_80D6388, 0x5, 0, 1, 8, 1, 0 createsprite gUnknown_08597358, 0x82, 12, -12, 1, 2 - playsewithpan SE_W003, +63 + playsewithpan SE_W003, SOUND_PAN_TARGET delay 0x18 createvisualtask sub_80D6388, 0x5, 0, 1, 8, 1, 0 createsprite gUnknown_08597358, 0x82, -12, 12, 1, 2 - playsewithpan SE_W004, +63 + playsewithpan SE_W004, SOUND_PAN_TARGET end Move_ERUPTION: @@ -3862,10 +3862,10 @@ Move_ERUPTION: createsprite gUnknown_08597274, 0x2, 31, 2, 0, 4, RGB_RED waitforvisualfinish createvisualtask sub_8109460, 0x2 - waitplaysewithpan SE_W153, -64, 0x3C + waitplaysewithpan SE_W153, SOUND_PAN_ATTACKER, 0x3C waitforvisualfinish createvisualtask sub_8109460, 0x2 - waitplaysewithpan SE_W153, -64, 0x3C + waitplaysewithpan SE_W153, SOUND_PAN_ATTACKER, 0x3C waitforvisualfinish delay 0x1E createsprite gUnknown_085955E8, 0x28, 200, -32, 0, 100, 0 @@ -3877,7 +3877,7 @@ Move_ERUPTION: delay 0x16 createvisualtask sub_81152DC, 0x5, 5, 8, 60 createvisualtask sub_81152DC, 0x5, 4, 8, 60 - loopsewithpan SE_W088, +63, 0x10, 0xC + loopsewithpan SE_W088, SOUND_PAN_TARGET, 0x10, 0xC delay 0x50 createsprite gUnknown_08597274, 0x28, 31, 4, 4, 0, RGB_RED end @@ -3887,7 +3887,7 @@ Move_SKILL_SWAP: call AnimScript_82D7CD1 createvisualtask sub_810FBF0, 0x3, 1 createvisualtask sub_80A7B98, 0x5, 1, RGB_WHITE, 12, 3, 1 - loopsewithpan SE_W179, -64, 0x18, 0x3 + loopsewithpan SE_W179, SOUND_PAN_ATTACKER, 0x18, 0x3 delay 0x10 createvisualtask sub_810FBF0, 0x3, 0 createvisualtask sub_80A7B98, 0x5, 0, RGB_WHITE, 12, 3, 1 @@ -3902,12 +3902,12 @@ Move_IMPRISON: monbg ANIM_DEF_PARTNER createvisualtask sub_810F940, 0x5 delay 0x8 - loopsewithpan SE_W030, -64, 0x8, 0x5 + loopsewithpan SE_W030, SOUND_PAN_ATTACKER, 0x8, 0x5 waitforvisualfinish delay 0x4 createsprite gUnknown_085967AC, 0x5, 0, 40 createvisualtask sub_81152DC, 0x5, 4, 1, 10 - playsewithpan SE_W063, -64 + playsewithpan SE_W063, SOUND_PAN_ATTACKER clearmonbg ANIM_DEF_PARTNER call AnimScript_82D7CDD end @@ -3917,13 +3917,13 @@ Move_GRUDGE: monbg ANIM_ATTACKER monbgprio_29 fadetobg BG_GHOST - playsewithpan SE_W060, -64 + playsewithpan SE_W060, SOUND_PAN_ATTACKER waitbgfadein createvisualtask sub_8112C6C, 0x3 - loopsewithpan SE_W052, -64, 0x10, 0x4 + loopsewithpan SE_W052, SOUND_PAN_ATTACKER, 0x10, 0x4 delay 0xA delay 0x50 - playsewithpan SE_W171, +63 + playsewithpan SE_W171, SOUND_PAN_TARGET waitforvisualfinish restorebg waitbgfadein @@ -3937,7 +3937,7 @@ Move_CAMOUFLAGE: createvisualtask sub_811675C, 0x5, 2, 3, 0, 14 delay 0x10 createvisualtask sub_81136E8, 0x2, 4 - playsewithpan SE_W185, -64 + playsewithpan SE_W185, SOUND_PAN_ATTACKER waitforvisualfinish delay 0x8 createvisualtask sub_811675C, 0x5, 2, 0, 0, 0 @@ -3956,7 +3956,7 @@ Move_TAIL_GLOW: waitforvisualfinish createsprite gUnknown_08596AC8, 0x42, 0 delay 0x12 - loopsewithpan SE_W234, -64, 0x10, 0x6 + loopsewithpan SE_W234, SOUND_PAN_ATTACKER, 0x10, 0x6 waitforvisualfinish createsprite gUnknown_08597274, 0x2, 1, 4, 4, 0, RGB_BLACK clearmonbg ANIM_ATTACKER @@ -3973,7 +3973,7 @@ Move_LUSTER_PURGE: waitbgfadein monbg ANIM_ATTACKER setalpha 0x80C - playsewithpan SE_W076, -64 + playsewithpan SE_W076, SOUND_PAN_ATTACKER createsprite gUnknown_08596898, 0x29, 0, 0, 0, 0 delay 0x14 createvisualtask sub_8116664, 0x5, 5, 2, 0, 16, -1 @@ -4011,10 +4011,10 @@ Move_MIST_BALL: loadspritegfx 0x27AB loadspritegfx 0x281E delay 0x0 - playsewithpan SE_W081, -64 + playsewithpan SE_W081, SOUND_PAN_ATTACKER createsprite gUnknown_08595C70, 0x80, 0, 0, 0, 0, 30, 0 waitforvisualfinish - playsewithpan SE_W028, +63 + playsewithpan SE_W028, SOUND_PAN_TARGET createvisualtask sub_80D51AC, 0x2, 1, 5, 0, 10, 0 createsprite gUnknown_0859728C, 0x0, 1, 1, 1, 32279, 16, 0x7FFF, 16 delay 0x0 @@ -4031,7 +4031,7 @@ Move_FEATHER_DANCE: loadspritegfx 0x281E monbg ANIM_DEF_PARTNER monbgprio_29 - playsewithpan SE_W080, +63 + playsewithpan SE_W080, SOUND_PAN_TARGET delay 0x0 createsprite gUnknown_08596388, 0x80, 0, -16, 64, 2, 104, 11304, 32, 1 delay 0x6 @@ -4054,19 +4054,19 @@ Move_TEETER_DANCE: loadspritegfx 0x2759 createvisualtask sub_8160164, 0x5 createsprite gUnknown_08593050, 0x2, 0, 16, -2 - playsewithpan SE_W298, -64 + playsewithpan SE_W298, SOUND_PAN_ATTACKER delay 0x18 createsprite gUnknown_08593050, 0x2, 0, 0, -2 - playsewithpan SE_W298, -64 + playsewithpan SE_W298, SOUND_PAN_ATTACKER delay 0x18 createsprite gUnknown_08593050, 0x2, 0, -16, -2 - playsewithpan SE_W298, -64 + playsewithpan SE_W298, SOUND_PAN_ATTACKER delay 0x18 createsprite gUnknown_08593050, 0x2, 1, -8, -2 - playsewithpan SE_W298, -64 + playsewithpan SE_W298, SOUND_PAN_ATTACKER delay 0x18 createsprite gUnknown_08593050, 0x2, 2, 8, -2 - playsewithpan SE_W298, -64 + playsewithpan SE_W298, SOUND_PAN_ATTACKER end Move_MUD_SPORT: @@ -4075,15 +4075,15 @@ Move_MUD_SPORT: delay 0x18 createsprite gUnknown_085971E4, 0x82, 0, -4, -16 createsprite gUnknown_085971E4, 0x82, 0, 4, -12 - playsewithpan SE_W091, -64 + playsewithpan SE_W091, SOUND_PAN_ATTACKER delay 0x20 createsprite gUnknown_085971E4, 0x82, 0, -3, -12 createsprite gUnknown_085971E4, 0x82, 0, 5, -14 - playsewithpan SE_W091, -64 + playsewithpan SE_W091, SOUND_PAN_ATTACKER delay 0x20 createsprite gUnknown_085971E4, 0x82, 0, -5, -18 createsprite gUnknown_085971E4, 0x82, 0, 3, -14 - playsewithpan SE_W091, -64 + playsewithpan SE_W091, SOUND_PAN_ATTACKER delay 0x10 createsprite gUnknown_085971E4, 0x82, 1, 220, 60 waitplaysewithpan SE_W145B, 0, 0xF @@ -4120,7 +4120,7 @@ Move_NEEDLE_ARM: loadspritegfx 0x281A loadspritegfx 0x2797 loadspritegfx 0x279F - loopsewithpan SE_W030, +63, 0x2, 0x10 + loopsewithpan SE_W030, SOUND_PAN_TARGET, 0x2, 0x10 createsprite gUnknown_08592888, 0x82, 1, 0, 0, -32, 16 delay 0x2 createsprite gUnknown_08592888, 0x82, 1, 0, 22, -22, 16 @@ -4148,7 +4148,7 @@ Move_NEEDLE_ARM: createvisualtask sub_80D52D0, 0x2, 1, 4, 0, 18, 1 createsprite gUnknown_08597358, 0x83, 0, 0, 1, 1 createsprite gUnknown_08595E98, 0x84, 0, 0, 8, 1, 0 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET createsprite gUnknown_08592888, 0x82, 1, 1, 0, -24, 10 createsprite gUnknown_08592888, 0x82, 1, 1, 17, -17, 10 createsprite gUnknown_08592888, 0x82, 1, 1, 24, 0, 10 @@ -4162,7 +4162,7 @@ Move_NEEDLE_ARM: Move_SLACK_OFF: loadspritegfx 0x272F createvisualtask sub_8160544, 0x2, 0 - playsewithpan SE_W281, -64 + playsewithpan SE_W281, SOUND_PAN_ATTACKER waitforvisualfinish call AnimScript_82D79DF waitforvisualfinish @@ -4179,11 +4179,11 @@ Move_CRUSH_CLAW: createvisualtask sub_80D52D0, 0x2, 1, 2, 0, 18, 1 createsprite gUnknown_08597138, 0x82, -10, -10, 0 createsprite gUnknown_08597138, 0x82, -10, 10, 0 - playsewithpan SE_W013, +63 + playsewithpan SE_W013, SOUND_PAN_TARGET delay 0xC createsprite gUnknown_08597138, 0x82, 10, -10, 1 createsprite gUnknown_08597138, 0x82, 10, 10, 1 - playsewithpan SE_W013, +63 + playsewithpan SE_W013, SOUND_PAN_TARGET waitforvisualfinish blendoff clearmonbg ANIM_TARGET @@ -4214,15 +4214,15 @@ Move_AROMATHERAPY: delay 0x1 createsprite gUnknown_08597274, 0x0, 1, 0, 7, 0, RGB(13, 31, 12) delay 0x1 - playsewithpan SE_W287, -64 + playsewithpan SE_W287, SOUND_PAN_ATTACKER createvisualtask sub_815DFCC, 0x2, 1 waitforvisualfinish - playsewithpan SE_W234, -64 + playsewithpan SE_W234, SOUND_PAN_ATTACKER createsprite gUnknown_08592B94, 0x10, -15, 0, 0, 0, 32, 60, 1 delay 0x8 createsprite gUnknown_08592B94, 0x10, 12, -5, 0, 0, 32, 60, 1 waitforvisualfinish - playsewithpan SE_REAPOKE, -64 + playsewithpan SE_REAPOKE, SOUND_PAN_ATTACKER createsprite gUnknown_08597274, 0x0, 43, 3, 10, 0, RGB(13, 31, 12) createsprite gUnknown_08593868, 0x10, 0, 0, 0, 1 waitforvisualfinish @@ -4235,7 +4235,7 @@ Move_FAKE_TEARS: createvisualtask sub_8116848, 0x5, 10155, 0, 4, 4, RGB(12, 11, 31) waitforvisualfinish createvisualtask sub_815C478, 0x5, 0, 2, 1 - loopsewithpan SE_W039, -64, 0xC, 0x4 + loopsewithpan SE_W039, SOUND_PAN_ATTACKER, 0xC, 0x4 delay 0x8 createsprite gUnknown_085970E8, 0x2, 0, 0 createsprite gUnknown_085970E8, 0x2, 0, 1 @@ -4261,7 +4261,7 @@ Move_AIR_CUTTER: delay 0x0 createvisualtask sub_8103CF0, 0x2, 32, -24, 1536, 2, 128 waitforvisualfinish - playsewithpan SE_W015, +63 + playsewithpan SE_W015, SOUND_PAN_TARGET createsprite gUnknown_08592A34, 0x2, 40, -32, 0, 2 delay 0x5 createvisualtask sub_80D52D0, 0x2, 1, 2, 0, 8, 1 @@ -4277,15 +4277,15 @@ Move_ODOR_SLEUTH: createvisualtask sub_815F620, 0x5 delay 0x18 createsprite gUnknown_0857FE28, 0x2, 3, 4 - playsewithpan SE_W207, -64 + playsewithpan SE_W207, SOUND_PAN_ATTACKER delay 0x6 createsprite gUnknown_0857FE28, 0x2, 3, 4 - playsewithpan SE_W207, -64 + playsewithpan SE_W207, SOUND_PAN_ATTACKER waitforvisualfinish clearmonbg ANIM_TARGET delay 0x1 createsprite gUnknown_0859728C, 0x2, 1, 3, 1, -1, 16, -1, 0 - playsewithpan SE_W043, -64 + playsewithpan SE_W043, SOUND_PAN_ATTACKER end Move_GRASS_WHISTLE: @@ -4294,7 +4294,7 @@ Move_GRASS_WHISTLE: waitforvisualfinish createvisualtask sub_8102BE8, 0x2 waitforvisualfinish - panse_1B SE_W320, -64, +63, +2, 0x0 + panse_1B SE_W320, SOUND_PAN_ATTACKER, SOUND_PAN_TARGET, +2, 0x0 createsprite gUnknown_08593008, 0x82, 7, 1, 0 delay 0x5 createsprite gUnknown_08593008, 0x82, 6, 1, 0 @@ -4331,7 +4331,7 @@ Move_TICKLE: waitforvisualfinish createsprite gUnknown_08593A84, 0x0, -16, -8 createsprite gUnknown_08593A84, 0x0, 16, -8 - playsewithpan SE_W197, -64 + playsewithpan SE_W197, SOUND_PAN_ATTACKER waitforvisualfinish createsprite gUnknown_08597274, 0x2, 2, 0, 16, 0, RGB_BLACK waitforvisualfinish @@ -4339,7 +4339,7 @@ Move_TICKLE: createvisualtask sub_80D5EB8, 0x3, 0, 6, 1280, 3, 0 delay 0xC createvisualtask sub_815C478, 0x3, 1, 6, 2 - loopsewithpan SE_W039, +63, 0x8, 0x8 + loopsewithpan SE_W039, SOUND_PAN_TARGET, 0x8, 0x8 waitforvisualfinish end @@ -4349,13 +4349,13 @@ Move_WATER_SPOUT: monbg ANIM_DEF_PARTNER setalpha 0x80C createvisualtask sub_81080E4, 0x5 - playsewithpan SE_W029, -64 + playsewithpan SE_W029, SOUND_PAN_ATTACKER delay 0x2C - playsewithpan SE_W291, -64 + playsewithpan SE_W291, SOUND_PAN_ATTACKER waitforvisualfinish delay 0x10 createvisualtask sub_81085C8, 0x5 - playsewithpan SE_W057, +63 + playsewithpan SE_W057, SOUND_PAN_TARGET clearmonbg ANIM_DEF_PARTNER blendoff end @@ -4368,11 +4368,11 @@ Move_SHADOW_PUNCH: monbg ANIM_ATK_PARTNER setalpha 0x809 createvisualtask sub_80A8BC4, 0x2, 0, 13 - playsewithpan SE_W026, -64 + playsewithpan SE_W026, SOUND_PAN_ATTACKER delay 0x6 createsprite gUnknown_08597358, 0x83, 0, 0, 1, 1 createsprite gUnknown_08595E98, 0x84, 0, 0, 8, 1, 0 - playsewithpan SE_W004, +63 + playsewithpan SE_W004, SOUND_PAN_TARGET createvisualtask sub_80D51AC, 0x2, 1, 3, 0, 6, 1 waitforvisualfinish clearmonbg ANIM_ATK_PARTNER @@ -4387,15 +4387,15 @@ Move_EXTRASENSORY: setalpha 0x80C createvisualtask sub_80A7B98, 0x5, 0, RGB(27, 27, 0), 12, 1, 1 createvisualtask sub_810FE14, 0x5, 0 - playsewithpan SE_W020, +63 + playsewithpan SE_W020, SOUND_PAN_TARGET waitforvisualfinish createvisualtask sub_80A7B98, 0x5, 0, RGB(27, 27, 0), 12, 1, 1 createvisualtask sub_810FE14, 0x5, 1 - playsewithpan SE_W020, +63 + playsewithpan SE_W020, SOUND_PAN_TARGET waitforvisualfinish createvisualtask sub_8110034, 0x5, 0 createvisualtask sub_810FE14, 0x5, 2 - playsewithpan SE_W043, -64 + playsewithpan SE_W043, SOUND_PAN_ATTACKER waitforvisualfinish blendoff clearmonbg ANIM_DEF_PARTNER @@ -4409,18 +4409,18 @@ Move_AERIAL_ACE: createvisualtask sub_80D5830, 0x2, 0, 24, 6, 1, 5 createvisualtask sub_81169C0, 0x2, 0, 4, 7, 3 createsprite gUnknown_08592A1C, 0x2, 40, -32, 0 - playsewithpan SE_W013B, -64 + playsewithpan SE_W013B, SOUND_PAN_ATTACKER delay 0x5 createvisualtask sub_80D51AC, 0x2, 1, 0, 3, 10, 1 createsprite gUnknown_0859728C, 0x2, 31, 3, 1, 0, 10, 0, 0 - playsewithpan SE_W013, +63 + playsewithpan SE_W013, SOUND_PAN_TARGET waitforvisualfinish clearmonbg ANIM_TARGET blendoff end Move_IRON_DEFENSE: - loopsewithpan SE_REAPOKE, -64, 0x1C, 0x2 + loopsewithpan SE_REAPOKE, SOUND_PAN_ATTACKER, 0x1C, 0x2 createvisualtask sub_81144F8, 0x5, 0, 0, 0 createsprite gUnknown_0859728C, 0x2, 1, 8, 2, -1, 14, -1, 0 waitforvisualfinish @@ -4429,7 +4429,7 @@ Move_IRON_DEFENSE: Move_BLOCK: loadspritegfx 0x280A createsprite gUnknown_085CE90C, 0xC2 - playsewithpan SE_W207, +63 + playsewithpan SE_W207, SOUND_PAN_TARGET end Move_HOWL: @@ -4445,10 +4445,10 @@ Move_HOWL: Move_BULK_UP: loadspritegfx 0x2766 createvisualtask sub_8104AB4, 0x2 - playsewithpan SE_W207, -64 + playsewithpan SE_W207, SOUND_PAN_ATTACKER waitforvisualfinish createsprite gUnknown_08593658, 0x2 - loopsewithpan SE_W207, -64, 0x4, 0x2 + loopsewithpan SE_W207, SOUND_PAN_ATTACKER, 0x4, 0x2 waitforvisualfinish end @@ -4457,16 +4457,16 @@ Move_COVET: loadspritegfx 0x27F0 createvisualtask sub_815C478, 0x5, 0, 2, 0 createsprite gUnknown_08593970, 0x3, 0, 20 - playsewithpan SE_W204, -64 + playsewithpan SE_W204, SOUND_PAN_ATTACKER delay 0xF createsprite gUnknown_08593970, 0x3, -20, 20 - playsewithpan SE_W204, -64 + playsewithpan SE_W204, SOUND_PAN_ATTACKER delay 0xF createsprite gUnknown_08593970, 0x3, 20, 20 - playsewithpan SE_W204, -64 + playsewithpan SE_W204, SOUND_PAN_ATTACKER waitforvisualfinish createvisualtask sub_80D52D0, 0x2, 1, 2, 0, 8, 1 - loopsewithpan SE_W146, +63, 0x4, 0x3 + loopsewithpan SE_W146, SOUND_PAN_TARGET, 0x4, 0x3 end Move_VOLT_TACKLE: @@ -4478,28 +4478,28 @@ Move_VOLT_TACKLE: createvisualtask sub_8116620, 0xA, 1, 0, 0, 8, 0 waitforvisualfinish createsprite gUnknown_085959A4, 0x1 - playsewithpan SE_W268, -64 + playsewithpan SE_W268, SOUND_PAN_ATTACKER waitforvisualfinish clearmonbg ANIM_ATTACKER blendoff delay 0x8 createvisualtask sub_810AFCC, 0x5, 0 - playsewithpan SE_W085, -64 + playsewithpan SE_W085, SOUND_PAN_ATTACKER waitforvisualfinish createvisualtask sub_810AFCC, 0x5, 1 - playsewithpan SE_W085, +63 + playsewithpan SE_W085, SOUND_PAN_TARGET waitforvisualfinish createvisualtask sub_810AFCC, 0x5, 2 - playsewithpan SE_W085, -64 + playsewithpan SE_W085, SOUND_PAN_ATTACKER waitforvisualfinish createvisualtask sub_810AFCC, 0x5, 3 - playsewithpan SE_W085, +63 + playsewithpan SE_W085, SOUND_PAN_TARGET waitforvisualfinish createvisualtask sub_810AFCC, 0x5, 4 - playsewithpan SE_W085, -64 + playsewithpan SE_W085, SOUND_PAN_ATTACKER delay 0x8 createvisualtask sub_80D52D0, 0x2, 1, 10, 0, 18, 1 - playsewithpan SE_W120, +63 + playsewithpan SE_W120, SOUND_PAN_TARGET createsprite gUnknown_0859598C, 0x2, 1, 16, 16 delay 0x2 createsprite gUnknown_0859598C, 0x2, 1, -16, -16 @@ -4507,7 +4507,7 @@ Move_VOLT_TACKLE: createvisualtask sub_810AE5C, 0x5 waitforvisualfinish createvisualtask sub_80D52D0, 0x2, 0, 3, 0, 9, 1 - playsewithpan SE_W085B, -64 + playsewithpan SE_W085B, SOUND_PAN_ATTACKER createsprite gUnknown_0859598C, 0x2, 0, 16, 16 delay 0x2 createsprite gUnknown_0859598C, 0x2, 0, -16, -16 @@ -4520,13 +4520,13 @@ Move_WATER_SPORT: loadspritegfx 0x281C createvisualtask sub_81088E4, 0x5 delay 0x8 - playsewithpan SE_W057, -64 + playsewithpan SE_W057, SOUND_PAN_ATTACKER delay 0x2C - playsewithpan SE_W057, -64 + playsewithpan SE_W057, SOUND_PAN_ATTACKER delay 0x2C - playsewithpan SE_W057, -64 + playsewithpan SE_W057, SOUND_PAN_ATTACKER delay 0x2C - panse_1B SE_W057, -64, +63, +2, 0x0 + panse_1B SE_W057, SOUND_PAN_ATTACKER, SOUND_PAN_TARGET, +2, 0x0 end Move_CALM_MIND: @@ -4537,13 +4537,13 @@ Move_CALM_MIND: createvisualtask sub_81177E4, 0x5, 1 waitforvisualfinish createsprite gUnknown_08593850, 0x28, 0, 0, 0, 0 - playsewithpan SE_W048, -64 + playsewithpan SE_W048, SOUND_PAN_ATTACKER delay 0xE createsprite gUnknown_08593850, 0x28, 0, 0, 0, 0 - playsewithpan SE_W048, -64 + playsewithpan SE_W048, SOUND_PAN_ATTACKER delay 0xE createsprite gUnknown_08593850, 0x28, 0, 0, 0, 0 - playsewithpan SE_W048, -64 + playsewithpan SE_W048, SOUND_PAN_ATTACKER waitforvisualfinish createvisualtask sub_81177E4, 0x5, 0 waitforvisualfinish @@ -4558,20 +4558,20 @@ Move_LEAF_BLADE: createvisualtask sub_80FFFC0, 0x5 delay 0x2 createvisualtask sub_80D52D0, 0x2, 1, 2, 0, 8, 1 - playsewithpan SE_W015, +63 + playsewithpan SE_W015, SOUND_PAN_TARGET delay 0x32 createvisualtask sub_80D52D0, 0x2, 1, 2, 0, 8, 1 - playsewithpan SE_W015, +63 + playsewithpan SE_W015, SOUND_PAN_TARGET delay 0x32 createvisualtask sub_80D52D0, 0x2, 1, 2, 0, 8, 1 - playsewithpan SE_W015, +63 + playsewithpan SE_W015, SOUND_PAN_TARGET waitforvisualfinish monbg ANIM_TARGET setalpha 0x80C delay 0xC createvisualtask sub_80D52D0, 0x2, 1, 8, 0, 18, 1 createsprite gUnknown_085973D0, 0x82, 0, 0, 1, 36 - playsewithpan SE_W043, +63 + playsewithpan SE_W043, SOUND_PAN_TARGET waitforvisualfinish clearmonbg ANIM_TARGET blendoff @@ -4583,7 +4583,7 @@ Move_DRAGON_DANCE: monbgprio_28 ANIM_ATTACKER delay 0x1 createvisualtask sub_81133E8, 0x5 - playsewithpan SE_W100, -64 + playsewithpan SE_W100, SOUND_PAN_ATTACKER delay 0x8 createvisualtask sub_80A7CB4, 0x5, 10249, 19456, 14, 0, 3 createsprite gUnknown_08596F98, 0x2, 0 @@ -4593,9 +4593,9 @@ Move_DRAGON_DANCE: createsprite gUnknown_08596F98, 0x2, 170 createsprite gUnknown_08596F98, 0x2, 213 delay 0x1E - playsewithpan SE_W100, -64 + playsewithpan SE_W100, SOUND_PAN_ATTACKER delay 0x1E - playsewithpan SE_W100, -64 + playsewithpan SE_W100, SOUND_PAN_ATTACKER waitforvisualfinish clearmonbg ANIM_ATTACKER delay 0x1 @@ -4611,7 +4611,7 @@ Move_SHOCK_WAVE: createsprite gUnknown_08597274, 0x2, 1, 2, 0, 4, RGB_BLACK waitforvisualfinish createvisualtask sub_810AAFC, 0x2, 0, 20, 0, 2 - playsewithpan SE_W268, -64 + playsewithpan SE_W268, SOUND_PAN_ATTACKER delay 0xC createsprite gUnknown_08595A18, 0x2 delay 0x1E @@ -4619,7 +4619,7 @@ Move_SHOCK_WAVE: delay 0xC waitforvisualfinish createvisualtask sub_810B55C, 0x5 - playsewithpan SE_W161B, +63 + playsewithpan SE_W161B, SOUND_PAN_TARGET waitforvisualfinish createvisualtask sub_80D51AC, 0x2, 1, 0, 6, 18, 1 createvisualtask sub_8116620, 0x5, 1, 3, 16, 0, 0x7FFF @@ -4632,7 +4632,7 @@ Move_SHOCK_WAVE: end Move_HARDEN: - loopsewithpan SE_W231, -64, 0x1C, 0x2 + loopsewithpan SE_W231, SOUND_PAN_ATTACKER, 0x1C, 0x2 createvisualtask sub_81144F8, 0x5, 0, 0, 0 waitforvisualfinish end @@ -4644,27 +4644,27 @@ Move_BELLY_DRUM: waitforvisualfinish call AnimScript_82CF5A6 createsprite gUnknown_0859309C, 0x2, 0, 0, 0, 0 - playsewithpan SE_W187, -64 + playsewithpan SE_W187, SOUND_PAN_ATTACKER delay 0xF call AnimScript_82CF58B createsprite gUnknown_0859309C, 0x2, 1, 1, 1, 0 - playsewithpan SE_W187, -64 + playsewithpan SE_W187, SOUND_PAN_ATTACKER delay 0xF call AnimScript_82CF5A6 createsprite gUnknown_0859309C, 0x2, 0, 3, 3, 128 - playsewithpan SE_W187, -64 + playsewithpan SE_W187, SOUND_PAN_ATTACKER delay 0x7 call AnimScript_82CF58B createsprite gUnknown_0859309C, 0x2, 1, 2, 0, 128 - playsewithpan SE_W187, -64 + playsewithpan SE_W187, SOUND_PAN_ATTACKER delay 0x7 call AnimScript_82CF5A6 createsprite gUnknown_0859309C, 0x2, 0, 1, 1, 0 - playsewithpan SE_W187, -64 + playsewithpan SE_W187, SOUND_PAN_ATTACKER delay 0x7 call AnimScript_82CF58B createsprite gUnknown_0859309C, 0x2, 1, 0, 3, 0 - playsewithpan SE_W187, -64 + playsewithpan SE_W187, SOUND_PAN_ATTACKER waitforvisualfinish createvisualtask sub_8102CA0, 0x2 waitforvisualfinish @@ -4685,11 +4685,11 @@ Move_MIND_READER: loadspritegfx 0x27CE loadspritegfx 0x27CF monbg ANIM_DEF_PARTNER - playsewithpan SE_W109, +63 + playsewithpan SE_W109, SOUND_PAN_TARGET createsprite gUnknown_085CE07C, 0x5, 0, 0, 1, 0 createsprite gUnknown_085CE094, 0x5 delay 0x28 - playsewithpan SE_W043, +63 + playsewithpan SE_W043, SOUND_PAN_TARGET createvisualtask sub_8115A04, 0x2, 1, 1, 2, 0, 10, 0 call AnimScript_82CF608 waitforvisualfinish @@ -4729,7 +4729,7 @@ Move_ICE_PUNCH: createsprite gUnknown_08597274, 0x2, 1, 1, 0, 7, RGB_BLACK createvisualtask sub_8116620, 0xA, 4, 2, 0, 9, 32588 delay 0x14 - playsewithpan SE_W081, +63 + playsewithpan SE_W081, SOUND_PAN_TARGET createsprite gUnknown_08595AE8, 0x2, 0 createsprite gUnknown_08595AE8, 0x2, 64 createsprite gUnknown_08595AE8, 0x2, 128 @@ -4742,7 +4742,7 @@ Move_ICE_PUNCH: delay 0x11 createsprite gUnknown_08595E98, 0x4, 0, -10, 8, 1, 0 createsprite gUnknown_08597358, 0x3, 0, -10, 1, 1 - playsewithpan SE_W004, +63 + playsewithpan SE_W004, SOUND_PAN_TARGET delay 0x2 createvisualtask sub_80D51AC, 0x5, 1, 0, 5, 3, 1 waitforvisualfinish @@ -4758,7 +4758,7 @@ Move_ICE_PUNCH: end Move_REST: - playsewithpan SE_W173, -64 + playsewithpan SE_W173, SOUND_PAN_ATTACKER loadspritegfx 0x27F4 createsprite gUnknown_08592C88, 0x2, 4, -10, 16, 0, 0 delay 0x14 @@ -4775,7 +4775,7 @@ Move_CONFUSION: createvisualtask sub_80D52D0, 0x2, 0, 1, 0, 10, 1 createvisualtask sub_8115A04, 0x2, 2, 0, 2, 0, 8, 0x7FFF waitforvisualfinish - playsewithpan SE_W048, +63 + playsewithpan SE_W048, SOUND_PAN_TARGET createvisualtask sub_80D51AC, 0x2, 1, 3, 0, 15, 1 createvisualtask sub_80D6064, 0x5, -4, -4, 15, 1, 1 waitforvisualfinish @@ -4792,7 +4792,7 @@ Move_PSYCHIC: createvisualtask sub_80D52D0, 0x2, 0, 1, 0, 10, 1 createvisualtask sub_8115A04, 0x2, 2, 0, 2, 0, 8, 767 waitforvisualfinish - loopsewithpan SE_W048, +63, 0xA, 0x3 + loopsewithpan SE_W048, SOUND_PAN_TARGET, 0xA, 0x3 createvisualtask sub_80D51AC, 0x2, 1, 5, 0, 15, 1 createvisualtask sub_80D6064, 0x5, -6, -6, 15, 1, 1 waitforvisualfinish @@ -4813,10 +4813,10 @@ AnimScript_82CF8ED: AnimScript_82CF8F6: monbg ANIM_ATK_PARTNER - playsewithpan SE_W060, -64 + playsewithpan SE_W060, SOUND_PAN_ATTACKER call AnimScript_82D7CD1 setalpha 0x808 - playsewithpan SE_W048, -64 + playsewithpan SE_W048, SOUND_PAN_ATTACKER createvisualtask sub_8115A04, 0x2, 2, 0, 2, 0, 8, 0x7FFF createvisualtask sub_80D6064, 0x5, -4, -4, 15, 0, 1 waitforvisualfinish @@ -4833,7 +4833,7 @@ Move_THUNDER: createsprite gUnknown_08597274, 0x2, 1, 2, 0, 16, RGB_BLACK delay 0x10 createvisualtask sub_8115F10, 0x2, 257, 257, 257 - playsewithpan SE_W086, +63 + playsewithpan SE_W086, SOUND_PAN_TARGET delay 0x1 createsprite gUnknown_085956C0, 0x82, 16, -36 delay 0x1 @@ -4842,12 +4842,12 @@ Move_THUNDER: createsprite gUnknown_085956C0, 0x82, 16, 12 delay 0x14 createsprite gUnknown_085956C0, 0x86, -16, -32 - playsewithpan SE_W086, +63 + playsewithpan SE_W086, SOUND_PAN_TARGET delay 0x1 createsprite gUnknown_085956C0, 0x86, -16, -16 delay 0x1 createsprite gUnknown_085956C0, 0x86, -16, 16 - playsewithpan SE_W086, +63 + playsewithpan SE_W086, SOUND_PAN_TARGET delay 0x5 createvisualtask sub_8115F10, 0x2, 257, 257, 257 delay 0x1 @@ -4862,7 +4862,7 @@ Move_THUNDER: createvisualtask sub_8115F10, 0x2, 257, 257, 257 delay 0x1 createsprite gUnknown_085956C0, 0x82, 0, -32 - playsewithpan SE_W161B, +63 + playsewithpan SE_W161B, SOUND_PAN_TARGET delay 0x1 createsprite gUnknown_085956C0, 0x82, 0, -16 delay 0x1 @@ -4890,7 +4890,7 @@ Move_THUNDER_PUNCH: setalpha 0x80C createsprite gUnknown_08597274, 0x2, 1, 2, 0, 16, RGB_BLACK waitforvisualfinish - playsewithpan SE_W004, +63 + playsewithpan SE_W004, SOUND_PAN_TARGET createsprite gUnknown_08595E98, 0x84, 0, 0, 8, 1, 0 createsprite gUnknown_08597358, 0x83, 0, 0, 1, 1 delay 0x1 @@ -4902,7 +4902,7 @@ Move_THUNDER_PUNCH: delay 0x1 createsprite gUnknown_085956C0, 0x2, 0, 16 delay 0x1 - playsewithpan SE_W161B, +63 + playsewithpan SE_W161B, SOUND_PAN_TARGET createvisualtask sub_8115F10, 0x2, 257, 257, 257 delay 0x2 createvisualtask sub_80D51AC, 0x2, 1, 0, 3, 15, 1 @@ -4918,7 +4918,7 @@ Move_THUNDER_PUNCH: Move_SACRED_FIRE: loadspritegfx 0x2731 loadspritegfx 0x2733 - loopsewithpan SE_W221, -64, 0x7, 0x5 + loopsewithpan SE_W221, SOUND_PAN_ATTACKER, 0x7, 0x5 createsprite gUnknown_08595428, 0x2, -32, 0, 50, 5, -2, 0 delay 0x1 createsprite gUnknown_08595428, 0x42, -20, -10, 50, 5, -1, -1 @@ -4939,13 +4939,13 @@ Move_SACRED_FIRE: createvisualtask sub_8115F10, 0x2, 257, 257, 257 delay 0x1 waitforvisualfinish - playsewithpan SE_W221B, +63 + playsewithpan SE_W221B, SOUND_PAN_TARGET createsprite gUnknown_085953F8, 0x82, -16, 0, 70, 16, 0, 1 delay 0xA - playsewithpan SE_W221B, +63 + playsewithpan SE_W221B, SOUND_PAN_TARGET createsprite gUnknown_085953F8, 0x82, 0, 0, 70, 16, 0, 1 delay 0xA - playsewithpan SE_W221B, +63 + playsewithpan SE_W221B, SOUND_PAN_TARGET createsprite gUnknown_085953F8, 0x82, 16, 0, 80, 16, 0, 1 delay 0x1 createvisualtask sub_8115F10, 0x2, 257, 257, 257 @@ -4953,7 +4953,7 @@ Move_SACRED_FIRE: waitforvisualfinish createvisualtask sub_8115F10, 0x2, 257, 257, 257 delay 0x1 - playsewithpan SE_W172B, +63 + playsewithpan SE_W172B, SOUND_PAN_TARGET createsprite gUnknown_08595410, 0x82, 0, 0, 30, 30, -1, 0 delay 0x1 createsprite gUnknown_08595410, 0x82, 0, 0, 30, 30, 0, 1 @@ -4976,7 +4976,7 @@ Move_SCRATCH: loadspritegfx 0x2799 monbg ANIM_TARGET setalpha 0x80C - playsewithpan SE_W010, +63 + playsewithpan SE_W010, SOUND_PAN_TARGET createsprite gUnknown_085CE020, 0x2, 0, 0, 1, 0 createvisualtask sub_80D51AC, 0x2, 1, 3, 0, 6, 1 waitforvisualfinish @@ -4989,7 +4989,7 @@ Move_DRAGON_BREATH: loadspritegfx 0x272D monbg ANIM_DEF_PARTNER monbgprio_28 ANIM_TARGET - loopsewithpan SE_W172, -64, 0x7, 0x7 + loopsewithpan SE_W172, SOUND_PAN_ATTACKER, 0x7, 0x7 createsprite gUnknown_08596EF4, 0x82, 0, 0, 0, 0, 20 delay 0x2 createsprite gUnknown_08596EF4, 0x82, 0, 0, 0, 0, 20 @@ -5072,7 +5072,7 @@ Move_SNORE: end AnimScript_82CFF76: - playsewithpan SE_W173, -64 + playsewithpan SE_W173, SOUND_PAN_ATTACKER createvisualtask sub_80D6064, 0x5, -7, -7, 7, 0, 1 createvisualtask sub_80D52D0, 0x2, 1, 4, 0, 7, 1 createsprite gUnknown_085972D8, 0x2, 6, 1, 14, 0, 0 @@ -5085,7 +5085,7 @@ Move_LIGHT_SCREEN: loadspritegfx 0x2756 loadspritegfx 0x27B6 setalpha 0x1000 - waitplaysewithpan SE_W115, -64, 0xF + waitplaysewithpan SE_W115, SOUND_PAN_ATTACKER, 0xF createsprite gUnknown_08596560, 0x1, 40, 0, 10166 delay 0xA call AnimScript_82D0014 @@ -5114,7 +5114,7 @@ Move_MIRROR_COAT: setalpha 0x1000 createsprite gUnknown_08596590, 0x1, 40, 0, 10168 delay 0xA - playsewithpan SE_W115, -64 + playsewithpan SE_W115, SOUND_PAN_ATTACKER call AnimScript_82D0014 waitforvisualfinish delay 0x1 @@ -5125,7 +5125,7 @@ Move_REFLECT: loadspritegfx 0x2757 loadspritegfx 0x27B7 setalpha 0x1000 - waitplaysewithpan SE_W115, -64, 0xF + waitplaysewithpan SE_W115, SOUND_PAN_ATTACKER, 0xF createsprite gUnknown_08596578, 0x1, 40, 0, 10167 delay 0x14 createsprite gUnknown_085965F4, 0x2, 30, 0, 0, 1 @@ -5141,7 +5141,7 @@ Move_REFLECT: Move_BARRIER: loadspritegfx 0x27B9 setalpha 0x1000 - waitplaysewithpan SE_W112, -64, 0xF + waitplaysewithpan SE_W112, SOUND_PAN_ATTACKER, 0xF createsprite gUnknown_085965A8, 0x3, 40, 0, 10169 waitforvisualfinish delay 0x1 @@ -5155,28 +5155,28 @@ Move_BUBBLE: setalpha 0x80C delay 0x1 createsprite gUnknown_08595068, 0x2, 18, 0, 15, -15, 10, 128, 100 - playsewithpan SE_W145, -64 - waitplaysewithpan SE_W145B, +63, 0x64 + playsewithpan SE_W145, SOUND_PAN_ATTACKER + waitplaysewithpan SE_W145B, SOUND_PAN_TARGET, 0x64 delay 0x6 createsprite gUnknown_08595068, 0x2, 18, 0, 35, 37, 40, 128, 100 - playsewithpan SE_W145, -64 - waitplaysewithpan SE_W145B, +63, 0x64 + playsewithpan SE_W145, SOUND_PAN_ATTACKER + waitplaysewithpan SE_W145B, SOUND_PAN_TARGET, 0x64 delay 0x6 createsprite gUnknown_08595068, 0x2, 18, 0, 10, -37, 30, 128, 100 - playsewithpan SE_W145, -64 - waitplaysewithpan SE_W145B, +63, 0x64 + playsewithpan SE_W145, SOUND_PAN_ATTACKER + waitplaysewithpan SE_W145B, SOUND_PAN_TARGET, 0x64 delay 0x6 createsprite gUnknown_08595068, 0x2, 18, 0, 30, 10, 15, 128, 100 - playsewithpan SE_W145, -64 - waitplaysewithpan SE_W145B, +63, 0x64 + playsewithpan SE_W145, SOUND_PAN_ATTACKER + waitplaysewithpan SE_W145B, SOUND_PAN_TARGET, 0x64 delay 0x6 createsprite gUnknown_08595068, 0x2, 18, 0, 20, 33, 20, 128, 100 - playsewithpan SE_W145, -64 - waitplaysewithpan SE_W145B, +63, 0x64 + playsewithpan SE_W145, SOUND_PAN_ATTACKER + waitplaysewithpan SE_W145B, SOUND_PAN_TARGET, 0x64 delay 0x6 createsprite gUnknown_08595068, 0x2, 18, 0, 25, -30, 10, 128, 100 - playsewithpan SE_W145, -64 - waitplaysewithpan SE_W145B, +63, 0x64 + playsewithpan SE_W145, SOUND_PAN_ATTACKER + waitplaysewithpan SE_W145B, SOUND_PAN_TARGET, 0x64 waitforvisualfinish call AnimScript_82D7B53 waitforvisualfinish @@ -5189,7 +5189,7 @@ Move_SMOG: monbg ANIM_DEF_PARTNER monbgprio_29 setalpha 0x80C - loopsewithpan SE_W054, +63, 0x11, 0xA + loopsewithpan SE_W054, SOUND_PAN_TARGET, 0x11, 0xA call AnimScript_82D024A call AnimScript_82D024A call AnimScript_82D024A @@ -5198,7 +5198,7 @@ Move_SMOG: call AnimScript_82D024A call AnimScript_82D024A delay 0x78 - loopsewithpan SE_W092, +63, 0x12, 0x2 + loopsewithpan SE_W092, SOUND_PAN_TARGET, 0x12, 0x2 createvisualtask sub_8115A04, 0x2, 4, 2, 2, 0, 12, 26650 delay 0xA createvisualtask sub_80D52D0, 0x2, 1, 2, 0, 15, 1 @@ -5218,7 +5218,7 @@ Move_FAINT_ATTACK: fadetobg BG_DARK waitbgfadein delay 0x0 - playsewithpan SE_W185, -64 + playsewithpan SE_W185, SOUND_PAN_ATTACKER createvisualtask sub_80D5830, 0x2, 0, 18, 6, 1, 3 createvisualtask sub_81136E8, 0x2, 1 waitforvisualfinish @@ -5229,7 +5229,7 @@ Move_FAINT_ATTACK: setalpha 0x80C monbg ANIM_TARGET delay 0x1 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x2, 0, 0, 1, 1 createvisualtask sub_80D52D0, 0x2, 1, 2, 0, 9, 1 waitforvisualfinish @@ -5253,7 +5253,7 @@ Move_SAND_ATTACK: monbg ANIM_ATK_PARTNER monbgprio_28 ANIM_ATTACKER setalpha 0x80C - playsewithpan SE_W028, -64 + playsewithpan SE_W028, SOUND_PAN_ATTACKER createsprite gUnknown_0857FE70, 0x2, 0, -10, 0, 0, 3 waitforvisualfinish createsprite gUnknown_0857FE58, 0x2, 0, 0, 2 @@ -5279,7 +5279,7 @@ AnimScript_82D0337: Move_MUD_SLAP: loadspritegfx 0x275A - playsewithpan SE_W028, -64 + playsewithpan SE_W028, SOUND_PAN_ATTACKER createsprite gUnknown_0857FE70, 0x2, 0, -10, 0, 0, 3 waitforvisualfinish createsprite gUnknown_0857FE58, 0x2, 0, 0, 2 @@ -5304,14 +5304,14 @@ AnimScript_82D03D5: Move_DRAGON_RAGE: loadspritegfx 0x272D loadspritegfx 0x2733 - playsewithpan SE_W082, -64 + playsewithpan SE_W082, SOUND_PAN_ATTACKER createvisualtask sub_80D51AC, 0x5, 0, 0, 2, 40, 1 waitforvisualfinish createsprite gUnknown_0857FE70, 0x82, 0, 15, 0, 0, 4 waitforvisualfinish createsprite gUnknown_08596F80, 0x82, 30, 15, 0, 10, 10 waitforvisualfinish - loopsewithpan SE_W172B, +63, 0xB, 0x3 + loopsewithpan SE_W172B, SOUND_PAN_TARGET, 0xB, 0x3 createvisualtask sub_80D51AC, 0x5, 1, 0, 3, 25, 1 createsprite gUnknown_08596F28, 0xC2, 1, 5, 0 delay 0x1 @@ -5335,7 +5335,7 @@ Move_DRAGON_RAGE: Move_RAIN_DANCE: loadspritegfx 0x2783 - playsewithpan SE_W240, -64 + playsewithpan SE_W240, SOUND_PAN_ATTACKER createvisualtask sub_8116620, 0xA, 1921, 2, 0, 4, 0 waitforvisualfinish createvisualtask sub_8107188, 0x2, 0, 3, 120 @@ -5352,7 +5352,7 @@ Move_BITE: loadspritegfx 0x2797 monbg ANIM_TARGET setalpha 0x80C - playsewithpan SE_W044, +63 + playsewithpan SE_W044, SOUND_PAN_TARGET createsprite gUnknown_08597080, 0x2, 0, -32, 0, 0, 819, 10 createsprite gUnknown_08597080, 0x2, 0, 32, 4, 0, -819, 10 delay 0xA @@ -5371,14 +5371,14 @@ Move_CRUNCH: fadetobg BG_DARK waitbgfadein setalpha 0x80C - playsewithpan SE_W044, +63 + playsewithpan SE_W044, SOUND_PAN_TARGET createsprite gUnknown_08597080, 0x2, -32, -32, 1, 819, 819, 10 createsprite gUnknown_08597080, 0x2, 32, 32, 5, -819, -819, 10 delay 0xA createsprite gUnknown_08597358, 0x2, -8, 0, 1, 1 createvisualtask sub_80D51AC, 0x5, 1, 0, 7, 5, 2 waitforvisualfinish - playsewithpan SE_W044, +63 + playsewithpan SE_W044, SOUND_PAN_TARGET createsprite gUnknown_08597080, 0x2, 32, -32, 7, -819, 819, 10 createsprite gUnknown_08597080, 0x2, -32, 32, 3, 819, -819, 10 delay 0xA @@ -5397,7 +5397,7 @@ Move_CLAMP: loadspritegfx 0x2797 monbg ANIM_TARGET setalpha 0x80C - playsewithpan SE_W011, +63 + playsewithpan SE_W011, SOUND_PAN_TARGET createsprite gUnknown_08597098, 0x2, -32, 0, 2, 819, 0, 10 createsprite gUnknown_08597098, 0x2, 32, 0, 6, -819, 0, 10 delay 0xA @@ -5455,7 +5455,7 @@ AnimScript_82D07C1: return Move_WITHDRAW: - playsewithpan SE_W029, -64 + playsewithpan SE_W029, SOUND_PAN_ATTACKER createvisualtask sub_81036A0, 0x5 waitforvisualfinish end @@ -5464,7 +5464,7 @@ Move_AURORA_BEAM: loadspritegfx 0x279C fadetobg BG_AURORABEAM waitbgfadein - playsewithpan SE_W062, -64 + playsewithpan SE_W062, SOUND_PAN_ATTACKER setarg 0x7, 0x0 createvisualtask sub_8107528, 0xA, 130 call AnimScript_82D088B @@ -5509,7 +5509,7 @@ AnimScript_82D08E6: monbg ANIM_ATK_PARTNER setalpha 0x80C createvisualtask sub_8115A04, 0x2, 2, 1, 4, 0, 11, 12287 - playsewithpan SE_W025, -64 + playsewithpan SE_W025, SOUND_PAN_ATTACKER call AnimScript_82D0910 waitforvisualfinish clearmonbg ANIM_ATK_PARTNER @@ -5549,7 +5549,7 @@ AnimScript_82D0910: AnimScript_82D09E3: call AnimScript_82D7D1D - panse_1B SE_W076, -64, +63, +2, 0x0 + panse_1B SE_W076, SOUND_PAN_ATTACKER, SOUND_PAN_TARGET, +2, 0x0 createvisualtask sub_80FEA58, 0x5 createsprite gUnknown_085921F8, 0x83, 15, 0, 20, 0 delay 0x4 @@ -5603,10 +5603,10 @@ AnimScript_82D0B43: createvisualtask sub_8117660, 0x5, -2304, 0, 1, -1 waitbgfadein waitforvisualfinish - panse_1B SE_W059, -64, +63, +2, 0x0 + panse_1B SE_W059, SOUND_PAN_ATTACKER, SOUND_PAN_TARGET, +2, 0x0 call AnimScript_82D0B7D call AnimScript_82D0B7D - playsewithpan SE_W059B, +63 + playsewithpan SE_W059B, SOUND_PAN_TARGET waitforvisualfinish call AnimScript_82D77A4 waitforvisualfinish @@ -5651,10 +5651,10 @@ Move_POWDER_SNOW: monbg ANIM_DEF_PARTNER createsprite gUnknown_08597274, 0x2, 31, 1, 0, 3, RGB_BLACK waitforvisualfinish - panse_1B SE_W016, -64, +63, +2, 0x0 + panse_1B SE_W016, SOUND_PAN_ATTACKER, SOUND_PAN_TARGET, +2, 0x0 call AnimScript_82D0D03 call AnimScript_82D0D03 - playsewithpan SE_W016B, +63 + playsewithpan SE_W016B, SOUND_PAN_TARGET waitforvisualfinish waitsound call AnimScript_82D77A4 @@ -5689,7 +5689,7 @@ Move_HYDRO_PUMP: setalpha 0x80C createvisualtask sub_80D51AC, 0x5, 0, 0, 2, 40, 1 delay 0x6 - panse_1B SE_W056, -64, +63, +2, 0x0 + panse_1B SE_W056, SOUND_PAN_ATTACKER, SOUND_PAN_TARGET, +2, 0x0 createvisualtask sub_81076C8, 0x5, 100 call AnimScript_82D0E52 call AnimScript_82D0E52 @@ -5736,7 +5736,7 @@ Move_SIGNAL_BEAM: loadspritegfx 0x2759 createvisualtask sub_80D51AC, 0x5, 0, 0, 2, 25, 1 delay 0x6 - panse_1B SE_W062, -64, +63, +1, 0x0 + panse_1B SE_W062, SOUND_PAN_ATTACKER, SOUND_PAN_TARGET, +1, 0x0 createvisualtask sub_81076C8, 0x5, 100 call AnimScript_82D0F79 call AnimScript_82D0F79 @@ -5781,7 +5781,7 @@ Move_ABSORB: setalpha 0x80C createsprite gUnknown_08597274, 0x2, 1, 1, 0, 4, RGB(13, 31, 12) waitforvisualfinish - playsewithpan SE_W071, +63 + playsewithpan SE_W071, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x2, 0, 0, 1, 2 delay 0x2 createvisualtask sub_80D51AC, 0x5, 1, 0, 5, 5, 1 @@ -5799,28 +5799,28 @@ Move_ABSORB: end AnimScript_82D1009: - playsewithpan SE_W152, +63 + playsewithpan SE_W152, SOUND_PAN_TARGET createsprite gUnknown_08592270, 0x3, 0, 5, 8, 26 delay 0x4 - playsewithpan SE_W152, +63 + playsewithpan SE_W152, SOUND_PAN_TARGET createsprite gUnknown_08592270, 0x3, 10, -5, -8, 26 delay 0x4 - playsewithpan SE_W152, +63 + playsewithpan SE_W152, SOUND_PAN_TARGET createsprite gUnknown_08592270, 0x3, -5, 15, 16, 33 delay 0x4 - playsewithpan SE_W152, +63 + playsewithpan SE_W152, SOUND_PAN_TARGET createsprite gUnknown_08592270, 0x3, 0, -15, -16, 36 delay 0x4 - playsewithpan SE_W152, +63 + playsewithpan SE_W152, SOUND_PAN_TARGET createsprite gUnknown_08592270, 0x3, 0, 5, 8, 26 delay 0x4 - playsewithpan SE_W152, +63 + playsewithpan SE_W152, SOUND_PAN_TARGET createsprite gUnknown_08592270, 0x3, 10, -5, -8, 26 delay 0x4 - playsewithpan SE_W152, +63 + playsewithpan SE_W152, SOUND_PAN_TARGET createsprite gUnknown_08592270, 0x3, -10, 20, 20, 39 delay 0x4 - playsewithpan SE_W152, +63 + playsewithpan SE_W152, SOUND_PAN_TARGET createsprite gUnknown_08592270, 0x3, 5, -18, -20, 35 delay 0x4 return @@ -5834,7 +5834,7 @@ Move_MEGA_DRAIN: setalpha 0x80C createsprite gUnknown_08597274, 0x2, 1, 1, 0, 8, RGB(13, 31, 12) waitforvisualfinish - playsewithpan SE_W071, +63 + playsewithpan SE_W071, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x2, 0, 0, 1, 1 delay 0x2 createvisualtask sub_80D51AC, 0x5, 1, 0, 5, 5, 1 @@ -5852,35 +5852,35 @@ Move_MEGA_DRAIN: end AnimScript_82D1121: - playsewithpan SE_W145C, +63 + playsewithpan SE_W145C, SOUND_PAN_TARGET createsprite gUnknown_08592270, 0x3, 0, 5, 8, 26 createsprite gUnknown_08592270, 0x3, 5, -18, -20, 35 delay 0x4 - playsewithpan SE_W145C, +63 + playsewithpan SE_W145C, SOUND_PAN_TARGET createsprite gUnknown_08592270, 0x3, 10, -5, -8, 26 createsprite gUnknown_08592270, 0x3, -10, 20, 20, 39 delay 0x4 - playsewithpan SE_W145C, +63 + playsewithpan SE_W145C, SOUND_PAN_TARGET createsprite gUnknown_08592270, 0x3, -5, 15, 16, 33 createsprite gUnknown_08592270, 0x3, 10, -5, -8, 26 delay 0x4 - playsewithpan SE_W145C, +63 + playsewithpan SE_W145C, SOUND_PAN_TARGET createsprite gUnknown_08592270, 0x3, 0, -15, -16, 36 createsprite gUnknown_08592270, 0x3, 0, 5, 8, 26 delay 0x4 - playsewithpan SE_W145C, +63 + playsewithpan SE_W145C, SOUND_PAN_TARGET createsprite gUnknown_08592270, 0x3, 0, 5, 8, 26 createsprite gUnknown_08592270, 0x3, 0, -15, -16, 36 delay 0x4 - playsewithpan SE_W145C, +63 + playsewithpan SE_W145C, SOUND_PAN_TARGET createsprite gUnknown_08592270, 0x3, 10, -5, -8, 26 createsprite gUnknown_08592270, 0x3, -5, 15, 16, 33 delay 0x4 - playsewithpan SE_W145C, +63 + playsewithpan SE_W145C, SOUND_PAN_TARGET createsprite gUnknown_08592270, 0x3, -10, 20, 20, 39 createsprite gUnknown_08592270, 0x3, 10, -5, -8, 26 delay 0x4 - playsewithpan SE_W145C, +63 + playsewithpan SE_W145C, SOUND_PAN_TARGET createsprite gUnknown_08592270, 0x3, 0, 5, 8, 26 createsprite gUnknown_08592270, 0x3, 5, -18, -20, 35 delay 0x4 @@ -5895,7 +5895,7 @@ Move_GIGA_DRAIN: setalpha 0x80C createsprite gUnknown_08597274, 0x2, 1, 1, 0, 12, RGB(13, 31, 12) waitforvisualfinish - playsewithpan SE_W071, +63 + playsewithpan SE_W071, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x2, 0, 0, 1, 0 delay 0x2 createvisualtask sub_80D51AC, 0x5, 1, 0, 5, 5, 1 @@ -5913,42 +5913,42 @@ Move_GIGA_DRAIN: end AnimScript_82D12B1: - playsewithpan SE_W202, +63 + playsewithpan SE_W202, SOUND_PAN_TARGET createsprite gUnknown_08592270, 0x3, 0, 5, 8, 26 createsprite gUnknown_08592270, 0x3, 5, -18, -40, 35 createsprite gUnknown_08592270, 0x3, -10, 20, 20, 39 delay 0x4 - playsewithpan SE_W202, +63 + playsewithpan SE_W202, SOUND_PAN_TARGET createsprite gUnknown_08592270, 0x3, 0, 5, 28, 26 createsprite gUnknown_08592270, 0x3, 10, -5, -8, 26 createsprite gUnknown_08592270, 0x3, -10, 20, 40, 39 delay 0x4 - playsewithpan SE_W202, +63 + playsewithpan SE_W202, SOUND_PAN_TARGET createsprite gUnknown_08592270, 0x3, 10, -5, -8, 26 createsprite gUnknown_08592270, 0x3, -5, 15, 16, 33 createsprite gUnknown_08592270, 0x3, 10, -5, -32, 26 delay 0x4 - playsewithpan SE_W202, +63 + playsewithpan SE_W202, SOUND_PAN_TARGET createsprite gUnknown_08592270, 0x3, 0, -15, -16, 36 createsprite gUnknown_08592270, 0x3, 0, 5, 8, 26 createsprite gUnknown_08592270, 0x3, 10, -5, -8, 26 delay 0x4 - playsewithpan SE_W202, +63 + playsewithpan SE_W202, SOUND_PAN_TARGET createsprite gUnknown_08592270, 0x3, -5, 15, 16, 33 createsprite gUnknown_08592270, 0x3, 0, -15, -16, 36 createsprite gUnknown_08592270, 0x3, 0, 5, 8, 26 delay 0x4 - playsewithpan SE_W202, +63 + playsewithpan SE_W202, SOUND_PAN_TARGET createsprite gUnknown_08592270, 0x3, 0, 5, 8, 26 createsprite gUnknown_08592270, 0x3, -5, 15, 16, 33 createsprite gUnknown_08592270, 0x3, 10, -5, -40, 26 delay 0x4 - playsewithpan SE_W202, +63 + playsewithpan SE_W202, SOUND_PAN_TARGET createsprite gUnknown_08592270, 0x3, -5, 15, 36, 33 createsprite gUnknown_08592270, 0x3, 10, -5, -8, 26 createsprite gUnknown_08592270, 0x3, -10, 20, 20, 39 delay 0x4 - playsewithpan SE_W202, +63 + playsewithpan SE_W202, SOUND_PAN_TARGET createsprite gUnknown_08592270, 0x3, 0, 5, 8, 26 createsprite gUnknown_08592270, 0x3, 0, 5, 8, 26 createsprite gUnknown_08592270, 0x3, 5, -18, -20, 35 @@ -5968,7 +5968,7 @@ Move_LEECH_LIFE: createsprite gUnknown_085969C8, 0x2, -20, 15, 12 waitforvisualfinish createsprite gUnknown_08597358, 0x2, 0, 0, 1, 2 - playsewithpan SE_W071, +63 + playsewithpan SE_W071, SOUND_PAN_TARGET delay 0x2 createvisualtask sub_80D51AC, 0x5, 1, 0, 5, 5, 1 waitforvisualfinish @@ -5988,7 +5988,7 @@ Move_LEECH_LIFE: Move_SYNTHESIS: loadspritegfx 0x2741 createvisualtask sub_8115A04, 0x2, 2, 2, 2, 0, 16, 19451 - playsewithpan SE_W025, -64 + playsewithpan SE_W025, SOUND_PAN_ATTACKER call AnimScript_82D79B4 waitforvisualfinish unloadspritegfx 0x2741 @@ -6011,22 +6011,22 @@ Move_TOXIC: AnimScript_82D1515: createsprite gUnknown_08596134, 0x82, -24, 16, 1, 1 - playsewithpan SE_W092, +63 + playsewithpan SE_W092, SOUND_PAN_TARGET delay 0xF createsprite gUnknown_08596134, 0x82, 8, 16, 1, 1 - playsewithpan SE_W092, +63 + playsewithpan SE_W092, SOUND_PAN_TARGET delay 0xF createsprite gUnknown_08596134, 0x82, -8, 16, 1, 1 - playsewithpan SE_W092, +63 + playsewithpan SE_W092, SOUND_PAN_TARGET delay 0xF createsprite gUnknown_08596134, 0x82, 24, 16, 1, 1 - playsewithpan SE_W092, +63 + playsewithpan SE_W092, SOUND_PAN_TARGET delay 0xF return Move_SLUDGE: loadspritegfx 0x27A6 - playsewithpan SE_W145C, -64 + playsewithpan SE_W145C, SOUND_PAN_ATTACKER createsprite gUnknown_085961A8, 0x82, 20, 0, 40, 0 waitforvisualfinish createvisualtask sub_80D51AC, 0x5, 1, 3, 0, 5, 1 @@ -6053,19 +6053,19 @@ Move_SLUDGE_BOMB: createsprite gUnknown_085961D8, 0x82, -27, 44, 20 createsprite gUnknown_085961D8, 0x82, 39, -28, 20 createsprite gUnknown_085961D8, 0x82, -42, -42, 20 - playsewithpan SE_W091, +63 + playsewithpan SE_W091, SOUND_PAN_TARGET delay 0x5 createsprite gUnknown_085961D8, 0x82, 0, 40, 20 createsprite gUnknown_085961D8, 0x82, -8, -44, 20 createsprite gUnknown_085961D8, 0x82, -46, -28, 20 createsprite gUnknown_085961D8, 0x82, 46, 9, 20 - playsewithpan SE_W091, +63 + playsewithpan SE_W091, SOUND_PAN_TARGET delay 0x5 createsprite gUnknown_085961D8, 0x82, 42, 0, 20 createsprite gUnknown_085961D8, 0x82, -43, -12, 20 createsprite gUnknown_085961D8, 0x82, 16, -46, 20 createsprite gUnknown_085961D8, 0x82, -16, 44, 20 - playsewithpan SE_W091, +63 + playsewithpan SE_W091, SOUND_PAN_TARGET delay 0x0 waitsound waitforvisualfinish @@ -6074,7 +6074,7 @@ Move_SLUDGE_BOMB: end AnimScript_82D16BC: - playsewithpan SE_W145C, -64 + playsewithpan SE_W145C, SOUND_PAN_ATTACKER createsprite gUnknown_085961A8, 0x82, 20, 0, 40, 0 delay 0x3 return @@ -6083,31 +6083,31 @@ Move_ACID: loadspritegfx 0x27A6 monbg ANIM_DEF_PARTNER createsprite gUnknown_085961C0, 0x82, 20, 0, 40, 1, 0, 0 - playsewithpan SE_W145C, -64 + playsewithpan SE_W145C, SOUND_PAN_ATTACKER delay 0x5 createsprite gUnknown_085961C0, 0x82, 20, 0, 40, 1, 24, 0 - playsewithpan SE_W145C, -64 + playsewithpan SE_W145C, SOUND_PAN_ATTACKER delay 0x5 createsprite gUnknown_085961C0, 0x82, 20, 0, 40, 1, -24, 0 - playsewithpan SE_W145C, -64 + playsewithpan SE_W145C, SOUND_PAN_ATTACKER delay 0xF createvisualtask sub_80D52D0, 0x5, 1, 2, 0, 10, 1 createvisualtask sub_80D52D0, 0x5, 3, 2, 0, 10, 1 createvisualtask sub_8115A04, 0x2, 20, 2, 2, 0, 12, 31774 createsprite gUnknown_0859620C, 0x82, 0, -22, 0, 15, 55 - playsewithpan SE_W145, +63 + playsewithpan SE_W145, SOUND_PAN_TARGET delay 0xA createsprite gUnknown_0859620C, 0x82, -26, -24, 0, 15, 55 - playsewithpan SE_W145, +63 + playsewithpan SE_W145, SOUND_PAN_TARGET delay 0xA createsprite gUnknown_0859620C, 0x82, 15, -27, 0, 15, 50 - playsewithpan SE_W145, +63 + playsewithpan SE_W145, SOUND_PAN_TARGET delay 0xA createsprite gUnknown_0859620C, 0x82, -15, -17, 0, 10, 45 - playsewithpan SE_W145, +63 + playsewithpan SE_W145, SOUND_PAN_TARGET delay 0xA createsprite gUnknown_0859620C, 0x82, 27, -22, 0, 15, 50 - playsewithpan SE_W145, +63 + playsewithpan SE_W145, SOUND_PAN_TARGET waitforvisualfinish clearmonbg ANIM_DEF_PARTNER end @@ -6118,14 +6118,14 @@ Move_BONEMERANG: monbg ANIM_DEF_PARTNER monbgprio_28 ANIM_TARGET setalpha 0x80C - playsewithpan SE_W155, -64 + playsewithpan SE_W155, SOUND_PAN_ATTACKER createsprite gUnknown_08597178, 0x2 delay 0x14 - playsewithpan SE_W030, +63 + playsewithpan SE_W030, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x2, 0, 0, 1, 1 createvisualtask sub_80D51AC, 0x5, 1, 5, 0, 5, 1 delay 0x11 - playsewithpan SE_W233, -64 + playsewithpan SE_W233, SOUND_PAN_ATTACKER createsprite gUnknown_0857FE28, 0x2, 6, -4 waitforvisualfinish clearmonbg ANIM_DEF_PARTNER @@ -6138,13 +6138,13 @@ Move_BONE_CLUB: monbg ANIM_DEF_PARTNER monbgprio_28 ANIM_TARGET setalpha 0x80C - playsewithpan SE_W155, +63 + playsewithpan SE_W155, SOUND_PAN_TARGET createsprite gUnknown_08597190, 0x2, -42, -25, 0, 0, 15 delay 0xC createsprite gUnknown_08597358, 0x2, 0, 0, 1, 1 createvisualtask sub_80D51AC, 0x5, 1, 0, 5, 5, 1 createsprite gUnknown_0859728C, 0x2, 7, 5, 1, 0, 10, 0, 0 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET waitforvisualfinish clearmonbg ANIM_DEF_PARTNER blendoff @@ -6155,12 +6155,12 @@ Move_BONE_RUSH: loadspritegfx 0x2797 monbg ANIM_DEF_PARTNER setalpha 0x80C - playsewithpan SE_W155, +63 + playsewithpan SE_W155, SOUND_PAN_TARGET createsprite gUnknown_08597190, 0x2, -42, -25, 0, 0, 15 delay 0xC createsprite gUnknown_08597358, 0x2, 0, 0, 1, 2 createvisualtask sub_80D51AC, 0x5, 1, 0, 3, 5, 1 - playsewithpan SE_W030, +63 + playsewithpan SE_W030, SOUND_PAN_TARGET waitforvisualfinish clearmonbg ANIM_DEF_PARTNER blendoff @@ -6169,15 +6169,15 @@ Move_BONE_RUSH: Move_SPIKES: loadspritegfx 0x27A8 monbg ANIM_DEF_PARTNER - playsewithpan SE_W026, -64 - waitplaysewithpan SE_W030, +63, 0x1C + playsewithpan SE_W026, SOUND_PAN_ATTACKER + waitplaysewithpan SE_W030, SOUND_PAN_TARGET, 0x1C createsprite gUnknown_085CE11C, 0x82, 20, 0, 0, 24, 30 delay 0xA - playsewithpan SE_W026, -64 - waitplaysewithpan SE_W030, +63, 0x1C + playsewithpan SE_W026, SOUND_PAN_ATTACKER + waitplaysewithpan SE_W030, SOUND_PAN_TARGET, 0x1C createsprite gUnknown_085CE11C, 0x82, 20, 0, -24, 24, 30 delay 0xA - waitplaysewithpan SE_W030, +63, 0x1C + waitplaysewithpan SE_W030, SOUND_PAN_TARGET, 0x1C createsprite gUnknown_085CE11C, 0x82, 20, 0, 24, 24, 30 waitforvisualfinish clearmonbg ANIM_DEF_PARTNER @@ -6187,7 +6187,7 @@ Move_MEGAHORN: loadspritegfx 0x27A9 loadspritegfx 0x2797 monbg ANIM_DEF_PARTNER - playsewithpan SE_W082, -64 + playsewithpan SE_W082, SOUND_PAN_ATTACKER jumpifcontest AnimScript_82D19FA fadetobg BG_DRILL waitbgfadeout @@ -6203,7 +6203,7 @@ AnimScript_82D1947: delay 0x3 createsprite gUnknown_08596974, 0x3, -42, 25, 0, 0, 6 delay 0x4 - playsewithpan SE_W011, +63 + playsewithpan SE_W011, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x2, 0, 0, 1, 0 createsprite gUnknown_0857FE70, 0x2, 1, -16, 4, 1, 4 waitforvisualfinish @@ -6234,13 +6234,13 @@ Move_GUST: monbg ANIM_DEF_PARTNER monbgprio_28 ANIM_TARGET setalpha 0x80C - playsewithpan SE_W016, +63 + playsewithpan SE_W016, SOUND_PAN_TARGET createsprite gUnknown_08596270, 0x2, 0, -16 createvisualtask sub_810DED8, 0x5, 1, 70 waitforvisualfinish createvisualtask sub_80D52D0, 0x5, 1, 1, 0, 7, 1 createsprite gUnknown_08597358, 0x2, 0, 0, 1, 2 - playsewithpan SE_W016B, +63 + playsewithpan SE_W016B, SOUND_PAN_TARGET waitforvisualfinish clearmonbg ANIM_DEF_PARTNER blendoff @@ -6252,7 +6252,7 @@ Move_WING_ATTACK: monbg ANIM_DEF_PARTNER monbgprio_28 ANIM_TARGET setalpha 0x80C - loopsewithpan SE_W017, -64, 0x14, 0x2 + loopsewithpan SE_W017, SOUND_PAN_ATTACKER, 0x14, 0x2 createvisualtask sub_80D5738, 0x2, 0, 12, 4, 1, 4 createvisualtask sub_810DED8, 0x5, 1, 70 createsprite gUnknown_085962A4, 0x2, -25, 0, 0, 0, 20 @@ -6262,7 +6262,7 @@ Move_WING_ATTACK: delay 0x11 createsprite gUnknown_08597358, 0x2, 16, 0, 1, 1 createsprite gUnknown_08597358, 0x2, -16, 0, 1, 1 - loopsewithpan SE_W003, +63, 0x5, 0x2 + loopsewithpan SE_W003, SOUND_PAN_TARGET, 0x5, 0x2 waitforvisualfinish createsprite gUnknown_0857FE58, 0x2, 0, 0, 11 waitforvisualfinish @@ -6272,7 +6272,7 @@ Move_WING_ATTACK: Move_PECK: loadspritegfx 0x2797 - playsewithpan SE_W030, +63 + playsewithpan SE_W030, SOUND_PAN_TARGET createvisualtask sub_80D622C, 0x2, 3, -768, 1, 2 createsprite gUnknown_085973E8, 0x83, -12, 0, 1, 3 waitforvisualfinish @@ -6293,7 +6293,7 @@ Move_AEROBLAST: call AnimScript_82D1B82 waitforvisualfinish createsprite gUnknown_08597358, 0x2, 0, 0, 1, 0 - playsewithpan SE_W013, +63 + playsewithpan SE_W013, SOUND_PAN_TARGET waitforvisualfinish clearmonbg ANIM_DEF_PARTNER blendoff @@ -6302,19 +6302,19 @@ Move_AEROBLAST: end AnimScript_82D1B82: - playsewithpan SE_W026, -64 + playsewithpan SE_W026, SOUND_PAN_ATTACKER createsprite gUnknown_085962D4, 0x2, 14, -12, 0, -12, 15, 0, 0 createsprite gUnknown_085962D4, 0x2, 26, 8, 12, 8, 15, 0, 0 delay 0x3 - playsewithpan SE_W026, -64 + playsewithpan SE_W026, SOUND_PAN_ATTACKER createsprite gUnknown_085962D4, 0x2, 14, -12, 0, -12, 15, 1, 0 createsprite gUnknown_085962D4, 0x2, 26, 8, 12, 8, 15, 1, 0 delay 0x3 - playsewithpan SE_W026, -64 + playsewithpan SE_W026, SOUND_PAN_ATTACKER createsprite gUnknown_085962D4, 0x2, 14, -12, 0, -12, 15, 2, 0 createsprite gUnknown_085962D4, 0x2, 26, 8, 12, 8, 15, 2, 0 delay 0x3 - playsewithpan SE_W026, -64 + playsewithpan SE_W026, SOUND_PAN_ATTACKER createsprite gUnknown_085962D4, 0x2, 14, -12, 0, -12, 15, 3, 0 createsprite gUnknown_085962D4, 0x2, 26, 8, 12, 8, 15, 3, 0 delay 0x3 @@ -6327,18 +6327,18 @@ Move_WATER_GUN: monbgprio_28 ANIM_TARGET setalpha 0x80C createsprite gUnknown_08595208, 0x2, 20, 0, 0, 0, 40, -25 - playsewithpan SE_W145, -64 + playsewithpan SE_W145, SOUND_PAN_ATTACKER waitforvisualfinish createvisualtask sub_80D52D0, 0x5, 1, 1, 0, 8, 1 createsprite gUnknown_08597388, 0x4, 0, 0, 1, 2 createsprite gUnknown_08595220, 0x2, 0, -15, 0, 15, 55 - playsewithpan SE_W152, +63 + playsewithpan SE_W152, SOUND_PAN_TARGET delay 0xA createsprite gUnknown_08595220, 0x2, 15, -20, 0, 15, 50 - playsewithpan SE_W152, +63 + playsewithpan SE_W152, SOUND_PAN_TARGET delay 0xA createsprite gUnknown_08595220, 0x2, -15, -10, 0, 10, 45 - playsewithpan SE_W152, +63 + playsewithpan SE_W152, SOUND_PAN_TARGET waitforvisualfinish clearmonbg ANIM_DEF_PARTNER blendoff @@ -6350,7 +6350,7 @@ Move_CRABHAMMER: monbg ANIM_DEF_PARTNER setalpha 0x80C createsprite gUnknown_08597388, 0x4, 0, 0, 1, 0 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET delay 0x1 createsprite gUnknown_0859728C, 0x2, 31, 3, 1, 32429, 10, 0, 0 createsprite gUnknown_0857FE70, 0x2, 1, -24, 0, 0, 4 @@ -6359,7 +6359,7 @@ Move_CRABHAMMER: waitforvisualfinish createsprite gUnknown_0857FE58, 0x2, 1, 0, 4 waitforvisualfinish - loopsewithpan SE_W152, +63, 0x14, 0x3 + loopsewithpan SE_W152, SOUND_PAN_TARGET, 0x14, 0x3 createvisualtask sub_80D51AC, 0x5, 1, 0, 4, 8, 1 createsprite gUnknown_08595238, 0x2, 10, 10, 20, 1 delay 0x4 @@ -6384,7 +6384,7 @@ Move_CRABHAMMER: Move_SURF: createvisualtask sub_8107954, 0x2, 0 delay 0x18 - panse_1B SE_W057, -64, +63, +2, 0x0 + panse_1B SE_W057, SOUND_PAN_ATTACKER, SOUND_PAN_TARGET, +2, 0x0 waitforvisualfinish end @@ -6396,7 +6396,7 @@ Move_FLAMETHROWER: createvisualtask sub_80D51AC, 0x5, 0, 0, 2, 46, 1 delay 0x6 createvisualtask sub_81076C8, 0x5, 100 - panse_1B SE_W053, -64, +63, +2, 0x0 + panse_1B SE_W053, SOUND_PAN_ATTACKER, SOUND_PAN_TARGET, +2, 0x0 call AnimScript_82D1E58 call AnimScript_82D1E58 call AnimScript_82D1E58 @@ -6448,7 +6448,7 @@ Move_WHIRLPOOL: setalpha 0x80C delay 0x0 createsprite gUnknown_08597274, 0x0, 4, 2, 0, 7, RGB(0, 13, 23) - playsewithpan SE_W250, +63 + playsewithpan SE_W250, SOUND_PAN_TARGET createvisualtask sub_80D51AC, 0x5, 1, 0, 2, 50, 1 call AnimScript_82D1F5B call AnimScript_82D1F5B @@ -6484,19 +6484,19 @@ AnimScript_82D1FF5: end AnimScript_82D1FF7: - playsewithpan SE_W019, -64 + playsewithpan SE_W019, SOUND_PAN_ATTACKER createsprite gUnknown_08596340, 0x2, 0, 0, 13, 336 goto AnimScript_82D1FF5 AnimScript_82D200F: monbg ANIM_DEF_PARTNER setalpha 0x80C - playsewithpan SE_W104, -64 + playsewithpan SE_W104, SOUND_PAN_ATTACKER createsprite gUnknown_08596358, 0x2, 20 delay 0x14 createsprite gUnknown_08597358, 0x2, 0, 0, 1, 0 createvisualtask sub_80D51AC, 0x5, 1, 6, 0, 8, 1 - playsewithpan SE_W013, +63 + playsewithpan SE_W013, SOUND_PAN_TARGET waitforvisualfinish clearmonbg ANIM_DEF_PARTNER blendoff @@ -6511,17 +6511,17 @@ AnimScript_82D205F: end AnimScript_82D2060: - playsewithpan SE_W100, -64 + playsewithpan SE_W100, SOUND_PAN_ATTACKER createsprite gUnknown_08596420, 0x2, 0, 0 goto AnimScript_82D205F AnimScript_82D2074: monbg ANIM_DEF_PARTNER setalpha 0x80C - playsewithpan SE_W207, +63 + playsewithpan SE_W207, SOUND_PAN_TARGET createsprite gUnknown_0859644C, 0x83 delay 0x7 - playsewithpan SE_W025B, +63 + playsewithpan SE_W025B, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x82, 0, 0, 1, 0 createvisualtask sub_80D51AC, 0x5, 1, 0, 5, 11, 1 waitforvisualfinish @@ -6535,10 +6535,10 @@ Move_KARATE_CHOP: monbg ANIM_DEF_PARTNER monbgprio_28 ANIM_TARGET setalpha 0x80C - playsewithpan SE_W104, +63 + playsewithpan SE_W104, SOUND_PAN_TARGET createsprite gUnknown_08595E68, 0x2, -16, 0, 0, 0, 10, 1, 3, 0 waitforvisualfinish - playsewithpan SE_W004, +63 + playsewithpan SE_W004, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x3, 0, 0, 1, 2 createvisualtask sub_80D51AC, 0x5, 1, 4, 0, 6, 1 waitforvisualfinish @@ -6551,11 +6551,11 @@ Move_CROSS_CHOP: loadspritegfx 0x282D monbg ANIM_DEF_PARTNER setalpha 0x80C - playsewithpan SE_W025, +63 + playsewithpan SE_W025, SOUND_PAN_TARGET createsprite gUnknown_08595EC8, 0x2, 0, 0, 0 createsprite gUnknown_08595EC8, 0x2, 0, 0, 1 delay 0x28 - playsewithpan SE_W013, +63 + playsewithpan SE_W013, SOUND_PAN_TARGET createsprite gUnknown_0859728C, 0x2, 31, 3, 1, 0x7FFF, 10, 0, 10 createsprite gUnknown_085973D0, 0x3, 0, 0, 1, 20 createvisualtask sub_80D51AC, 0x5, 1, 7, 0, 9, 1 @@ -6572,11 +6572,11 @@ Move_JUMP_KICK: createsprite gUnknown_0857FE28, 0x2, 4, 4 delay 0x3 createsprite gUnknown_08595E80, 0x2, -16, 8, 0, 0, 10, 1, 1, 1 - playsewithpan SE_W026, +63 + playsewithpan SE_W026, SOUND_PAN_TARGET waitforvisualfinish createsprite gUnknown_08597358, 0x1, 0, 0, 1, 1 createvisualtask sub_80D51AC, 0x5, 1, 5, 0, 7, 1 - playsewithpan SE_W004, +63 + playsewithpan SE_W004, SOUND_PAN_TARGET waitforvisualfinish clearmonbg ANIM_DEF_PARTNER blendoff @@ -6593,10 +6593,10 @@ Move_HI_JUMP_KICK: createsprite gUnknown_0857FE58, 0x2, 0, 0, 3 delay 0x2 createsprite gUnknown_08595E80, 0x2, -16, 8, 0, 0, 10, 1, 1, 1 - playsewithpan SE_W026, +63 + playsewithpan SE_W026, SOUND_PAN_TARGET waitforvisualfinish createsprite gUnknown_08597358, 0x2, 0, 0, 1, 1 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET createsprite gUnknown_0857FE70, 0x2, 1, -28, 0, 0, 3 delay 0x3 createvisualtask sub_80D5484, 0x2, 1, 3, 0, 11, 1 @@ -6615,7 +6615,7 @@ Move_DOUBLE_KICK: setalpha 0x80C createsprite gUnknown_08595EB0, 0x3, 1, 20, 1 createvisualtask sub_80D51AC, 0x5, 1, 4, 0, 6, 1 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET waitforvisualfinish clearmonbg ANIM_DEF_PARTNER blendoff @@ -6626,7 +6626,7 @@ Move_TRIPLE_KICK: loadspritegfx 0x2797 monbg ANIM_DEF_PARTNER setalpha 0x80C - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET jumpifmoveturn 0x0, AnimScript_82D22B8 jumpifmoveturn 0x1, AnimScript_82D22EE goto AnimScript_82D2324 @@ -6663,26 +6663,26 @@ Move_DYNAMIC_PUNCH: delay 0x1 monbg ANIM_DEF_PARTNER setalpha 0x80C - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET createsprite gUnknown_08595E98, 0x83, 0, 0, 20, 1, 0 createsprite gUnknown_08597358, 0x82, 0, 0, 1, 0 createvisualtask sub_80D51AC, 0x5, 1, 5, 0, 7, 1 delay 0x1 waitsound - playsewithpan SE_W120, +63 + playsewithpan SE_W120, SOUND_PAN_TARGET createvisualtask sub_80D52D0, 0x5, 1, 5, 0, 28, 1 createsprite gUnknown_0859371C, 0x3, 0, 0, 1, 1 delay 0x6 - playsewithpan SE_W120, +63 + playsewithpan SE_W120, SOUND_PAN_TARGET createsprite gUnknown_0859371C, 0x3, 24, -24, 1, 1 delay 0x6 - playsewithpan SE_W120, +63 + playsewithpan SE_W120, SOUND_PAN_TARGET createsprite gUnknown_0859371C, 0x3, -16, 16, 1, 1 delay 0x6 - playsewithpan SE_W120, +63 + playsewithpan SE_W120, SOUND_PAN_TARGET createsprite gUnknown_0859371C, 0x3, -24, -12, 1, 1 delay 0x6 - playsewithpan SE_W120, +63 + playsewithpan SE_W120, SOUND_PAN_TARGET createsprite gUnknown_0859371C, 0x3, 16, 16, 1, 1 waitforvisualfinish clearmonbg ANIM_DEF_PARTNER @@ -6695,23 +6695,23 @@ Move_COUNTER: monbg ANIM_DEF_PARTNER setalpha 0x80C createvisualtask sub_80D5830, 0x2, 0, 18, 6, 1, 4 - playsewithpan SE_W233, -64 + playsewithpan SE_W233, SOUND_PAN_ATTACKER waitforvisualfinish createsprite gUnknown_0857FE70, 0x2, 0, 20, 0, 0, 4 delay 0x4 createsprite gUnknown_08597358, 0x2, -15, 18, 1, 0 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET delay 0x1 createvisualtask sub_80D51AC, 0x2, 1, 5, 0, 25, 1 createsprite gUnknown_08595E98, 0x3, -15, 18, 8, 1, 0 delay 0x3 createsprite gUnknown_08597358, 0x2, 0, -4, 1, 0 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET delay 0x1 createsprite gUnknown_08595E98, 0x3, 0, -4, 8, 1, 0 delay 0x3 createsprite gUnknown_08597358, 0x2, 15, 9, 1, 0 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET delay 0x1 createsprite gUnknown_08595E98, 0x3, 15, 9, 8, 1, 0 delay 0x5 @@ -6725,13 +6725,13 @@ Move_VITAL_THROW: loadspritegfx 0x2797 monbg ANIM_DEF_PARTNER setalpha 0x80C - playsewithpan SE_W233, -64 + playsewithpan SE_W233, SOUND_PAN_ATTACKER createvisualtask sub_80D5830, 0x2, 0, 12, 4, 1, 2 waitforvisualfinish createsprite gUnknown_0857FE70, 0x2, 0, 20, 0, 0, 4 delay 0x2 createsprite gUnknown_08597358, 0x3, 0, 0, 1, 1 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET delay 0x1 createsprite gUnknown_0857FE70, 0x2, 1, -24, 0, 0, 4 waitforvisualfinish @@ -6753,10 +6753,10 @@ Move_ROCK_SMASH: delay 0x1 createsprite gUnknown_08597358, 0x3, 0, 0, 1, 1 createsprite gUnknown_08595E98, 0x2, 0, 0, 8, 1, 0 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET createvisualtask sub_80D51AC, 0x2, 1, 3, 0, 5, 1 waitforvisualfinish - playsewithpan SE_W088, +63 + playsewithpan SE_W088, SOUND_PAN_TARGET createsprite gUnknown_08596B1C, 0x2, 0, 0, 20, 24, 14, 2 createsprite gUnknown_08596B1C, 0x2, 5, 0, -20, 24, 14, 1 createsprite gUnknown_08596B1C, 0x2, 0, 5, 20, -24, 14, 2 @@ -6775,16 +6775,16 @@ Move_SUBMISSION: loadspritegfx 0x2797 monbg ANIM_DEF_PARTNER setalpha 0x80C - playsewithpan SE_W104, -64 - waitplaysewithpan SE_W004, +63, 0xA - waitplaysewithpan SE_W104, -64, 0x14 - waitplaysewithpan SE_W004, +63, 0x1E - waitplaysewithpan SE_W104, -64, 0x28 - waitplaysewithpan SE_W004, +63, 0x32 - waitplaysewithpan SE_W104, -64, 0x3C - waitplaysewithpan SE_W004, +63, 0x46 - waitplaysewithpan SE_W104, -64, 0x50 - waitplaysewithpan SE_W004, +63, 0x5A + playsewithpan SE_W104, SOUND_PAN_ATTACKER + waitplaysewithpan SE_W004, SOUND_PAN_TARGET, 0xA + waitplaysewithpan SE_W104, SOUND_PAN_ATTACKER, 0x14 + waitplaysewithpan SE_W004, SOUND_PAN_TARGET, 0x1E + waitplaysewithpan SE_W104, SOUND_PAN_ATTACKER, 0x28 + waitplaysewithpan SE_W004, SOUND_PAN_TARGET, 0x32 + waitplaysewithpan SE_W104, SOUND_PAN_ATTACKER, 0x3C + waitplaysewithpan SE_W004, SOUND_PAN_TARGET, 0x46 + waitplaysewithpan SE_W104, SOUND_PAN_ATTACKER, 0x50 + waitplaysewithpan SE_W004, SOUND_PAN_TARGET, 0x5A createvisualtask sub_80D5738, 0x2, 0, -18, 6, 6, 4 createvisualtask sub_80D5738, 0x2, 1, 18, 6, 6, 4 call AnimScript_82D26D3 @@ -6810,7 +6810,7 @@ Move_SUNNY_DAY: setalpha 0x30D createvisualtask sub_8116620, 0xA, 1921, 1, 0, 6, 0x7FFF waitforvisualfinish - panse_26 SE_W080, -64, +63, +1, 0x0 + panse_26 SE_W080, SOUND_PAN_ATTACKER, SOUND_PAN_TARGET, +1, 0x0 call AnimScript_82D2753 call AnimScript_82D2753 call AnimScript_82D2753 @@ -6831,7 +6831,7 @@ Move_COTTON_SPORE: loadspritegfx 0x27AE monbg ANIM_DEF_PARTNER monbgprio_28 ANIM_TARGET - loopsewithpan SE_W077, +63, 0x12, 0xA + loopsewithpan SE_W077, SOUND_PAN_TARGET, 0x12, 0xA call AnimScript_82D277D call AnimScript_82D277D call AnimScript_82D277D @@ -6853,7 +6853,7 @@ Move_SPORE: monbg ANIM_DEF_PARTNER setalpha 0x80C createvisualtask sub_80FEE1C, 0x2 - loopsewithpan SE_W077, +63, 0x10, 0xB + loopsewithpan SE_W077, SOUND_PAN_TARGET, 0x10, 0xB call AnimScript_82D27E2 call AnimScript_82D27E2 call AnimScript_82D27E2 @@ -6877,7 +6877,7 @@ Move_PETAL_DANCE: loadspritegfx 0x2797 monbg ANIM_DEF_PARTNER setalpha 0x80C - playsewithpan SE_W080, -64 + playsewithpan SE_W080, SOUND_PAN_ATTACKER createvisualtask sub_80D5830, 0x2, 0, 12, 6, 6, 3 createsprite gUnknown_0859231C, 0x2, 0, -24, 8, 140 createsprite gUnknown_08592334, 0x2, 16, -24, 8, 100 @@ -6899,7 +6899,7 @@ Move_PETAL_DANCE: waitforvisualfinish createsprite gUnknown_0857FE70, 0x2, 0, 24, 0, 0, 5 delay 0x3 - playsewithpan SE_W025B, +63 + playsewithpan SE_W025B, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x3, 0, 0, 1, 0 createvisualtask sub_80D51AC, 0x2, 1, 6, 0, 8, 1 waitforvisualfinish @@ -6917,7 +6917,7 @@ Move_RAZOR_LEAF: monbg ANIM_DEF_PARTNER setalpha 0x80C delay 0x1 - loopsewithpan SE_W077, -64, 0xA, 0x5 + loopsewithpan SE_W077, SOUND_PAN_ATTACKER, 0xA, 0x5 createsprite gUnknown_08592390, 0x2, -3, -2, 10 delay 0x2 createsprite gUnknown_08592390, 0x2, -1, -1, 15 @@ -6938,11 +6938,11 @@ Move_RAZOR_LEAF: delay 0x2 createsprite gUnknown_08592390, 0x2, -3, -5, 8 delay 0x3C - playsewithpan SE_W013B, -64 + playsewithpan SE_W013B, SOUND_PAN_ATTACKER createsprite gUnknown_085923D8, 0x83, 20, -10, 20, 0, 22, 20, 1 createsprite gUnknown_085923D8, 0x83, 20, -10, 20, 0, 22, -20, 1 delay 0x14 - playsewithpan SE_W013, +63 + playsewithpan SE_W013, SOUND_PAN_TARGET createvisualtask sub_80D52D0, 0x2, 1, 2, 0, 8, 1 createvisualtask sub_80D52D0, 0x2, 3, 2, 0, 8, 1 waitforvisualfinish @@ -6964,7 +6964,7 @@ Move_ANCIENT_POWER: createsprite gUnknown_08596C10, 0x2, 20, 32, -28, 60, 1 createsprite gUnknown_08596C10, 0x2, 0, 32, -28, 30, 4 createvisualtask sub_80D52D0, 0x2, 0, 1, 0, 30, 1 - playsewithpan SE_W082, -64 + playsewithpan SE_W082, SOUND_PAN_ATTACKER delay 0xA createsprite gUnknown_08596C10, 0x2, 15, 32, -48, 25, 5 createsprite gUnknown_08596C10, 0x2, -10, 32, -42, 30, 4 @@ -6974,7 +6974,7 @@ Move_ANCIENT_POWER: waitforvisualfinish createsprite gUnknown_0857FE70, 0x2, 0, 16, 0, 0, 4 delay 0x3 - playsewithpan SE_W120, +63 + playsewithpan SE_W120, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x3, 0, 0, 1, 1 createvisualtask sub_80D52D0, 0x2, 1, 3, 0, 6, 1 waitforvisualfinish @@ -6987,10 +6987,10 @@ Move_ANCIENT_POWER: Move_OCTAZOOKA: loadspritegfx 0x272E loadspritegfx 0x2721 - playsewithpan SE_W025B, -64 + playsewithpan SE_W025B, SOUND_PAN_ATTACKER createsprite gUnknown_08592DFC, 0x82, 20, 0, 0, 0, 20, 0 waitforvisualfinish - playsewithpan SE_W120, +63 + playsewithpan SE_W120, SOUND_PAN_TARGET createsprite gUnknown_08592E30, 0x82, 8, 8, 1, 0 delay 0x2 createsprite gUnknown_08592E30, 0x82, -8, -8, 1, 0 @@ -7005,7 +7005,7 @@ Move_MIST: loadspritegfx 0x27A0 monbg ANIM_ATK_PARTNER setalpha 0x80C - loopsewithpan SE_W054, -64, 0x14, 0xF + loopsewithpan SE_W054, SOUND_PAN_ATTACKER, 0x14, 0xF call AnimScript_82D2C34 call AnimScript_82D2C34 call AnimScript_82D2C34 @@ -7046,14 +7046,14 @@ Move_FIRE_PUNCH: createsprite gUnknown_08595368, 0x81, 64 createsprite gUnknown_08595368, 0x81, 128 createsprite gUnknown_08595368, 0x81, 196 - playsewithpan SE_W172, +63 + playsewithpan SE_W172, SOUND_PAN_TARGET waitforvisualfinish createsprite gUnknown_08595E98, 0x83, 0, 0, 8, 1, 0 createsprite gUnknown_08597358, 0x82, 0, 0, 1, 1 createvisualtask sub_80D51AC, 0x2, 1, 0, 3, 15, 1 call AnimScript_82D2D18 delay 0x4 - playsewithpan SE_W007, +63 + playsewithpan SE_W007, SOUND_PAN_TARGET waitforvisualfinish createvisualtask sub_8116620, 0xA, 4, 0, 9, 0, 31 waitforvisualfinish @@ -7076,7 +7076,7 @@ Move_LEER: monbg ANIM_ATTACKER monbgprio_28 ANIM_ATTACKER setalpha 0x808 - playsewithpan SE_W043, -64 + playsewithpan SE_W043, SOUND_PAN_ATTACKER createsprite gUnknown_085CE150, 0x2, 24, -12 createvisualtask sub_80D6064, 0x5, -5, -5, 10, 0, 1 waitforvisualfinish @@ -7095,10 +7095,10 @@ Move_DREAM_EATER: loadspritegfx 0x272F monbg ANIM_DEF_PARTNER monbgprio_2A ANIM_TARGET - playsewithpan SE_W060, -64 + playsewithpan SE_W060, SOUND_PAN_ATTACKER call AnimScript_82D7CD1 setalpha 0x808 - playsewithpan SE_W107, +63 + playsewithpan SE_W107, SOUND_PAN_TARGET createvisualtask sub_80D51AC, 0x2, 1, 5, 0, 15, 1 createvisualtask sub_80D6064, 0x5, -6, -6, 15, 1, 1 waitforvisualfinish @@ -7116,42 +7116,42 @@ Move_DREAM_EATER: end AnimScript_82D2E51: - playsewithpan SE_W207, +63 + playsewithpan SE_W207, SOUND_PAN_TARGET createsprite gUnknown_08592270, 0x3, 0, 5, 8, 26 createsprite gUnknown_08592270, 0x3, 5, -18, -40, 35 createsprite gUnknown_08592270, 0x3, -10, 20, 20, 39 delay 0x4 - playsewithpan SE_W207, +63 + playsewithpan SE_W207, SOUND_PAN_TARGET createsprite gUnknown_08592270, 0x3, 0, 5, 28, 26 createsprite gUnknown_08592270, 0x3, 10, -5, -8, 26 createsprite gUnknown_08592270, 0x3, -10, 20, 40, 39 delay 0x4 - playsewithpan SE_W207, +63 + playsewithpan SE_W207, SOUND_PAN_TARGET createsprite gUnknown_08592270, 0x3, 10, -5, -8, 26 createsprite gUnknown_08592270, 0x3, -5, 15, 16, 33 createsprite gUnknown_08592270, 0x3, 10, -5, -32, 26 delay 0x4 - playsewithpan SE_W207, +63 + playsewithpan SE_W207, SOUND_PAN_TARGET createsprite gUnknown_08592270, 0x3, 0, -15, -16, 36 createsprite gUnknown_08592270, 0x3, 0, 5, 8, 26 createsprite gUnknown_08592270, 0x3, 10, -5, -8, 26 delay 0x4 - playsewithpan SE_W207, +63 + playsewithpan SE_W207, SOUND_PAN_TARGET createsprite gUnknown_08592270, 0x3, -5, 15, 16, 33 createsprite gUnknown_08592270, 0x3, 0, -15, -16, 36 createsprite gUnknown_08592270, 0x3, 0, 5, 8, 26 delay 0x4 - playsewithpan SE_W207, +63 + playsewithpan SE_W207, SOUND_PAN_TARGET createsprite gUnknown_08592270, 0x3, 0, 5, 8, 26 createsprite gUnknown_08592270, 0x3, -5, 15, 16, 33 createsprite gUnknown_08592270, 0x3, 10, -5, -40, 26 delay 0x4 - playsewithpan SE_W207, +63 + playsewithpan SE_W207, SOUND_PAN_TARGET createsprite gUnknown_08592270, 0x3, -5, 15, 36, 33 createsprite gUnknown_08592270, 0x3, 10, -5, -8, 26 createsprite gUnknown_08592270, 0x3, -10, 20, 20, 39 delay 0x4 - playsewithpan SE_W207, +63 + playsewithpan SE_W207, SOUND_PAN_TARGET createsprite gUnknown_08592270, 0x3, 0, 5, 8, 26 createsprite gUnknown_08592270, 0x3, 0, 5, 8, 26 createsprite gUnknown_08592270, 0x3, 5, -18, -20, 35 @@ -7166,25 +7166,25 @@ Move_POISON_GAS: monbgprio_29 setalpha 0x80C delay 0x0 - playsewithpan SE_W054, -64 + playsewithpan SE_W054, SOUND_PAN_ATTACKER createsprite gUnknown_08595C9C, 0x80, 64, 0, 0, -32, -6, 4192, 1072, 0 delay 0x4 - playsewithpan SE_W054, -64 + playsewithpan SE_W054, SOUND_PAN_ATTACKER createsprite gUnknown_08595C9C, 0x80, 64, 0, 0, -32, -6, 4192, 1072, 0 delay 0x4 - playsewithpan SE_W054, -64 + playsewithpan SE_W054, SOUND_PAN_ATTACKER createsprite gUnknown_08595C9C, 0x80, 64, 0, 0, -32, -6, 4192, 1072, 0 delay 0x4 - playsewithpan SE_W054, -64 + playsewithpan SE_W054, SOUND_PAN_ATTACKER createsprite gUnknown_08595C9C, 0x80, 64, 0, 0, -32, -6, 4192, 1072, 0 delay 0x4 - playsewithpan SE_W054, -64 + playsewithpan SE_W054, SOUND_PAN_ATTACKER createsprite gUnknown_08595C9C, 0x80, 64, 0, 0, -32, -6, 4192, 1072, 0 delay 0x4 - playsewithpan SE_W054, -64 + playsewithpan SE_W054, SOUND_PAN_ATTACKER createsprite gUnknown_08595C9C, 0x80, 64, 0, 0, -32, -6, 4192, 1072, 0 delay 0x28 - loopsewithpan SE_W054, +63, 0x1C, 0x6 + loopsewithpan SE_W054, SOUND_PAN_TARGET, 0x1C, 0x6 createvisualtask sub_8115A04, 0x2, 4, 6, 2, 0, 12, 26650 waitforvisualfinish blendoff @@ -7197,7 +7197,7 @@ Move_BIND: goto AnimScript_82D30DE AnimScript_82D30DE: - playsewithpan SE_W020, +63 + playsewithpan SE_W020, SOUND_PAN_TARGET call AnimScript_82D30EE call AnimScript_82D30EE waitforvisualfinish @@ -7214,7 +7214,7 @@ Move_WRAP: Move_PSYBEAM: loadspritegfx 0x27B3 - playsewithpan SE_W060, -64 + playsewithpan SE_W060, SOUND_PAN_ATTACKER call AnimScript_82D7CD1 createsoundtask sub_8158C58, 200, -64, 63, 3, 4, 0, 15 call AnimScript_82D319C @@ -7253,7 +7253,7 @@ Move_HYPNOSIS: end AnimScript_82D31E5: - playsewithpan SE_W048, -64 + playsewithpan SE_W048, SOUND_PAN_ATTACKER createsprite gUnknown_0859663C, 0x82, 0, 8, 0, 8, 27, 0 createsprite gUnknown_0859663C, 0x82, 16, -8, 0, -8, 27, 0 delay 0x6 @@ -7261,7 +7261,7 @@ AnimScript_82D31E5: Move_PSYWAVE: loadspritegfx 0x27B5 - playsewithpan SE_W060, -64 + playsewithpan SE_W060, SOUND_PAN_ATTACKER call AnimScript_82D7CD1 createvisualtask sub_81076C8, 0x5, 100 createsoundtask sub_8158C58, 203, -64, 63, 2, 9, 0, 10 @@ -7287,7 +7287,7 @@ AnimScript_82D3275: Move_ZAP_CANNON: loadspritegfx 0x27BB loadspritegfx 0x271B - playsewithpan SE_W086, -64 + playsewithpan SE_W086, SOUND_PAN_ATTACKER createsprite gUnknown_08595764, 0x83, 10, 0, 0, 0, 30, 0 createsprite gUnknown_08595790, 0x84, 10, 0, 16, 30, 0, 40, 0 createsprite gUnknown_08595790, 0x84, 10, 0, 16, 30, 64, 40, 1 @@ -7300,7 +7300,7 @@ Move_ZAP_CANNON: waitforvisualfinish createvisualtask sub_80D52D0, 0x2, 1, 4, 0, 5, 1 delay 0xF - waitplaysewithpan SE_W085B, +63, 0x13 + waitplaysewithpan SE_W085B, SOUND_PAN_TARGET, 0x13 call AnimScript_82D7BEA waitforvisualfinish end @@ -7308,13 +7308,13 @@ Move_ZAP_CANNON: Move_STEEL_WING: loadspritegfx 0x2719 loadspritegfx 0x2797 - loopsewithpan SE_W231, -64, 0x1C, 0x2 + loopsewithpan SE_W231, SOUND_PAN_ATTACKER, 0x1C, 0x2 createvisualtask sub_81144F8, 0x5, 0, 0, 0 waitforvisualfinish monbg ANIM_DEF_PARTNER monbgprio_28 ANIM_TARGET setalpha 0x80C - loopsewithpan SE_W017, -64, 0x14, 0x2 + loopsewithpan SE_W017, SOUND_PAN_ATTACKER, 0x14, 0x2 createvisualtask sub_80D5738, 0x2, 0, 12, 4, 1, 4 createvisualtask sub_810DED8, 0x5, 1, 70 createsprite gUnknown_085962A4, 0x2, -25, 0, 0, 0, 20 @@ -7324,7 +7324,7 @@ Move_STEEL_WING: delay 0x11 createsprite gUnknown_08597358, 0x2, 16, 0, 1, 1 createsprite gUnknown_08597358, 0x2, -16, 0, 1, 1 - playsewithpan SE_W013, +63 + playsewithpan SE_W013, SOUND_PAN_TARGET waitforvisualfinish createsprite gUnknown_0857FE58, 0x2, 0, 0, 11 waitforvisualfinish @@ -7334,7 +7334,7 @@ Move_STEEL_WING: Move_IRON_TAIL: loadspritegfx 0x2797 - loopsewithpan SE_W231, -64, 0x1C, 0x2 + loopsewithpan SE_W231, SOUND_PAN_ATTACKER, 0x1C, 0x2 createvisualtask sub_81144F8, 0x5, 1, 0, 0 waitforvisualfinish monbg ANIM_TARGET @@ -7343,7 +7343,7 @@ Move_IRON_TAIL: delay 0x6 createsprite gUnknown_08597358, 0x82, 0, 0, 1, 2 createvisualtask sub_80D51AC, 0x2, 1, 3, 0, 6, 1 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET waitforvisualfinish createvisualtask sub_811489C, 0x5, 0, 1 clearmonbg ANIM_TARGET @@ -7354,7 +7354,7 @@ Move_IRON_TAIL: Move_POISON_TAIL: loadspritegfx 0x2797 loadspritegfx 0x27A6 - loopsewithpan SE_W231, -64, 0x1C, 0x2 + loopsewithpan SE_W231, SOUND_PAN_ATTACKER, 0x1C, 0x2 createvisualtask sub_81144F8, 0x5, 1, 1, RGB(24, 6, 23) waitforvisualfinish monbg ANIM_TARGET @@ -7363,7 +7363,7 @@ Move_POISON_TAIL: delay 0x6 createsprite gUnknown_08597358, 0x82, 0, 0, 1, 2 createvisualtask sub_80D51AC, 0x2, 1, 3, 0, 6, 1 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET waitforvisualfinish createvisualtask sub_811489C, 0x5, 0, 1 clearmonbg ANIM_TARGET @@ -7374,19 +7374,19 @@ Move_POISON_TAIL: Move_METAL_CLAW: loadspritegfx 0x2737 - loopsewithpan SE_W231, -64, 0x1C, 0x2 + loopsewithpan SE_W231, SOUND_PAN_ATTACKER, 0x1C, 0x2 createvisualtask sub_81144F8, 0x5, 0, 0, 0 waitforvisualfinish createsprite gUnknown_0857FE28, 0x2, 6, 4 delay 0x2 - playsewithpan SE_W013, +63 + playsewithpan SE_W013, SOUND_PAN_TARGET createsprite gUnknown_08597138, 0x82, -10, -10, 0 createsprite gUnknown_08597138, 0x82, -10, 10, 0 createsprite gUnknown_085972D8, 0x2, -4, 1, 10, 3, 1 delay 0x8 createsprite gUnknown_0857FE28, 0x2, 6, 4 delay 0x2 - playsewithpan SE_W013, +63 + playsewithpan SE_W013, SOUND_PAN_TARGET createsprite gUnknown_08597138, 0x82, 10, -10, 1 createsprite gUnknown_08597138, 0x82, 10, 10, 1 createsprite gUnknown_085972D8, 0x2, -4, 1, 10, 3, 1 @@ -7396,11 +7396,11 @@ Move_METAL_CLAW: Move_NIGHT_SHADE: monbg ANIM_ATTACKER monbgprio_28 ANIM_ATTACKER - playsewithpan SE_W060, -64 + playsewithpan SE_W060, SOUND_PAN_ATTACKER fadetobg BG_GHOST waitbgfadein delay 0xA - playsewithpan SE_W043, -64 + playsewithpan SE_W043, SOUND_PAN_ATTACKER createvisualtask sub_811188C, 0x5, 85 delay 0x46 createvisualtask sub_80D52D0, 0x2, 1, 2, 0, 12, 1 @@ -7415,24 +7415,24 @@ Move_NIGHT_SHADE: Move_EGG_BOMB: loadspritegfx 0x27D6 loadspritegfx 0x27BF - playsewithpan SE_W039, -64 + playsewithpan SE_W039, SOUND_PAN_ATTACKER createsprite gUnknown_08593488, 0x82, 10, 0, 0, 0, 25, -32 waitforvisualfinish createvisualtask sub_80D52D0, 0x2, 1, 4, 0, 16, 1 createsprite gUnknown_0859371C, 0x84, 6, 5, 1, 0 - playsewithpan SE_W120, +63 + playsewithpan SE_W120, SOUND_PAN_TARGET delay 0x3 createsprite gUnknown_0859371C, 0x84, -16, -15, 1, 0 - playsewithpan SE_W120, +63 + playsewithpan SE_W120, SOUND_PAN_TARGET delay 0x3 createsprite gUnknown_0859371C, 0x84, 16, -5, 1, 0 - playsewithpan SE_W120, +63 + playsewithpan SE_W120, SOUND_PAN_TARGET delay 0x3 createsprite gUnknown_0859371C, 0x84, -12, 18, 1, 0 - playsewithpan SE_W120, +63 + playsewithpan SE_W120, SOUND_PAN_TARGET delay 0x3 createsprite gUnknown_0859371C, 0x84, 0, 5, 1, 0 - playsewithpan SE_W120, +63 + playsewithpan SE_W120, SOUND_PAN_TARGET delay 0x3 waitforvisualfinish end @@ -7445,7 +7445,7 @@ Move_SHADOW_BALL: createsoundtask sub_8158C58, 168, -64, 63, 5, 5, 0, 5 createsprite gUnknown_08596D58, 0x82, 16, 16, 8 waitforvisualfinish - playsewithpan SE_W028, +63 + playsewithpan SE_W028, SOUND_PAN_TARGET createvisualtask sub_80D52D0, 0x2, 1, 4, 0, 8, 1 waitforvisualfinish restorebg @@ -7455,7 +7455,7 @@ Move_SHADOW_BALL: Move_LICK: loadspritegfx 0x27C1 delay 0xF - playsewithpan SE_W122, +63 + playsewithpan SE_W122, SOUND_PAN_TARGET createsprite gUnknown_08596D8C, 0x82, 0, 0 createvisualtask sub_80D52D0, 0x2, 1, 1, 0, 16, 1 waitforvisualfinish @@ -7463,7 +7463,7 @@ Move_LICK: Move_FOCUS_ENERGY: loadspritegfx 0x27C8 - playsewithpan SE_W082, -64 + playsewithpan SE_W082, SOUND_PAN_ATTACKER call AnimScript_82CD6C7 delay 0x8 createvisualtask sub_8115A04, 0x2, 2, 2, 2, 0, 11, 0x7FFF @@ -7479,7 +7479,7 @@ Move_BIDE: end AnimScript_82D3719: - loopsewithpan SE_W036, -64, 0x9, 0x2 + loopsewithpan SE_W036, SOUND_PAN_ATTACKER, 0x9, 0x2 createvisualtask sub_8115A04, 0x2, 2, 2, 2, 0, 11, 31 createvisualtask sub_80D52D0, 0x2, 0, 1, 0, 32, 1 waitforvisualfinish @@ -7489,7 +7489,7 @@ AnimScript_82D3745: loadspritegfx 0x2797 monbg ANIM_DEF_PARTNER setalpha 0x80C - loopsewithpan SE_W036, -64, 0x9, 0x2 + loopsewithpan SE_W036, SOUND_PAN_ATTACKER, 0x9, 0x2 createvisualtask sub_8116620, 0xA, 2, 2, 0, 11, 31 createvisualtask sub_80D52D0, 0x2, 0, 1, 0, 32, 1 waitforvisualfinish @@ -7497,13 +7497,13 @@ AnimScript_82D3745: waitforvisualfinish createvisualtask sub_80D5484, 0x2, 0, 2, 0, 12, 1 createvisualtask sub_80D52D0, 0x2, 1, 3, 0, 16, 1 - playsewithpan SE_W004, +63 + playsewithpan SE_W004, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x1, 18, -8, 1, 1 delay 0x5 - playsewithpan SE_W004, +63 + playsewithpan SE_W004, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x1, -18, 8, 1, 1 delay 0x5 - playsewithpan SE_W004, +63 + playsewithpan SE_W004, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x1, -8, -5, 1, 1 waitforvisualfinish delay 0x5 @@ -7522,7 +7522,7 @@ Move_STRING_SHOT: delay 0x0 createsprite gUnknown_08597274, 0x5, 1, 2, 0, 9, 0 waitforvisualfinish - loopsewithpan SE_W081, -64, 0x9, 0x6 + loopsewithpan SE_W081, SOUND_PAN_ATTACKER, 0x9, 0x6 call AnimScript_82D38CC call AnimScript_82D38CC call AnimScript_82D38CC @@ -7542,7 +7542,7 @@ Move_STRING_SHOT: call AnimScript_82D38CC call AnimScript_82D38CC waitforvisualfinish - playsewithpan SE_W081B, +63 + playsewithpan SE_W081B, SOUND_PAN_TARGET createsprite gUnknown_085969F8, 0x82, 0, 10 delay 0x4 createsprite gUnknown_085969F8, 0x82, 0, -2 @@ -7568,7 +7568,7 @@ Move_SPIDER_WEB: createsprite gUnknown_08597274, 0x5, 1, 2, 0, 9, 0 waitforvisualfinish monbgprio_28 ANIM_TARGET - loopsewithpan SE_W081, -64, 0x9, 0x6 + loopsewithpan SE_W081, SOUND_PAN_ATTACKER, 0x9, 0x6 call AnimScript_82D396D call AnimScript_82D396D call AnimScript_82D396D @@ -7584,7 +7584,7 @@ Move_SPIDER_WEB: call AnimScript_82D396D call AnimScript_82D396D waitforvisualfinish - playsewithpan SE_W081B, +63 + playsewithpan SE_W081B, SOUND_PAN_TARGET createsprite gUnknown_08596A2C, 0x2 waitforvisualfinish clearmonbg ANIM_DEF_PARTNER @@ -7606,12 +7606,12 @@ AnimScript_82D398A: AnimScript_82D398C: loadspritegfx 0x2719 - playsewithpan SE_W016, -64 + playsewithpan SE_W016, SOUND_PAN_ATTACKER createsprite gUnknown_08593550, 0x2, 32, 0, 16, 16, 0, 7, 40 createsprite gUnknown_08593550, 0x2, 32, 0, 16, 16, 85, 7, 40 createsprite gUnknown_08593550, 0x2, 32, 0, 16, 16, 170, 7, 40 waitforvisualfinish - playsewithpan SE_W016B, -64 + playsewithpan SE_W016B, SOUND_PAN_ATTACKER goto AnimScript_82D398A AnimScript_82D39DC: @@ -7619,16 +7619,16 @@ AnimScript_82D39DC: loadspritegfx 0x2797 monbg ANIM_TARGET setalpha 0x80C - playsewithpan SE_W013B, -64 + playsewithpan SE_W013B, SOUND_PAN_ATTACKER createsprite gUnknown_085962D4, 0x2, 14, 8, 0, 0, 22, 2, 1 delay 0x2 - playsewithpan SE_W013B, -64 + playsewithpan SE_W013B, SOUND_PAN_ATTACKER createsprite gUnknown_085962D4, 0x2, 14, -8, 16, 14, 22, 1, 1 delay 0x2 - playsewithpan SE_W013B, -64 + playsewithpan SE_W013B, SOUND_PAN_ATTACKER createsprite gUnknown_085962D4, 0x2, 14, 12, -16, -14, 22, 0, 1 delay 0x11 - playsewithpan SE_W013, +63 + playsewithpan SE_W013, SOUND_PAN_TARGET createvisualtask sub_80D52D0, 0x2, 1, 2, 0, 10, 1 createvisualtask sub_80D52D0, 0x2, 3, 2, 0, 10, 1 waitforvisualfinish @@ -7641,11 +7641,11 @@ Move_DISABLE: monbg ANIM_TARGET monbgprio_28 ANIM_TARGET setalpha 0x808 - playsewithpan SE_W197, -64 + playsewithpan SE_W197, SOUND_PAN_ATTACKER createsprite gUnknown_0853EE84, 0xD, 24, -16 waitforvisualfinish createvisualtask sub_81045B0, 0x5 - loopsewithpan SE_W020, +63, 0xF, 0x4 + loopsewithpan SE_W020, SOUND_PAN_TARGET, 0xF, 0x4 waitforvisualfinish delay 0x1 clearmonbg ANIM_TARGET @@ -7657,7 +7657,7 @@ Move_RECOVER: loadspritegfx 0x272F monbg ANIM_ATK_PARTNER setalpha 0x80C - loopsewithpan SE_W025, -64, 0xD, 0x3 + loopsewithpan SE_W025, SOUND_PAN_ATTACKER, 0xD, 0x3 createvisualtask sub_8115A04, 0x2, 2, 0, 6, 0, 11, 12287 call AnimScript_82D3AD5 call AnimScript_82D3AD5 @@ -7692,14 +7692,14 @@ Move_MIMIC: setalpha 0x50B monbg_22 ANIM_DEF_PARTNER monbgprio_29 - panse_1B SE_W107, +63, -64, -3, 0x0 + panse_1B SE_W107, SOUND_PAN_TARGET, SOUND_PAN_ATTACKER, -3, 0x0 createvisualtask sub_80FF458, 0x5, 128, 24 delay 0xF createsprite gUnknown_085924DC, 0x82, -12, 24 delay 0xA setarg 0x7, 0xFFFF waitforvisualfinish - playsewithpan SE_W036, -64 + playsewithpan SE_W036, SOUND_PAN_ATTACKER createvisualtask sub_8115A04, 0x2, 2, 0, 2, 0, 11, 0x7FFF waitforvisualfinish clearmonbg_23 ANIM_DEF_PARTNER @@ -7708,7 +7708,7 @@ Move_MIMIC: Move_CONSTRICT: loadspritegfx 0x27CA - loopsewithpan SE_W010, +63, 0x6, 0x4 + loopsewithpan SE_W010, SOUND_PAN_TARGET, 0x6, 0x4 createsprite gUnknown_08592494, 0x84, 0, 16, 0, 2 delay 0x7 createsprite gUnknown_08592494, 0x83, 0, 0, 0, 2 @@ -7718,7 +7718,7 @@ Move_CONSTRICT: delay 0x8 createvisualtask sub_80D52D0, 0x2, 1, 3, 0, 6, 1 delay 0x14 - playsewithpan SE_W020, +63 + playsewithpan SE_W020, SOUND_PAN_TARGET setarg 0x7, 0xFFFF waitforvisualfinish end @@ -7744,7 +7744,7 @@ AnimScript_82D3BFB: clearmonbg ANIM_ATK_PARTNER delay 0x1 monbg ANIM_DEF_PARTNER - playsewithpan SE_W171, +63 + playsewithpan SE_W171, SOUND_PAN_TARGET createsprite gUnknown_08596DE8, 0x82 createvisualtask sub_80D52D0, 0x2, 1, 2, 0, 14, 1 waitforvisualfinish @@ -7755,7 +7755,7 @@ AnimScript_82D3BFB: AnimScript_82D3C62: createvisualtask sub_80D52D0, 0x2, 0, 4, 0, 10, 0 - playsewithpan SE_W020, -64 + playsewithpan SE_W020, SOUND_PAN_ATTACKER return AnimScript_82D3C78: @@ -7767,7 +7767,7 @@ AnimScript_82D3C78: end AnimScript_82D3C93: - playsewithpan SE_W082, -64 + playsewithpan SE_W082, SOUND_PAN_ATTACKER createvisualtask sub_8116B14, 0x5 createvisualtask sub_8115A04, 0x5, 2, 4, 2, 0, 10, 31 return @@ -7777,13 +7777,13 @@ Move_SOFT_BOILED: loadspritegfx 0x27DB loadspritegfx 0x272F monbg ANIM_ATK_PARTNER - playsewithpan SE_W039, -64 + playsewithpan SE_W039, SOUND_PAN_ATTACKER createvisualtask sub_80D51AC, 0x2, 0, 0, 2, 6, 1 createsprite gUnknown_085937B0, 0x4, 0, 16, 0 createsprite gUnknown_085937B0, 0x4, 0, 16, 1 delay 0x78 delay 0x7 - playsewithpan SE_W030, -64 + playsewithpan SE_W030, SOUND_PAN_ATTACKER createsprite gUnknown_08597274, 0x2, 31, 3, 10, 0, RGB(12, 24, 30) createsprite gUnknown_0859381C, 0x3, 31, 16, 0, 1 delay 0x8 @@ -7828,14 +7828,14 @@ Move_HEAL_BELL: unloadspritegfx 0x27DE unloadspritegfx 0x27DB loadspritegfx 0x2741 - playsewithpan SE_W234, -64 + playsewithpan SE_W234, SOUND_PAN_ATTACKER createsprite gUnknown_08592B94, 0x10, -15, 0, 0, 0, 32, 60, 1 delay 0x8 createsprite gUnknown_08592B94, 0x10, 12, -5, 0, 0, 32, 60, 1 waitforvisualfinish unloadspritegfx 0x2741 loadspritegfx 0x27DB - playsewithpan SE_REAPOKE, -64 + playsewithpan SE_REAPOKE, SOUND_PAN_ATTACKER createvisualtask sub_8116664, 0xA, 4, 3, 10, 0, 31500 createvisualtask sub_8116620, 0xA, 10, 3, 10, 0, 0x7FFF createsprite gUnknown_08593868, 0x10, 0, 0, 0, 1 @@ -7845,14 +7845,14 @@ AnimScript_82D3EF8: createvisualtask sub_8116664, 0xA, 4, 3, 8, 0, 31500 createvisualtask sub_8116620, 0xA, 10, 3, 2, 10, 0x7FFF createsprite gUnknown_0859381C, 0x28, 0, -24, 0, 1 - playsewithpan SE_W215, -64 + playsewithpan SE_W215, SOUND_PAN_ATTACKER return Move_FAKE_OUT: playsewithpan SE_W260, 0 createvisualtask sub_8105EB0, 0x5 waitforvisualfinish - playsewithpan SE_W166, +63 + playsewithpan SE_W166, SOUND_PAN_TARGET createvisualtask sub_80D52D0, 0x2, 1, 4, 0, 5, 1 createvisualtask sub_8106020, 0x3 waitforvisualfinish @@ -7862,17 +7862,17 @@ Move_FAKE_OUT: Move_SCARY_FACE: loadspritegfx 0x27EA createsprite gUnknown_08597274, 0x2, 27, 3, 0, 16, 0 - playsewithpan SE_W060, -64 + playsewithpan SE_W060, SOUND_PAN_ATTACKER waitforvisualfinish delay 0xA - playsewithpan SE_W043, -64 + playsewithpan SE_W043, SOUND_PAN_ATTACKER createvisualtask sub_81064F8, 0x5 delay 0xD createsprite gUnknown_08593A84, 0x0, -16, -8 createsprite gUnknown_08593A84, 0x0, 16, -8 waitforvisualfinish createvisualtask sub_810A094, 0x3, 20, 1, 0 - playsewithpan SE_W081B, +63 + playsewithpan SE_W081B, SOUND_PAN_TARGET createsprite gUnknown_08597274, 0x2, 27, 3, 16, 0, 0 waitforvisualfinish end @@ -7881,14 +7881,14 @@ Move_SWEET_KISS: loadspritegfx 0x27E8 loadspritegfx 0x27EC createsprite gUnknown_08593AA8, 0x82, 16, -48 - playsewithpan SE_W215, +63 + playsewithpan SE_W215, SOUND_PAN_TARGET delay 0x17 - playsewithpan SE_W215, +63 + playsewithpan SE_W215, SOUND_PAN_TARGET delay 0x17 - playsewithpan SE_W215, +63 + playsewithpan SE_W215, SOUND_PAN_TARGET waitforvisualfinish createsprite gUnknown_085939B8, 0x83, 160, -30 - playsewithpan SE_W213, +63 + playsewithpan SE_W213, SOUND_PAN_TARGET createsprite gUnknown_085939B8, 0x83, -256, -42 createsprite gUnknown_085939B8, 0x83, 128, -14 createsprite gUnknown_085939B8, 0x83, 416, -38 @@ -7900,9 +7900,9 @@ Move_LOVELY_KISS: loadspritegfx 0x27EB loadspritegfx 0x27ED createsprite gUnknown_08593AF0, 0x82, 0, -24 - playsewithpan SE_W060B, +63 + playsewithpan SE_W060B, SOUND_PAN_TARGET waitforvisualfinish - playsewithpan SE_W213, +63 + playsewithpan SE_W213, SOUND_PAN_TARGET createsprite gUnknown_08593AC0, 0x83, -256, -42 createsprite gUnknown_08593AC0, 0x83, 128, -14 createsprite gUnknown_08593AC0, 0x83, 416, -38 @@ -7913,13 +7913,13 @@ Move_FURY_SWIPES: loadspritegfx 0x27EE createsprite gUnknown_0857FE28, 0x2, 5, 5 delay 0x4 - playsewithpan SE_W010, +63 + playsewithpan SE_W010, SOUND_PAN_TARGET createsprite gUnknown_08593B38, 0x82, 16, 0, 1 createvisualtask sub_80D52D0, 0x2, 1, 3, 0, 5, 1 delay 0xA createsprite gUnknown_0857FE28, 0x82, 5, 5 delay 0x4 - playsewithpan SE_W010, +63 + playsewithpan SE_W010, SOUND_PAN_TARGET createsprite gUnknown_08593B38, 0x82, -16, 0, 0 createvisualtask sub_80D52D0, 0x2, 1, 4, 0, 7, 1 end @@ -7928,28 +7928,28 @@ Move_INGRAIN: loadspritegfx 0x27EF loadspritegfx 0x27A3 createsprite gUnknown_0859254C, 0x2, 16, 26, -1, 2, 150 - playsewithpan SE_W010, -64 + playsewithpan SE_W010, SOUND_PAN_ATTACKER delay 0xA createsprite gUnknown_0859254C, 0x2, -32, 20, 1, 1, 140 - playsewithpan SE_W010, -64 + playsewithpan SE_W010, SOUND_PAN_ATTACKER delay 0xA createsprite gUnknown_0859254C, 0x2, 32, 22, 1, 0, 130 - playsewithpan SE_W010, -64 + playsewithpan SE_W010, SOUND_PAN_ATTACKER delay 0xA createsprite gUnknown_0859254C, 0x2, -16, 25, -1, 3, 120 - playsewithpan SE_W010, -64 + playsewithpan SE_W010, SOUND_PAN_ATTACKER delay 0x28 createsprite gUnknown_0859258C, 0x3, 32, 26, -1, 3, 30 delay 0x5 - playsewithpan SE_W145C, -64 + playsewithpan SE_W145C, SOUND_PAN_ATTACKER delay 0x5 createsprite gUnknown_0859258C, 0x3, -48, 20, 1, 2, 30 - playsewithpan SE_W145C, -64 + playsewithpan SE_W145C, SOUND_PAN_ATTACKER delay 0x5 - playsewithpan SE_W145C, -64 + playsewithpan SE_W145C, SOUND_PAN_ATTACKER delay 0x5 createsprite gUnknown_0859258C, 0x3, 48, 26, -2, 3, 18 - playsewithpan SE_W145C, -64 + playsewithpan SE_W145C, SOUND_PAN_ATTACKER delay 0xA waitforvisualfinish end @@ -7958,13 +7958,13 @@ Move_PRESENT: loadspritegfx 0x27F0 createvisualtask sub_815A904, 0x2 createsprite gUnknown_08592610, 0x82, 0, -5, 10, 2, -1 - playsewithpan SE_W039, -64 + playsewithpan SE_W039, SOUND_PAN_ATTACKER delay 0xE - playsewithpan SE_W145B, -64 + playsewithpan SE_W145B, SOUND_PAN_ATTACKER delay 0xE playsewithpan SE_W145B, 0 delay 0x14 - playsewithpan SE_W145B, +63 + playsewithpan SE_W145B, SOUND_PAN_TARGET waitforvisualfinish jumpargeq 0x7, 0x0, AnimScript_82D41D4 jumpargeq 0x7, 0x1, AnimScript_82D423F @@ -7972,26 +7972,26 @@ Move_PRESENT: AnimScript_82D41D4: loadspritegfx 0x27D6 - playsewithpan SE_W120, +63 + playsewithpan SE_W120, SOUND_PAN_TARGET createsprite gUnknown_0859371C, 0x83, 0, 0, 1, 1 delay 0x6 - playsewithpan SE_W120, +63 + playsewithpan SE_W120, SOUND_PAN_TARGET createsprite gUnknown_0859371C, 0x83, 24, -24, 1, 1 delay 0x6 - playsewithpan SE_W120, +63 + playsewithpan SE_W120, SOUND_PAN_TARGET createsprite gUnknown_0859371C, 0x83, -16, 16, 1, 1 delay 0x6 - playsewithpan SE_W120, +63 + playsewithpan SE_W120, SOUND_PAN_TARGET createsprite gUnknown_0859371C, 0x83, -24, -12, 1, 1 delay 0x6 - playsewithpan SE_W120, +63 + playsewithpan SE_W120, SOUND_PAN_TARGET createsprite gUnknown_0859371C, 0x83, 16, 16, 1, 1 end AnimScript_82D423F: loadspritegfx 0x27D3 loadspritegfx 0x272F - playsewithpan SE_W234, +63 + playsewithpan SE_W234, SOUND_PAN_TARGET createsprite gUnknown_08592658, 0x84, -16, 32, -3, 1 delay 0x3 createsprite gUnknown_08592658, 0x84, 16, 32, -3, -1 @@ -8016,7 +8016,7 @@ AnimScript_82D423F: Move_BATON_PASS: loadspritegfx 0x27F2 - playsewithpan SE_W226, -64 + playsewithpan SE_W226, SOUND_PAN_ATTACKER createvisualtask sub_8115A04, 0x2, 31, 1, 2, 0, 11, 31455 createsprite gUnknown_085CE370, 0x2 end @@ -8041,7 +8041,7 @@ Move_PERISH_SONG: createsprite gUnknown_08593C0C, 0x4, 15, 0, 240 createsprite gUnknown_08593C24, 0x4, 15, 0, 0 delay 0x14 - panse_1B SE_W195, -64, +63, +2, 0x0 + panse_1B SE_W195, SOUND_PAN_ATTACKER, SOUND_PAN_TARGET, +2, 0x0 delay 0x50 createsprite gUnknown_08597274, 0x2, 1, 3, 0, 16, 0 createvisualtask sub_811489C, 0x5, 4, 0 @@ -8062,21 +8062,21 @@ Move_SLEEP_TALK: createvisualtask sub_80D5EB8, 0x5, 0, 4, 4096, 2, 0 delay 0x14 createsprite gUnknown_085CE190, 0x82, 0, 20, 5, -1 - playsewithpan SE_W173, -64 + playsewithpan SE_W173, SOUND_PAN_ATTACKER delay 0x6 createsprite gUnknown_085CE190, 0x82, 0, 20, 5, -1 delay 0x6 createsprite gUnknown_085CE190, 0x82, 0, 20, 5, -1 delay 0x14 createsprite gUnknown_085CE190, 0x82, 0, 20, 5, -5 - playsewithpan SE_W173, -64 + playsewithpan SE_W173, SOUND_PAN_ATTACKER delay 0x6 createsprite gUnknown_085CE190, 0x82, 0, 20, 5, -5 delay 0x6 createsprite gUnknown_085CE190, 0x82, 0, 20, 5, -5 delay 0x14 createsprite gUnknown_085CE190, 0x82, 0, 20, 5, -3 - playsewithpan SE_W173, -64 + playsewithpan SE_W173, SOUND_PAN_ATTACKER delay 0x6 createsprite gUnknown_085CE190, 0x82, 0, 20, 5, -3 delay 0x6 @@ -8086,7 +8086,7 @@ Move_SLEEP_TALK: Move_HYPER_FANG: loadspritegfx 0x27D0 - playsewithpan SE_W044, +63 + playsewithpan SE_W044, SOUND_PAN_TARGET delay 0x1 delay 0x2 createvisualtask sub_8117E60, 0x2 @@ -8100,7 +8100,7 @@ AnimScript_82D455C: createsprite gUnknown_085CE1DC, 0x82 waitbgfadein createvisualtask sub_80D51AC, 0x3, 1, 0, 10, 10, 1 - playsewithpan SE_W043, +63 + playsewithpan SE_W043, SOUND_PAN_TARGET delay 0x14 restorebg waitbgfadein @@ -8122,9 +8122,9 @@ AnimScript_82D458E: Move_TRI_ATTACK: loadspritegfx 0x27F6 createsprite gUnknown_085CE2F8, 0x82, 16, 0 - playsewithpan SE_W161, -64 + playsewithpan SE_W161, SOUND_PAN_ATTACKER delay 0x14 - playsewithpan SE_W161, -64 + playsewithpan SE_W161, SOUND_PAN_ATTACKER delay 0x14 createsoundtask sub_8158C58, 220, -64, 63, 5, 6, 0, 7 waitforvisualfinish @@ -8132,7 +8132,7 @@ Move_TRI_ATTACK: delay 0x10 loadspritegfx 0x2731 createsprite gUnknown_08595410, 0x82, 0, 0, 30, 30, -1, 0 - playsewithpan SE_W172B, +63 + playsewithpan SE_W172B, SOUND_PAN_TARGET createsprite gUnknown_08595410, 0x82, 0, 0, 30, 30, 0, 1 delay 0x1 createsprite gUnknown_08595410, 0x82, 0, 0, 30, 30, -1, -1 @@ -8151,7 +8151,7 @@ Move_TRI_ATTACK: waitforvisualfinish loadspritegfx 0x2735 createvisualtask sub_8115F10, 0x2, 257, 257, 257 - playsewithpan SE_W161B, +63 + playsewithpan SE_W161B, SOUND_PAN_TARGET createsprite gUnknown_085956C0, 0x82, 0, -48 delay 0x1 createsprite gUnknown_085956C0, 0x82, 0, -16 @@ -8173,8 +8173,8 @@ Move_WILL_O_WISP: loadspritegfx 0x27F7 monbg ANIM_DEF_PARTNER monbgprio_2A ANIM_TARGET - playsewithpan SE_W052, -64 - waitplaysewithpan SE_W052, -64, 0xA + playsewithpan SE_W052, SOUND_PAN_ATTACKER + waitplaysewithpan SE_W052, SOUND_PAN_ATTACKER, 0xA createvisualtask sub_8159278, 0x2, -64, -64, 1, 0 createsprite gUnknown_0859563C, 0x2, 0, 0, 0 delay 0x3 @@ -8187,7 +8187,7 @@ Move_WILL_O_WISP: createvisualtask sub_8159278, 0x2, -64, 63, 2, 0 waitforvisualfinish monbgprio_29 - playsewithpan SE_W172B, +63 + playsewithpan SE_W172B, SOUND_PAN_TARGET createvisualtask sub_80D52D0, 0x2, 1, 4, 0, 13, 1 createsprite gUnknown_0859566C, 0x2, 0 createsprite gUnknown_0859566C, 0x2, 42 @@ -8252,11 +8252,11 @@ Move_WISH: loadspritegfx 0x2741 createsprite gUnknown_08597274, 0x2, 1, 3, 0, 10, 0 waitforvisualfinish - panse_27 SE_W115, +63, -64, -3, 0x0 + panse_27 SE_W115, SOUND_PAN_TARGET, SOUND_PAN_ATTACKER, -3, 0x0 createsprite gUnknown_085CE388, 0x28 waitforvisualfinish delay 0x3C - loopsewithpan SE_W215, -64, 0x10, 0x3 + loopsewithpan SE_W215, SOUND_PAN_ATTACKER, 0x10, 0x3 call AnimScript_82D79B4 waitforvisualfinish createsprite gUnknown_08597274, 0x2, 1, 3, 10, 0, 0 @@ -8265,7 +8265,7 @@ Move_WISH: Move_STOCKPILE: loadspritegfx 0x27FB - playsewithpan SE_W025, -64 + playsewithpan SE_W025, SOUND_PAN_ATTACKER createvisualtask sub_8115A04, 0x2, 2, 8, 1, 0, 12, 0x7FFF createvisualtask sub_815B65C, 0x5 call AnimScript_82D4972 @@ -8296,11 +8296,11 @@ AnimScript_82D4972: Move_SPIT_UP: loadspritegfx 0x27FD loadspritegfx 0x2797 - playsewithpan SE_W036, -64 + playsewithpan SE_W036, SOUND_PAN_ATTACKER createvisualtask sub_815B6B4, 0x5 createvisualtask sub_80D52D0, 0x2, 0, 1, 0, 8, 2 delay 0x2D - playsewithpan SE_W255, -64 + playsewithpan SE_W255, SOUND_PAN_ATTACKER delay 0x3 createsprite gUnknown_08593A50, 0x2, 0, 12 createsprite gUnknown_08593A50, 0x2, 32, 12 @@ -8317,10 +8317,10 @@ Move_SPIT_UP: AnimScript_82D4A7B: delay 0x5 createvisualtask sub_80D6388, 0x2, 0, 1, 8, 1, 0 - playsewithpan SE_W003, +63 + playsewithpan SE_W003, SOUND_PAN_TARGET createsprite gUnknown_085973E8, 0x83, -12, 10, 1, 1 delay 0x5 - playsewithpan SE_W003, +63 + playsewithpan SE_W003, SOUND_PAN_TARGET createsprite gUnknown_085973E8, 0x83, 12, -10, 1, 1 waitforvisualfinish end @@ -8346,11 +8346,11 @@ AnimScript_82D4AE1: Move_SWALLOW: loadspritegfx 0x27FC loadspritegfx 0x272F - playsewithpan SE_W036, -64 + playsewithpan SE_W036, SOUND_PAN_ATTACKER createvisualtask sub_815B778, 0x5 createvisualtask sub_80D52D0, 0x2, 0, 1, 0, 8, 2 delay 0x26 - playsewithpan SE_W255, -64 + playsewithpan SE_W255, SOUND_PAN_ATTACKER createvisualtask sub_80D52D0, 0x2, 0, 2, 0, 12, 1 call AnimScript_82D4B7F jumpifmoveturn 0x2, AnimScript_82D4BC1 @@ -8385,8 +8385,8 @@ AnimScript_82D4BCB: Move_TRANSFORM: monbg ANIM_ATTACKER - playsewithpan SE_W100, -64 - waitplaysewithpan SE_W107, -64, 0x30 + playsewithpan SE_W100, SOUND_PAN_ATTACKER + waitplaysewithpan SE_W107, SOUND_PAN_ATTACKER, 0x30 createvisualtask sub_815B7D0, 0x2, 0 waitforvisualfinish clearmonbg ANIM_ATTACKER @@ -8427,13 +8427,13 @@ AnimScript_82D4C78: Move_SWEET_SCENT: loadspritegfx 0x27FE - playsewithpan SE_W230, -64 + playsewithpan SE_W230, SOUND_PAN_ATTACKER createsprite gUnknown_085CE544, 0x2, 100, 0, 100 delay 0x19 setpan 0 call AnimScript_82D4CCA createsprite gUnknown_085CE544, 0x2, 55, 0 - setpan +63 + setpan SOUND_PAN_TARGET createvisualtask sub_8115A04, 0x2, 20, 1, 5, 5, 13, 22207 call AnimScript_82D4CCA waitforvisualfinish @@ -8469,7 +8469,7 @@ Move_HYPER_BEAM: createsprite gUnknown_08597274, 0x2, 1, 4, 0, 16, 0 waitforvisualfinish delay 0xA - playsewithpan SE_W063, -64 + playsewithpan SE_W063, SOUND_PAN_ATTACKER createvisualtask sub_80D52D0, 0x2, 0, 1, 0, 4, 1 waitforvisualfinish delay 0x1E @@ -8566,8 +8566,8 @@ Move_ROLE_PLAY: createvisualtask sub_8116620, 0xA, 4, 2, 0, 16, 0x7FFF createsprite gUnknown_08597274, 0x2, 1, 2, 0, 10, 0 waitforvisualfinish - playsewithpan SE_W161, -64 - waitplaysewithpan SE_W197, -64, 0x1E + playsewithpan SE_W161, SOUND_PAN_ATTACKER + waitplaysewithpan SE_W197, SOUND_PAN_ATTACKER, 0x1E createvisualtask sub_815CED8, 0x2 waitforvisualfinish clearmonbg ANIM_ATK_PARTNER @@ -8579,13 +8579,13 @@ Move_ROLE_PLAY: Move_REFRESH: loadspritegfx 0x27DB loadspritegfx 0x2741 - playsewithpan SE_W287, -64 + playsewithpan SE_W287, SOUND_PAN_ATTACKER createvisualtask sub_815DFCC, 0x2, 0 waitforvisualfinish - playsewithpan SE_W234, -64 + playsewithpan SE_W234, SOUND_PAN_ATTACKER call AnimScript_82D79B4 waitforvisualfinish - playsewithpan SE_REAPOKE, -64 + playsewithpan SE_REAPOKE, SOUND_PAN_ATTACKER createsprite gUnknown_08597274, 0x2, 31, 3, 10, 0, RGB(12, 24, 30) createsprite gUnknown_0859381C, 0x3, 0, 0, 0, 0 end @@ -8596,11 +8596,11 @@ Move_BLAZE_KICK: loadspritegfx 0x272D monbg ANIM_TARGET setalpha 0x80C - playsewithpan SE_W172, +63 + playsewithpan SE_W172, SOUND_PAN_TARGET createsprite gUnknown_08595F14, 0x83, 0, 0, 1, 30 createvisualtask sub_8116620, 0xA, 4, 2, 0, 7, 0x7FFF delay 0x1E - playsewithpan SE_W007, +63 + playsewithpan SE_W007, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x82, 0, 0, 1, 0 createvisualtask sub_80D52D0, 0x2, 1, 3, 0, 14, 1 createvisualtask sub_8116620, 0xA, 4, 2, 0, 0, 0x7FFF @@ -8636,7 +8636,7 @@ Move_SAND_TOMB: loadspritegfx 0x275A createsprite gUnknown_08597274, 0x0, 4, 2, 0, 7, RGB(19, 17, 0) createvisualtask sub_80D51AC, 0x5, 1, 0, 2, 43, 1 - playsewithpan SE_W328, +63 + playsewithpan SE_W328, SOUND_PAN_TARGET call AnimScript_82D51B7 call AnimScript_82D51B7 call AnimScript_82D51B7 @@ -8670,7 +8670,7 @@ Move_SHEER_COLD: monbgprio_28 ANIM_TARGET setalpha 0x80C createvisualtask sub_80A9EF4, 0x2 - waitplaysewithpan SE_W258, +63, 0x11 + waitplaysewithpan SE_W258, SOUND_PAN_TARGET, 0x11 waitforvisualfinish clearmonbg ANIM_DEF_PARTNER blendoff @@ -8687,11 +8687,11 @@ Move_ARM_THRUST: delay 0x6 createsprite gUnknown_0857FE28, 0x2, 4, 3 delay 0x4 - playsewithpan SE_W207, +63 + playsewithpan SE_W207, SOUND_PAN_TARGET createsprite gUnknown_08596034, 0x82, 10, -8, 14, 3 waitforvisualfinish createvisualtask sub_80D6134, 0x5, 8, 5, 0, 1 - playsewithpan SE_W003, +63 + playsewithpan SE_W003, SOUND_PAN_TARGET choosetwoturnanim AnimScript_82D52D4, AnimScript_82D52E8 AnimScript_82D52C0: @@ -8709,7 +8709,7 @@ AnimScript_82D52E8: goto AnimScript_82D52C0 Move_MUDDY_WATER: - panse_1B SE_W250, -64, +63, +2, 0x0 + panse_1B SE_W250, SOUND_PAN_ATTACKER, SOUND_PAN_TARGET, +2, 0x0 createvisualtask sub_8107954, 0x2, 1 waitforvisualfinish end @@ -8742,7 +8742,7 @@ Move_BULLET_SEED: Move_DRAGON_CLAW: loadspritegfx 0x272D loadspritegfx 0x2737 - playsewithpan SE_W221B, -64 + playsewithpan SE_W221B, SOUND_PAN_ATTACKER createvisualtask sub_8116620, 0xA, 2, 4, 0, 8, 639 createvisualtask sub_80D51AC, 0x5, 0, 0, 2, 15, 1 call AnimScript_82D5581 @@ -8810,7 +8810,7 @@ Move_MUD_SHOT: createvisualtask sub_80D51AC, 0x5, 0, 0, 2, 46, 1 delay 0x6 createvisualtask sub_81076C8, 0x5, 100 - panse_1B SE_W250, -64, +63, +1, 0x0 + panse_1B SE_W250, SOUND_PAN_ATTACKER, SOUND_PAN_TARGET, +1, 0x0 call AnimScript_82D5687 call AnimScript_82D5687 call AnimScript_82D5687 @@ -8839,7 +8839,7 @@ Move_METEOR_MASH: loadspritegfx 0x27F9 loadspritegfx 0x2797 loadspritegfx 0x279F - panse_1B SE_W112, -64, +63, +3, 0x0 + panse_1B SE_W112, SOUND_PAN_ATTACKER, SOUND_PAN_TARGET, +3, 0x0 fadetobg BG_COSMIC waitbgfadein waitforvisualfinish @@ -8850,7 +8850,7 @@ Move_METEOR_MASH: createsprite gUnknown_08595F14, 0x83, 0, 0, 0, 30 createsprite gUnknown_085CE8DC, 0x83, -80, -64, 40, 32, 30 delay 0x14 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x83, 0, 0, 1, 1 createvisualtask sub_80D52D0, 0x2, 1, 5, 0, 20, 1 waitforvisualfinish @@ -8864,7 +8864,7 @@ Move_REVENGE: loadspritegfx 0x2805 monbg ANIM_TARGET setalpha 0x80C - playsewithpan SE_W036, -64 + playsewithpan SE_W036, SOUND_PAN_ATTACKER createsprite gUnknown_08596088, 0x2, 10, -10 waitforvisualfinish createvisualtask sub_8115A04, 0x2, 2, 0, 4, 2, 8, 31 @@ -8873,17 +8873,17 @@ Move_REVENGE: loadspritegfx 0x2806 createsprite gUnknown_0857FE28, 0x2, 6, 4 delay 0x4 - playsewithpan SE_W207, +63 + playsewithpan SE_W207, SOUND_PAN_TARGET createsprite gUnknown_085960D0, 0x82, 10, -10 waitforvisualfinish unloadspritegfx 0x2806 loadspritegfx 0x2797 createvisualtask sub_80D52D0, 0x2, 1, 3, 0, 10, 1 createsprite gUnknown_08597400, 0x83, -10, -8, 1, 1, 8 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET delay 0x8 createsprite gUnknown_08597400, 0x83, 10, 8, 1, 1, 8 - playsewithpan SE_W025B, +63 + playsewithpan SE_W025B, SOUND_PAN_TARGET waitforvisualfinish clearmonbg ANIM_TARGET blendoff @@ -8892,7 +8892,7 @@ Move_REVENGE: Move_POISON_FANG: loadspritegfx 0x27D0 loadspritegfx 0x27A6 - playsewithpan SE_W044, +63 + playsewithpan SE_W044, SOUND_PAN_TARGET createsprite gUnknown_085CE1DC, 0x82 delay 0xA createvisualtask sub_80D51AC, 0x3, 1, 3, 0, 10, 1 @@ -8903,7 +8903,7 @@ Move_POISON_FANG: end Move_SUBSTITUTE: - playsewithpan SE_W213, -64 + playsewithpan SE_W213, SOUND_PAN_ATTACKER createvisualtask sub_815F20C, 0x2 end @@ -8916,7 +8916,7 @@ Move_FRENZY_PLANT: createsprite gUnknown_08597274, 0x0, 1, 2, 0, 5, 0 waitforvisualfinish createsprite gUnknown_08592564, 0x2, 10, 8, 2, 0, 0, 100 - playsewithpan SE_W010, -64 + playsewithpan SE_W010, SOUND_PAN_ATTACKER delay 0x5 createsprite gUnknown_08592564, 0x2, 20, -8, -2, 0, 1, 95 playsewithpan SE_W010, -43 @@ -8934,32 +8934,32 @@ Move_FRENZY_PLANT: playsewithpan SE_W010, +42 delay 0x5 createsprite gUnknown_08592564, 0x2, 75, 8, 0, 0, 0, 85 - playsewithpan SE_W010, +63 + playsewithpan SE_W010, SOUND_PAN_TARGET delay 0x5 createsprite gUnknown_08592564, 0x2, 85, 16, 6, 0, 3, 80 - playsewithpan SE_W010, +63 + playsewithpan SE_W010, SOUND_PAN_TARGET delay 0x5 createsprite gUnknown_08592564, 0x2, 85, -16, -6, 0, 2, 75 - playsewithpan SE_W010, +63 + playsewithpan SE_W010, SOUND_PAN_TARGET delay 0x5 createsprite gUnknown_08597358, 0x2, -10, -10, 1, 3 - playsewithpan SE_W003, +63 + playsewithpan SE_W003, SOUND_PAN_TARGET createvisualtask sub_80D51AC, 0x3, 1, 8, 0, 20, 1 delay 0x3 createsprite gUnknown_08597358, 0x2, 10, 8, 1, 3 - playsewithpan SE_W003, +63 + playsewithpan SE_W003, SOUND_PAN_TARGET delay 0x3 createsprite gUnknown_08597358, 0x2, 10, -3, 1, 2 - playsewithpan SE_W003, +63 + playsewithpan SE_W003, SOUND_PAN_TARGET delay 0x3 createsprite gUnknown_08597358, 0x2, -3, 1, 1, 2 - playsewithpan SE_W003, +63 + playsewithpan SE_W003, SOUND_PAN_TARGET delay 0x2 createsprite gUnknown_08597358, 0x2, -10, 1, 1, 1 - playsewithpan SE_W003, +63 + playsewithpan SE_W003, SOUND_PAN_TARGET delay 0x2 createsprite gUnknown_08597358, 0x2, 0, 10, 1, 1 - playsewithpan SE_W003, +63 + playsewithpan SE_W003, SOUND_PAN_TARGET waitforvisualfinish createsprite gUnknown_08597274, 0x0, 1, 2, 5, 0, 0 waitforvisualfinish @@ -8983,7 +8983,7 @@ Move_METAL_SOUND: end AnimScript_82D59EA: - panse_1B SE_W103, -64, +63, +2, 0x0 + panse_1B SE_W103, SOUND_PAN_ATTACKER, SOUND_PAN_TARGET, +2, 0x0 createsprite gUnknown_08593458, 0x82, 16, 0, 0, 0, 30, 0 delay 0x2 return @@ -9009,20 +9009,20 @@ AnimScript_82D5A3C: waitbgfadein monbg ANIM_DEF_PARTNER setalpha 0x80C - playsewithpan SE_W207, +63 + playsewithpan SE_W207, SOUND_PAN_TARGET createsprite gUnknown_08596104, 0x82 delay 0xA createsprite gUnknown_08597358, 0x2, -10, -8, 1, 0 createvisualtask sub_80D51AC, 0x5, 1, 8, 0, 24, 1 delay 0x8 createsprite gUnknown_08597358, 0x2, 10, 2, 1, 0 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET delay 0x8 createsprite gUnknown_08597358, 0x2, 10, -6, 1, 0 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET delay 0x8 createsprite gUnknown_08597358, 0x2, 0, 8, 1, 0 - playsewithpan SE_W025B, +63 + playsewithpan SE_W025B, SOUND_PAN_TARGET waitforvisualfinish restorebg waitbgfadein @@ -9215,7 +9215,7 @@ Move_BLAST_BURN: loadspritegfx 0x2797 monbg ANIM_DEF_PARTNER setalpha 0x80C - playsewithpan SE_W221, -64 + playsewithpan SE_W221, SOUND_PAN_ATTACKER createsprite gUnknown_08595428, 0x2, -32, 0, 24, 0, 0, 0 createsprite gUnknown_08595428, 0x2, -20, -10, 24, 0, 0, 0 createsprite gUnknown_08595428, 0x42, 0, -16, 24, 0, 0, 0 @@ -9225,7 +9225,7 @@ Move_BLAST_BURN: createsprite gUnknown_08595428, 0x2, 0, 16, 24, 0, 0, 0 createsprite gUnknown_08595428, 0x2, -20, 10, 24, 0, 0, 0 delay 0x19 - playsewithpan SE_W172B, -64 + playsewithpan SE_W172B, SOUND_PAN_ATTACKER createsprite gUnknown_08595428, 0x2, -64, 0, 24, 0, 0, 0 createsprite gUnknown_08595428, 0x6, -40, -20, 24, 0, 0, 0 createsprite gUnknown_08595428, 0x46, 0, -32, 24, 0, 0, 0 @@ -9237,7 +9237,7 @@ Move_BLAST_BURN: createsprite gUnknown_08595428, 0x2, -40, 20, 24, 0, 0, 0 createvisualtask sub_8115F10, 0x2, 257, 257, 257 delay 0x19 - playsewithpan SE_W172B, -64 + playsewithpan SE_W172B, SOUND_PAN_ATTACKER createsprite gUnknown_08595428, 0x2, -96, 0, 24, 0, 0, 0 createsprite gUnknown_08595428, 0x6, -60, -30, 24, 0, 0, 0 createsprite gUnknown_08595428, 0x46, 0, -48, 24, 0, 0, 0 @@ -9263,24 +9263,24 @@ Move_ROCK_TOMB: createsprite gUnknown_08596C58, 0x82, 20, 12, 64, 114, 0 delay 0x8 createvisualtask sub_81162A4, 0x2, 0, 2, 3, 1 - playsewithpan SE_W070, +63 + playsewithpan SE_W070, SOUND_PAN_TARGET delay 0x8 createsprite gUnknown_08596C58, 0x82, -20, 12, 64, 98, 0 delay 0x8 createvisualtask sub_81162A4, 0x2, 0, 2, 3, 1 - playsewithpan SE_W070, +63 + playsewithpan SE_W070, SOUND_PAN_TARGET delay 0x8 createsprite gUnknown_08596C58, 0xC2, 3, 6, 64, 82, 0 delay 0x8 createvisualtask sub_81162A4, 0x2, 0, 2, 3, 1 - playsewithpan SE_W070, +63 + playsewithpan SE_W070, SOUND_PAN_TARGET delay 0x8 createsprite gUnknown_08596C58, 0x82, -3, 13, 64, 66, 0 delay 0x8 createvisualtask sub_81162A4, 0x2, 0, 2, 3, 1 - playsewithpan SE_W070, +63 + playsewithpan SE_W070, SOUND_PAN_TARGET delay 0x18 - playsewithpan SE_W063, +63 + playsewithpan SE_W063, SOUND_PAN_TARGET createsprite gUnknown_085967AC, 0x85, 1, 50 createvisualtask sub_80D51AC, 0x5, 1, 3, 0, 20, 1 createvisualtask sub_81162A4, 0x2, 2, 0, 10, 1 @@ -9289,7 +9289,7 @@ Move_ROCK_TOMB: Move_SILVER_WIND: loadspritegfx 0x281F - panse_1B SE_W016, -64, +63, +2, 0x0 + panse_1B SE_W016, SOUND_PAN_ATTACKER, SOUND_PAN_TARGET, +2, 0x0 playsewithpan SE_W234, 0 delay 0x0 monbg ANIM_DEF_PARTNER @@ -9330,7 +9330,7 @@ AnimScript_82D6352: createsprite gUnknown_08592860, 0xC2, -4, 16, 0, 6, 1, 2, 1 createsprite gUnknown_08592860, 0xC2, -16, 12, 192, 5, 2, 3, 1 waitforvisualfinish - playsewithpan SE_W016B, +63 + playsewithpan SE_W016B, SOUND_PAN_TARGET clearmonbg ANIM_DEF_PARTNER delay 0x0 restorebg @@ -9347,7 +9347,7 @@ AnimScript_82D650C: goto AnimScript_82D6352 Move_SNATCH: - playsewithpan SE_W036, -64 + playsewithpan SE_W036, SOUND_PAN_ATTACKER createvisualtask sub_80D5C50, 0x5, 0, -12, 4, 10, 10, 12, 6 end @@ -9358,10 +9358,10 @@ Move_DIVE: AnimScript_82D654C: loadspritegfx 0x27AC - playsewithpan SE_W029, -64 + playsewithpan SE_W029, SOUND_PAN_ATTACKER createsprite gUnknown_08596490, 0x2, 0, 0, 13, 336 waitforvisualfinish - playsewithpan SE_W291, -64 + playsewithpan SE_W291, SOUND_PAN_ATTACKER createsprite gUnknown_085964CC, 0x3, 0 call AnimScript_82D658A call AnimScript_82D658A @@ -9380,7 +9380,7 @@ AnimScript_82D65A1: loadspritegfx 0x27AB monbg ANIM_DEF_PARTNER setalpha 0x80C - playsewithpan SE_W153, +63 + playsewithpan SE_W153, SOUND_PAN_TARGET createsprite gUnknown_085964CC, 0x83, 1 call AnimScript_82D65E0 call AnimScript_82D65E0 @@ -9405,11 +9405,11 @@ Move_ROCK_BLAST: loadspritegfx 0x2797 createsprite gUnknown_0857FE28, 0x2, 4, 6 delay 0x3 - playsewithpan SE_W207, -64 + playsewithpan SE_W207, SOUND_PAN_ATTACKER createsprite gUnknown_08596C98, 0x82, 16, 0, 0, 0, 25, 257 waitforvisualfinish createsprite gUnknown_08597358, 0x83, 0, 0, 1, 1 - playsewithpan SE_W088, +63 + playsewithpan SE_W088, SOUND_PAN_TARGET createsprite gUnknown_08596B1C, 0x82, 0, 0, 20, 24, 14, 2 createvisualtask sub_80D51AC, 0x2, 1, 3, 0, 5, 1 createsprite gUnknown_08596B1C, 0x82, 5, 0, -20, 24, 14, 1 @@ -9431,13 +9431,13 @@ Move_OVERHEAT: delay 0x1 createvisualtask sub_8117DD8, 0x5, 0 delay 0x1 - playsewithpan SE_W082, -64 + playsewithpan SE_W082, SOUND_PAN_ATTACKER createvisualtask sub_8117CA0, 0x5, 1, 0 delay 0x1 createsprite gUnknown_08597274, 0x2, 2, 1, 0, 13, RGB(28, 0, 0) createvisualtask sub_80D51AC, 0x5, 0, 2, 0, 15, 1 waitforvisualfinish - playsewithpan SE_W172B, -64 + playsewithpan SE_W172B, SOUND_PAN_ATTACKER createsprite gUnknown_08596FB0, 0x2, 1, 0, 30, 25, -20 createsprite gUnknown_08596FB0, 0x2, 1, 32, 30, 25, -20 createsprite gUnknown_08596FB0, 0x2, 1, 64, 30, 25, -20 @@ -9467,17 +9467,17 @@ Move_OVERHEAT: delay 0x5 waitforvisualfinish createsprite gUnknown_08597358, 0x83, -5, 3, 1, 0 - playsewithpan SE_W007, +63 + playsewithpan SE_W007, SOUND_PAN_TARGET createvisualtask sub_80D51AC, 0x2, 1, 10, 0, 25, 1 delay 0x6 createsprite gUnknown_08597358, 0x83, 8, -5, 1, 0 - playsewithpan SE_W007, +63 + playsewithpan SE_W007, SOUND_PAN_TARGET delay 0x8 createsprite gUnknown_08597358, 0x83, 10, 10, 1, 0 - playsewithpan SE_W007, +63 + playsewithpan SE_W007, SOUND_PAN_TARGET delay 0x8 createsprite gUnknown_08597358, 0x83, 0, 0, 1, 0 - playsewithpan SE_W007, +63 + playsewithpan SE_W007, SOUND_PAN_TARGET createvisualtask sub_8117DD8, 0x5, 1 delay 0x1 createsprite gUnknown_08597274, 0x2, 2, -1, 0, 13, RGB(18, 18, 18) @@ -9504,12 +9504,12 @@ Move_HYDRO_CANNON: loadspritegfx 0x27A4 monbg ANIM_DEF_PARTNER setalpha 0x80C - playsewithpan SE_W057, -64 + playsewithpan SE_W057, SOUND_PAN_ATTACKER createsprite gUnknown_085951C0, 0x82 delay 0xA createvisualtask sub_8115F10, 0x2, 257, 257, 257 delay 0x1E - panse_1B SE_W056, -64, +63, +2, 0x0 + panse_1B SE_W056, SOUND_PAN_ATTACKER, SOUND_PAN_TARGET, +2, 0x0 call AnimScript_82D6A50 createvisualtask sub_80D51AC, 0x5, 1, 10, 0, 40, 1 createsprite gUnknown_08597388, 0x82, 0, 0, 1, 0 @@ -9544,11 +9544,11 @@ AnimScript_82D6A50: Move_ASTONISH: loadspritegfx 0x2821 - playsewithpan SE_W227, -64 + playsewithpan SE_W227, SOUND_PAN_ATTACKER createsprite gUnknown_0857FE28, 0x2, 4, 6 delay 0x19 createsprite gUnknown_085964E4, 0x85, 0, 1 - playsewithpan SE_W166, +63 + playsewithpan SE_W166, SOUND_PAN_TARGET createsprite gUnknown_085964E4, 0x85, 1, 1 createvisualtask sub_80D52D0, 0x2, 1, 4, 0, 5, 1 createvisualtask sub_8106020, 0x3 @@ -9610,7 +9610,7 @@ AnimScript_82D6B7C: AnimScript_82D6B9B: createsprite gUnknown_08597358, 0x83, -10, -8, 1, 1 - playsewithpan SE_W070, +63 + playsewithpan SE_W070, SOUND_PAN_TARGET createvisualtask sub_80D51AC, 0x2, 1, 0, 3, 5, 1 createsprite gUnknown_08596CB0, 0x82, -12, 27, 2, 3 createsprite gUnknown_08596CB0, 0x82, 8, 28, 3, 4 @@ -9620,7 +9620,7 @@ AnimScript_82D6B9B: AnimScript_82D6BFC: createsprite gUnknown_08597358, 0x83, 10, -8, 1, 1 - playsewithpan SE_W088, +63 + playsewithpan SE_W088, SOUND_PAN_TARGET createvisualtask sub_80D51AC, 0x2, 1, 0, 3, 5, 1 createsprite gUnknown_08596CB0, 0x82, -12, 32, 3, 4 createsprite gUnknown_08596CB0, 0x82, 8, 31, 2, 2 @@ -9631,7 +9631,7 @@ AnimScript_82D6BFC: Move_MAGIC_COAT: loadspritegfx 0x27BA setalpha 0x1000 - waitplaysewithpan SE_W112, -64, 0xF + waitplaysewithpan SE_W112, SOUND_PAN_ATTACKER, 0xF createsprite gUnknown_085965C0, 0x3, 40, 0, 10170 waitforvisualfinish delay 0x1 @@ -9643,7 +9643,7 @@ Move_WATER_PULSE: loadspritegfx 0x2830 monbg ANIM_TARGET monbgprio_28 ANIM_TARGET - playsewithpan SE_W145C, -64 + playsewithpan SE_W145C, SOUND_PAN_ATTACKER createsprite gUnknown_08597274, 0x2, 1, 0, 0, 7, RGB(0, 25, 28) delay 0xA createsprite gUnknown_085952F8, 0x42, 100, 100, 8, 1, 20, 40, 0 @@ -9651,15 +9651,15 @@ Move_WATER_PULSE: createsprite gUnknown_085952F8, 0x42, 200, 80, 8, 1, 40, 20, 0 createsprite gUnknown_085952F8, 0x42, 80, 60, 10, 3, 20, 50, 0 createsprite gUnknown_085952F8, 0x42, 140, 100, 16, 1, 20, 30, 1 - playsewithpan SE_W145C, +63 + playsewithpan SE_W145C, SOUND_PAN_TARGET waitforvisualfinish - playsewithpan SE_W202, -64 + playsewithpan SE_W202, SOUND_PAN_ATTACKER createsprite gUnknown_08593470, 0x82, 0, 0, 40, 15 delay 0x5 - playsewithpan SE_W202, -64 + playsewithpan SE_W202, SOUND_PAN_ATTACKER createsprite gUnknown_08593470, 0x82, 0, 0, 40, 15 delay 0x5 - playsewithpan SE_W202, -64 + playsewithpan SE_W202, SOUND_PAN_ATTACKER createsprite gUnknown_08593470, 0x82, 0, 0, 40, 15 delay 0xD createvisualtask sub_80D51AC, 0x2, 1, 0, 8, 18, 1 @@ -9683,13 +9683,13 @@ Move_PSYCHO_BOOST: setalpha 0x808 delay 0xA createvisualtask sub_80D51AC, 0x2, 0, 3, 0, 240, 0 - loopsewithpan SE_W060B, -64, 0xE, 0xA + loopsewithpan SE_W060B, SOUND_PAN_ATTACKER, 0xE, 0xA createsprite gUnknown_08596920, 0x2 delay 0x6E - loopsewithpan SE_W060B, -64, 0x7, 0xA + loopsewithpan SE_W060B, SOUND_PAN_ATTACKER, 0x7, 0xA waitforvisualfinish createvisualtask sub_80D52D0, 0x2, 1, -8, 1, 24, 1 - playsewithpan SE_W043, +63 + playsewithpan SE_W043, SOUND_PAN_TARGET waitforvisualfinish clearmonbg ANIM_ATK_PARTNER blendoff @@ -9701,12 +9701,12 @@ Move_KNOCK_OFF: loadspritegfx 0x2797 createsprite gUnknown_0857FE28, 0x2, 4, 6 delay 0x4 - playsewithpan SE_W233, +63 + playsewithpan SE_W233, SOUND_PAN_TARGET createsprite gUnknown_085CE984, 0x82, -16, -16 delay 0x8 createsprite gUnknown_0859728C, 0x2, 31, 5, 1, 0x7FFF, 10, 0, 0 createsprite gUnknown_08597358, 0x83, 0, 0, 1, 2 - playsewithpan SE_W004, +63 + playsewithpan SE_W004, SOUND_PAN_TARGET createsprite gUnknown_0857FE70, 0x2, 1, -12, 10, 0, 3 createsprite gUnknown_0857FE58, 0x2, 0, 0, 5 delay 0x3 @@ -9725,7 +9725,7 @@ Move_DOOM_DESIRE: createsprite gUnknown_08597274, 0x2, 1, 1, 0, 4, 0 waitforvisualfinish setalpha 0x808 - playsewithpan SE_W060, -64 + playsewithpan SE_W060, SOUND_PAN_ATTACKER createvisualtask sub_80D6064, 0x5, -4, -4, 15, 0, 1 waitforvisualfinish delay 0x14 @@ -9742,7 +9742,7 @@ Move_SKY_UPPERCUT: monbgprio_28 ANIM_TARGET fadetobg BG_SEISMICTOSS_SKUUPPERCUT waitbgfadeout - playsewithpan SE_W327, -64 + playsewithpan SE_W327, SOUND_PAN_ATTACKER createvisualtask sub_810DABC, 0x5, 55 waitbgfadein setalpha 0x80C @@ -9750,20 +9750,20 @@ Move_SKY_UPPERCUT: createsprite gUnknown_0857FE70, 0x2, 0, 28, 0, 0, 5 delay 0x4 createvisualtask sub_80D52D0, 0x2, 1, 4, 0, 6, 1 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x83, -28, 28, 1, 1 delay 0x1 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x83, -15, 8, 1, 1 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET delay 0x1 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x83, -5, -12, 1, 1 delay 0x1 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x83, 0, -32, 1, 1 delay 0x1 - playsewithpan SE_W233B, +63 + playsewithpan SE_W233B, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x83, 5, -52, 1, 1 createsprite gUnknown_0857FE70, 0x2, 1, -26, 16, 1, 4 delay 0x4 @@ -9799,7 +9799,7 @@ Move_TWISTER: loadspritegfx 0x274A monbg ANIM_DEF_PARTNER monbgprio_28 ANIM_TARGET - playsewithpan SE_W239, +63 + playsewithpan SE_W239, SOUND_PAN_TARGET createsprite gUnknown_085923A8, 0x82, 120, 70, 5, 70, 30 delay 0x1 createsprite gUnknown_085923A8, 0x82, 115, 55, 6, 60, 25 @@ -9822,18 +9822,18 @@ Move_TWISTER: createsprite gUnknown_085923A8, 0x82, 110, 10, 8, 32, 20 waitforvisualfinish createsprite gUnknown_08597358, 0x83, -32, -16, 1, 3 - playsewithpan SE_W004, +63 + playsewithpan SE_W004, SOUND_PAN_TARGET createvisualtask sub_80D5484, 0x2, 1, 3, 0, 12, 1 createvisualtask sub_80D5484, 0x2, 3, 3, 0, 12, 1 delay 0x4 createsprite gUnknown_085973A0, 0x83, 1, 3 - playsewithpan SE_W004, +63 + playsewithpan SE_W004, SOUND_PAN_TARGET delay 0x4 createsprite gUnknown_085973A0, 0x83, 1, 3 - playsewithpan SE_W004, +63 + playsewithpan SE_W004, SOUND_PAN_TARGET delay 0x4 createsprite gUnknown_08597358, 0x83, 32, 20, 1, 3 - playsewithpan SE_W004, +63 + playsewithpan SE_W004, SOUND_PAN_TARGET waitforvisualfinish clearmonbg ANIM_DEF_PARTNER blendoff @@ -9846,7 +9846,7 @@ Move_MAGICAL_LEAF: monbg ANIM_DEF_PARTNER setalpha 0x80C delay 0x1 - loopsewithpan SE_W077, -64, 0xA, 0x5 + loopsewithpan SE_W077, SOUND_PAN_ATTACKER, 0xA, 0x5 createvisualtask sub_81007C4, 0x5 createsprite gUnknown_08592390, 0x2, -3, -2, 10 delay 0x2 @@ -9868,11 +9868,11 @@ Move_MAGICAL_LEAF: delay 0x2 createsprite gUnknown_08592390, 0x2, -3, -5, 8 delay 0x3C - playsewithpan SE_W013B, -64 + playsewithpan SE_W013B, SOUND_PAN_ATTACKER createsprite gUnknown_085923D8, 0x83, 20, -10, 20, 0, 32, 20, 0 createsprite gUnknown_085923D8, 0x83, 20, -10, 20, 0, 32, -20, 0 delay 0x1E - playsewithpan SE_W013, +63 + playsewithpan SE_W013, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x84, -10, -4, 1, 2 createsprite gUnknown_08597358, 0x84, 10, 4, 1, 2 createvisualtask sub_80D52D0, 0x2, 1, 2, 0, 8, 1 @@ -9890,10 +9890,10 @@ Move_ICE_BALL: jumpargeq 0x0, 0x4, AnimScript_82D731B AnimScript_82D72BB: - playsewithpan SE_W196, -64 + playsewithpan SE_W196, SOUND_PAN_ATTACKER createsprite gUnknown_08595DE4, 0x82, 15, 0, -12, -16, 30, -40 delay 0x1C - playsewithpan SE_W280, +63 + playsewithpan SE_W280, SOUND_PAN_TARGET createvisualtask sub_810CDFC, 0x5, 0 jumpargeq 0x0, 0x0, AnimScript_82D732C jumpargeq 0x0, 0x1, AnimScript_82D735B @@ -9988,7 +9988,7 @@ Move_WEATHER_BALL: loadspritegfx 0x282B createsprite gUnknown_0857FE40, 0x2, 8, 1, 0 delay 0x8 - playsewithpan SE_W207, -64 + playsewithpan SE_W207, SOUND_PAN_ATTACKER createsprite gUnknown_0853EE38, 0x2 waitforvisualfinish delay 0xF @@ -10007,7 +10007,7 @@ AnimScript_82D74DE: loadspritegfx 0x2797 createsprite gUnknown_0853EE50, 0x82, -30, -100, 25, 1, 0, 0 waitforvisualfinish - playsewithpan SE_W025B, +63 + playsewithpan SE_W025B, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x84, -10, 0, 1, 2 createvisualtask sub_80D51AC, 0x2, 1, 0, 3, 8, 1 waitforvisualfinish @@ -10016,15 +10016,15 @@ AnimScript_82D74DE: AnimScript_82D751B: loadspritegfx 0x272D createsprite gUnknown_0859559C, 0x82, -30, -100, 25, 1, 40, 10 - playsewithpan SE_W172, +63 + playsewithpan SE_W172, SOUND_PAN_TARGET delay 0xA createsprite gUnknown_0859559C, 0x82, -30, -100, 25, 1, -40, 20 - playsewithpan SE_W172, +63 + playsewithpan SE_W172, SOUND_PAN_TARGET delay 0xA createsprite gUnknown_0859559C, 0x82, -30, -100, 25, 1, 0, 0 - playsewithpan SE_W172, +63 + playsewithpan SE_W172, SOUND_PAN_TARGET waitforvisualfinish - playsewithpan SE_W172B, +63 + playsewithpan SE_W172B, SOUND_PAN_TARGET createvisualtask sub_80D51AC, 0x2, 1, 0, 3, 8, 1 waitforvisualfinish end @@ -10032,31 +10032,31 @@ AnimScript_82D751B: AnimScript_82D757F: loadspritegfx 0x27AB createsprite gUnknown_08595328, 0x82, -30, -100, 25, 1, 50, 10 - playsewithpan SE_W152, +63 + playsewithpan SE_W152, SOUND_PAN_TARGET delay 0x8 createsprite gUnknown_08595328, 0x82, -30, -100, 25, 1, -20, 20 - playsewithpan SE_W152, +63 + playsewithpan SE_W152, SOUND_PAN_TARGET delay 0xD createsprite gUnknown_08595328, 0x82, -30, -100, 25, 1, 0, 0 - playsewithpan SE_W152, +63 + playsewithpan SE_W152, SOUND_PAN_TARGET waitforvisualfinish createvisualtask sub_80D51AC, 0x2, 1, 0, 3, 8, 1 - playsewithpan SE_W202, +63 + playsewithpan SE_W202, SOUND_PAN_TARGET waitforvisualfinish end AnimScript_82D75E3: loadspritegfx 0x274A createsprite gUnknown_08596CE0, 0x82, -30, -100, 25, 1, 30, 0 - playsewithpan SE_W088, +63 + playsewithpan SE_W088, SOUND_PAN_TARGET delay 0x5 createsprite gUnknown_08596CE0, 0x82, -30, -100, 25, 1, -40, 20 - playsewithpan SE_W088, +63 + playsewithpan SE_W088, SOUND_PAN_TARGET delay 0xE createsprite gUnknown_08596CE0, 0x82, -30, -100, 25, 1, 0, 0 - playsewithpan SE_W088, +63 + playsewithpan SE_W088, SOUND_PAN_TARGET waitforvisualfinish - playsewithpan SE_W070, +63 + playsewithpan SE_W070, SOUND_PAN_TARGET createsprite gUnknown_08596CB0, 0x82, -12, 27, 2, 3 createsprite gUnknown_08596CB0, 0x82, 8, 28, 3, 4 createsprite gUnknown_08596CB0, 0x82, -4, 30, 2, 3 @@ -10069,16 +10069,16 @@ AnimScript_82D7683: loadspritegfx 0x2817 loadspritegfx 0x279D createsprite gUnknown_08595D44, 0x82, -30, -100, 25, 25, -40, 20 - playsewithpan SE_W258, +63 + playsewithpan SE_W258, SOUND_PAN_TARGET delay 0xA createsprite gUnknown_08595D44, 0x82, -30, -100, 25, 25, 40, 0 - playsewithpan SE_W258, +63 + playsewithpan SE_W258, SOUND_PAN_TARGET delay 0xA createsprite gUnknown_08595D44, 0x82, -30, -100, 25, 25, 0, 0 - playsewithpan SE_W258, +63 + playsewithpan SE_W258, SOUND_PAN_TARGET waitforvisualfinish createvisualtask sub_80D52D0, 0x2, 1, 2, 0, 8, 1 - playsewithpan SE_W196, +63 + playsewithpan SE_W196, SOUND_PAN_TARGET call AnimScript_82D7720 waitforvisualfinish end @@ -10087,7 +10087,7 @@ Move_COUNT: loadspritegfx 0x2797 monbg ANIM_TARGET setalpha 0x80C - playsewithpan SE_W003, +63 + playsewithpan SE_W003, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x2, 0, 0, 1, 2 createvisualtask sub_80D51AC, 0x2, 1, 3, 0, 6, 1 waitforvisualfinish @@ -10097,64 +10097,64 @@ Move_COUNT: AnimScript_82D7720: createsprite gUnknown_08595B68, 0x82, -10, -10, 0 - playsewithpan SE_W196, +63 + playsewithpan SE_W196, SOUND_PAN_TARGET delay 0x4 createsprite gUnknown_08595B80, 0x82, 10, 20, 0 - playsewithpan SE_W196, +63 + playsewithpan SE_W196, SOUND_PAN_TARGET delay 0x4 createsprite gUnknown_08595B68, 0x82, -5, 10, 0 - playsewithpan SE_W196, +63 + playsewithpan SE_W196, SOUND_PAN_TARGET delay 0x4 createsprite gUnknown_08595B80, 0x82, 17, -12, 0 - playsewithpan SE_W196, +63 + playsewithpan SE_W196, SOUND_PAN_TARGET delay 0x4 createsprite gUnknown_08595B80, 0x82, -15, 15, 0 - playsewithpan SE_W196, +63 + playsewithpan SE_W196, SOUND_PAN_TARGET delay 0x4 createsprite gUnknown_08595B80, 0x82, 0, 0, 0 - playsewithpan SE_W196, +63 + playsewithpan SE_W196, SOUND_PAN_TARGET delay 0x4 createsprite gUnknown_08595B68, 0x82, 20, 2, 0 - playsewithpan SE_W196, +63 + playsewithpan SE_W196, SOUND_PAN_TARGET return AnimScript_82D77A4: createsprite gUnknown_08595B68, 0x82, -10, -10, 1 - playsewithpan SE_W196, +63 + playsewithpan SE_W196, SOUND_PAN_TARGET delay 0x4 createsprite gUnknown_08595B80, 0x82, 10, 20, 1 - playsewithpan SE_W196, +63 + playsewithpan SE_W196, SOUND_PAN_TARGET delay 0x4 createsprite gUnknown_08595B68, 0x82, -29, 0, 1 - playsewithpan SE_W196, +63 + playsewithpan SE_W196, SOUND_PAN_TARGET delay 0x4 createsprite gUnknown_08595B80, 0x82, 29, -20, 1 - playsewithpan SE_W196, +63 + playsewithpan SE_W196, SOUND_PAN_TARGET delay 0x4 createsprite gUnknown_08595B68, 0x82, -5, 10, 1 - playsewithpan SE_W196, +63 + playsewithpan SE_W196, SOUND_PAN_TARGET delay 0x4 createsprite gUnknown_08595B80, 0x82, 17, -12, 1 - playsewithpan SE_W196, +63 + playsewithpan SE_W196, SOUND_PAN_TARGET delay 0x4 createsprite gUnknown_08595B68, 0x82, -20, 0, 1 - playsewithpan SE_W196, +63 + playsewithpan SE_W196, SOUND_PAN_TARGET delay 0x4 createsprite gUnknown_08595B80, 0x82, -15, 15, 1 - playsewithpan SE_W196, +63 + playsewithpan SE_W196, SOUND_PAN_TARGET delay 0x4 createsprite gUnknown_08595B80, 0x82, 26, -5, 1 - playsewithpan SE_W196, +63 + playsewithpan SE_W196, SOUND_PAN_TARGET delay 0x4 createsprite gUnknown_08595B80, 0x82, 0, 0, 1 - playsewithpan SE_W196, +63 + playsewithpan SE_W196, SOUND_PAN_TARGET delay 0x4 createsprite gUnknown_08595B68, 0x82, 20, 2, 1 - playsewithpan SE_W196, +63 + playsewithpan SE_W196, SOUND_PAN_TARGET return AnimScript_82D7874: - loopsewithpan SE_W196, +63, 0x6, 0x4 + loopsewithpan SE_W196, SOUND_PAN_TARGET, 0x6, 0x4 createsprite gUnknown_08595C04, 0x82, 0, 24, 0 delay 0x4 createsprite gUnknown_08595C04, 0x82, 8, 24, 0 @@ -10171,7 +10171,7 @@ AnimScript_82D7874: return AnimScript_82D78F8: - loopsewithpan SE_W196, +63, 0x6, 0x4 + loopsewithpan SE_W196, SOUND_PAN_TARGET, 0x6, 0x4 createsprite gUnknown_08595C04, 0x82, 0, 24, 1 delay 0x4 createsprite gUnknown_08595C04, 0x82, 8, 24, 1 @@ -10201,7 +10201,7 @@ AnimScript_82D79B4: return AnimScript_82D79DF: - playsewithpan SE_W071B, -64 + playsewithpan SE_W071B, SOUND_PAN_ATTACKER createsprite gUnknown_08592F2C, 0x2, 0, -5, 0, 0 delay 0x7 createsprite gUnknown_08592F2C, 0x2, -15, 10, 0, 0 @@ -10213,7 +10213,7 @@ AnimScript_82D79DF: return AnimScript_82D7A28: - playsewithpan SE_W071B, +63 + playsewithpan SE_W071B, SOUND_PAN_TARGET createsprite gUnknown_08592F2C, 0x82, 0, -5, 1, 0 delay 0x7 createsprite gUnknown_08592F2C, 0x82, -15, 10, 1, 0 @@ -10226,72 +10226,72 @@ AnimScript_82D7A28: AnimScript_82D7A71: createsprite gUnknown_08596240, 0x82, 10, 10, 0 - playsewithpan SE_W092, +63 + playsewithpan SE_W092, SOUND_PAN_TARGET delay 0x6 createsprite gUnknown_08596240, 0x82, 20, -20, 0 - playsewithpan SE_W092, +63 + playsewithpan SE_W092, SOUND_PAN_TARGET delay 0x6 createsprite gUnknown_08596240, 0x82, -20, 15, 0 - playsewithpan SE_W092, +63 + playsewithpan SE_W092, SOUND_PAN_TARGET delay 0x6 createsprite gUnknown_08596240, 0x82, 0, 0, 0 - playsewithpan SE_W092, +63 + playsewithpan SE_W092, SOUND_PAN_TARGET delay 0x6 createsprite gUnknown_08596240, 0x82, -20, -20, 0 - playsewithpan SE_W092, +63 + playsewithpan SE_W092, SOUND_PAN_TARGET delay 0x6 createsprite gUnknown_08596240, 0x82, 16, -8, 0 - playsewithpan SE_W092, +63 + playsewithpan SE_W092, SOUND_PAN_TARGET return AnimScript_82D7AE2: createsprite gUnknown_08596258, 0x2, 10, 10, 0 - playsewithpan SE_W145C, +63 + playsewithpan SE_W145C, SOUND_PAN_TARGET delay 0x6 createsprite gUnknown_08596258, 0x2, 20, -20, 0 - playsewithpan SE_W145C, +63 + playsewithpan SE_W145C, SOUND_PAN_TARGET delay 0x6 createsprite gUnknown_08596258, 0x2, -20, 15, 0 - playsewithpan SE_W145C, +63 + playsewithpan SE_W145C, SOUND_PAN_TARGET delay 0x6 createsprite gUnknown_08596258, 0x2, 0, 0, 0 - playsewithpan SE_W145C, +63 + playsewithpan SE_W145C, SOUND_PAN_TARGET delay 0x6 createsprite gUnknown_08596258, 0x2, -20, -20, 0 - playsewithpan SE_W145C, +63 + playsewithpan SE_W145C, SOUND_PAN_TARGET delay 0x6 createsprite gUnknown_08596258, 0x2, 16, -8, 0 - playsewithpan SE_W145C, +63 + playsewithpan SE_W145C, SOUND_PAN_TARGET return AnimScript_82D7B53: createsprite gUnknown_08596258, 0x2, 10, 10, 1 - playsewithpan SE_W145C, +63 + playsewithpan SE_W145C, SOUND_PAN_TARGET delay 0x6 createsprite gUnknown_08596258, 0x2, -28, -10, 1 - playsewithpan SE_W145C, +63 + playsewithpan SE_W145C, SOUND_PAN_TARGET delay 0x6 createsprite gUnknown_08596258, 0x2, 20, -20, 1 - playsewithpan SE_W145C, +63 + playsewithpan SE_W145C, SOUND_PAN_TARGET delay 0x6 createsprite gUnknown_08596258, 0x2, -20, 15, 1 - playsewithpan SE_W145C, +63 + playsewithpan SE_W145C, SOUND_PAN_TARGET delay 0x6 createsprite gUnknown_08596258, 0x2, 0, 0, 1 - playsewithpan SE_W145C, +63 + playsewithpan SE_W145C, SOUND_PAN_TARGET delay 0x6 createsprite gUnknown_08596258, 0x2, 27, 8, 1 - playsewithpan SE_W145C, +63 + playsewithpan SE_W145C, SOUND_PAN_TARGET delay 0x6 createsprite gUnknown_08596258, 0x2, -20, -20, 1 - playsewithpan SE_W145C, +63 + playsewithpan SE_W145C, SOUND_PAN_TARGET delay 0x6 createsprite gUnknown_08596258, 0x2, 16, -8, 1 - playsewithpan SE_W145C, +63 + playsewithpan SE_W145C, SOUND_PAN_TARGET return AnimScript_82D7BEA: - playsewithpan SE_W085B, +63 + playsewithpan SE_W085B, SOUND_PAN_TARGET createsprite gUnknown_08595810, 0x82, 5, 0, 5, 0 delay 0x2 createsprite gUnknown_08595810, 0x82, -5, 10, 5, 1 @@ -10310,7 +10310,7 @@ AnimScript_82D7BEA: return AnimScript_82D7C75: - loopsewithpan SE_W146, +63, 0xD, 0x6 + loopsewithpan SE_W146, SOUND_PAN_TARGET, 0xD, 0x6 createsprite gUnknown_0859725C, 0x82, 0, -15, 0, 3, 90 createsprite gUnknown_0859725C, 0x82, 0, -15, 51, 3, 90 createsprite gUnknown_0859725C, 0x82, 0, -15, 102, 3, 90 @@ -10384,7 +10384,7 @@ AnimScript_82D7D57: return Status_Poison: - loopsewithpan SE_W092, +63, 0xD, 0x6 + loopsewithpan SE_W092, SOUND_PAN_TARGET, 0xD, 0x6 createvisualtask sub_80D52D0, 0x2, 0, 1, 0, 18, 2 createvisualtask sub_8115A04, 0x2, 2, 2, 2, 0, 12, 31774 end @@ -10396,7 +10396,7 @@ Status_Confusion: Status_Burn: loadspritegfx 0x272D - playsewithpan SE_W172, +63 + playsewithpan SE_W172, SOUND_PAN_TARGET call AnimScript_82D7DA6 call AnimScript_82D7DA6 call AnimScript_82D7DA6 @@ -10410,19 +10410,19 @@ AnimScript_82D7DA6: Status_Infatuation: loadspritegfx 0x27E2 - playsewithpan SE_W204, -64 + playsewithpan SE_W204, SOUND_PAN_ATTACKER createsprite gUnknown_08593970, 0x3, 0, 20 delay 0xF - playsewithpan SE_W204, -64 + playsewithpan SE_W204, SOUND_PAN_ATTACKER createsprite gUnknown_08593970, 0x3, -20, 20 delay 0xF - playsewithpan SE_W204, -64 + playsewithpan SE_W204, SOUND_PAN_ATTACKER createsprite gUnknown_08593970, 0x3, 20, 20 end Status_Sleep: loadspritegfx 0x27F4 - playsewithpan SE_W173, -64 + playsewithpan SE_W173, SOUND_PAN_ATTACKER createsprite gUnknown_08592C88, 0x2, 4, -10, 16, 0, 0 delay 0x1E createsprite gUnknown_08592C88, 0x2, 4, -10, 16, 0, 0 @@ -10439,7 +10439,7 @@ Status_Freeze: loadspritegfx 0x271A monbg ANIM_DEF_PARTNER monbgprio_28 ANIM_TARGET - waitplaysewithpan SE_W258, +63, 0x11 + waitplaysewithpan SE_W258, SOUND_PAN_TARGET, 0x11 createvisualtask sub_80A9EF4, 0x2 waitforvisualfinish clearmonbg ANIM_DEF_PARTNER @@ -10448,7 +10448,7 @@ Status_Freeze: Status_Curse: loadspritegfx 0x27D8 monbg ANIM_DEF_PARTNER - playsewithpan SE_W171, +63 + playsewithpan SE_W171, SOUND_PAN_TARGET createsprite gUnknown_08596DE8, 0x82 createvisualtask sub_80D52D0, 0x2, 1, 2, 0, 14, 1 waitforvisualfinish @@ -10458,7 +10458,7 @@ Status_Curse: Status_Nightmare: loadspritegfx 0x27ED monbg ANIM_DEF_PARTNER - playsewithpan SE_W171, +63 + playsewithpan SE_W171, SOUND_PAN_TARGET createsprite gUnknown_08596E00, 0x82 createvisualtask sub_80D52D0, 0x2, 1, 2, 0, 14, 1 waitforvisualfinish @@ -10472,8 +10472,8 @@ Anim_CastformTransform: AnimScript_82D7EB2: monbg ANIM_ATTACKER - playsewithpan SE_W100, -64 - waitplaysewithpan SE_W107, -64, 0x30 + playsewithpan SE_W100, SOUND_PAN_ATTACKER + waitplaysewithpan SE_W107, SOUND_PAN_ATTACKER, 0x30 createvisualtask sub_815B7D0, 0x2, 1 waitforvisualfinish clearmonbg ANIM_ATTACKER @@ -10509,10 +10509,10 @@ Anim_Table_4: createvisualtask sub_817345C, 0x2, 0 createvisualtask sub_81732B0, 0x2 delay 0x0 - waitplaysewithpan SE_W026, -64, 0x16 + waitplaysewithpan SE_W026, SOUND_PAN_ATTACKER, 0x16 createsprite gUnknown_085E5338, 0x83, -18, 12, 0, 32 delay 0x32 - loopsewithpan SE_W039, +63, 0x13, 0x2 + loopsewithpan SE_W039, SOUND_PAN_TARGET, 0x13, 0x2 createvisualtask sub_80D5EB8, 0x5, 1, 8, 1536, 2, 1 waitforvisualfinish createvisualtask sub_81732E4, 0x2 @@ -10533,7 +10533,7 @@ Status_Wrap: AnimScript_82D7FA1: loadspritegfx 0x27CA - loopsewithpan SE_W010, +63, 0x6, 0x2 + loopsewithpan SE_W010, SOUND_PAN_TARGET, 0x6, 0x2 createsprite gUnknown_08592494, 0x84, 0, 16, 0, 1 delay 0x7 createsprite gUnknown_08592494, 0x82, 0, 8, 1, 1 @@ -10541,13 +10541,13 @@ AnimScript_82D7FA1: createvisualtask sub_80D52D0, 0x2, 1, 2, 0, 8, 1 delay 0x14 setarg 0x7, 0xFFFF - playsewithpan SE_W020, +63 + playsewithpan SE_W020, SOUND_PAN_TARGET waitforvisualfinish end AnimScript_82D7FE9: loadspritegfx 0x272D - playsewithpan SE_W221B, +63 + playsewithpan SE_W221B, SOUND_PAN_TARGET createvisualtask sub_80D51AC, 0x5, 1, 0, 2, 30, 1 call AnimScript_82CACBF call AnimScript_82CACBF @@ -10562,7 +10562,7 @@ AnimScript_82D800E: setalpha 0x80C delay 0x0 createsprite gUnknown_08597274, 0x0, 4, 2, 0, 7, RGB(0, 13, 23) - playsewithpan SE_W250, +63 + playsewithpan SE_W250, SOUND_PAN_TARGET createvisualtask sub_80D51AC, 0x5, 1, 0, 2, 30, 1 call AnimScript_82D1F5B call AnimScript_82D1F5B @@ -10578,7 +10578,7 @@ AnimScript_82D8062: loadspritegfx 0x2797 monbg ANIM_TARGET setalpha 0x80C - playsewithpan SE_W011, +63 + playsewithpan SE_W011, SOUND_PAN_TARGET createsprite gUnknown_08597098, 0x2, -32, 0, 2, 819, 0, 10 createsprite gUnknown_08597098, 0x2, 32, 0, 6, -819, 0, 10 delay 0xA @@ -10594,7 +10594,7 @@ AnimScript_82D80BF: loadspritegfx 0x275A createsprite gUnknown_08597274, 0x0, 4, 2, 0, 7, RGB(19, 17, 0) createvisualtask sub_80D51AC, 0x5, 1, 0, 2, 30, 1 - playsewithpan SE_W328, +63 + playsewithpan SE_W328, SOUND_PAN_TARGET call AnimScript_82D51B7 call AnimScript_82D51B7 delay 0x16 @@ -10607,19 +10607,19 @@ Anim_ItemEffect: loadspritegfx 0x27DB loadspritegfx 0x2741 delay 0x0 - playsewithpan SE_W036, -64 + playsewithpan SE_W036, SOUND_PAN_ATTACKER createvisualtask sub_80D622C, 0x2, 16, 128, 0, 2 waitforvisualfinish - playsewithpan SE_W036, -64 + playsewithpan SE_W036, SOUND_PAN_ATTACKER createvisualtask sub_80D622C, 0x2, 16, 128, 0, 2 waitforvisualfinish - playsewithpan SE_W036, -64 + playsewithpan SE_W036, SOUND_PAN_ATTACKER createvisualtask sub_80D622C, 0x2, 16, 128, 0, 2 waitforvisualfinish - playsewithpan SE_W234, -64 + playsewithpan SE_W234, SOUND_PAN_ATTACKER call AnimScript_82D79B4 waitforvisualfinish - playsewithpan SE_REAPOKE, -64 + playsewithpan SE_REAPOKE, SOUND_PAN_ATTACKER createsprite gUnknown_08597274, 0x2, 2, 3, 7, 0, RGB(17, 31, 25) createsprite gUnknown_0859381C, 0x3, 0, 0, 0, 0 waitforvisualfinish @@ -10630,23 +10630,23 @@ Anim_SmokeBallEscape: monbg ANIM_ATTACKER setalpha 0x40C delay 0x0 - playsewithpan SE_BOWA2, +63 + playsewithpan SE_BOWA2, SOUND_PAN_TARGET createsprite gUnknown_085CE734, 0x80, 0, 32, 28, 30 delay 0x4 - playsewithpan SE_BOWA2, +63 + playsewithpan SE_BOWA2, SOUND_PAN_TARGET createsprite gUnknown_085CE734, 0x7F, 2, 12, 20, 30 delay 0xC - playsewithpan SE_BOWA2, +63 + playsewithpan SE_BOWA2, SOUND_PAN_TARGET createsprite gUnknown_085CE734, 0x7E, 2, -28, 4, 30 delay 0xC - playsewithpan SE_BOWA2, +63 + playsewithpan SE_BOWA2, SOUND_PAN_TARGET createsprite gUnknown_085CE734, 0x7C, 2, 14, -20, 30 delay 0x4 - playsewithpan SE_BOWA2, +63 + playsewithpan SE_BOWA2, SOUND_PAN_TARGET createvisualtask sub_81136E8, 0x2, 2 createsprite gUnknown_085CE734, 0x7B, 3, 4, 4, 30 delay 0xE - playsewithpan SE_BOWA2, +63 + playsewithpan SE_BOWA2, SOUND_PAN_TARGET createsprite gUnknown_085CE734, 0x7A, 3, -14, 18, 46 delay 0x0 createsprite gUnknown_085CE734, 0x79, 3, 14, -14, 46 @@ -10665,7 +10665,7 @@ Anim_SmokeBallEscape: Anim_HangedOn: createsprite gUnknown_08597274, 0x0, 2, 7, 0, 9, RGB_RED - playsewithpan SE_W082, -64 + playsewithpan SE_W082, SOUND_PAN_ATTACKER createvisualtask sub_815DB90, 0x5, 30, 128, 0, 1, 2, 0, 1 waitforvisualfinish createsprite gUnknown_08597274, 0x0, 2, 4, 9, 0, RGB_RED @@ -10676,7 +10676,7 @@ Anim_HangedOn: Anim_Rain: loadspritegfx 0x2783 - playsewithpan SE_W240, -64 + playsewithpan SE_W240, SOUND_PAN_ATTACKER createvisualtask sub_8116620, 0xA, 1921, 2, 0, 4, 0 waitforvisualfinish createvisualtask sub_8107188, 0x2, 0, 3, 60 @@ -10705,7 +10705,7 @@ Anim_Hit: loadspritegfx 0x2797 monbg ANIM_TARGET setalpha 0x80C - playsewithpan SE_W003, +63 + playsewithpan SE_W003, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x2, 0, 0, 1, 2 createvisualtask sub_80D51AC, 0x2, 1, 3, 0, 6, 1 waitforvisualfinish @@ -10738,23 +10738,23 @@ AnimScript_82D8398: end AnimScript_82D839F: - playsewithpan SE_W104, -64 + playsewithpan SE_W104, SOUND_PAN_ATTACKER createvisualtask sub_815F8F4, 0x2 goto AnimScript_82D8398 AnimScript_82D83AF: - playsewithpan SE_W104, -64 + playsewithpan SE_W104, SOUND_PAN_ATTACKER createvisualtask sub_815FFC4, 0x2 goto AnimScript_82D8398 Anim_FutureSightHit: createvisualtask sub_8117F10, 0x2 monbg ANIM_DEF_PARTNER - playsewithpan SE_W060, -64 + playsewithpan SE_W060, SOUND_PAN_ATTACKER call AnimScript_82D7CD1 setalpha 0x808 - playsewithpan SE_W048, +63 - waitplaysewithpan SE_W048, +63, 0x8 + playsewithpan SE_W048, SOUND_PAN_TARGET + waitplaysewithpan SE_W048, SOUND_PAN_TARGET, 0x8 createvisualtask sub_80D51AC, 0x2, 1, 4, 0, 15, 1 createvisualtask sub_80D6064, 0x5, -5, -5, 15, 1, 1 waitforvisualfinish @@ -10775,26 +10775,26 @@ Anim_DoomDesireHit: delay 0xA createvisualtask sub_815C0A4, 0x5 delay 0x9 - playsewithpan SE_W109, -64 + playsewithpan SE_W109, SOUND_PAN_ATTACKER delay 0x9 playsewithpan SE_W109, 0 delay 0x9 - playsewithpan SE_W109, +63 + playsewithpan SE_W109, SOUND_PAN_TARGET delay 0x19 createvisualtask sub_80D5484, 0x2, 1, 10, 0, 20, 1 - playsewithpan SE_W120, +63 + playsewithpan SE_W120, SOUND_PAN_TARGET createsprite gUnknown_0859371C, 0x3, 0, 0, 1, 1 delay 0x6 - playsewithpan SE_W120, +63 + playsewithpan SE_W120, SOUND_PAN_TARGET createsprite gUnknown_0859371C, 0x3, 24, -24, 1, 1 delay 0x6 - playsewithpan SE_W120, +63 + playsewithpan SE_W120, SOUND_PAN_TARGET createsprite gUnknown_0859371C, 0x3, -16, 16, 1, 1 delay 0x6 - playsewithpan SE_W120, +63 + playsewithpan SE_W120, SOUND_PAN_TARGET createsprite gUnknown_0859371C, 0x3, -24, -12, 1, 1 delay 0x6 - playsewithpan SE_W120, +63 + playsewithpan SE_W120, SOUND_PAN_TARGET createsprite gUnknown_0859371C, 0x3, 16, 16, 1, 1 waitforvisualfinish createsprite gUnknown_08597274, 0x2, 1, 3, 16, 0, RGB_WHITE @@ -10803,7 +10803,7 @@ Anim_DoomDesireHit: Anim_Table_x14: loadspritegfx 0x27C8 - playsewithpan SE_W082, -64 + playsewithpan SE_W082, SOUND_PAN_ATTACKER call AnimScript_82CD6C7 delay 0x8 createvisualtask sub_8115A04, 0x2, 2, 2, 2, 0, 11, 31 @@ -10837,7 +10837,7 @@ Anim_WishHeal: loadspritegfx 0x2741 createsprite gUnknown_08597274, 0x2, 1, 3, 0, 10, 0 waitforvisualfinish - playsewithpan SE_W025, -64 + playsewithpan SE_W025, SOUND_PAN_ATTACKER call AnimScript_82D79B4 waitforvisualfinish unloadspritegfx 0x2741 @@ -10913,7 +10913,7 @@ AnimScript_82D8652: monbg ANIM_DEF_PARTNER setalpha 0x80C delay 0x0 - playsewithpan SE_W003, +63 + playsewithpan SE_W003, SOUND_PAN_TARGET createsprite gUnknown_08597358, 0x82, -4, -20, 1, 2 waitforvisualfinish clearmonbg ANIM_DEF_PARTNER diff --git a/include/battle_anim.h b/include/battle_anim.h index f690cf10c..3d27e0d25 100644 --- a/include/battle_anim.h +++ b/include/battle_anim.h @@ -31,9 +31,6 @@ struct BattleAnimBackground #define ANIM_ARGS_COUNT 8 -#define PAN_SIDE_PLAYER -64 -#define PAN_SIDE_OPPONENT 63 - extern void (*gAnimScriptCallback)(void); extern bool8 gAnimScriptActive; extern u8 gAnimVisualTaskCount; diff --git a/include/constants/battle_anim.h b/include/constants/battle_anim.h index 270ac55e0..93ae70f94 100644 --- a/include/constants/battle_anim.h +++ b/include/constants/battle_anim.h @@ -7,6 +7,20 @@ #define ANIM_ATK_PARTNER 2 #define ANIM_DEF_PARTNER 3 +// stereo panning constants [0-255] +// +// 0 +// . . +// . . +// 192 . . 63 +// . . +// . . +// . . +// 127 +// +#define SOUND_PAN_ATTACKER -64 +#define SOUND_PAN_TARGET 63 + // move background ids #define BG_DARK_ 0 // the same as BG_DARK but is unused #define BG_DARK 1 diff --git a/src/battle_anim.c b/src/battle_anim.c index 2d514c955..51e65da34 100644 --- a/src/battle_anim.c +++ b/src/battle_anim.c @@ -1265,39 +1265,39 @@ s8 BattleAnimAdjustPanning(s8 pan) if (!IsContest() && gBattleSpritesDataPtr->healthBoxesData[gBattleAnimAttacker].statusAnimActive) { if (GetBattlerSide(gBattleAnimAttacker) != B_SIDE_PLAYER) - pan = PAN_SIDE_OPPONENT; + pan = SOUND_PAN_TARGET; else - pan = PAN_SIDE_PLAYER; + pan = SOUND_PAN_ATTACKER; } else if (IsContest()) { - if (gBattleAnimAttacker != gBattleAnimTarget || gBattleAnimAttacker != 2 || pan != PAN_SIDE_OPPONENT) + if (gBattleAnimAttacker != gBattleAnimTarget || gBattleAnimAttacker != 2 || pan != SOUND_PAN_TARGET) pan *= -1; } else if (GetBattlerSide(gBattleAnimAttacker) == B_SIDE_PLAYER) { if (GetBattlerSide(gBattleAnimTarget) == B_SIDE_PLAYER) { - if (pan == PAN_SIDE_OPPONENT) - pan = PAN_SIDE_PLAYER; - else if (pan != PAN_SIDE_PLAYER) + if (pan == SOUND_PAN_TARGET) + pan = SOUND_PAN_ATTACKER; + else if (pan != SOUND_PAN_ATTACKER) pan *= -1; } } else if (GetBattlerSide(gBattleAnimTarget) == B_SIDE_OPPONENT) { - if (pan == PAN_SIDE_PLAYER) - pan = PAN_SIDE_OPPONENT; + if (pan == SOUND_PAN_ATTACKER) + pan = SOUND_PAN_TARGET; } else { pan *= -1; } - if (pan > PAN_SIDE_OPPONENT) - pan = PAN_SIDE_OPPONENT; - else if (pan < PAN_SIDE_PLAYER) - pan = PAN_SIDE_PLAYER; + if (pan > SOUND_PAN_TARGET) + pan = SOUND_PAN_TARGET; + else if (pan < SOUND_PAN_ATTACKER) + pan = SOUND_PAN_ATTACKER; return pan; } @@ -1307,9 +1307,9 @@ s8 BattleAnimAdjustPanning2(s8 pan) if (!IsContest() && gBattleSpritesDataPtr->healthBoxesData[gBattleAnimAttacker].statusAnimActive) { if (GetBattlerSide(gBattleAnimAttacker) != B_SIDE_PLAYER) - pan = PAN_SIDE_OPPONENT; + pan = SOUND_PAN_TARGET; else - pan = PAN_SIDE_PLAYER; + pan = SOUND_PAN_ATTACKER; } else { @@ -1323,10 +1323,10 @@ s16 KeepPanInRange(s16 panArg) { s16 pan = panArg; - if (pan > PAN_SIDE_OPPONENT) - pan = PAN_SIDE_OPPONENT; - else if (pan < PAN_SIDE_PLAYER) - pan = PAN_SIDE_PLAYER; + if (pan > SOUND_PAN_TARGET) + pan = SOUND_PAN_TARGET; + else if (pan < SOUND_PAN_ATTACKER) + pan = SOUND_PAN_ATTACKER; return pan; } diff --git a/src/battle_anim_sound_tasks.c b/src/battle_anim_sound_tasks.c index 5a829171e..fd1afb7b8 100644 --- a/src/battle_anim_sound_tasks.c +++ b/src/battle_anim_sound_tasks.c @@ -23,8 +23,8 @@ void sub_8158B30(u8 taskId) gTasks[taskId].data[0] = gBattleAnimArgs[0]; gTasks[taskId].data[1] = gBattleAnimArgs[1]; - pan1 = BattleAnimAdjustPanning(PAN_SIDE_PLAYER); - pan2 = BattleAnimAdjustPanning(PAN_SIDE_OPPONENT); + pan1 = BattleAnimAdjustPanning(SOUND_PAN_ATTACKER); + pan2 = BattleAnimAdjustPanning(SOUND_PAN_TARGET); panIncrement = CalculatePanIncrement(pan1, pan2, 2); gTasks[taskId].data[2] = pan1; @@ -64,7 +64,7 @@ static void sub_8158C04(u8 taskId) s8 pan; gTasks[taskId].data[10] = 0; - pan = BattleAnimAdjustPanning(PAN_SIDE_OPPONENT); + pan = BattleAnimAdjustPanning(SOUND_PAN_TARGET); PlaySE12WithPanning(gTasks[taskId].data[1], pan); if (++gTasks[taskId].data[11] == 2) DestroyAnimSoundTask(taskId); @@ -127,7 +127,7 @@ static void sub_8158D08(u8 taskId) void sub_8158D8C(u8 taskId) { u16 species = 0; - s8 pan = BattleAnimAdjustPanning(PAN_SIDE_PLAYER); + s8 pan = BattleAnimAdjustPanning(SOUND_PAN_ATTACKER); if (IsContest()) { if (gBattleAnimArgs[0] == ANIM_ATTACKER) @@ -173,7 +173,7 @@ void sub_8158D8C(u8 taskId) void sub_8158E9C(u8 taskId) { u16 species = 0; - s8 pan = BattleAnimAdjustPanning(PAN_SIDE_PLAYER); + s8 pan = BattleAnimAdjustPanning(SOUND_PAN_ATTACKER); if (IsContest()) { if (gBattleAnimArgs[0] == ANIM_ATTACKER) @@ -278,7 +278,7 @@ void sub_81590B8(u8 taskId) s8 pan; gTasks[taskId].data[10] = gBattleAnimArgs[0]; - pan = BattleAnimAdjustPanning(PAN_SIDE_PLAYER); + pan = BattleAnimAdjustPanning(SOUND_PAN_ATTACKER); if (IsContest()) species = gContestResources->field_18->field_0; diff --git a/src/battle_controller_link_opponent.c b/src/battle_controller_link_opponent.c index 637b8c702..4fea3aca8 100644 --- a/src/battle_controller_link_opponent.c +++ b/src/battle_controller_link_opponent.c @@ -1364,7 +1364,7 @@ static void LinkOpponentHandleFaintAnimation(void) if (!gBattleSpritesDataPtr->healthBoxesData[gActiveBattler].specialAnimActive) { gBattleSpritesDataPtr->healthBoxesData[gActiveBattler].animationState = 0; - PlaySE12WithPanning(SE_POKE_DEAD, PAN_SIDE_OPPONENT); + PlaySE12WithPanning(SE_POKE_DEAD, SOUND_PAN_TARGET); gSprites[gBattlerSpriteIds[gActiveBattler]].callback = SpriteCB_FaintOpponentMon; gBattlerControllerFuncs[gActiveBattler] = sub_8064C14; } @@ -1660,9 +1660,9 @@ static void LinkOpponentHandlePlaySE(void) s8 pan; if (GetBattlerSide(gActiveBattler) == B_SIDE_PLAYER) - pan = PAN_SIDE_PLAYER; + pan = SOUND_PAN_ATTACKER; else - pan = PAN_SIDE_OPPONENT; + pan = SOUND_PAN_TARGET; PlaySE12WithPanning(gBattleBufferA[gActiveBattler][1] | (gBattleBufferA[gActiveBattler][2] << 8), pan); LinkOpponentBufferExecCompleted(); diff --git a/src/battle_controller_link_partner.c b/src/battle_controller_link_partner.c index bfaaf9e82..51e26b620 100644 --- a/src/battle_controller_link_partner.c +++ b/src/battle_controller_link_partner.c @@ -1187,7 +1187,7 @@ static void LinkPartnerHandleFaintAnimation(void) { gBattleSpritesDataPtr->healthBoxesData[gActiveBattler].animationState = 0; HandleLowHpMusicChange(&gPlayerParty[gBattlerPartyIndexes[gActiveBattler]], gActiveBattler); - PlaySE12WithPanning(SE_POKE_DEAD, PAN_SIDE_PLAYER); + PlaySE12WithPanning(SE_POKE_DEAD, SOUND_PAN_ATTACKER); gSprites[gBattlerSpriteIds[gActiveBattler]].data[1] = 0; gSprites[gBattlerSpriteIds[gActiveBattler]].data[2] = 5; gSprites[gBattlerSpriteIds[gActiveBattler]].callback = sub_8039C00; @@ -1485,9 +1485,9 @@ static void LinkPartnerHandlePlaySE(void) s8 pan; if (GetBattlerSide(gActiveBattler) == B_SIDE_PLAYER) - pan = PAN_SIDE_PLAYER; + pan = SOUND_PAN_ATTACKER; else - pan = PAN_SIDE_OPPONENT; + pan = SOUND_PAN_TARGET; PlaySE12WithPanning(gBattleBufferA[gActiveBattler][1] | (gBattleBufferA[gActiveBattler][2] << 8), pan); LinkPartnerBufferExecCompleted(); diff --git a/src/battle_controller_opponent.c b/src/battle_controller_opponent.c index c490ad314..b8b5bd3b8 100644 --- a/src/battle_controller_opponent.c +++ b/src/battle_controller_opponent.c @@ -1402,7 +1402,7 @@ static void OpponentHandleFaintAnimation(void) if (!gBattleSpritesDataPtr->healthBoxesData[gActiveBattler].specialAnimActive) { gBattleSpritesDataPtr->healthBoxesData[gActiveBattler].animationState = 0; - PlaySE12WithPanning(SE_POKE_DEAD, PAN_SIDE_OPPONENT); + PlaySE12WithPanning(SE_POKE_DEAD, SOUND_PAN_TARGET); gSprites[gBattlerSpriteIds[gActiveBattler]].callback = SpriteCB_FaintOpponentMon; gBattlerControllerFuncs[gActiveBattler] = sub_805FAC4; } @@ -1810,9 +1810,9 @@ static void OpponentHandlePlaySE(void) s8 pan; if (GetBattlerSide(gActiveBattler) == B_SIDE_PLAYER) - pan = PAN_SIDE_PLAYER; + pan = SOUND_PAN_ATTACKER; else - pan = PAN_SIDE_OPPONENT; + pan = SOUND_PAN_TARGET; PlaySE12WithPanning(gBattleBufferA[gActiveBattler][1] | (gBattleBufferA[gActiveBattler][2] << 8), pan); OpponentBufferExecCompleted(); diff --git a/src/battle_controller_player.c b/src/battle_controller_player.c index 57a4efa9f..63ab50f4c 100644 --- a/src/battle_controller_player.c +++ b/src/battle_controller_player.c @@ -2407,7 +2407,7 @@ static void PlayerHandleFaintAnimation(void) { gBattleSpritesDataPtr->healthBoxesData[gActiveBattler].animationState = 0; HandleLowHpMusicChange(&gPlayerParty[gBattlerPartyIndexes[gActiveBattler]], gActiveBattler); - PlaySE12WithPanning(SE_POKE_DEAD, PAN_SIDE_PLAYER); + PlaySE12WithPanning(SE_POKE_DEAD, SOUND_PAN_ATTACKER); gSprites[gBattlerSpriteIds[gActiveBattler]].data[1] = 0; gSprites[gBattlerSpriteIds[gActiveBattler]].data[2] = 5; gSprites[gBattlerSpriteIds[gActiveBattler]].callback = sub_8039C00; @@ -2882,9 +2882,9 @@ static void PlayerHandlePlaySE(void) s8 pan; if (GetBattlerSide(gActiveBattler) == B_SIDE_PLAYER) - pan = PAN_SIDE_PLAYER; + pan = SOUND_PAN_ATTACKER; else - pan = PAN_SIDE_OPPONENT; + pan = SOUND_PAN_TARGET; PlaySE12WithPanning(gBattleBufferA[gActiveBattler][1] | (gBattleBufferA[gActiveBattler][2] << 8), pan); PlayerBufferExecCompleted(); diff --git a/src/battle_controller_player_partner.c b/src/battle_controller_player_partner.c index 7795c5656..d0fbdeb01 100644 --- a/src/battle_controller_player_partner.c +++ b/src/battle_controller_player_partner.c @@ -1382,7 +1382,7 @@ static void PlayerPartnerHandleFaintAnimation(void) { gBattleSpritesDataPtr->healthBoxesData[gActiveBattler].animationState = 0; HandleLowHpMusicChange(&gPlayerParty[gBattlerPartyIndexes[gActiveBattler]], gActiveBattler); - PlaySE12WithPanning(SE_POKE_DEAD, PAN_SIDE_PLAYER); + PlaySE12WithPanning(SE_POKE_DEAD, SOUND_PAN_ATTACKER); gSprites[gBattlerSpriteIds[gActiveBattler]].data[1] = 0; gSprites[gBattlerSpriteIds[gActiveBattler]].data[2] = 5; gSprites[gBattlerSpriteIds[gActiveBattler]].callback = sub_8039C00; @@ -1739,9 +1739,9 @@ static void PlayerPartnerHandlePlaySE(void) s8 pan; if (GetBattlerSide(gActiveBattler) == B_SIDE_PLAYER) - pan = PAN_SIDE_PLAYER; + pan = SOUND_PAN_ATTACKER; else - pan = PAN_SIDE_OPPONENT; + pan = SOUND_PAN_TARGET; PlaySE12WithPanning(gBattleBufferA[gActiveBattler][1] | (gBattleBufferA[gActiveBattler][2] << 8), pan); PlayerPartnerBufferExecCompleted(); diff --git a/src/battle_controller_recorded_opponent.c b/src/battle_controller_recorded_opponent.c index 963c535db..57eb6842e 100644 --- a/src/battle_controller_recorded_opponent.c +++ b/src/battle_controller_recorded_opponent.c @@ -1295,7 +1295,7 @@ static void RecordedOpponentHandleFaintAnimation(void) if (!gBattleSpritesDataPtr->healthBoxesData[gActiveBattler].specialAnimActive) { gBattleSpritesDataPtr->healthBoxesData[gActiveBattler].animationState = 0; - PlaySE12WithPanning(SE_POKE_DEAD, PAN_SIDE_OPPONENT); + PlaySE12WithPanning(SE_POKE_DEAD, SOUND_PAN_TARGET); gSprites[gBattlerSpriteIds[gActiveBattler]].callback = SpriteCB_FaintOpponentMon; gBattlerControllerFuncs[gActiveBattler] = sub_8186D58; } @@ -1603,9 +1603,9 @@ static void RecordedOpponentHandlePlaySE(void) s8 pan; if (GetBattlerSide(gActiveBattler) == B_SIDE_PLAYER) - pan = PAN_SIDE_PLAYER; + pan = SOUND_PAN_ATTACKER; else - pan = PAN_SIDE_OPPONENT; + pan = SOUND_PAN_TARGET; PlaySE12WithPanning(gBattleBufferA[gActiveBattler][1] | (gBattleBufferA[gActiveBattler][2] << 8), pan); RecordedOpponentBufferExecCompleted(); diff --git a/src/battle_controller_recorded_player.c b/src/battle_controller_recorded_player.c index 1a043573f..f6c19121d 100644 --- a/src/battle_controller_recorded_player.c +++ b/src/battle_controller_recorded_player.c @@ -1624,9 +1624,9 @@ static void RecordedPlayerHandlePlaySE(void) s8 pan; if (GetBattlerSide(gActiveBattler) == B_SIDE_PLAYER) - pan = PAN_SIDE_PLAYER; + pan = SOUND_PAN_ATTACKER; else - pan = PAN_SIDE_OPPONENT; + pan = SOUND_PAN_TARGET; PlaySE12WithPanning(gBattleBufferA[gActiveBattler][1] | (gBattleBufferA[gActiveBattler][2] << 8), pan); RecordedPlayerBufferExecCompleted(); diff --git a/src/battle_controller_safari.c b/src/battle_controller_safari.c index 898e18294..148f13865 100644 --- a/src/battle_controller_safari.c +++ b/src/battle_controller_safari.c @@ -594,9 +594,9 @@ static void SafariHandlePlaySE(void) s8 pan; if (GetBattlerSide(gActiveBattler) == B_SIDE_PLAYER) - pan = PAN_SIDE_PLAYER; + pan = SOUND_PAN_ATTACKER; else - pan = PAN_SIDE_OPPONENT; + pan = SOUND_PAN_TARGET; PlaySE12WithPanning(gBattleBufferA[gActiveBattler][1] | (gBattleBufferA[gActiveBattler][2] << 8), pan); SafariBufferExecCompleted(); diff --git a/src/battle_interface.c b/src/battle_interface.c index d2750bf9d..fa248c4a3 100644 --- a/src/battle_interface.c +++ b/src/battle_interface.c @@ -20,6 +20,7 @@ #include "international_string_util.h" #include "safari_zone.h" #include "battle_anim.h" +#include "constants/battle_anim.h" #include "constants/rgb.h" #include "data2.h" @@ -1889,9 +1890,9 @@ static void SpriteCB_StatusSummaryBallsOnBattleStart(struct Sprite *sprite) if (sprite->pos2.x == 0) { - pan = PAN_SIDE_OPPONENT; + pan = SOUND_PAN_TARGET; if (var1 != 0) - pan = PAN_SIDE_PLAYER; + pan = SOUND_PAN_ATTACKER; if (sprite->data[7] != 0) PlaySE2WithPanning(SE_TB_KARA, pan);