<screen id="MAIN_ENTRANCE" src="swfs/screens/Outside/Main Entrance.swf" footstep="CobbleStone">
	<warning id="LOCATION_OUTSIDE_MAIN_ENTRANCE"/>
	<unlockRoom id="Outside/Main_Entrance"/>
	<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_MAIN_GATE_OPENED" value="false" />
		<property type="visible" value="false" assign="object_window" name="Gate_open" />
	</state>-->
	<state>
		<requirement type="session" id="M3_GOT_AUDIOTAPE_10" value="false" />
		<requirement type="session" id="SOLVED_MAIN_ENTRANCE_2" value="true" />
		<session id="M3_GOT_AUDIOTAPE_10"/>						
		<unlockAudioTape id="10"/>
		<show_book tab="3"/>
		<sound src="Audio/SFX/GAME/tape_collected.mp3" />	
	</state>
	<state>
		<requirement type="session" id="TUTORIAL_INVENTORY_ITEMS" value="false" />
		<requirement type="session" id="SOLVED_MAIN_ENTRANCE" value="true" />
		<session id="TUTORIAL_INVENTORY_ITEMS"/>
		<tutorial>
			<hint x="955" y="76" time="0" />
			<hint x="522" y="748"/>
			<delay time="700" />
			<error id="TUTORIAL_INVENTORY_TEXT"/>
		</tutorial>
	</state>	
		
		
	<state>
		<requirement type="session" id="M1_MAIN_GATE_OPENED"/>
		<property type="frame" value="completed" stop="true" assign="object_window" name="Gate" />
	</state>
	<state>
		<requirement type="session" id="MG_RDIALS_COMPLETED"/>
		<requirement type="session" id="M1_MAIN_GATE_OPENED" value="false" />
		
		<sound src="Audio/SFX/OUTSIDE/main_entrance_gates.mp3" />
		
		<property type="frame" value="activate" stop="false" assign="object_window" name="Gate" />
		<session id="M1_MAIN_GATE_OPENED"/>
	</state>

	<state>
		<requirement type="session" id="SOLVED_MAIN_ENTRANCE"/>
		<requirement type="session" id="MG_RDIALS_COMPLETED" value="false" />
		<poi value="on" target="active_screen" object="puzzle"  type="swipe"/>
	</state>

	<state>
		<requirement type="session" id="MG_RDIALS_COMPLETED"/>
		<goal id="TASK_1_2" remove="true" />
	</state>
	<state>
		<requirement type="session" id="MG_RDIALS_COMPLETED" value="false" />
		<object name="puzzle" id="PUZZLE" cursor="puzzle">
			<event type="clicked">
				<requirement type="session" id="MG_RDIALS_COMPLETED" value="false"/>
				<requirement type="session" id="SOLVED_MAIN_ENTRANCE" value="true" />
				<minigame src="swfs/minigames/RotateSymbols.swf">
					<warning id="MG_GATE_PUZZLE_HINT_0"/>
					<prize>
						<session id="MG_RDIALS_COMPLETED" />	
						<portal target="Outside/MAIN_ENTRANCE"/>
					</prize>
					<leave>
						<portal target="Outside/MAIN_ENTRANCE"/>			
					</leave>
				</minigame>
				<!--<item id="EMBLEM" remove="true"/>-->
			</event>
			<event type="clicked">
				<requirement type="session" id="MG_RDIALS_COMPLETED" value="false" />
				<requirement type="session" id="SOLVED_MAIN_ENTRANCE" value="false" />
				<warning id="GATE_MAIN_ENTRANCE"/>
			</event>
		</object>
	</state>
	<!--<state>
		<requirement type="session" id="MG_RDIALS_COMPLETED" value="false" />
		<property type="visible" value="false" assign="object_window" name="nav_Main_Entrance_2" />
	</state>-->
	
	<object name="nav_Main_Entrance_2" id="NAV_MAIN_ENTRANCE_2" cursor="north" tooltip="LOCATION_MAIN_ENTRANCE_2_TO">
		<state>
			<requirement type="session" id="MG_RDIALS_COMPLETED" value="false"/>
			<object name="nav_Main_Entrance_2" id="NAV_MAIN_ENTRANCE_2" cursor="hand"/>
		</state>
		
		
		
		<event type="clicked">
			<requirement type="session" id="MG_RDIALS_COMPLETED" value="false" />
			<requirement type="session" id="SOLVED_MAIN_ENTRANCE" value="true" />
			<minigame src="swfs/minigames/RotateSymbols.swf">
				<warning id="MG_GATE_PUZZLE_HINT_0"/>
				<prize>
					<session id="MG_RDIALS_COMPLETED" />	
					<portal target="Outside/MAIN_ENTRANCE"/>
				</prize>
				<leave>
					<portal target="Outside/MAIN_ENTRANCE"/>			
				</leave>
			</minigame>
		</event>
		<event type="clicked">
			<requirement type="session" id="MG_RDIALS_COMPLETED" value="false" />
			<requirement type="session" id="SOLVED_MAIN_ENTRANCE" value="false" />
			<warning id="GATE_MAIN_ENTRANCE"/>
		</event>
		<event type="clicked">
			<requirement type="session" id="MG_RDIALS_COMPLETED"/>
			<portal target="Outside/MAIN_ENTRANCE_2"/>
		</event>				
	</object>
	<object name="nav_Pathway" id="NAV_PATHWAY" cursor="south" tooltip="LOCATION_PATHWAY_TO">
		<event type="clicked">			
			<portal target="Outside/PATHWAY" />
		</event>
	</object>
	<!--<object name="note" id="NOTE" cursor="hand" tooltip="NOTE">
		<event type="clicked">			
			<warning id="NAME_OF_ASYLUM" />
		</event>
	</object>-->
	
	
	<property type="visible" value="false" assign="object_window" name="HO_area" />
	
	
	<state>
		<requirement type="session" id="M1_VINCENT_EVENT_VIEWED" value="false"/>
		<property type="visible" value="false" assign="active_screen" name="window_broken" />
	</state>
	
	
	<state>
		<requirement type="session" id="SOLVED_MAIN_ENTRANCE" value="false"/>
		<property type="visible" value="true" assign="object_window" name="HO_area" />
		<poi value="on" target="active_screen" object="HO_area"/>
	</state>
	<state>
		<requirement type="session" id="ACTIVE_MISSION" valueNot="1"/>
		<requirement type="session" id="ACTIVE_MISSION" valueNot="2"/>
		<requirement type="session" id="SOLVED_MAIN_ENTRANCE_2" value="false"/>
		<property type="visible" value="true" assign="object_window" name="HO_area" />
		<poi value="on" target="active_screen" object="HO_area"/>
	</state>
	
	<object name="HO_area" id="HO_AREA" cursor="spyglass" tooltip="LOCATION_ENTRANCE_BOARD">
		<event type="clicked">
			<requirement type="session" id="SOLVED_MAIN_ENTRANCE" value="false"/>
			<portal target="HO_SCREEN/HO_MAIN_ENTRANCE" hidden_screen="true" />
		</event>	
		<event type="clicked">
			<requirement type="session" id="SOLVED_MAIN_ENTRANCE" value="true"/>
			<requirement type="session" id="SOLVED_MAIN_ENTRANCE_2" value="false"/>
			<requirement type="session" id="ACTIVE_MISSION" valueNot="1"/>
			<requirement type="session" id="ACTIVE_MISSION" valueNot="2"/>
			<portal target="HO_SCREEN/HO_MAIN_ENTRANCE" hidden_screen="true" />
		</event>
	</object>
	
	<object name="area1" id="AREA1" cursor="hand" tooltip="LOCATION_ENTRANCE_BOARD">
		<event type="clicked">
			<warning id="GATE_NOTICEBOARD"/>
		</event>
	</object>
	<object name="area2" id="AREA2" cursor="hand">
		<event type="clicked">
			<warning id="GATE_ASYLUM"/>
		</event>
	</object>
	<object name="area3" id="AREA3" cursor="hand">
		<event type="clicked">
			<warning id="GATE_MOONLIGHT"/>
		</event>
	</object>
	<object name="area4" id="AREA4" cursor="hand">
		<event type="clicked">
			<warning id="GATE_TREES"/>
		</event>
	</object>
	
	
<!--	<state>
		<requirement type="session" id="SOLVED_MAIN_ENTRANCE"/>
		<object name="HO_area" id="HO_AREA" cursor="default"/>
	</state>-->
</screen>

