pokeemerald/data/maps/ShoalCave_LowTideStairsRoom/scripts.inc

34 lines
1.1 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
ShoalCave_LowTideStairsRoom_MapScripts:: @ 82370FA
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
2019-11-07 18:17:28 +01:00
ShoalCave_LowTideStairsRoom_OnLoad: @ 8237100
call ShoalCave_LowTideStairsRoom_EventScript_SetShoalItemMetatiles
2017-11-10 02:21:31 +01:00
end
2019-11-07 18:17:28 +01:00
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
2017-11-10 02:21:31 +01:00
return
2019-11-07 18:17:28 +01:00
ShoalCave_LowTideStairsRoom_EventScript_SetShoalItemMetatilesEnd:: @ 8237119
2017-11-10 02:21:31 +01:00
return
2019-11-07 18:17:28 +01:00
ShoalCave_LowTideStairsRoom_EventScript_ShoalSalt3:: @ 823711A
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
giveitem ITEM_SHOAL_SALT
2019-11-07 18:17:28 +01:00
compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_ShowBagIsFull
2019-11-07 18:17:28 +01:00
setmetatile 11, 11, METATILE_Cave_ShoalCave_DirtPile_Small, 0
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
2019-11-07 18:17:28 +01:00
ShoalCave_LowTideStairsRoom_EventScript_ReceivedShoalSalt:: @ 823714C
msgbox ShoalCave_Text_WasShoalSaltNowNothing, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
releaseall
end