Document Shoal Cave

This commit is contained in:
GriffinR
2019-11-07 12:17:28 -05:00
parent 3a00b66407
commit 09afa7992d
9 changed files with 141 additions and 142 deletions
@@ -37,7 +37,7 @@
"movement_range_y": 1, "movement_range_y": 1,
"trainer_type": "0", "trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0", "trainer_sight_or_berry_tree_id": "0",
"script": "ShoalCave_LowTideEntranceRoom_EventScript_236DD9", "script": "ShoalCave_LowTideEntranceRoom_EventScript_ShellBellExpert",
"flag": "0" "flag": "0"
} }
], ],
@@ -4,90 +4,91 @@ ShoalCave_LowTideEntranceRoom_MapScripts:: @ 8236DBA
ShoalCave_LowTideEntranceRoom_OnTransition: @ 8236DC0 ShoalCave_LowTideEntranceRoom_OnTransition: @ 8236DC0
special UpdateShoalTideFlag special UpdateShoalTideFlag
goto_if_set FLAG_SYS_SHOAL_TIDE, ShoalCave_LowTideEntranceRoom_EventScript_236DD1 goto_if_set FLAG_SYS_SHOAL_TIDE, ShoalCave_LowTideEntranceRoom_EventScript_SetHighTide
goto ShoalCave_LowTideEntranceRoom_EventScript_236DD5 goto ShoalCave_LowTideEntranceRoom_EventScript_SetLowTide
ShoalCave_LowTideEntranceRoom_EventScript_236DD1:: @ 8236DD1 ShoalCave_LowTideEntranceRoom_EventScript_SetHighTide:: @ 8236DD1
setmaplayoutindex LAYOUT_SHOAL_CAVE_HIGH_TIDE_ENTRANCE_ROOM setmaplayoutindex LAYOUT_SHOAL_CAVE_HIGH_TIDE_ENTRANCE_ROOM
end end
ShoalCave_LowTideEntranceRoom_EventScript_236DD5:: @ 8236DD5 ShoalCave_LowTideEntranceRoom_EventScript_SetLowTide:: @ 8236DD5
setmaplayoutindex LAYOUT_SHOAL_CAVE_LOW_TIDE_ENTRANCE_ROOM setmaplayoutindex LAYOUT_SHOAL_CAVE_LOW_TIDE_ENTRANCE_ROOM
end end
ShoalCave_LowTideEntranceRoom_EventScript_236DD9:: @ 8236DD9 ShoalCave_LowTideEntranceRoom_EventScript_ShellBellExpert:: @ 8236DD9
lock lock
faceplayer faceplayer
dotimebasedevents dotimebasedevents
call_if_set FLAG_SYS_SHOAL_ITEM, ShoalCave_LowTideEntranceRoom_EventScript_236ED9 call_if_set FLAG_SYS_SHOAL_ITEM, ShoalCave_LowTideEntranceRoom_EventScript_ResetShoalItems
checkitem ITEM_SHOAL_SALT, 4 checkitem ITEM_SHOAL_SALT, 4
compare VAR_RESULT, 0 compare VAR_RESULT, FALSE
goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_236E9B goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_NotEnoughShoalSaltOrShells
checkitem ITEM_SHOAL_SHELL, 4 checkitem ITEM_SHOAL_SHELL, 4
compare VAR_RESULT, 0 compare VAR_RESULT, FALSE
goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_236E9B goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_NotEnoughShoalSaltOrShells
msgbox ShoalCave_LowTideEntranceRoom_Text_2A7F37, MSGBOX_YESNO msgbox ShoalCave_LowTideEntranceRoom_Text_WouldYouLikeShellBell, MSGBOX_YESNO
compare VAR_RESULT, NO compare VAR_RESULT, NO
goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_236ECF goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_DeclineShellBell
checkitemspace ITEM_SHELL_BELL, 1 checkitemspace ITEM_SHELL_BELL, 1
compare VAR_RESULT, 0 compare VAR_RESULT, FALSE
call_if_eq ShoalCave_LowTideEntranceRoom_EventScript_236E69 call_if_eq ShoalCave_LowTideEntranceRoom_EventScript_CheckSpaceWillBeFreed
compare VAR_RESULT, 2 compare VAR_RESULT, 2
goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_236E91 goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_NoRoomForShellBell
msgbox ShoalCave_LowTideEntranceRoom_Text_2A7FAC, MSGBOX_DEFAULT msgbox ShoalCave_LowTideEntranceRoom_Text_MakeShellBellRightAway, MSGBOX_DEFAULT
takeitem ITEM_SHOAL_SALT, 4 takeitem ITEM_SHOAL_SALT, 4
takeitem ITEM_SHOAL_SHELL, 4 takeitem ITEM_SHOAL_SHELL, 4
giveitem_std ITEM_SHELL_BELL giveitem_std ITEM_SHELL_BELL
compare VAR_RESULT, 0 compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_ShowBagIsFull goto_if_eq Common_EventScript_ShowBagIsFull
msgbox ShoalCave_LowTideEntranceRoom_Text_2A8012, MSGBOX_DEFAULT msgbox ShoalCave_LowTideEntranceRoom_Text_ExplainShellBell, MSGBOX_DEFAULT
setflag FLAG_TEMP_2 setflag FLAG_TEMP_2
release release
end end
ShoalCave_LowTideEntranceRoom_EventScript_236E69:: @ 8236E69 @ If the bag is full, check if a slot will be freed when 4 Shoal Salt or Shells are given
ShoalCave_LowTideEntranceRoom_EventScript_CheckSpaceWillBeFreed:: @ 8236E69
checkitem ITEM_SHOAL_SALT, 5 checkitem ITEM_SHOAL_SALT, 5
compare VAR_RESULT, 1 compare VAR_RESULT, TRUE
goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_236E7A goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_CheckSpaceWillBeFreedShells
return return
ShoalCave_LowTideEntranceRoom_EventScript_236E7A:: @ 8236E7A ShoalCave_LowTideEntranceRoom_EventScript_CheckSpaceWillBeFreedShells:: @ 8236E7A
checkitem ITEM_SHOAL_SHELL, 5 checkitem ITEM_SHOAL_SHELL, 5
compare VAR_RESULT, 1 compare VAR_RESULT, TRUE
goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_236E8B goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_NoSpaceWillBeFreed
return return
ShoalCave_LowTideEntranceRoom_EventScript_236E8B:: @ 8236E8B ShoalCave_LowTideEntranceRoom_EventScript_NoSpaceWillBeFreed:: @ 8236E8B
setvar VAR_RESULT, 2 setvar VAR_RESULT, 2
return return
ShoalCave_LowTideEntranceRoom_EventScript_236E91:: @ 8236E91 ShoalCave_LowTideEntranceRoom_EventScript_NoRoomForShellBell:: @ 8236E91
msgbox ShoalCave_LowTideEntranceRoom_Text_2A80F5, MSGBOX_DEFAULT msgbox ShoalCave_LowTideEntranceRoom_Text_NoSpaceInYourBag, MSGBOX_DEFAULT
release release
end end
ShoalCave_LowTideEntranceRoom_EventScript_236E9B:: @ 8236E9B ShoalCave_LowTideEntranceRoom_EventScript_NotEnoughShoalSaltOrShells:: @ 8236E9B
checkitem ITEM_SHOAL_SALT, 1 checkitem ITEM_SHOAL_SALT, 1
compare VAR_RESULT, 1 compare VAR_RESULT, TRUE
goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_236EC5 goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_HasSomeShoalSaltOrShell
checkitem ITEM_SHOAL_SHELL, 1 checkitem ITEM_SHOAL_SHELL, 1
compare VAR_RESULT, 1 compare VAR_RESULT, TRUE
goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_236EC5 goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_HasSomeShoalSaltOrShell
msgbox ShoalCave_LowTideEntranceRoom_Text_2A7E0E, MSGBOX_DEFAULT msgbox ShoalCave_LowTideEntranceRoom_Text_AreYouPlanningOnGoingInThere, MSGBOX_DEFAULT
release release
end end
ShoalCave_LowTideEntranceRoom_EventScript_236EC5:: @ 8236EC5 ShoalCave_LowTideEntranceRoom_EventScript_HasSomeShoalSaltOrShell:: @ 8236EC5
msgbox ShoalCave_LowTideEntranceRoom_Text_2A7EB3, MSGBOX_DEFAULT msgbox ShoalCave_LowTideEntranceRoom_Text_BringMe4ShoalSaltAndShells, MSGBOX_DEFAULT
release release
end end
ShoalCave_LowTideEntranceRoom_EventScript_236ECF:: @ 8236ECF ShoalCave_LowTideEntranceRoom_EventScript_DeclineShellBell:: @ 8236ECF
msgbox ShoalCave_LowTideEntranceRoom_Text_2A80C6, MSGBOX_DEFAULT msgbox ShoalCave_LowTideEntranceRoom_Text_WantedToMakeShellBell, MSGBOX_DEFAULT
release release
end end
ShoalCave_LowTideEntranceRoom_EventScript_236ED9:: @ 8236ED9 ShoalCave_LowTideEntranceRoom_EventScript_ResetShoalItems:: @ 8236ED9
clearflag FLAG_RECEIVED_SHOAL_SALT_1 clearflag FLAG_RECEIVED_SHOAL_SALT_1
clearflag FLAG_RECEIVED_SHOAL_SALT_2 clearflag FLAG_RECEIVED_SHOAL_SALT_2
clearflag FLAG_RECEIVED_SHOAL_SALT_3 clearflag FLAG_RECEIVED_SHOAL_SALT_3
@@ -94,7 +94,7 @@
"y": 8, "y": 8,
"elevation": 5, "elevation": 5,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY", "player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
"script": "ShoalCave_LowTideInnerRoom_EventScript_23708C" "script": "ShoalCave_LowTideInnerRoom_EventScript_ShoalSalt1"
}, },
{ {
"type": "sign", "type": "sign",
@@ -102,7 +102,7 @@
"y": 26, "y": 26,
"elevation": 3, "elevation": 3,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY", "player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
"script": "ShoalCave_LowTideInnerRoom_EventScript_2370C8" "script": "ShoalCave_LowTideInnerRoom_EventScript_ShoalSalt2"
}, },
{ {
"type": "sign", "type": "sign",
@@ -110,7 +110,7 @@
"y": 20, "y": 20,
"elevation": 5, "elevation": 5,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY", "player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
"script": "ShoalCave_LowTideInnerRoom_EventScript_236FBA" "script": "ShoalCave_LowTideInnerRoom_EventScript_ShoalShell1"
}, },
{ {
"type": "sign", "type": "sign",
@@ -118,7 +118,7 @@
"y": 10, "y": 10,
"elevation": 5, "elevation": 5,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY", "player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
"script": "ShoalCave_LowTideInnerRoom_EventScript_236FF6" "script": "ShoalCave_LowTideInnerRoom_EventScript_ShoalShell2"
}, },
{ {
"type": "sign", "type": "sign",
@@ -126,7 +126,7 @@
"y": 9, "y": 9,
"elevation": 3, "elevation": 3,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY", "player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
"script": "ShoalCave_LowTideInnerRoom_EventScript_237028" "script": "ShoalCave_LowTideInnerRoom_EventScript_ShoalShell3"
}, },
{ {
"type": "sign", "type": "sign",
@@ -134,7 +134,7 @@
"y": 13, "y": 13,
"elevation": 5, "elevation": 5,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY", "player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
"script": "ShoalCave_LowTideInnerRoom_EventScript_23705A" "script": "ShoalCave_LowTideInnerRoom_EventScript_ShoalShell4"
} }
] ]
} }
@@ -1,69 +1,69 @@
ShoalCave_LowTideInnerRoom_MapScripts:: @ 8236EF5 ShoalCave_LowTideInnerRoom_MapScripts:: @ 8236EF5
map_script MAP_SCRIPT_ON_LOAD, ShoalCave_LowTideInnerRoom_MapScript1_236F16 map_script MAP_SCRIPT_ON_LOAD, ShoalCave_LowTideInnerRoom_OnLoad
map_script MAP_SCRIPT_ON_TRANSITION, ShoalCave_LowTideInnerRoom_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, ShoalCave_LowTideInnerRoom_OnTransition
.byte 0 .byte 0
ShoalCave_LowTideInnerRoom_OnTransition: @ 8236F00 ShoalCave_LowTideInnerRoom_OnTransition: @ 8236F00
goto_if_set FLAG_SYS_SHOAL_TIDE, ShoalCave_LowTideInnerRoom_EventScript_236F0E goto_if_set FLAG_SYS_SHOAL_TIDE, ShoalCave_LowTideInnerRoom_EventScript_SetHighTide
goto ShoalCave_LowTideInnerRoom_EventScript_236F12 goto ShoalCave_LowTideInnerRoom_EventScript_SetLowTide
ShoalCave_LowTideInnerRoom_EventScript_236F0E:: @ 8236F0E ShoalCave_LowTideInnerRoom_EventScript_SetHighTide:: @ 8236F0E
setmaplayoutindex LAYOUT_SHOAL_CAVE_HIGH_TIDE_INNER_ROOM setmaplayoutindex LAYOUT_SHOAL_CAVE_HIGH_TIDE_INNER_ROOM
end end
ShoalCave_LowTideInnerRoom_EventScript_236F12:: @ 8236F12 ShoalCave_LowTideInnerRoom_EventScript_SetLowTide:: @ 8236F12
setmaplayoutindex LAYOUT_SHOAL_CAVE_LOW_TIDE_INNER_ROOM setmaplayoutindex LAYOUT_SHOAL_CAVE_LOW_TIDE_INNER_ROOM
end end
ShoalCave_LowTideInnerRoom_MapScript1_236F16: @ 8236F16 ShoalCave_LowTideInnerRoom_OnLoad: @ 8236F16
call ShoalCave_LowTideInnerRoom_EventScript_236F1C call ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles
end end
ShoalCave_LowTideInnerRoom_EventScript_236F1C:: @ 8236F1C ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles:: @ 8236F1C
goto_if_set FLAG_RECEIVED_SHOAL_SALT_1, ShoalCave_LowTideInnerRoom_EventScript_236F3D goto_if_set FLAG_RECEIVED_SHOAL_SALT_1, ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles2
goto_if_set FLAG_SYS_SHOAL_TIDE, ShoalCave_LowTideInnerRoom_EventScript_236F3D goto_if_set FLAG_SYS_SHOAL_TIDE, ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles2
setmetatile 31, 8, METATILE_Cave_ShoalCave_DirtPile_Large, 1 setmetatile 31, 8, METATILE_Cave_ShoalCave_DirtPile_Large, 1
goto ShoalCave_LowTideInnerRoom_EventScript_236F3D goto ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles2
end end
ShoalCave_LowTideInnerRoom_EventScript_236F3D:: @ 8236F3D ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles2:: @ 8236F3D
goto_if_set FLAG_RECEIVED_SHOAL_SALT_2, ShoalCave_LowTideInnerRoom_EventScript_236F5E goto_if_set FLAG_RECEIVED_SHOAL_SALT_2, ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles3
goto_if_set FLAG_SYS_SHOAL_TIDE, ShoalCave_LowTideInnerRoom_EventScript_236F5E goto_if_set FLAG_SYS_SHOAL_TIDE, ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles3
setmetatile 14, 26, METATILE_Cave_ShoalCave_DirtPile_Large, 1 setmetatile 14, 26, METATILE_Cave_ShoalCave_DirtPile_Large, 1
goto ShoalCave_LowTideInnerRoom_EventScript_236F5E goto ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles3
end end
ShoalCave_LowTideInnerRoom_EventScript_236F5E:: @ 8236F5E ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles3:: @ 8236F5E
goto_if_set FLAG_RECEIVED_SHOAL_SHELL_1, ShoalCave_LowTideInnerRoom_EventScript_236F76 goto_if_set FLAG_RECEIVED_SHOAL_SHELL_1, ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles4
setmetatile 41, 20, METATILE_Cave_ShoalCave_BlueStone_Large, 1 setmetatile 41, 20, METATILE_Cave_ShoalCave_BlueStone_Large, 1
goto ShoalCave_LowTideInnerRoom_EventScript_236F76 goto ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles4
end end
ShoalCave_LowTideInnerRoom_EventScript_236F76:: @ 8236F76 ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles4:: @ 8236F76
goto_if_set FLAG_RECEIVED_SHOAL_SHELL_2, ShoalCave_LowTideInnerRoom_EventScript_236F8E goto_if_set FLAG_RECEIVED_SHOAL_SHELL_2, ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles5
setmetatile 41, 10, METATILE_Cave_ShoalCave_BlueStone_Large, 1 setmetatile 41, 10, METATILE_Cave_ShoalCave_BlueStone_Large, 1
goto ShoalCave_LowTideInnerRoom_EventScript_236F8E goto ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles5
end end
ShoalCave_LowTideInnerRoom_EventScript_236F8E:: @ 8236F8E ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles5:: @ 8236F8E
goto_if_set FLAG_RECEIVED_SHOAL_SHELL_3, ShoalCave_LowTideInnerRoom_EventScript_236FA6 goto_if_set FLAG_RECEIVED_SHOAL_SHELL_3, ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles6
setmetatile 6, 9, METATILE_Cave_ShoalCave_BlueStone_Large, 1 setmetatile 6, 9, METATILE_Cave_ShoalCave_BlueStone_Large, 1
goto ShoalCave_LowTideInnerRoom_EventScript_236FA6 goto ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles6
end end
ShoalCave_LowTideInnerRoom_EventScript_236FA6:: @ 8236FA6 ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles6:: @ 8236FA6
goto_if_set FLAG_RECEIVED_SHOAL_SHELL_4, ShoalCave_LowTideInnerRoom_EventScript_236FB9 goto_if_set FLAG_RECEIVED_SHOAL_SHELL_4, ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatilesEnd
setmetatile 16, 13, METATILE_Cave_ShoalCave_BlueStone_Large, 1 setmetatile 16, 13, METATILE_Cave_ShoalCave_BlueStone_Large, 1
return return
ShoalCave_LowTideInnerRoom_EventScript_236FB9:: @ 8236FB9 ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatilesEnd:: @ 8236FB9
return return
ShoalCave_LowTideInnerRoom_EventScript_236FBA:: @ 8236FBA ShoalCave_LowTideInnerRoom_EventScript_ShoalShell1:: @ 8236FBA
lockall lockall
goto_if_set FLAG_RECEIVED_SHOAL_SHELL_1, ShoalCave_LowTideInnerRoom_EventScript_236FEC goto_if_set FLAG_RECEIVED_SHOAL_SHELL_1, ShoalCave_LowTideInnerRoom_EventScript_ReceivedShoalShell
giveitem_std ITEM_SHOAL_SHELL giveitem_std ITEM_SHOAL_SHELL
compare VAR_RESULT, 0 compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_ShowBagIsFull goto_if_eq Common_EventScript_ShowBagIsFull
setmetatile 41, 20, METATILE_Cave_ShoalCave_BlueStone_Small, 0 setmetatile 41, 20, METATILE_Cave_ShoalCave_BlueStone_Small, 0
special DrawWholeMapView special DrawWholeMapView
@@ -71,16 +71,16 @@ ShoalCave_LowTideInnerRoom_EventScript_236FBA:: @ 8236FBA
releaseall releaseall
end end
ShoalCave_LowTideInnerRoom_EventScript_236FEC:: @ 8236FEC ShoalCave_LowTideInnerRoom_EventScript_ReceivedShoalShell:: @ 8236FEC
msgbox ShoalCave_LowTideInnerRoom_Text_2A81A8, MSGBOX_DEFAULT msgbox ShoalCave_Text_WasShoallShellNowNothing, MSGBOX_DEFAULT
releaseall releaseall
end end
ShoalCave_LowTideInnerRoom_EventScript_236FF6:: @ 8236FF6 ShoalCave_LowTideInnerRoom_EventScript_ShoalShell2:: @ 8236FF6
lockall lockall
goto_if_set FLAG_RECEIVED_SHOAL_SHELL_2, ShoalCave_LowTideInnerRoom_EventScript_236FEC goto_if_set FLAG_RECEIVED_SHOAL_SHELL_2, ShoalCave_LowTideInnerRoom_EventScript_ReceivedShoalShell
giveitem_std ITEM_SHOAL_SHELL giveitem_std ITEM_SHOAL_SHELL
compare VAR_RESULT, 0 compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_ShowBagIsFull goto_if_eq Common_EventScript_ShowBagIsFull
setmetatile 41, 10, METATILE_Cave_ShoalCave_BlueStone_Small, 0 setmetatile 41, 10, METATILE_Cave_ShoalCave_BlueStone_Small, 0
special DrawWholeMapView special DrawWholeMapView
@@ -88,11 +88,11 @@ ShoalCave_LowTideInnerRoom_EventScript_236FF6:: @ 8236FF6
releaseall releaseall
end end
ShoalCave_LowTideInnerRoom_EventScript_237028:: @ 8237028 ShoalCave_LowTideInnerRoom_EventScript_ShoalShell3:: @ 8237028
lockall lockall
goto_if_set FLAG_RECEIVED_SHOAL_SHELL_3, ShoalCave_LowTideInnerRoom_EventScript_236FEC goto_if_set FLAG_RECEIVED_SHOAL_SHELL_3, ShoalCave_LowTideInnerRoom_EventScript_ReceivedShoalShell
giveitem_std ITEM_SHOAL_SHELL giveitem_std ITEM_SHOAL_SHELL
compare VAR_RESULT, 0 compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_ShowBagIsFull goto_if_eq Common_EventScript_ShowBagIsFull
setmetatile 6, 9, METATILE_Cave_ShoalCave_BlueStone_Small, 0 setmetatile 6, 9, METATILE_Cave_ShoalCave_BlueStone_Small, 0
special DrawWholeMapView special DrawWholeMapView
@@ -100,11 +100,11 @@ ShoalCave_LowTideInnerRoom_EventScript_237028:: @ 8237028
releaseall releaseall
end end
ShoalCave_LowTideInnerRoom_EventScript_23705A:: @ 823705A ShoalCave_LowTideInnerRoom_EventScript_ShoalShell4:: @ 823705A
lockall lockall
goto_if_set FLAG_RECEIVED_SHOAL_SHELL_4, ShoalCave_LowTideInnerRoom_EventScript_236FEC goto_if_set FLAG_RECEIVED_SHOAL_SHELL_4, ShoalCave_LowTideInnerRoom_EventScript_ReceivedShoalShell
giveitem_std ITEM_SHOAL_SHELL giveitem_std ITEM_SHOAL_SHELL
compare VAR_RESULT, 0 compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_ShowBagIsFull goto_if_eq Common_EventScript_ShowBagIsFull
setmetatile 16, 13, METATILE_Cave_ShoalCave_BlueStone_Small, 0 setmetatile 16, 13, METATILE_Cave_ShoalCave_BlueStone_Small, 0
special DrawWholeMapView special DrawWholeMapView
@@ -112,11 +112,11 @@ ShoalCave_LowTideInnerRoom_EventScript_23705A:: @ 823705A
releaseall releaseall
end end
ShoalCave_LowTideInnerRoom_EventScript_23708C:: @ 823708C ShoalCave_LowTideInnerRoom_EventScript_ShoalSalt1:: @ 823708C
lockall lockall
goto_if_set FLAG_RECEIVED_SHOAL_SALT_1, ShoalCave_LowTideInnerRoom_EventScript_2370BE goto_if_set FLAG_RECEIVED_SHOAL_SALT_1, ShoalCave_LowTideInnerRoom_EventScript_ReceivedShoalSalt
giveitem_std ITEM_SHOAL_SALT giveitem_std ITEM_SHOAL_SALT
compare VAR_RESULT, 0 compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_ShowBagIsFull goto_if_eq Common_EventScript_ShowBagIsFull
setmetatile 31, 8, METATILE_Cave_ShoalCave_DirtPile_Small, 0 setmetatile 31, 8, METATILE_Cave_ShoalCave_DirtPile_Small, 0
special DrawWholeMapView special DrawWholeMapView
@@ -124,16 +124,16 @@ ShoalCave_LowTideInnerRoom_EventScript_23708C:: @ 823708C
releaseall releaseall
end end
ShoalCave_LowTideInnerRoom_EventScript_2370BE:: @ 82370BE ShoalCave_LowTideInnerRoom_EventScript_ReceivedShoalSalt:: @ 82370BE
msgbox ShoalCave_LowTideInnerRoom_Text_2A8169, MSGBOX_DEFAULT msgbox ShoalCave_Text_WasShoalSaltNowNothing, MSGBOX_DEFAULT
releaseall releaseall
end end
ShoalCave_LowTideInnerRoom_EventScript_2370C8:: @ 82370C8 ShoalCave_LowTideInnerRoom_EventScript_ShoalSalt2:: @ 82370C8
lockall lockall
goto_if_set FLAG_RECEIVED_SHOAL_SALT_2, ShoalCave_LowTideInnerRoom_EventScript_2370BE goto_if_set FLAG_RECEIVED_SHOAL_SALT_2, ShoalCave_LowTideInnerRoom_EventScript_ReceivedShoalSalt
giveitem_std ITEM_SHOAL_SALT giveitem_std ITEM_SHOAL_SALT
compare VAR_RESULT, 0 compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_ShowBagIsFull goto_if_eq Common_EventScript_ShowBagIsFull
setmetatile 14, 26, METATILE_Cave_ShoalCave_DirtPile_Small, 0 setmetatile 14, 26, METATILE_Cave_ShoalCave_DirtPile_Small, 0
special DrawWholeMapView special DrawWholeMapView
@@ -37,7 +37,7 @@
"movement_range_y": 1, "movement_range_y": 1,
"trainer_type": "0", "trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0", "trainer_sight_or_berry_tree_id": "0",
"script": "ShoalCave_LowTideLowerRoom_EventScript_2371B2", "script": "ShoalCave_LowTideLowerRoom_EventScript_BlackBelt",
"flag": "0" "flag": "0"
} }
], ],
@@ -79,7 +79,7 @@
"y": 2, "y": 2,
"elevation": 3, "elevation": 3,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY", "player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
"script": "ShoalCave_LowTideLowerRoom_EventScript_237176" "script": "ShoalCave_LowTideLowerRoom_EventScript_ShoalSalt4"
} }
] ]
} }
@@ -1,60 +1,60 @@
ShoalCave_LowTideLowerRoom_MapScripts:: @ 8237156 ShoalCave_LowTideLowerRoom_MapScripts:: @ 8237156
map_script MAP_SCRIPT_ON_LOAD, ShoalCave_LowTideLowerRoom_MapScript1_23715C map_script MAP_SCRIPT_ON_LOAD, ShoalCave_LowTideLowerRoom_OnLoad
.byte 0 .byte 0
ShoalCave_LowTideLowerRoom_MapScript1_23715C: @ 823715C ShoalCave_LowTideLowerRoom_OnLoad: @ 823715C
call ShoalCave_LowTideLowerRoom_EventScript_237162 call ShoalCave_LowTideLowerRoom_EventScript_SetShoalItemMetatiles
end end
ShoalCave_LowTideLowerRoom_EventScript_237162:: @ 8237162 ShoalCave_LowTideLowerRoom_EventScript_SetShoalItemMetatiles:: @ 8237162
goto_if_set FLAG_RECEIVED_SHOAL_SALT_4, ShoalCave_LowTideLowerRoom_EventScript_237175 goto_if_set FLAG_RECEIVED_SHOAL_SALT_4, ShoalCave_LowTideLowerRoom_EventScript_SetShoalItemMetatilesEnd
setmetatile 18, 2, 856, 1 setmetatile 18, 2, METATILE_Cave_ShoalCave_DirtPile_Large, 1
return return
ShoalCave_LowTideLowerRoom_EventScript_237175:: @ 8237175 ShoalCave_LowTideLowerRoom_EventScript_SetShoalItemMetatilesEnd:: @ 8237175
return return
ShoalCave_LowTideLowerRoom_EventScript_237176:: @ 8237176 ShoalCave_LowTideLowerRoom_EventScript_ShoalSalt4:: @ 8237176
lockall lockall
goto_if_set FLAG_RECEIVED_SHOAL_SALT_4, ShoalCave_LowTideLowerRoom_EventScript_2371A8 goto_if_set FLAG_RECEIVED_SHOAL_SALT_4, ShoalCave_LowTideLowerRoom_EventScript_ReceivedShoalSalt
giveitem_std ITEM_SHOAL_SALT giveitem_std ITEM_SHOAL_SALT
compare VAR_RESULT, 0 compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_ShowBagIsFull goto_if_eq Common_EventScript_ShowBagIsFull
setmetatile 18, 2, 858, 0 setmetatile 18, 2, METATILE_Cave_ShoalCave_DirtPile_Small, 0
special DrawWholeMapView special DrawWholeMapView
setflag FLAG_RECEIVED_SHOAL_SALT_4 setflag FLAG_RECEIVED_SHOAL_SALT_4
releaseall releaseall
end end
ShoalCave_LowTideLowerRoom_EventScript_2371A8:: @ 82371A8 ShoalCave_LowTideLowerRoom_EventScript_ReceivedShoalSalt:: @ 82371A8
msgbox ShoalCave_LowTideLowerRoom_Text_2A8169, MSGBOX_DEFAULT msgbox ShoalCave_Text_WasShoalSaltNowNothing, MSGBOX_DEFAULT
releaseall releaseall
end end
ShoalCave_LowTideLowerRoom_EventScript_2371B2:: @ 82371B2 ShoalCave_LowTideLowerRoom_EventScript_BlackBelt:: @ 82371B2
lock lock
faceplayer faceplayer
goto_if_set FLAG_RECEIVED_FOCUS_BAND, ShoalCave_LowTideLowerRoom_EventScript_2371E1 goto_if_set FLAG_RECEIVED_FOCUS_BAND, ShoalCave_LowTideLowerRoom_EventScript_ReceivedFocusBand
msgbox ShoalCave_LowTideLowerRoom_Text_2371EB, MSGBOX_DEFAULT msgbox ShoalCave_LowTideLowerRoom_Text_CanOvercomeColdWithFocus, MSGBOX_DEFAULT
giveitem_std ITEM_FOCUS_BAND giveitem_std ITEM_FOCUS_BAND
compare VAR_RESULT, 0 compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_ShowBagIsFull goto_if_eq Common_EventScript_ShowBagIsFull
setflag FLAG_RECEIVED_FOCUS_BAND setflag FLAG_RECEIVED_FOCUS_BAND
release release
end end
ShoalCave_LowTideLowerRoom_EventScript_2371E1:: @ 82371E1 ShoalCave_LowTideLowerRoom_EventScript_ReceivedFocusBand:: @ 82371E1
msgbox ShoalCave_LowTideLowerRoom_Text_23728D, MSGBOX_DEFAULT msgbox ShoalCave_LowTideLowerRoom_Text_EverythingStartsWithFocus, MSGBOX_DEFAULT
release release
end end
ShoalCave_LowTideLowerRoom_Text_2371EB: @ 82371EB ShoalCave_LowTideLowerRoom_Text_CanOvercomeColdWithFocus: @ 82371EB
.string "The penetrating cold around these\n" .string "The penetrating cold around these\n"
.string "parts is an impediment to training.\p" .string "parts is an impediment to training.\p"
.string "But with focus, one can overcome!\p" .string "But with focus, one can overcome!\p"
.string "With this FOCUS BAND, buckle down and\n" .string "With this FOCUS BAND, buckle down and\n"
.string "withstand the cold!$" .string "withstand the cold!$"
ShoalCave_LowTideLowerRoom_Text_23728D: @ 823728D ShoalCave_LowTideLowerRoom_Text_EverythingStartsWithFocus: @ 823728D
.string "Everything starts with focus!$" .string "Everything starts with focus!$"
@@ -52,7 +52,7 @@
"y": 11, "y": 11,
"elevation": 3, "elevation": 3,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY", "player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
"script": "ShoalCave_LowTideStairsRoom_EventScript_23711A" "script": "ShoalCave_LowTideStairsRoom_EventScript_ShoalSalt3"
} }
] ]
} }
@@ -1,33 +1,33 @@
ShoalCave_LowTideStairsRoom_MapScripts:: @ 82370FA ShoalCave_LowTideStairsRoom_MapScripts:: @ 82370FA
map_script MAP_SCRIPT_ON_LOAD, ShoalCave_LowTideStairsRoom_MapScript1_237100 map_script MAP_SCRIPT_ON_LOAD, ShoalCave_LowTideStairsRoom_OnLoad
.byte 0 .byte 0
ShoalCave_LowTideStairsRoom_MapScript1_237100: @ 8237100 ShoalCave_LowTideStairsRoom_OnLoad: @ 8237100
call ShoalCave_LowTideStairsRoom_EventScript_237106 call ShoalCave_LowTideStairsRoom_EventScript_SetShoalItemMetatiles
end end
ShoalCave_LowTideStairsRoom_EventScript_237106:: @ 8237106 ShoalCave_LowTideStairsRoom_EventScript_SetShoalItemMetatiles:: @ 8237106
goto_if_set FLAG_RECEIVED_SHOAL_SALT_3, ShoalCave_LowTideStairsRoom_EventScript_237119 goto_if_set FLAG_RECEIVED_SHOAL_SALT_3, ShoalCave_LowTideStairsRoom_EventScript_SetShoalItemMetatilesEnd
setmetatile 11, 11, 856, 1 setmetatile 11, 11, METATILE_Cave_ShoalCave_DirtPile_Large, 1
return return
ShoalCave_LowTideStairsRoom_EventScript_237119:: @ 8237119 ShoalCave_LowTideStairsRoom_EventScript_SetShoalItemMetatilesEnd:: @ 8237119
return return
ShoalCave_LowTideStairsRoom_EventScript_23711A:: @ 823711A ShoalCave_LowTideStairsRoom_EventScript_ShoalSalt3:: @ 823711A
lockall lockall
goto_if_set FLAG_RECEIVED_SHOAL_SALT_3, ShoalCave_LowTideStairsRoom_EventScript_23714C goto_if_set FLAG_RECEIVED_SHOAL_SALT_3, ShoalCave_LowTideStairsRoom_EventScript_ReceivedShoalSalt
giveitem_std ITEM_SHOAL_SALT giveitem_std ITEM_SHOAL_SALT
compare VAR_RESULT, 0 compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_ShowBagIsFull goto_if_eq Common_EventScript_ShowBagIsFull
setmetatile 11, 11, 858, 0 setmetatile 11, 11, METATILE_Cave_ShoalCave_DirtPile_Small, 0
special DrawWholeMapView special DrawWholeMapView
setflag FLAG_RECEIVED_SHOAL_SALT_3 setflag FLAG_RECEIVED_SHOAL_SALT_3
releaseall releaseall
end end
ShoalCave_LowTideStairsRoom_EventScript_23714C:: @ 823714C ShoalCave_LowTideStairsRoom_EventScript_ReceivedShoalSalt:: @ 823714C
msgbox ShoalCave_LowTideStairsRoom_Text_2A8169, MSGBOX_DEFAULT msgbox ShoalCave_Text_WasShoalSaltNowNothing, MSGBOX_DEFAULT
releaseall releaseall
end end
+9 -11
View File
@@ -1,4 +1,4 @@
ShoalCave_LowTideEntranceRoom_Text_2A7E0E: @ 82A7E0E ShoalCave_LowTideEntranceRoom_Text_AreYouPlanningOnGoingInThere: @ 82A7E0E
.string "Are you planning on going deep\n" .string "Are you planning on going deep\n"
.string "in there?\p" .string "in there?\p"
.string "How about bringing me back some\n" .string "How about bringing me back some\n"
@@ -6,27 +6,27 @@ ShoalCave_LowTideEntranceRoom_Text_2A7E0E: @ 82A7E0E
.string "I can make you something good if\n" .string "I can make you something good if\n"
.string "you bring me the ingredients.$" .string "you bring me the ingredients.$"
ShoalCave_LowTideEntranceRoom_Text_2A7EB3: @ 82A7EB3 ShoalCave_LowTideEntranceRoom_Text_BringMe4ShoalSaltAndShells: @ 82A7EB3
.string "If you bring me four each of the\n" .string "If you bring me four each of the\n"
.string "SHOAL SALT and SHOAL SHELLS,\l" .string "SHOAL SALT and SHOAL SHELLS,\l"
.string "I can make you a SHELL BELL…\p" .string "I can make you a SHELL BELL…\p"
.string "You can get those ingredients\n" .string "You can get those ingredients\n"
.string "every day.$" .string "every day.$"
ShoalCave_LowTideEntranceRoom_Text_2A7F37: @ 82A7F37 ShoalCave_LowTideEntranceRoom_Text_WouldYouLikeShellBell: @ 82A7F37
.string "Oh, hey! SHOAL SALT and SHOAL SHELLS!\n" .string "Oh, hey! SHOAL SALT and SHOAL SHELLS!\n"
.string "And enough of them, too!\p" .string "And enough of them, too!\p"
.string "Would you like me to make you\n" .string "Would you like me to make you\n"
.string "a SHELL BELL with them?$" .string "a SHELL BELL with them?$"
ShoalCave_LowTideEntranceRoom_Text_2A7FAC: @ 82A7FAC ShoalCave_LowTideEntranceRoom_Text_MakeShellBellRightAway: @ 82A7FAC
.string "All righty, then! I'll make you\n" .string "All righty, then! I'll make you\n"
.string "a SHELL BELL right away.\p" .string "a SHELL BELL right away.\p"
.string "… … … … … … … …\n" .string "… … … … … … … …\n"
.string "… … … … … … … …\p" .string "… … … … … … … …\p"
.string "There! Done!$" .string "There! Done!$"
ShoalCave_LowTideEntranceRoom_Text_2A8012: @ 82A8012 ShoalCave_LowTideEntranceRoom_Text_ExplainShellBell: @ 82A8012
.string "Have a POKéMON hold on to that.\n" .string "Have a POKéMON hold on to that.\n"
.string "It'll love it, that's for certain.\p" .string "It'll love it, that's for certain.\p"
.string "Why, the SHELL BELL's chime…\n" .string "Why, the SHELL BELL's chime…\n"
@@ -34,22 +34,20 @@ ShoalCave_LowTideEntranceRoom_Text_2A8012: @ 82A8012
.string "You can get its ingredients every day,\n" .string "You can get its ingredients every day,\n"
.string "so I can make you more.$" .string "so I can make you more.$"
ShoalCave_LowTideEntranceRoom_Text_2A80C6: @ 82A80C6 ShoalCave_LowTideEntranceRoom_Text_WantedToMakeShellBell: @ 82A80C6
.string "Oh… Is that so…\n" .string "Oh… Is that so…\n"
.string "I wanted to make a SHELL BELL…$" .string "I wanted to make a SHELL BELL…$"
ShoalCave_LowTideEntranceRoom_Text_2A80F5: @ 82A80F5 ShoalCave_LowTideEntranceRoom_Text_NoSpaceInYourBag: @ 82A80F5
.string "You don't have space in your BAG\n" .string "You don't have space in your BAG\n"
.string "if I were to make it for you.\p" .string "if I were to make it for you.\p"
.string "You should make room and come back\n" .string "You should make room and come back\n"
.string "for a SHELL BELL.$" .string "for a SHELL BELL.$"
ShoalCave_LowTideInnerRoom_Text_2A8169: @ 82A8169 ShoalCave_Text_WasShoalSaltNowNothing: @ 82A8169
ShoalCave_LowTideLowerRoom_Text_2A8169: @ 82A8169
ShoalCave_LowTideStairsRoom_Text_2A8169: @ 82A8169
.string "There was some SHOAL SALT here.\n" .string "There was some SHOAL SALT here.\n"
.string "But, there's nothing here now.$" .string "But, there's nothing here now.$"
ShoalCave_LowTideInnerRoom_Text_2A81A8: @ 82A81A8 ShoalCave_Text_WasShoallShellNowNothing: @ 82A81A8
.string "There was a SHOAL SHELL here.\n" .string "There was a SHOAL SHELL here.\n"
.string "But, there's nothing here now.$" .string "But, there's nothing here now.$"