<?xml version="1.0" ?>

<Scene name="SkullSolved" image="SkullMinigame">

    <Audio source="ambient2"/>
	<Action type="SetActionMap" amp="SkullMinigame"/>


	<Action color="FFFF00" type="SwitchScene" scene="Tree" cursor="walk"/>

	<if t="$skullminigame_solved == 1">
		<Object type="ImageBox" image="ANIM_skull_chain" x="521" y="0" name="chain2">
			<Animator type="Rotator" periods="-1" function="sine" amplitude="1" speed="0.25"/>
		</Object>
		<if t="$ho_medallion_02_visible">
			<Object type="ImageBox" image="ho_medallion_02" x="-80" y="250" parent="chain2"/>
			<Action color="00FF00" type="Composite" cursor="use">
				<Action type="AddItem" item="medallion_green" reset="0"/>
				<Action type="SetVar" var="skullminigame_solved" value="2" reset="0"/>
				<Action type="SetVar" var="ho_medallion_02_visible" value="0"/>
			</Action>
		</if>
	</if>

	<if t="$skullminigame_solved == -1">

		<Object type="ImageBox" image="ANIM_skull_chain" x="521" y="-492" center_y="0" name="chain">
			<Animator type="MoverY" periods="0.25" function="sine" amplitude="492" speed="0.5"/>
			<Animator type="Rotator" periods="-1" function="sine" amplitude="1" speed="0.25"/>
		</Object>
		<Object type="ImageBox" image="ho_medallion_02" x="-80" y="250" parent="chain"/>

		<Action color="00FF00" type="Composite" cursor="use">
			<Action type="AddItem" item="medallion_green" reset="0"/>
			<Action type="SetVar" var="skullminigame_solved" value="2" reset="0"/>
			<Action type="SetVar" var="ho_medallion_02_visible" value="0"/>
		</Action>

		<Animator type="DelayedAction" time="1">
			<Action type="UnlockScene"/>
		</Animator>
		<Action type="SetVar" var="skullminigame_solved" value="1" reset="0"/>
	</if>

	<Object type="ImageBox" image="SCENE_skull_mask" x="359" y="70" />


	<!--
	<Action type="AddItem" item="medallion_green" reset="0"/>

	-->



</Scene>