mirror of
https://github.com/pret/pokefirered.git
synced 2026-04-25 07:19:36 -05:00
26 lines
570 B
PHP
26 lines
570 B
PHP
EventScript_ItemfinderDigUpUnderfootItem::
|
|
lockall
|
|
textcolor NPC_TEXT_COLOR_NEUTRAL
|
|
waitse
|
|
call EventScript_TryPickUpHiddenItem
|
|
goto_if_eq VAR_0x8007, TRUE, EventScript_DigUpItemPutInPocket
|
|
goto_if_eq VAR_0x8007, FALSE, 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
|