2017-11-10 02:21:31 +01:00
|
|
|
ShoalCave_LowTideEntranceRoom_MapScripts:: @ 8236DBA
|
2019-04-22 22:31:51 +02:00
|
|
|
map_script MAP_SCRIPT_ON_TRANSITION, ShoalCave_LowTideEntranceRoom_OnTransition
|
2017-11-10 02:21:31 +01:00
|
|
|
.byte 0
|
|
|
|
|
2019-04-22 22:31:51 +02:00
|
|
|
ShoalCave_LowTideEntranceRoom_OnTransition: @ 8236DC0
|
2017-12-28 09:09:11 +01:00
|
|
|
special UpdateShoalTideFlag
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_set FLAG_SYS_SHOAL_TIDE, ShoalCave_LowTideEntranceRoom_EventScript_236DD1
|
2017-11-10 02:21:31 +01:00
|
|
|
goto ShoalCave_LowTideEntranceRoom_EventScript_236DD5
|
|
|
|
|
|
|
|
ShoalCave_LowTideEntranceRoom_EventScript_236DD1:: @ 8236DD1
|
2019-01-31 22:51:20 +01:00
|
|
|
setmaplayoutindex LAYOUT_SHOAL_CAVE_HIGH_TIDE_ENTRANCE_ROOM
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
ShoalCave_LowTideEntranceRoom_EventScript_236DD5:: @ 8236DD5
|
2019-01-31 22:51:20 +01:00
|
|
|
setmaplayoutindex LAYOUT_SHOAL_CAVE_LOW_TIDE_ENTRANCE_ROOM
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
ShoalCave_LowTideEntranceRoom_EventScript_236DD9:: @ 8236DD9
|
|
|
|
lock
|
|
|
|
faceplayer
|
2019-02-12 07:40:34 +01:00
|
|
|
dotimebasedevents
|
2018-12-22 03:32:45 +01:00
|
|
|
call_if_set FLAG_SYS_SHOAL_ITEM, ShoalCave_LowTideEntranceRoom_EventScript_236ED9
|
2017-11-10 02:21:31 +01:00
|
|
|
checkitem ITEM_SHOAL_SALT, 4
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 0
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_236E9B
|
2017-11-10 02:21:31 +01:00
|
|
|
checkitem ITEM_SHOAL_SHELL, 4
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 0
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_236E9B
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox ShoalCave_LowTideEntranceRoom_Text_2A7F37, MSGBOX_YESNO
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 0
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_236ECF
|
2017-11-10 02:21:31 +01:00
|
|
|
checkitemspace ITEM_SHELL_BELL, 1
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 0
|
2018-12-22 03:32:45 +01:00
|
|
|
call_if_eq ShoalCave_LowTideEntranceRoom_EventScript_236E69
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 2
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_236E91
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox ShoalCave_LowTideEntranceRoom_Text_2A7FAC, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
takeitem ITEM_SHOAL_SALT, 4
|
|
|
|
takeitem ITEM_SHOAL_SHELL, 4
|
|
|
|
giveitem_std ITEM_SHELL_BELL
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 0
|
2019-02-23 01:52:11 +01:00
|
|
|
goto_if_eq Common_EventScript_ShowBagIsFull
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox ShoalCave_LowTideEntranceRoom_Text_2A8012, MSGBOX_DEFAULT
|
2018-10-17 18:25:12 +02:00
|
|
|
setflag FLAG_TEMP_2
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
|
|
|
ShoalCave_LowTideEntranceRoom_EventScript_236E69:: @ 8236E69
|
|
|
|
checkitem ITEM_SHOAL_SALT, 5
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 1
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_236E7A
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
ShoalCave_LowTideEntranceRoom_EventScript_236E7A:: @ 8236E7A
|
|
|
|
checkitem ITEM_SHOAL_SHELL, 5
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 1
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_236E8B
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
ShoalCave_LowTideEntranceRoom_EventScript_236E8B:: @ 8236E8B
|
|
|
|
setvar VAR_RESULT, 2
|
|
|
|
return
|
|
|
|
|
|
|
|
ShoalCave_LowTideEntranceRoom_EventScript_236E91:: @ 8236E91
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox ShoalCave_LowTideEntranceRoom_Text_2A80F5, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
|
|
|
ShoalCave_LowTideEntranceRoom_EventScript_236E9B:: @ 8236E9B
|
|
|
|
checkitem ITEM_SHOAL_SALT, 1
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 1
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_236EC5
|
2017-11-10 02:21:31 +01:00
|
|
|
checkitem ITEM_SHOAL_SHELL, 1
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 1
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_236EC5
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox ShoalCave_LowTideEntranceRoom_Text_2A7E0E, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
|
|
|
ShoalCave_LowTideEntranceRoom_EventScript_236EC5:: @ 8236EC5
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox ShoalCave_LowTideEntranceRoom_Text_2A7EB3, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
|
|
|
ShoalCave_LowTideEntranceRoom_EventScript_236ECF:: @ 8236ECF
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox ShoalCave_LowTideEntranceRoom_Text_2A80C6, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
|
|
|
ShoalCave_LowTideEntranceRoom_EventScript_236ED9:: @ 8236ED9
|
2019-01-03 02:54:55 +01:00
|
|
|
clearflag FLAG_RECEIVED_SHOAL_SALT_1
|
|
|
|
clearflag FLAG_RECEIVED_SHOAL_SALT_2
|
|
|
|
clearflag FLAG_RECEIVED_SHOAL_SALT_3
|
|
|
|
clearflag FLAG_RECEIVED_SHOAL_SALT_4
|
|
|
|
clearflag FLAG_RECEIVED_SHOAL_SHELL_1
|
|
|
|
clearflag FLAG_RECEIVED_SHOAL_SHELL_2
|
|
|
|
clearflag FLAG_RECEIVED_SHOAL_SHELL_3
|
|
|
|
clearflag FLAG_RECEIVED_SHOAL_SHELL_4
|
2017-11-10 02:21:31 +01:00
|
|
|
clearflag FLAG_SYS_SHOAL_ITEM
|
|
|
|
return
|