sovereignx/data/maps/ShoalCave_LowTideStairsRoom/scripts.inc

33 lines
1.1 KiB
PHP
Raw Permalink Normal View History

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