pokeemerald/data/maps/ShoalCave_LowTideStairsRoom/scripts.inc
2019-11-07 12:17:28 -05:00

34 lines
1.1 KiB
PHP

ShoalCave_LowTideStairsRoom_MapScripts:: @ 82370FA
map_script MAP_SCRIPT_ON_LOAD, ShoalCave_LowTideStairsRoom_OnLoad
.byte 0
ShoalCave_LowTideStairsRoom_OnLoad: @ 8237100
call ShoalCave_LowTideStairsRoom_EventScript_SetShoalItemMetatiles
end
ShoalCave_LowTideStairsRoom_EventScript_SetShoalItemMetatiles:: @ 8237106
goto_if_set FLAG_RECEIVED_SHOAL_SALT_3, ShoalCave_LowTideStairsRoom_EventScript_SetShoalItemMetatilesEnd
setmetatile 11, 11, METATILE_Cave_ShoalCave_DirtPile_Large, 1
return
ShoalCave_LowTideStairsRoom_EventScript_SetShoalItemMetatilesEnd:: @ 8237119
return
ShoalCave_LowTideStairsRoom_EventScript_ShoalSalt3:: @ 823711A
lockall
goto_if_set FLAG_RECEIVED_SHOAL_SALT_3, ShoalCave_LowTideStairsRoom_EventScript_ReceivedShoalSalt
giveitem_std ITEM_SHOAL_SALT
compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_ShowBagIsFull
setmetatile 11, 11, METATILE_Cave_ShoalCave_DirtPile_Small, 0
special DrawWholeMapView
setflag FLAG_RECEIVED_SHOAL_SALT_3
releaseall
end
ShoalCave_LowTideStairsRoom_EventScript_ReceivedShoalSalt:: @ 823714C
msgbox ShoalCave_Text_WasShoalSaltNowNothing, MSGBOX_DEFAULT
releaseall
end