pokeemerald/data/maps/ShoalCave_LowTideStairsRoom/scripts.inc

34 lines
1010 B
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
ShoalCave_LowTideStairsRoom_MapScripts:: @ 82370FA
2019-02-22 08:28:32 +01:00
map_script MAP_SCRIPT_ON_LOAD, ShoalCave_LowTideStairsRoom_MapScript1_237100
2017-11-10 02:21:31 +01:00
.byte 0
ShoalCave_LowTideStairsRoom_MapScript1_237100: @ 8237100
call ShoalCave_LowTideStairsRoom_EventScript_237106
end
ShoalCave_LowTideStairsRoom_EventScript_237106:: @ 8237106
2019-01-03 02:54:55 +01:00
goto_if_set FLAG_RECEIVED_SHOAL_SALT_3, ShoalCave_LowTideStairsRoom_EventScript_237119
2017-11-10 02:21:31 +01:00
setmetatile 11, 11, 856, 1
return
ShoalCave_LowTideStairsRoom_EventScript_237119:: @ 8237119
return
ShoalCave_LowTideStairsRoom_EventScript_23711A:: @ 823711A
lockall
2019-01-03 02:54:55 +01:00
goto_if_set FLAG_RECEIVED_SHOAL_SALT_3, ShoalCave_LowTideStairsRoom_EventScript_23714C
2017-11-10 02:21:31 +01:00
giveitem_std ITEM_SHOAL_SALT
compare VAR_RESULT, 0
goto_if_eq Common_EventScript_ShowBagIsFull
2017-11-10 02:21:31 +01:00
setmetatile 11, 11, 858, 0
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
ShoalCave_LowTideStairsRoom_EventScript_23714C:: @ 823714C
msgbox ShoalCave_LowTideStairsRoom_Text_2A8169, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
releaseall
end