mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-04-26 00:32:20 -05:00
33 lines
592 B
ArmAsm
33 lines
592 B
ArmAsm
#include "macros/scrcmd.inc"
|
|
#include "res/text/bank/route_225_house.h"
|
|
|
|
|
|
ScriptEntry _0006
|
|
ScriptEntryEnd
|
|
|
|
_0006:
|
|
PlayFanfare SEQ_SE_CONFIRM
|
|
LockAll
|
|
FacePlayer
|
|
GoToIfSet FLAG_UNK_0x00D9, _004B
|
|
Message 0
|
|
SetVar VAR_0x8004, ITEM_FRESH_WATER
|
|
SetVar VAR_0x8005, 1
|
|
GoToIfCannotFitItem VAR_0x8004, VAR_0x8005, VAR_RESULT, _0056
|
|
Common_GiveItemQuantity
|
|
SetFlag FLAG_UNK_0x00D9
|
|
GoTo _004B
|
|
|
|
_004B:
|
|
Message 1
|
|
WaitABXPadPress
|
|
CloseMessage
|
|
ReleaseAll
|
|
End
|
|
|
|
_0056:
|
|
Common_MessageBagIsFull
|
|
CloseMessage
|
|
ReleaseAll
|
|
End
|