Underwater_SeafloorCavern_MapScripts:: @ 815D99E
	map_script MAP_SCRIPT_ON_RESUME, Underwater_SeafloorCavern_MapScript1_15DA36
	map_script MAP_SCRIPT_ON_TRANSITION, Underwater_SeafloorCavern_MapScript1_15D9AE
	map_script MAP_SCRIPT_ON_LOAD, Underwater_SeafloorCavern_MapScript1_15D9BF
	.byte 0

Underwater_SeafloorCavern_MapScript1_15D9AE:: @ 815D9AE
	setflag FLAG_LANDMARK_SEAFLOOR_CAVERN
	goto_if_set FLAG_LEGEND_ESCAPED_SEAFLOOR_CAVERN, Underwater_SeafloorCavern_EventScript_15D9BB
	end

Underwater_SeafloorCavern_EventScript_15D9BB:: @ 815D9BB
	setflag FLAG_HIDE_UNDERWATER_SUBMARINE_INTERACTION
	end

Underwater_SeafloorCavern_MapScript1_15D9BF:: @ 815D9BF
	call_if_set FLAG_LEGEND_ESCAPED_SEAFLOOR_CAVERN, Underwater_SeafloorCavern_EventScript_15D9C9
	end

Underwater_SeafloorCavern_EventScript_15D9C9:: @ 815D9C9
	setmetatile 5, 3, METATILE_Underwater_RockWall, 1
	setmetatile 6, 3, METATILE_Underwater_RockWall, 1
	setmetatile 7, 3, METATILE_Underwater_RockWall, 1
	setmetatile 8, 3, METATILE_Underwater_RockWall, 1
	setmetatile 5, 4, METATILE_Underwater_FloorShadow, 0
	setmetatile 6, 4, METATILE_Underwater_FloorShadow, 0
	setmetatile 7, 4, METATILE_Underwater_FloorShadow, 0
	setmetatile 8, 4, METATILE_Underwater_FloorShadow, 0
	setmetatile 5, 5, METATILE_Underwater_FloorShadow, 0
	setmetatile 6, 5, METATILE_Underwater_FloorShadow, 0
	setmetatile 7, 5, METATILE_Underwater_FloorShadow, 0
	setmetatile 8, 5, METATILE_Underwater_FloorShadow, 0
	return

Underwater_SeafloorCavern_MapScript1_15DA36:: @ 815DA36
	setdivewarp MAP_SEAFLOOR_CAVERN_ENTRANCE, 255, 10, 17
	end

Underwater_SeafloorCavern_EventScript_15DA3F:: @ 815DA3F
	lockall
	msgbox Underwater_SeafloorCavern_Text_197435, MSGBOX_DEFAULT
	releaseall
	end
