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

20 lines
479 B
ArmAsm

#include "macros/btlcmd.inc"
.data
_000:
// Used the {0}!
PrintMessage pl_msg_00000368_01206, TAG_ITEM, BTLSCR_MSG_TEMP
Wait
PlayBattleAnimation BTLSCR_PLAYER, BATTLE_ANIMATION_ITEM_ESCAPE
Wait
PlaySound BTLSCR_ATTACKER, 1791
// Got away safely!
PrintMessage pl_msg_00000368_00781, TAG_NONE
Wait
WaitButtonABTime 30
FadeOutBattle
Wait
UpdateVar OPCODE_FLAG_ON, BTLVAR_RESULT_MASK, BATTLE_RESULT_PLAYER_FLED
End