pokeplatinum/res/field/scripts/scripts_hearthome_city_southeast_house_2f.s
Viperio 3c0d1255a4
Some checks are pending
build / build (push) Waiting to run
Introduce macros for common message script structures (#975)
2026-03-03 21:20:51 -05:00

44 lines
821 B
ArmAsm

#include "macros/scrcmd.inc"
#include "res/text/bank/hearthome_city_southeast_house_2f.h"
ScriptEntry _000A
ScriptEntry _006E
ScriptEntryEnd
_000A:
PlayFanfare SEQ_SE_CONFIRM
LockAll
FacePlayer
GoToIfSet FLAG_UNK_0x008C, _0054
BufferItemName 0, ITEM_SHELL_BELL
Message 0
SetVar VAR_0x8004, ITEM_SHELL_BELL
SetVar VAR_0x8005, 1
GoToIfCannotFitItem VAR_0x8004, VAR_0x8005, VAR_RESULT, _0064
SetFlag FLAG_UNK_0x008C
Common_GiveItemQuantityNoLineFeed
CloseMessage
ReleaseAll
End
_0054:
BufferItemName 0, ITEM_SHELL_BELL
Message 1
WaitABXPadPress
CloseMessage
ReleaseAll
End
_0064:
Common_MessageBagIsFull
CloseMessage
ReleaseAll
End
_006E:
PokemonCryAndMessage SPECIES_CLEFAIRY, 2
End
.balign 4, 0