<?xml version="1.0" ?>

<Scene name="MainHall02">

	<Audio source="chapter4"/>

	<!-- Scene layers & anims -->
	<if t="not $can_goto_alchemy_lab == 0"> <Object type="ImageBox" image="scene_meteor_placed" x="559" y="185" /> </if>
    <if t="$can_goto_alchemy_lab == -1">
		<Object type="ImageBox" image="add_meteor_glow" alpha="0" clickthrough="1" x="450" y="93">
			<Animator type="AlphaChanger" function="sine" amplitude="255" speed="0.5"/>
			<Animator type="ScalerX" function="sine" amplitude="2" speed="0.5"/>
			<Animator type="ScalerY" function="sine" amplitude="2" speed="0.5"/>
		</Object>
		<Animator type="DelayedAction" time="1.25">
			<Action type="SetVar" var="can_goto_alchemy_lab" value="1" reset="0"/>
			<Action type="PlaySound" sound="steps"/>
			<Action type="UnlockScene"/>			
			<Action type="SwitchScene" scene="AlchemyLab01" speed="1"/>
		</Animator>
	</if>
	
	
	<!-- Actions -->
	<Action color="FFFF00" type="Composite">
		<Action type="PlaySound" sound="steps"/>
		<Action type="SwitchScene" scene="MainHall"/>
	</Action>	
	<Object type="ActionArrowMarker" x="585" y="635" color="FFFF00" image="ui.gui/ss_marker" angle="270" clickthrough="1"/>
	
	
	<if t="$can_goto_alchemy_lab">
		<!-- todo door -->
		<Object type="ActionArrowMarker" x="585" y="535" color="00FF00" image="ui.gui/ss_marker" angle="-270" clickthrough="1"/>
	<else>
		<Action color="FF0000" type="ItemAction" cursor="question">
			<Action itemaction="noitem" type="Say" key="METEOR_SLOT_LOOK"/>
 			<Action itemaction="meteor" type="Composite">
				<Action type="LockScene"/>
				<Action type="SetVar" var="task200_lab_alchemy_enter" value="2" reset="0"/>
				<Action type="PlaySound" sound="generic_item_use_put_taken"/>
				<Action type="PlaySound" sound="door_unlock"/>
				<Action type="SetVar" var="can_goto_alchemy_lab" value="-1"/>
				<Action type="RemoveItem" item="meteor" reset="0"/>
				<Action type="ResetScene"/>
			</Action>
		</Action>
		<Action color="00FF00" type="Composite" cursor="question">
			<Action type="PlaySound" sound="locked_door"/>
			<Action type="SetVar" var="task200_lab_alchemy_enter" value="1" reset="0"/>
			<Action type="Say" key="ALCHEMY_METEOR_NOT_PLACED"/>
		</Action>
	</else>
	</if>
	
	
	
</Scene>