<screen src="swfs/screens/Floor1/Hallway_5.swf" footstep="Dirt">
	<warning id="LOCATION_FLOOR1_HALLWAY_5"/>
	<unlockRoom id="Floor1/HALLWAY_5"/>
	
	<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>
	
	
	
	<state>
		<requirement type="session" id="M3_VICTOR_THROWS_BOMB" value="true" />
		<requirement type="session" id="M5_VALVE_TURNED" value="false" />		
		<music src="Audio/Ambient/FLOOR1/HALLWAY_5.mp3" channel="AMBIENT" fadeIn="2000" loop="true"/>
		
	</state>
	<state>
		<requirement type="session" id="M5_VALVE_TURNED" value="true" />		
		<music src="Audio/Ambient/FLOOR1/LAUNDRY.mp3" channel="AMBIENT" fadeIn="5000" loop="true"/>		
	</state>
	
	
	
	
	
	<property type="visible" value="false" assign="object_window" name="victor" />
	<property type="visible" value="false" assign="object_window" name="viggo" />
	
	<property type="visible" value="false" assign="object_window" name="hotwater_animation" />
	<property type="visible" value="false" assign="object_window" name="drops" />
	<property type="visible" value="false" assign="object_window" name="water" />
	
	<state>
		<requirement type="session" id="M3_VICTOR_THROWS_BOMB" value="true" />
		<property type="visible" value="true" assign="object_window" name="water" />
		<requirement type="session" id="M5_VALVE_TURNED" value="false" />
		<property type="visible" value="true" assign="object_window" name="hotwater_animation" />
		<property type="visible" value="true" assign="object_window" name="drops" />
	</state>
	
	
	
	<state>
		<requirement type="session" id="ACTIVE_MISSION" value="3" />
		<!--<property type="visible" value="false" assign="object_window" name="nav_WashRoom" />-->
	<!--	<property type="visible" value="false" assign="object_window" name="nav_Stairs" />-->
	</state>
	
	<state>
		<requirement type="session" id="M4_OPENED_DRAWER" value="false" />		
		<property type="visible" value="false" assign="object_window" name="open_drawer" />
	</state>
	
	<state>
		<requirement type="session" id="M3_VICTOR_THROWS_BOMB" value="false" />
		<property type="visible" value="true" assign="object_window" name="victor" />
		<!--<property type="visible" value="false" assign="object_window" name="water_sprays" />-->
	</state>
	
	<state>
		<requirement type="session" id="M5_VALVE_TURNED" value="true" />
		<!--<property type="visible" value="false" assign="object_window" name="water_sprays" />-->
	</state>
	
	<state>
		<requirement type="session" id="M3_VICTOR_THROWS_BOMB" value="true" />
		<requirement type="session" id="M3_VIGGO_DIALOG_HALLWAY5" value="false" />
		<property type="visible" value="true" assign="object_window" name="viggo" />
	</state>
	
	<object name="viggo" id="VIGGO" cursor="hand">
		<event type="clicked">
			
		</event>
	</object>
	
	<state>
		<requirement type="session" id="M3_VICTOR_THROWS_BOMB" value="true" />
		<requirement type="session" id="M3_VIGGO_DIALOG_HALLWAY5" value="false" />
		<delay time="500" force="true" />
		<speech>
			<text src="images/characters/viggo_normal.png" speaker_name="VIGGO" string="M3_VIGGO_CHRISTINE_HALLWAY5_1" audio="Audio/Speech/Floor1/Hallway 5/3_12_2.mp3" />
			<text src="images/characters/christine.png" speaker_name="CHRISTINE" string="M3_VIGGO_CHRISTINE_HALLWAY5_2" audio="Audio/Speech/Floor1/Hallway 5/3_12_3.mp3" />
			<text src="images/characters/viggo_normal.png" speaker_name="VIGGO" string="M3_VIGGO_CHRISTINE_HALLWAY5_3" audio="Audio/Speech/Floor1/Hallway 5/3_12_4.mp3" />
			<text src="images/characters/christine.png" speaker_name="CHRISTINE" string="M3_VIGGO_CHRISTINE_HALLWAY5_4" audio="Audio/Speech/Floor1/Hallway 5/3_12_5.mp3" />
			<text src="images/characters/viggo_normal.png" speaker_name="VIGGO" string="M3_VIGGO_CHRISTINE_HALLWAY5_5" audio="Audio/Speech/Floor1/Hallway 5/3_12_6.mp3" />
			<finish>								
				<cinematic id="M3_NEED_THOMAS_HELP"/>
				<property type="visible" value="false" assign="object_window" name="viggo" />
				<session id="M3_VIGGO_DIALOG_HALLWAY5"/>				
			</finish>
		</speech>
	</state>
	
	<state>
		<requirement type="session" id="M3_VICTOR_THROWS_BOMB" value="false" />	
		<sound src="Audio/SFX/FLOOR1/Door_hole_view_of_small_girl.mp3" />
		<cinematic id="">
			<speech>
				<text src="images/characters/victor.png" speaker_name="VICTOR" string="M3_VICTOR_HALLWAY_5" audio="Audio/Speech/Floor1/Hallway 5/3_12_1.mp3" />
				<finish>													
					<requirement type="session" id="M3_VICTOR_THROWS_BOMB" value="false" />						
					<fadeOutMusic/>
					
					<music src="Audio/Music/CUTSCENES/cutscene_6.mp3" fadeIn="500" channel="CUTSCENE" loop="false" />
					<cutscene src="swfs/cutscenes/cutscene6.swf" border="false">
						
						
						<text string="CUTSCENE_6_TEXT_1" time="400" audio="Audio/Cutscenes/6/Victor_1.mp3" />
						<text string="CUTSCENE_6_TEXT_2" time="2300" audio="Audio/Cutscenes/6/Viggo_2.mp3"/>
						<text string="" time="4100" />
					
						
						<finish>						
							<session id="M3_VICTOR_THROWS_BOMB"/>
							<goal id="TASK_3_7" priority="5" />
							<property type="visible" value="false" assign="active_screen" name="victor" />						
							<portal target="Floor1/HALLWAY_5"/>
						
						</finish>
					</cutscene>	
					
				</finish>
			</speech>
		</cinematic>
			
	</state>
	
	<object name="victor" id="VICTOR" cursor="hand">
		<event type="clicked">
			
		</event>
	</object>
		
		
		
	<object name="nav_WashRoom" id="NAV_WASHROOM" cursor="west" tooltip="LOCATION_WASHROOM_TO">
	<!--<state>
			<requirement type="session" id="M4_WASHROOM_UNLOCKED" value="false"/>
			<requirement type="session" id="M4_GOT_CROWBAR" value="true"/>
			<poi value="on" target="active_screen" object="nav_WashRoom" align="right" />
		</state>
		<state>
			<requirement type="session" id="ACTIVE_MISSION" value="6"/>
			<requirement type="session" id="M6_GOT_BLANK_ID" value="false"/>
			<poi value="on" target="active_screen" object="nav_WashRoom" align="right" />
		</state>
		<event type="clicked">
			<requirement type="session" id="M4_WASHROOM_UNLOCKED" value="false"/>
			<window src="swfs/windows/moon goddess statue.swf">
				<event type="clicked">
					<requirement type="holding_item" id="CROWBAR" warning="NEED_CROWBAR" />
					<session id="M4_WASHROOM_UNLOCKED"/>
					<poi value="off" target="active_screen" object="nav_WashRoom" align="right" />
					<portal target="Floor1/WASHROOM"/>
				</event>				
			</window>		
		</event>
		<event type="clicked">
			<requirement type="session" id="M4_WASHROOM_UNLOCKED"/>	
			<portal target="Floor1/WASHROOM"/>
		</event>-->
		<event type="clicked">
			
			<portal target="Floor1/WASHROOM"/>
		</event>
	</object>
	
	
	
	<object name="nav_Stairs" id="NAV_STAIRS" cursor="north" tooltip="LOCATION_STAIRS_TO_2">
		<event type="clicked">
			<requirement type="session" id="M5_VALVE_TURNED" warning="HALLWAY_5_AREA2" />	
			<portal target="Floor1/STAIR_2"/>
		</event> 				
	</object>
	
	<!--<state>
		<requirement type="session" id="M3_GOT_LIGHTER" value="false" />
		<poi value="on" target="active_screen" object="lighter" align="origin" type="single" />
	</state>-->
	
	<state>
		<requirement type="session" id="M3_GOT_LIGHTER" value="true"/>	
		<property type="visible" value="false" assign="object_window" name="lighter" />
	</state>
	
	
	
	<object name="nav_Hallway4" id="NAV_HALLWAY4" cursor="south" tooltip="LOCATION_HALLWAY4_TO">
		<event type="clicked">
			<portal target="Floor1/HALLWAY_4"/>
		</event> 				
	</object>
	
	<object name="drawer" assign="window" basic="true">
		<state>
			<requirement type="session" id="M4_GOT_MIRROR_4" value="false"/>
			<requirement type="session" id="M4_GOT_DRAWER_KEY" value="true"/>
			<object name="drawer" assign="window" cursor="spyglass"/>
			<poi value="on" target="active_screen" object="drawer" align="origin" type="single" />
		</state>
		<state>
			<requirement type="session" id="M3_GOT_LIGHTER" value="false"/>			
			<object name="drawer" assign="window" cursor="spyglass"/>
			<poi value="on" target="active_screen" object="lighter" align="origin" type="single" />
		</state>
		<event type="clicked">
			<requirement type="session" id="M4_GOT_MIRROR_4" value="false" />
			<window src="swfs/windows/drawer.swf">
				<state>
					<requirement type="session" id="M3_GOT_LIGHTER" value="false" />
					<poi value="on" target="object_window" object="lighter" align="origin" type="single" />
				</state>
				<state>
					<requirement type="session" id="M3_GOT_LIGHTER" value="true" />
					<property type="visible" value="false" assign="object_window" name="lighter" />
				</state>
				<state>
					<requirement type="session" id="M4_OPENED_DRAWER" value="false" />
					<property type="visible" value="false" assign="object_window" name="open_drawer" />
					<property type="visible" value="false" assign="object_window" name="mirror" />
				</state>
				<state>
					<requirement type="session" id="M4_GOT_MIRROR_4" value="true" />
					<property type="visible" value="false" assign="object_window" name="mirror" />
				</state>
			
				<object name="Background" id="BACKGROUND" cursor="hand">
					<event type="clicked">
						<requirement type="holding_item" id="DRAWER_KEY" warning="HALLWAY_5_NEED_DRAWER_KEY"/>	
						<session id="M4_OPENED_DRAWER"/>
						<property type="visible" value="true" assign="object_window" name="open_drawer" />	
						<property type="visible" value="true" assign="object_window" name="mirror" />							
						<sound src="Audio/SFX/FLOOR1/hallway_5_drawer_open.mp3" />
						<property type="visible" value="true" assign="active_screen" name="open_drawer" />							
					</event>
				</object>
				<object name="lighter" id="LIGHTER" cursor="hand">
					<event type="clicked">
						<requirement type="session" id="M3_GOT_LIGHTER" value="false" />
						<item name="lighter" id="LIGHTER" src="images/items/lighter.png" large_src="images/items/lighter_large.png"/>
						<property type="visible" value="false" assign="object_window" name="lighter" />
						<property type="visible" value="false" assign="active_screen" name="lighter" />
						<items_collected>
							<session id="M3_GOT_LIGHTER"/>				
							<closeWindow/>
						</items_collected>	
					</event> 				
				</object>
				
				<object name="mirror" id="MIRROR" cursor="hand">
					<event type="clicked">
						<item name="octagon_mirror" id="OCTAGON_MIRROR" src="images/items/pentagon_mirror.png" large_src="images/items/pentagon_mirror_large.png"/>
						<property type="visible" value="false" assign="object_window" name="mirror" />
						<items_collected>
							<session id="M4_GOT_MIRROR_4"/>
							<item remove="true" id="DRAWER_KEY"/>
							<poi value="off" target="active_screen" object="drawer" align="right" />
							<object name="drawer" assign="active_screen" cursor="default"/>
							<closeWindow/>
							<requirement type="session" id="M4_GOT_MIRROR_1" value="true"/>
							<requirement type="session" id="M3_GOT_MIRROR_2" value="true"/>
							<requirement type="session" id="M3_GOT_MIRROR_3" value="true"/>
							<requirement type="session" id="M4_GOT_MIRROR_5" value="true"/>
							<goal id="TASK_4_3" remove="true" />
						</items_collected>
						
					</event>
								
				</object>
			
				
				
			</window>	
			
		</event>
	</object>
	
	<object name="area1" id="AREA1" basic="true" cursor="hand">
		<event type="clicked">
			<warning id="HALLWAY_5_AREA1"/>
		</event>		
	</object>
</screen>