pokeplatinum/res/battle/scripts/subscripts/subscript_move_followup_message.s
2024-07-16 12:01:40 -07:00

60 lines
1.9 KiB
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:
WaitButtonABTime 15
CompareVarToValue OPCODE_FLAG_NOT, BTLVAR_MOVE_STATUS_FLAGS, MOVE_STATUS_SPLASH, _011
// But nothing happened!
PrintMessage pl_msg_00000368_00795, TAG_NONE
GoTo _095
_011:
CompareVarToValue OPCODE_FLAG_NOT, BTLVAR_MOVE_STATUS_FLAGS, MOVE_STATUS_ENDURED_ITEM, _037
PlayBattleAnimation BTLSCR_DEFENDER, BATTLE_ANIMATION_HELD_ITEM
Wait
// {0} hung on using its {1}!
PrintMessage pl_msg_00000368_00912, TAG_NICKNAME_ITEM, BTLSCR_DEFENDER, BTLSCR_DEFENDER
CheckItemHoldEffect CHECK_NOT_HAVE, BTLSCR_DEFENDER, HOLD_EFFECT_ENDURE, _032
RemoveItem BTLSCR_DEFENDER
_032:
Wait
WaitButtonABTime 30
GoTo _067
_037:
CompareVarToValue OPCODE_FLAG_NOT, BTLVAR_MOVE_STATUS_FLAGS, MOVE_STATUS_ENDURED, _057
CompareMonDataToValue OPCODE_NEQ, BTLSCR_DEFENDER, BATTLEMON_CUR_HP, 1, _057
// {0} endured the hit!
PrintMessage pl_msg_00000368_00445, TAG_NICKNAME, BTLSCR_DEFENDER
Wait
WaitButtonABTime 30
GoTo _067
_057:
CompareVarToValue OPCODE_FLAG_NOT, BTLVAR_MOVE_STATUS_FLAGS, MOVE_STATUS_ONE_HIT_KO, _067
// Its a one-hit KO!
PrintMessage pl_msg_00000368_00775, TAG_NONE
GoTo _095
_067:
CompareVarToValue OPCODE_FLAG_SET, BTLVAR_BATTLE_CTX_STATUS, SYSCTL_IGNORE_TYPE_CHECKS, _098
CompareVarToValue OPCODE_AND, BTLVAR_MOVE_STATUS_FLAGS, MOVE_STATUS_SUPER_EFFECTIVE|MOVE_STATUS_NOT_VERY_EFFECTIVE, _098
CompareVarToValue OPCODE_FLAG_NOT, BTLVAR_MOVE_STATUS_FLAGS, MOVE_STATUS_SUPER_EFFECTIVE, _087
// Its super effective!
PrintMessage pl_msg_00000368_00780, TAG_NONE
GoTo _095
_087:
CompareVarToValue OPCODE_FLAG_NOT, BTLVAR_MOVE_STATUS_FLAGS, MOVE_STATUS_NOT_VERY_EFFECTIVE, _098
// Its not very effective...
PrintMessage pl_msg_00000368_00779, TAG_NONE
_095:
Wait
WaitButtonABTime 30
_098:
End