mirror of
https://github.com/pret/pokefirered.git
synced 2026-04-24 23:07:39 -05:00
28 lines
575 B
PHP
28 lines
575 B
PHP
EventScript_ItemfinderDigUpUnderfootItem:: @ 81A8D49
|
|
lockall
|
|
textcolor 3
|
|
waitse
|
|
call EventScript_TryPickUpHiddenItem
|
|
compare VAR_0x8007, TRUE
|
|
goto_if_eq EventScript_DigUpItemPutInPocket
|
|
compare VAR_0x8007, FALSE
|
|
goto_if_eq EventScript_DigUpItemBagIsFull
|
|
end
|
|
|
|
EventScript_DigUpItemPutInPocket::
|
|
message Text_DugUpItemFromGround
|
|
waitfanfare
|
|
waitmessage
|
|
delay 60
|
|
msgbox Text_PutItemAway
|
|
special SetHiddenItemFlag
|
|
releaseall
|
|
end
|
|
|
|
EventScript_DigUpItemBagIsFull::
|
|
msgbox Text_DugUpItemFromGround
|
|
msgbox Text_TooBadBagFull
|
|
setvar VAR_RESULT, 0
|
|
releaseall
|
|
end
|