pokeheartgold/files/battledata/script/subscript/subscript_0090_HitSubstitute.s
Adrienn Tindall 2083be2810 Rename scripts 1
I stopped at yawn bc I'm sleepy
2024-03-07 04:57:08 -05:00

30 lines
903 B
ArmAsm
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.include "macros/btlcmd.inc"
.data
_000:
CompareVarToValue OPCODE_FLAG_SET, BSCRIPT_VAR_BATTLE_STATUS, BATTLE_STATUS_NO_BLINK, _009
PlayMoveHitSound BATTLER_CATEGORY_MSG_TEMP
FlickerMon BATTLER_CATEGORY_MSG_TEMP
Wait
_009:
// The substitute took damage for {0}!
PrintMessage msg_0197_00354, TAG_NICKNAME, BATTLER_CATEGORY_MSG_TEMP
Wait
WaitButtonABTime 30
CompareMonDataToValue OPCODE_FLAG_SET, BATTLER_CATEGORY_MSG_TEMP, BMON_DATA_STATUS2, STATUS2_SUBSTITUTE, _040
PlayBattleAnimation BATTLER_CATEGORY_MSG_TEMP, BATTLE_ANIMATION_SUBSTITUTE_OUT
Wait
RestoreSprite BATTLER_CATEGORY_MSG_TEMP
Wait
PlayBattleAnimation BATTLER_CATEGORY_MSG_TEMP, BATTLE_ANIMATION_SUB_IN
Wait
// {0}s substitute faded!
PrintMessage msg_0197_00357, TAG_NICKNAME, BATTLER_CATEGORY_MSG_TEMP
Wait
WaitButtonABTime 30
_040:
End