<screen id="HALLWAY_4" src="swfs/screens/Floor1/Hallway_4.swf" footstep="CobbleStone">
	<warning id="LOCATION_FLOOR1_HALLWAY_4"/>
	<unlockRoom id="Floor1/HALLWAY_4"/>
	<unlockMap id="Floor1/HALLWAY_4"/>
	<unlockMap id="Floor1/HALLWAY_5"/>
	<unlockMap id="Floor1/WASHROOM"/>
	<unlockMap id="Floor1/LAUNDRY"/>
	<unlockMap id="Floor1/STAIR_2"/>
	
	<goal id="TASK_3_5" remove="true" />
	<state>
		<requirement type="session" id="M3_VICTOR_THROWS_BOMB" value="false" />
		<requirement type="session" id="ACTIVE_MISSION" valueNot="5" />
		<requirement type="session" id="ACTIVE_MISSION" valueNot="6" />
		<requirement type="session" id="ACTIVE_MISSION" valueNot="7" />
		
		<music src="Audio/Music/FLOOR1/HALLWAY_ATTACK.mp3" fadeIn="10000" channel="MUSIC" loop="true"/>
	</state>
	<state>
		<requirement type="session" id="ACTIVE_MISSION" valueNot="1" />
		<requirement type="session" id="ACTIVE_MISSION" valueNot="2" />
		<requirement type="session" id="M3_VICTOR_THROWS_BOMB" />
		
		<music src="Audio/Music/FLOOR1/MAIN_HALL.mp3" fadeIn="10000" channel="MUSIC" loop="true"/>
	</state>
	
	
	
	<music src="Audio/Ambient/FLOOR1/HALLWAY_4.mp3" channel="AMBIENT" fadeIn="5000" loop="true"/>
	
	
	<state>
		<requirement type="session" id="M3_CURVE_BALL_SOLVED" value="false" />	
		<goal id="TASK_3_6" priority="1" />
	</state>

	<state>					
		<requirement type="session" id="M3_CANDLE_MELTED" value="false" />
		<property type="visible" value="false" assign="object_window" name="candle_melted" />
	</state>
	<state>					
		<requirement type="session" id="M3_CANDLE_MELTED" value="true" />	
		<property type="visible" value="false" assign="object_window" name="candle_whole" />
	</state>
	
	
	<state>
		<requirement type="session" id="M3_GOT_MIRROR_3" value="false" />	
		<poi value="on" target="active_screen" object="mirror" align="origin" type="single" />		
	</state>
	<state>
		<requirement type="session" id="M3_GOT_MIRROR_3" value="true" />	
		<property type="visible" value="false" assign="active_screen" name="mirror" />	
	</state>
	
	<state>
		<requirement type="session" id="ACTIVE_MISSION" valueNot="5" />
		<property type="visible" value="false" assign="active_screen" name="vincent" />
	</state>
	<state>
		<requirement type="session" id="M5_VINCENT_DIALOGUE_1_VIEWED"/>
		<property type="visible" value="false" assign="active_screen" name="vincent" />
	</state>
	<state>
		<requirement type="session" id="ACTIVE_MISSION" value="5" />
		<requirement type="session" id="M5_VINCENT_HALLWAY_4_VIEWED" value="false" />
		<sound src="Audio/SFX/FLOOR1/viggo_friendly_sting.mp3" />
		<session id="M5_VINCENT_HALLWAY_4_VIEWED"/>
	</state>
	
	
	
	<object name="vincent" id="VINCENT" cursor="hand">
		<event type="clicked">
			<session id="M5_VINCENT_VIEWED"/>
			<requirement type="session" id="ACTIVE_MISSION" value="5" />	
			<requirement type="session" id="M5_VINCENT_DIALOGUE_1_VIEWED" value="false" />	
			<speech>
				<text src="images/characters/viggo_normal.png" speaker_name="VIGGO" string="M5_VIGGO_CHRISTINE_HALLWAY4_1" audio="Audio/Speech/Floor1/Hallway 4/5_15_1.mp3" options="true" />
				<text src="images/characters/christine.png" speaker_name="CHRISTINE" string="M5_VIGGO_CHRISTINE_HALLWAY4_2" audio="Audio/Speech/Floor1/Hallway 4/5_15_2.mp3" />
				<finish>
					<session id="M5_VINCENT_DIALOGUE_1_VIEWED" />
					<portal target="OUTSIDE/GARDEN"  transition="fade" />
				</finish>
				
				<no>
					<text src="images/characters/christine.png" speaker_name="CHRISTINE" string="M5_VIGGO_CHRISTINE_HALLWAY4_3" audio="Audio/Speech/Floor1/Hallway 4/5_15_3.mp3" />
					<text src="images/characters/viggo_normal.png" speaker_name="CHRISTINE" string="M5_VIGGO_CHRISTINE_HALLWAY4_4" audio="Audio/Speech/Floor1/Hallway 4/5_15_4.mp3" />
					<finish>
						<session id="M5_VINCENT_DIALOGUE_1_VIEWED" />		
						<property type="visible" value="false" assign="active_screen" name="vincent" />
					</finish>
					
				</no>
			</speech>
		</event>
	</object>
	
	
	<!-- 
	<object name="vincent" id="VINCENT" cursor="hand">
		<event type="clicked">
			<requirement type="session" id="ACTIVE_MISSION" value="5" />	
			<requirement type="session" id="M5_VINCENT_DIALOGUE_1_VIEWED" value="false" />	
			<speech>
				<text src="images/characters/viggo_normal.png" speaker_name="VIGGO" string="M5_VIGGO_CHRISTINE_HALLWAY4_1" audio="Audio/Speech/Floor1/Hallway 4/5_1.mp3" options="true" />
				<text src="images/characters/christine.png" speaker_name="CHRISTINE" string="M5_VIGGO_CHRISTINE_HALLWAY4_2" audio="Audio/Speech/Floor1/Hallway 4/5_2.mp3" />
				<finish>
					<session id="M5_VINCENT_DIALOGUE_1_VIEWED" />
					<portal target="OUTSIDE/GARDEN" />
				</finish>
				
				<no>
					<text src="images/characters/christine.png" speaker_name="CHRISTINE" string="M5_VIGGO_CHRISTINE_HALLWAY4_3" audio="Audio/Speech/Floor1/Hallway 4/5_2.mp3" />
					<text src="images/characters/viggo_normal.png" speaker_name="CHRISTINE" string="M5_VIGGO_CHRISTINE_HALLWAY4_3" audio="Audio/Speech/Floor1/Hallway 4/5_2.mp3" />
					<finish>
						<session id="M5_VINCENT_DIALOGUE_1_VIEWED" />						
					</finish>
				</no>
				
				
			</speech>
		</event>
	</object>	
	-->
		
		
	<object name="mirror" id="MIRROR" cursor="spyglass">
		<event type="clicked">
			<window src="swfs/windows/dirty_mirror.swf">
				<event type="clicked">
					<requirement type="holding_item" id="CLEANING_RAG" warning="M3_NEED_RAG_TO_CLEAN" />
					
					<fadeOut assign="object_window" name="dirty" time="2000" />
					<property type="frame" value="activate" stop="false" assign="object_window" name="rag" />
					<sound src="Audio/SFX/FLOOR1/hallway_4_wiping_mirror.mp3" />
					<!--<delay time="2000"/>-->
					
				</event>
				<object name="rag">
					<event type="frame" value="done">
						<item remove="true" id="CLEANING_RAG" />
					
						<property type="visible" value="false" assign="active_screen" name="mirror" />	
						<item name="round_mirror" id="ROUND_MIRROR" src="images/items/round_mirror.png" large_src="images/items/round_mirror_large.png"/>
						<items_collected>
							<poi value="off" target="active_screen" object="mirror"/>	
							<session id="M3_GOT_MIRROR_3"/>
							<state>
								<requirement type="session" id="M4_GOT_MIRROR_1" value="true"/>
								<requirement type="session" id="M3_GOT_MIRROR_2" value="true"/>
								<requirement type="session" id="M4_GOT_MIRROR_4" value="true"/>
								<requirement type="session" id="M4_GOT_MIRROR_5" value="true"/>
								<goal id="TASK_4_3" remove="true" />
							</state>
							<closeWindow/>
						</items_collected>	
					</event>
				</object>
			</window>
		</event>
	</object>
	
	
	<state>
		<requirement type="session" id="M3_CURVE_BALL_SOLVED" value="true" />	
		<requirement type="session" id="M3_SUN_DOOR_UNLOCKED" value="true" />	
		<property type="visible" value="false" assign="active_screen" name="puzzle" />
		<property type="frame" value="active" stop="true" assign="active_screen" name="door_open" />
	</state>
	<state>
		<requirement type="session" id="M3_CURVE_BALL_SOLVED"/>	
		<requirement type="session" id="M3_SUN_DOOR_UNLOCKED" value="false" />
		<session id="M3_SUN_DOOR_UNLOCKED"/>
		<property type="frame" value="activate" stop="false" assign="active_screen" name="puzzle" />
		<property type="frame" value="activate" stop="false" assign="active_screen" name="door_open" />
	</state>
	
	<object name="nav_outdoor_path" id="NAV_OUTDOOR_PATH"  cursor="puzzle" >
		<state>
			<requirement type="session" id="M3_SUN_DOOR_UNLOCKED" value="false"/>
			<requirement type="session" id="M3_GOT_SUN_NECKLACE" value="true"/>
			<poi value="on" target="active_screen" object="nav_outdoor_path" align="right" type="single" />
			<object name="nav_outdoor_path" id="NAV_OUTDOOR_PATH" cursor="puzzle"/>
		</state>
		<state>
			<requirement type="session" id="M3_SUN_DOOR_UNLOCKED" value="true"/>
			<object name="nav_outdoor_path" id="NAV_OUTDOOR_PATH"  cursor="north" tooltip="LOCATION_OUTDOOR_PATHWAY_TO"/>
		</state>
		<!--<state>
			<requirement type="session" id="ACTIVE_MISSION" value="3"/>
			<session id="ACTIVE_MISSION" value="4"/>
		</state>-->
		<event type="clicked">
			<requirement type="session" id="M3_CURVE_BALL_SOLVED"/>	
			<requirement type="session" id="M3_SUN_DOOR_UNLOCKED"/>	
			<requirement type="session" id="ACTIVE_MISSION" value="3"/>
			<session id="ACTIVE_MISSION" value="4" />
		</event>
		<event type="clicked">
			<requirement type="session" id="M3_SUN_DOOR_UNLOCKED"/>	
			<requirement type="session" id="M3_CURVE_BALL_SOLVED"/>	
			<portal target="Outside/OUTDOOR_PATHWAY"/>
		</event>
		<!--
		<event type="clicked">
			<requirement type="holding_item" id="SUN_GEM" arning="NEED_SUN_GEM"/>
			<session id="M3_SUN_DOOR_UNLOCKED"/>
			<item remove="true" id="SUN_GEM" />	
			<poi value="off" target="active_screen" object="nav_outdoor_path" align="right" />
		</event>-->
			
		<!--<event type="clicked">
			<requirement type="session" id="M3_SUN_DOOR_UNLOCKED" value="false" />
			<requirement type="session" id="M3_GOT_SUN_NECKLACE" value="true" />
			<warning id="NEED_SUN_GEM"/>
		</event>-->
		<event type="clicked">
			<!--<requirement type="session" id="M3_SUN_DOOR_UNLOCKED"/>-->
			<requirement type="session" id="M3_CURVE_BALL_SOLVED" value="false" />
			
			<minigame src="swfs/minigames/CurveBall.swf">
				<state>
					<requirement type="session" id="MG_RDIALS_DROPPED" value="true" />
					<showError id="MG_RDIALS_NEED_GEM"/>
				</state>
				<prize>
					<sound src="Audio/SFX/OUTSIDE/main_entrance_2_door_open.mp3" />
					<session id="M3_CURVE_BALL_SOLVED" />	
					
					<portal target="floor1/HALLWAY_4"/>
				</prize>
				<leave>
					<portal target="floor1/HALLWAY_4"/>				
				</leave>
			</minigame>
		</event>
	</object>
	
	
	<object name="nav_recreation_room" id="NAV_RECREATION_ROOM" cursor="south" tooltip="LOCATION_RECREATION_ROOM_TO">
		<event type="clicked">
			<portal target="Floor1/RECREATION_ROOM"/>
		</event> 				
	</object>
	
	
	
	<object name="nav_Hallway5" id="NAV_HALLWAY5" cursor="east" tooltip="LOCATION_HALLWAY5_TO">
		<event type="clicked">
			<portal target="Floor1/HALLWAY_5"/>
		</event> 				
	</object>
	
	
	<object name="statue" id="STATUE" cursor="spyglass" >
		<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="statue" align="origin" type="single" />
		</state>
		<state>
			<requirement type="session" id="M3_GOT_SUN_NECKLACE"/>
			<property type="visible" value="false" assign="active_screen" name="statue" />
		</state>
		<event type="clicked">
			<requirement type="session" id="M3_GOT_SUN_NECKLACE" value="false" />
			<window src="swfs/windows/statue.swf">
				<property type="visible" value="false" assign="object_window" name="wick" />
				<state>
					<requirement type="session" id="M3_WICK_USED"/>	
					<property type="visible" value="true" assign="object_window" name="wick" />
				</state>
				<state>
					<requirement type="session" id="M3_WICK_USED"/>	
					<requirement type="session" id="M3_LIGHTER_USED"/>	
					<property type="visible" value="false" assign="object_window" name="wick" />
					<property type="frame" value="active" stop="true" assign="object_window" name="candle_animation" />
				</state>
				<object name="click_area" id="CLICK_AREA" cursor="hand">
					<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_gem" id="SUN_GEM" src="images/items/sun_gem.png" large_src="images/items/sun_gem_large.png"/>
						<items_collected>
							<session id="M3_GOT_SUN_NECKLACE"/>
							<!--<goal id="TASK_3_6" remove="true" />-->
							<object name="statue" id="STATUE" assign="active_screen" cursor="default" />
							<poi value="off" target="active_screen" object="statue" align="right" />
							<poi value="on" target="active_screen" object="nav_outdoor_path" align="right" type="single" />
							<closeWindow/>
						</items_collected>
					</event>
					<event type="clicked">
						<requirement type="session" id="M3_WICK_USED" value="false" />	
						<requirement type="holding_item" id="WICK"/>
						
						<sound src="Audio/SFX/FLOOR1/place_wick.mp3" />
						<session id="M3_WICK_USED"/>
						<item remove="true" id="WICK" />	
						<property type="visible" value="true" assign="object_window" name="wick" />
					</event>
					<event type="clicked">
						<requirement type="session" id="M3_WICK_USED" value="true" />	
						<requirement type="session" id="M3_LIGHTER_USED" value="false" />	
						<requirement type="holding_item" id="LIGHTER" />
			
						<sound src="Audio/SFX/FLOOR1/candle_burning_down.mp3" />
						<property type="visible" value="false" assign="object_window" name="wick" />
						<property type="frame" value="activate" stop="false" assign="object_window" name="candle_animation" />
						<session id="M3_LIGHTER_USED"/>
						<item remove="true" id="LIGHTER" />
					</event>
					<event type="clicked">
						<requirement type="session" id="M3_WICK_USED" value="true" />
						<requirement type="session" id="M3_LIGHTER_USED" value="false" />
						<requirement type="holding_item" id="LIGHTER" value="false" />
						
						<warning id="M3_MELT_THE_WAX_2"/>
					</event>
					<event type="clicked">
						<requirement type="session" id="M3_WICK_USED" value="false" />
						<requirement type="holding_item" id="WICK" value="false" />
						<warning id="M3_MELT_THE_WAX_1"/>
					</event>
				</object>
			</window>
		</event>		
	</object>
	
	<object name="area1" id="AREA1" basic="true" cursor="hand">
		<event type="clicked">
			<warning id="HALLWAY_4_AREA1"/>
		</event>		
	</object>
	<object name="area2" id="AREA2" basic="true" cursor="hand">
		<event type="clicked">
			<warning id="HALLWAY_4_AREA2"/>
		</event>		
	</object>

</screen>