2021-07-20 21:18:31 +02:00
|
|
|
ShoalCave_LowTideStairsRoom_MapScripts::
|
2019-11-07 18:17:28 +01:00
|
|
|
map_script MAP_SCRIPT_ON_LOAD, ShoalCave_LowTideStairsRoom_OnLoad
|
2017-11-10 02:21:31 +01:00
|
|
|
.byte 0
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
ShoalCave_LowTideStairsRoom_OnLoad:
|
2019-11-07 18:17:28 +01:00
|
|
|
call ShoalCave_LowTideStairsRoom_EventScript_SetShoalItemMetatiles
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
ShoalCave_LowTideStairsRoom_EventScript_SetShoalItemMetatiles::
|
2019-11-07 18:17:28 +01:00
|
|
|
goto_if_set FLAG_RECEIVED_SHOAL_SALT_3, ShoalCave_LowTideStairsRoom_EventScript_SetShoalItemMetatilesEnd
|
2021-11-16 23:12:16 +01:00
|
|
|
setmetatile 11, 11, METATILE_Cave_ShoalCave_DirtPile_Large, TRUE
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
ShoalCave_LowTideStairsRoom_EventScript_SetShoalItemMetatilesEnd::
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
ShoalCave_LowTideStairsRoom_EventScript_ShoalSalt3::
|
2017-11-10 02:21:31 +01:00
|
|
|
lockall
|
2019-11-07 18:17:28 +01:00
|
|
|
goto_if_set FLAG_RECEIVED_SHOAL_SALT_3, ShoalCave_LowTideStairsRoom_EventScript_ReceivedShoalSalt
|
2020-01-11 18:02:58 +01:00
|
|
|
giveitem ITEM_SHOAL_SALT
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
|
2021-11-16 23:12:16 +01:00
|
|
|
setmetatile 11, 11, METATILE_Cave_ShoalCave_DirtPile_Small, FALSE
|
2017-11-10 02:21:31 +01:00
|
|
|
special DrawWholeMapView
|
2019-01-03 02:54:55 +01:00
|
|
|
setflag FLAG_RECEIVED_SHOAL_SALT_3
|
2017-11-10 02:21:31 +01:00
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
ShoalCave_LowTideStairsRoom_EventScript_ReceivedShoalSalt::
|
2019-11-07 18:17:28 +01:00
|
|
|
msgbox ShoalCave_Text_WasShoalSaltNowNothing, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|