<screen id="OUTDOOR_PATHWAY" src="swfs/screens/Outside/Outdoor_Pathway.swf" footstep="Dirt">
	<warning id="LOCATION_OUTSIDE_OUTDOOR_PATHWAY"/>
	<unlockRoom id="Outside/Outdoor_Pathway"/>
	<unlockMap id="Outside/OUTDOOR_PATHWAY"/>
	<unlockMap id="Outside/CEMETERY"/>
	<unlockMap id="Outside/LIGHTHOUSE"/>
	<unlockMap id="Outside/LIGHTHOUSE_INSIDE"/>
	
	<music src="Audio/Music/OUTSIDE/CEMETERY.mp3" fadeIn="10000" channel="MUSIC" loop="true"/>
	
	<music src="Audio/Ambient/OUTSIDE/OUTDOOR_PATHWAY.mp3" channel="AMBIENT" fadeIn="5000" loop="true"/>
	
	<property type="visible" value="false" assign="object_window" name="thomas" />
	
	<goal id="TASK_3_6" remove="true" />
	
	<state>
		<requirement type="session" id="M4_CEMETERY_UNLOCKED" value="false"/>
		<property type="visible" value="false" assign="object_window" name="gate_open" />
	</state>
	<state>
		<requirement type="session" id="M4_CEMETERY_UNLOCKED" value="true"/>
		<property type="visible" value="false" assign="object_window" name="gate_close" />
	</state>
	
	<state>
		<requirement type="session" id="M4_LIGHTHOUSE_POWERED" value="true"/>
		<requirement type="session" id="M4_LIGHTHOUSE_LIGHT_DIRECTED" value="true"/>
		<property type="frame" value="done" stop="true" assign="object_window" name="light" />
	</state>
	<state>
		<requirement type="session" id="M4_LIGHTHOUSE_POWERED" value="true"/>
		<requirement type="session" id="M4_LIGHTHOUSE_LIGHT_DIRECTED" value="false"/>
		<property type="frame" value="activate" stop="false" assign="object_window" name="light" />
		<session id="M4_LIGHTHOUSE_LIGHT_DIRECTED"/>
		<delay time="2000" force="true"/>
		
	</state>
	
	
	<state>
		<requirement type="session" id="VISITED_OUTDOOR_PATHWAY" value="false"/>
		<session id="VISITED_OUTDOOR_PATHWAY"/>
		<goal id="TASK_4_1" priority="1" />
	</state>	

						
	<object name="nav_Cemetery" id="NAV_CEMETERY" cursor="spyglass" >	
		<state>
			<requirement type="session" id="M4_CEMETERY_UNLOCKED" value="true"/>
			<object name="nav_Cemetery" id="NAV_CEMETERY" cursor="east" tooltip="LOCATION_CEMETERY_TO"/>	
		</state>
		
		<state>
			<requirement type="session" id="M4_GOT_GRAVEYARD_EMBLEM" value="true"/>
			<requirement type="session" id="M4_CEMETERY_UNLOCKED" value="false"/>
			<!--<poi value="on" target="active_screen" object="nav_Cemetery" align="right" />-->
		</state>	
		<state>
			<requirement type="session" id="M4_GOT_MIRROR_4" value="true"/>
			<requirement type="session" id="SOLVED_CEMETERY_2" value="false"/>
			<requirement type="session" id="M4_THOMAS_DIALOGUE_3_VIEWED"/>
			<!-- <poi value="on" target="active_screen" object="nav_Cemetery" align="right" /> -->
		</state>
		
		<event type="clicked">
			<requirement type="session" id="M4_CEMETERY_UNLOCKED" value="false"/>
			<window src="swfs/windows/cemetery_gate.swf">
				<event type="clicked">
					<requirement type="session" id="M4_CEMETERY_UNLOCKED" />
					<closeWindow/>
				</event>
				<event type="clicked">
					<requirement type="holding_item" id="GRAVEYARD_EMBLEM" warning="CLIFF_TRAIL_NEED_GRAVEYARD_EMBLEM" />
					<session id="M4_CEMETERY_UNLOCKED"/>
					<item remove="true" id="GRAVEYARD_EMBLEM" />
					<sound src="Audio/SFX/OUTSIDE/cemetery_unlock.mp3" />
					
					<poi value="off" target="active_screen" object="nav_Cemetery" align="right" />
					<property type="frame" value="activate" stop="false" assign="object_window" name="unlock_gate" />
				</event>
				
				<object name="unlock_gate">
					<event type="frame" value="done">
						
						<fadeIn assign="active_screen" name="gate_open" />
						<fadeOut assign="active_screen" name="gate_close" />
						<delay time="500"/>
						<object name="nav_Cemetery" id="NAV_CEMETERY" assign="active_screen" cursor="east" tooltip="LOCATION_CEMETERY_TO"/>
						<closeWindow/>
					</event>
				</object>
			</window>
		</event>
		
		
		<event type="clicked">
			<requirement type="session" id="M4_CEMETERY_UNLOCKED"/>	
			<requirement type="session" id="M4_LIGHTHOUSE_POWERED" value="false"/>
			<portal target="Outside/CEMETERY"/>
		</event>
		<event type="clicked">
			<requirement type="session" id="M4_LIGHTHOUSE_POWERED" value="true"/>
			<requirement type="session" id="M4_MIRROR_PUZZLE_SOLVED" value="true" />
			<requirement type="session" id="M4_CEMETERY_UNLOCKED"/>	
			<portal target="Outside/CEMETERY"/>
		</event>
		<event type="clicked">
			<requirement type="session" id="M4_LIGHTHOUSE_POWERED" value="true"/>
			<requirement type="session" id="M4_MIRROR_PUZZLE_SOLVED" value="false" />	
			<minigame src="swfs/minigames/mirror.swf">
				<warning id="MG_MIRROR_HINT_0"/>
				<hint id="MG_MIRROR_HINT_1"/>
				<prize>		
					<session id="M4_MIRROR_PUZZLE_SOLVED" />	
					<portal target="Outside/CEMETERY"/>	
				</prize>
				<leave>
					<portal target="Outside/OUTDOOR_PATHWAY"/>			
				</leave>
			</minigame>
		</event>
	</object>
	
	
		
	
	
						
						
						
						
	
	
	
	<object name="nav_LightHouse" id="NAV_LIGHTHOUSE" cursor="north" tooltip="LOCATION_LIGHTHOUSE_TO">
		<event type="clicked">
			<portal target="Outside/LIGHTHOUSE"/>
		</event> 				
	</object>
	
	
	<object name="nav_Hallway4" id="NAV_HALLWAY4" cursor="south" tooltip="LOCATION_HALLWAY4_TO">
		<event type="clicked">
			<portal target="Floor1/HALLWAY_4"/>
		</event> 				
	</object>
	
	<state>
		<requirement type="session" id="M4_LIGHTHOUSE_UNLOCKED" value="false" />
		<property type="visible" value="true" assign="object_window" name="thomas" />	
		
		<requirement type="session" id="M4_VIEWED_THOMAS" value="false" />
		<sound src="Audio/SFX/OUTSIDE/thomas_character_sting.mp3" />
		<session id="M4_VIEWED_THOMAS"/>
	</state>
	
	<object name="thomas" id="THOMAS" cursor="hand">
		<event type="clicked">
			<requirement type="session" id="M4_THOMAS_DIALOGUE_VIEWED" value="false" />
			
			<speech>
				<text src="images/characters/thomas.png" speaker_name="THOMAS" string="M4_THOMAS_CLIFF_TRAIL_1"  audio="Audio/Speech/Outside/Cliff Trail/4_13_1.mp3"/>
				<finish>				
					<session id="M4_THOMAS_DIALOGUE_VIEWED" />								
				</finish>
			</speech>
		</event>
		<event type="clicked">
			<requirement type="session" id="M4_THOMAS_DIALOGUE_VIEWED" value="true" />
			<requirement type="session" id="M4_LIGHTHOUSE_UNLOCKED" value="false" />
			<speech>
				<text src="images/characters/thomas.png" speaker_name="THOMAS" string="M4_THOMAS_CLIFF_TRAIL_2"  audio="Audio/Speech/Outside/Cliff Trail/4_13_2.mp3"/>
				<finish>				
							
				</finish>
			</speech>
		</event>
	</object>
	
	<object name="area1" id="AREA1" basic="true" cursor="hand">
		<event type="clicked">
			<warning id="OUTDOOR_PATHWAY_AREA1"/>
		</event>		
	</object>
	<object name="area2" id="AREA2" basic="true" cursor="hand">
		<event type="clicked">
			<warning id="OUTDOOR_PATHWAY_AREA2"/>
		</event>		
	</object>
	<object name="area3" id="AREA3" basic="true" cursor="hand">
		<event type="clicked">
			<warning id="OUTDOOR_PATHWAY_AREA3"/>
		</event>		
	</object>
</screen>