<screen src="swfs/screens/Outside/Dock.swf" footstep="Wood">
	<unlockRoom id="Outside/Dock"/>
	<unlockMap id="Outside/MAIN_ENTRANCE"/>
	<unlockMap id="Outside/PATHWAY"/>
	<music src="Audio/Music/OUTSIDE/DOCK.mp3" fadeIn="5000" channel="MUSIC" loop="true"/>
	<music src="Audio/Ambient/OUTSIDE/DOCK.mp3" channel="AMBIENT" fadeIn="5000" loop="true"/>

	
	<property type="visible" value="false" assign="active_screen" name="thomas_alice_alan" />
	<property type="visible" value="false" assign="active_screen" name="boat" />
	<property type="visible" value="false" assign="active_screen" name="boat_area" />
	
	<state>
		<requirement type="session" id="ACTIVE_MISSION" value="1"/>
		<newChapter id="1"/>
		<newChapter id="2"/>
		<newChapter id="3"/>
	</state>

	<object name="chain" basic="true" cursor="default" mouseEnabled="false"/>
	<poi value="on" target="active_screen" object="plank" align="origin" type="single"/>
	<state>		
		<requirement type="session" id="M1_GOT_SHEARS"/>
		<requirement type="session" id="M1_GOT_LOG" value="false"/>
		<poi value="on" target="active_screen" object="plank" align="origin" type="single"/>
	</state>
	<state>		
		<requirement type="session" id="VIEWED_STORY_EVENT_21"/>
		<requirement type="session" id="ACTIVE_MISSION" value="6" />
		<requirement type="session" id="VIEWED_STORY_EVENT_21A" value="false" />
		<property type="visible" value="true" assign="active_screen" name="thomas_alice_alan" />
		<property type="visible" value="false" assign="active_screen" name="nav_pathway" />
		
	</state>
		<state>		
		<requirement type="session" id="SOLVED_DEN"/>
		<requirement type="session" id="VIEWED_STORY_EVENT_21A" value="false" />
		<property type="visible" value="true" assign="active_screen" name="boat" />
		<property type="visible" value="true" assign="active_screen" name="boat_area" />
	</state>
	
	<object name="boat_area" cursor="hand">
		<event type="clicked">
			<warning id="DOCK_AREA_4" />
		</event>
	</object>
	<object name="thomas_alice_alan" cursor="hand">
		<event type="clicked">
			<speech>
				<text src="images/characters/thomas.png" speaker_name="THOMAS" string="M6_DOCK_GOODBYE_1"  audio="Audio/Speech/Outside/Dock/6_21_6.mp3"/>
				<text src="images/characters/alice.png" speaker_name="ALICE" string="M6_DOCK_GOODBYE_2"  audio="Audio/Speech/Outside/Dock/6_21_7.mp3"/>
				<text src="images/characters/alan.png" speaker_name="ALAN" string="M6_DOCK_GOODBYE_3"  audio="Audio/Speech/Outside/Dock/6_21_8.mp3"/>
				<text src="images/characters/christine.png" speaker_name="CHRISTINE" string="M6_DOCK_GOODBYE_4"  audio="Audio/Speech/Outside/Dock/6_21_9.mp3"/>
				<text src="images/characters/alice.png" speaker_name="ALICE" string="M6_DOCK_GOODBYE_5"  audio="Audio/Speech/Outside/Dock/6_21_10.mp3"/>
				<finish>	
					<property type="visible" value="false" assign="active_screen" name="thomas_alice_alan" />
					<property type="visible" value="false" assign="active_screen" name="boat" />
					<property type="visible" value="false" assign="active_screen" name="boat_area" />
					<property type="visible" value="true" assign="active_screen" name="nav_pathway" />
					<session id="VIEWED_STORY_EVENT_21A"/>	
					<fadeOutMusic/>
					<music src="Audio/Music/CUTSCENES/cutscene_7.mp3" fadeIn="500" channel="CUTSCENE" loop="false" />
					<cutscene src="swfs/cutscenes/cutscene7.swf" border="false">
						
						
						<!--<text string="CUTSCENE_6_TEXT_1" time="400" audio="Audio/Cutscenes/6/Victor.mp3" />
						<text string="CUTSCENE_6_TEXT_2" time="2300" audio="Audio/Cutscenes/6/Viggo.mp3"/>
						<text string="" time="4100" />-->
					
						<finish>						
							<session id="ACTIVE_MISSION" value="7"/>
							<goal id="TASK_7_1" priority="2" />
							<goal id="TASK_7_2" priority="12" />							
							<portal target="Outside/DOCK" />
							<cinematic id="BACK_TO_VICTORS_OFFICE"/>
						</finish>
					</cutscene>	
					
				</finish>
			</speech>
		</event>
		
	</object>
	
	<object name="plank" basic="true" cursor="hand">
		<!--<state>
			<requirement type="session" id="M1_DIALOGUE_1" value="true"/>			
			<requirement type="session" id="M1_GOT_LOG" value="false"/>
			<requirement type="session" id="M1_VINCENT_EVENT_2_VIEWED" value="true"/>
			<poi value="on" target="active_screen" object="plank"/>
		</state>-->
		<state>
			<requirement type="session" id="M1_GOT_LOG" value="true" />	
			<property type="visible" value="false" assign="object_window" name="plank" />
			<property type="visible" value="false" assign="object_window" name="chain" />
		</state>
		<event type="clicked">
			<requirement type="holding_item" id="BOLTCUTTER" warning="NEED_SHEARS" />												
			<property type="visible" value="false" assign="object_window" name="plank" />
			<property type="visible" value="false" assign="object_window" name="chain" />
			
			<sound src="Audio/SFX/OUTSIDE/garden_chain_cut.mp3" />
		
			<item name="log" id="LOG" src="images/items/log.png"  large_src="images/items/log_large.png" />
			<items_collected>
				<session id="M1_GOT_LOG"/>
				<item remove="true" id="BOLTCUTTER" />
				<!--<poi value="on" target="active_screen" object="pot2_whole" align="origin" />-->
				<!--<poi value="on" target="active_screen" object="pot1_whole" align="origin" />-->
			</items_collected>		
		</event>
	</object>
	
	<object name="dock_area_1" basic="true" cursor="hand">
		<event type="clicked">
			<warning id="DOCK_AREA_1"/>
		</event>
		<!--
		<event type="clicked">
			<minigame src="swfs/minigames/Briefcase.swf">
				<prize>
					<portal target="Outside/dock"/>
				</prize>
				<leave>
					<portal target="Outside/dock"/>		
				</leave>
			</minigame>
		</event>		
		-->
	</object>
	<object name="dock_area_2" basic="true" cursor="hand">
		<event type="clicked">
			<warning id="DOCK_AREA_2"/>
		</event>
	</object>
	<object name="dock_area_3" basic="true" cursor="hand">
		<event type="clicked">
			<state>
				<requirement type="holding_item" id="BUCKET" />
				<warning id="DOCK_AREA_4" />
			</state>
			<state>
				<requirement type="holding_item" id="BUCKET" value="false" />
				<warning id="DOCK_AREA_3" />
			</state>
		</event>
	</object>
	
	<state>
		<requirement type="session" id="TUTORIAL_1_1" value="true" />
		
		<requirement type="session" id="ACTIVE_MISSION" valueNot="7"/>
		<warning id="LOCATION_OUTSIDE_DOCK"/>
	</state>

	<object name="nav_pathway" id="NAV_PATHWAY" cursor="north" tooltip="LOCATION_PATHWAY_TO">
		
		<event type="clicked">
			<portal target="Outside/PATHWAY" />
			<!--<speech src="images/characters/christine.png" speaker_name="NAME_LITTLE_GIRL">
				<text string="M5_LITTLE_GIRL_SPEECH_2"/>			
			</speech>-->
		</event> 
	</object>
	<state>
		<requirement type="session" id="TUTORIAL_1_1" value="false" />
		<session id="TUTORIAL_1_1"/>
		<tutorial>
			<hint x="955" y="76" time="0" />
			<hint x="75" y="676"/>
			<delay time="700" />
			<error id="TUTORIAL_1_1"/>
		</tutorial>
	</state>
	<state>
		<requirement type="session" id="M1_GOT_TAPE_RECORDER" value="false"/>
		<goal id="TASK_1_1" priority="1" />
	</state>
	<!--
						
	-->
	<!--
	<state>
		<requirement type="session" id="M1_OPENING_CUTSCENE_PLAYED" value="false" />
		<cutscene src="swfs/cutscenes/cutscene1.swf" border="false">
			<finish>						
				<session id="M1_OPENING_CUTSCENE_PLAYED"/>
				<session id="ACTIVE_MISSION" value="1"/>
				<portal target="Outside/DOCK" />
			</finish>
		</cutscene>	
	</state>
	<state>
		<requirement type="session" id="MG_SWITCH_PUZZLE_SOLVED"/>
		<requirement type="session" id="PICKED_GENERATOR_ITEM" value="false" />
		<item name="lighter" id="LIGHTER" src="images/items/lighter.png"/>
		
		<session id="PICKED_GENERATOR_ITEM"/>
	</state>-->
	
</screen>