Split/label some common event scripts

This commit is contained in:
GriffinR
2020-03-02 00:19:11 -05:00
parent 43f66fce55
commit 62100376b7
17 changed files with 353 additions and 342 deletions
+27
View File
@@ -0,0 +1,27 @@
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 Special_SetHiddenItemFlag
releaseall
end
EventScript_DigUpItemBagIsFull::
msgbox Text_DugUpItemFromGround
msgbox Text_TooBadBagFull
setvar VAR_RESULT, 0
releaseall
end