<screen src="swfs/screens/Outside/Pathway.swf" footstep="CobbleStone">
	<warning id="LOCATION_OUTSIDE_PATHWAY"/>
	<unlockRoom id="Outside/Pathway"/>
	<music src="Audio/Music/OUTSIDE/DOCK.mp3" fadeIn="5000" channel="MUSIC" loop="true"/>
	<music src="Audio/Ambient/OUTSIDE/PATHWAY.mp3" channel="AMBIENT" fadeIn="5000" loop="true"/>
	
	
	<state>
		<requirement type="session" id="M1_GOT_TAPE_RECORDER" value="false" />
		<property type="visible" value="true" assign="object_window" name="tape_recorder" />
	</state>
	<state>
		<requirement type="session" id="MG_RDIALS_COMPLETED" value="false" />
		<property type="visible" value="true" assign="active_screen" name="gate_close" />
		<property type="visible" value="false" assign="active_screen" name="gate_open" />
	</state>
	<state>
		<requirement type="session" id="MG_RDIALS_COMPLETED" value="true" />
		<property type="visible" value="false" assign="active_screen" name="gate_close" />
		<property type="visible" value="true" assign="active_screen" name="gate_open" />
	</state>
	<state>
		<requirement type="session" id="M1_GEM_CLEARED" value="true" />
		<property type="visible" value="false" assign="active_screen" name="gem_dirty" />
	</state>
	
	<object name="nav_MainEntrance" id="NAV_MAINENTRANCE" cursor="north" tooltip="LOCATION_MAINENTRANCE_TO">
		<event type="clicked">
			<state>
				<requirement type="session" id="M1_GOT_TAPE_RECORDER"/>
				<portal target="Outside/MAIN_ENTRANCE"/>
			</state>
			<state>
				<requirement type="session" id="M1_GOT_TAPE_RECORDER" value="false" />
				<warning id="PATHWAY_BUSHES_RECORDER"/>
			</state>
		</event> 	
	</object>
	
	<state>
		<requirement type="session" id="M1_GOT_TAPE_RECORDER" value="false" />
		<object name="nav_MainEntrance" id="NAV_MAINENTRANCE" cursor="default"/>
	</state>
	
	<object name="nav_Dock" id="NAV_DOCK" cursor="south" tooltip="LOCATION_DOCK_TO">
		<event type="clicked">
			<portal target="Outside/DOCK"/>
		</event>		
	</object>
	
	<!--<object name="statue1" id="STATUE_1" cursor="hand" tooltip="STATUE_1">
		<state>
			<requirement type="session" id="M3_GOT_LIGHTER" value="true"/>
			<requirement type="session" id="M3_GOT_SUN_NECKLACE" value="false"/>
			<poi value="on" target="active_screen" object="statue1" align="right" />
		</state>
		<event type="clicked">
			<warning id="STATUE_1_MISSING_SUN_NECKLACE" />
			<window src="swfs/windows/statue.swf">
				<event type="clicked">
					<requirement type="session" id="M3_WICK_USED"/>	
					<requirement type="session" id="M3_LIGHTER_USED"/>			
					<requirement type="session" id="M3_GOT_SUN_NECKLACE" value="false" />	
					<item name="sun_necklace" id="SUN_NECKLACE" src="images/items/sun_necklace.png" />
						<items_collected>
							<session id="M3_GOT_SUN_NECKLACE"/>
							<poi value="off" target="active_screen" object="statue1" align="right" />
						</items_collected>
				</event>
				<event type="clicked">
					<requirement type="holding_item" id="WICK"/>
					<session id="M3_WICK_USED"/>
					<item remove="true" id="WICK" />	
				</event>
				<event type="clicked">
					<requirement type="holding_item" id="LIGHTER" />
					<session id="M3_LIGHTER_USED"/>
					<item remove="true" id="LIGHTER" />	
				</event>
			</window>
		</event>		
	</object>-->
		
		
	
	<state>
		<requirement type="session" id="M1_GEM_CLEARED" value="false"/>
		<poi value="on" target="active_screen" object="statue2" align="origin" type="single" />
	</state>
	<state>
		<requirement type="session" id="M1_MOON_GEM" value="true"/>
		<property type="visible" value="false" assign="active_screen" name="statue2" />
	</state>
	<object name="statue2" id="STATUE_2" cursor="spyglass">
		<state>
			<requirement type="session" id="M1_FILLED_BUCKET" value="true"/>
			<requirement type="session" id="M1_MOON_GEM" value="false"/>
			<poi value="on" target="active_screen" object="statue2" align="origin" type="single" />
		</state>
		<event type="clicked">
			<warning id="STATUE_2_MISSING_MOON_GEM" />
			<window src="swfs/windows/statue2.swf">
				<!--<event type="clicked">
					<requirement type="item" id="FILLED_BUCKET" />
					<requirement type="holding_item" id="FILLED_BUCKET" value="false" />
					<warning id="WASH_STATUE_WITH_WATER" />
				</event>-->
					
				<!--<state>
					<requirement type="session" id="M1_GEM_CLEARED" value="false" />
					<goal id="TASK_1_3" priority="2"/>
				</state>-->
				<state>
					<requirement type="session" id="M1_GEM_CLEARED"/>
					<property type="visible" value="false" assign="object_window" name="gem_dirty" />
				</state>
				<state>
					<requirement type="session" id="M1_MOON_GEM"/>
					<property type="visible" value="false" assign="object_window" name="gem" />
				</state>
				<object name="Background">
					<event type="clicked">
						<requirement type="session" id="M1_MOON_GEM" value="false"/>
						<requirement type="holding_item" id="FILLED_BUCKET" warning="WASH_STATUE" />
						<session id="M1_GEM_CLEARED"/>
						<item remove="true" id="FILLED_BUCKET" />
						
						<sound src="Audio/SFX/OUTSIDE/pathway_statue_water.mp3" />
						<fadeOut time="2200" assign="object_window" name="gem_dirty" />
						<property type="visible" value="false" assign="active_screen" name="gem_dirty" />
					</event>
				</object>
				<object name="gem_dirty">
					<event type="clicked">
						<requirement type="session" id="M1_MOON_GEM" value="false"/>
						<requirement type="holding_item" id="FILLED_BUCKET" warning="WASH_STATUE" />
						<session id="M1_GEM_CLEARED"/>
						<item remove="true" id="FILLED_BUCKET" />
						<fadeOut time="2200" assign="object_window" name="gem_dirty" />
						<property type="visible" value="false" assign="active_screen" name="gem_dirty" />
						<sound src="Audio/SFX/OUTSIDE/pathway_statue_water.mp3" />
					</event>
				</object>
				<object name="gem" cursor="hand">
					<event type="clicked">				
						<item name="moon_gem" id="MOON_GEM" src="images/items/Gem.png" large_src="images/items/Gem_large.png" />
						<property type="visible" value="false" assign="object_window" name="gem" />
						<items_collected>
							<goal id="TASK_1_3" remove="true" />
							<session id="M1_MOON_GEM"/>
							<poi value="off" target="active_screen" object="statue2"/>
							<closeWindow/>
							<property type="visible" value="false" assign="active_screen" name="statue2" />
						</items_collected>
					</event>
				</object>
			</window>
		</event>		
	</object>
	
	<state>
		<requirement type="session" id="M1_GOT_TAPE_RECORDER" value="true"/>
		<property type="visible" value="false" assign="object_window" name="tape_recorder" />
	</state>
	
	
	
	
	

	<object name="tape_recorder" id="TAPE_RECORDER" cursor="spyglass">
		<state>
			<requirement type="session" id="M1_GOT_TAPE_RECORDER" value="false"/>
			<poi value="on" target="active_screen" object="tape_recorder" align="origin" type="single" />
		</state>
		<event type="clicked">			

			<requirement type="session" id="M1_GOT_TAPE_RECORDER" value="false"/>

			<window src="swfs/windows/tape_recorder.swf">
				<error id="TUTORIAL_2_4"/>
				<object name="recorder" cursor="hand">
					<event type="clicked">
						<property type="visible" value="false" assign="active_screen" name="tape_recorder" />
						
						<session id="M1_GOT_TAPE_RECORDER"/>
						<poi value="off" target="active_screen" object="tape_recorder" align="right" />
						<goal id="TASK_1_1" remove="true" />
						<goal id="TASK_1_2" priority="1"/>
						<goal id="TASK_1_3" priority="2"/>
						<property type="visible" value="true" assign="active_screen" name="nav_MainEntrance" />
						<object name="nav_MainEntrance" assign="active_screen" id="NAV_MAINENTRANCE" cursor="north"/>
						<closeWindow/>
						<tutorial>
							<hint x="889" y="485" time="0" />
							<hint x="75" y="676"/>
							<delay time="700" />
							<show_book tab="3"/>
						</tutorial>
					</event>
				</object>
			</window>
		</event>		
	</object>
	
	<state>
		<requirement type="session" id="TUTORIAL_2_1" value="false"/>
		<session id="TUTORIAL_2_1"/>
		<tutorial>
			<hint x="75" y="676" time="0" />
			<hint x="863" y="486"/>
			<delay time="400" />
			<error id="TUTORIAL_2_1"/>
		</tutorial>
	</state>
	
	<object name="area1" id="AREA1" basic="true" cursor="hand">
		<event type="clicked">
			<state>
				<requirement type="session" id="M1_GOT_TAPE_RECORDER"/>
				<warning id="PATHWAY_BUSHES"/>
			</state>
			<state>
				<requirement type="session" id="M1_GOT_TAPE_RECORDER" value="false" />
				<warning id="PATHWAY_BUSHES_RECORDER"/>
			</state>
		</event>		
	</object>
	<object name="area2" id="AREA2" basic="true" cursor="hand">
		<event type="clicked">
			<warning id="PATHWAY_MOONLIGHT"/>
		</event>		
	</object>
</screen>