<?xml version="1.0" ?>

<Scene name="LandingDock" zbase="310" zfactor="0.1">
	<Object type="LBAMap" name="LandingDock_walk" filename="LandingDock.lba" x="0" y="0"/>

	<Audio source="storage"/>

	<!-- Images -->

	<if t="$replicator_broken_dialog_launched">
		<Audio source="Varion_Escape"/>
		<Action type="LockScene"/>		
		<Action type="SetVar" var="mazslow_on_varion" value="0" reset="0"/>
		<Action type="RemoveAllItems" item="*" reset="0"/>

		<Object type="Character2D" chr="brawe" x="95" y="275" direction="NE"/>
		<Object type="Character2D" chr="robert" height="295" x="95" y="275" direction="NE"/>
		<Object type="Character2D" chr="albert" height="295" x="95" y="275" direction="NE"/>
		<Object type="Character2D" chr="danny" x="95" y="275" direction="NE"/>
		<Object type="Character2D" chr="rowboat" x="95" y="275" direction="NE"/>
		<Object type="Character2D" chr="luna" x="95" y="275" direction="NE"/>
		
		<Action type="CommandCharacter" chr="brawe">
			<Job type="Pause" time="1"/>
			<Job type="Move" x="285" y="165"/>
			<Job type="SetOrientation" direction="N"/>
		</Action>

		<Action type="CommandCharacter" chr="robert">
			<Job type="Move" x="290" y="175"/>
			<Job type="SetOrientation" direction="NE"/>
		</Action>

		<Action type="CommandCharacter" chr="albert">
			<Job type="Pause" time="0.3"/>
			<Job type="Move" x="275" y="175"/>
			<Job type="SetOrientation" direction="NE"/>
			<Job type="SetVar" var="landing_on_varion" value="0" reset="0"/>
			<Job type="SetVar" var="textmode_exception" value="0" reset="0"/>
			<Job type="SwitchScene" scene="varion.Varion"/>
		</Action>

		<Action type="CommandCharacter" chr="danny">
			<Job type="Pause" time="1.5"/>
			<Job type="Move" x="270" y="165"/>
			<Job type="SetOrientation" direction="N"/>
		</Action>

		<Action type="CommandCharacter" chr="rowboat">
			<Job type="Pause" time="3"/>
			<Job type="Move" x="280" y="185"/>
			<Job type="SetOrientation" direction="N"/>
		</Action>

		<Action type="CommandCharacter" chr="luna">
			<Job type="Pause" time="0.3"/>
			<Job type="Say" key="LUNA_CREW_GETTING_AWAY_01" nowait="1"/>
			<Job type="Move" x="300" y="160"/>
			<Job type="SetOrientation" direction="NW"/>
		</Action>

	<else> <!-- regular -->
		<if t="$danny_scene == varion.LandingDock">
			<Object type="Character2D" chr="danny" x="0" y="0">
				<Property name="position_if:$prev_scene == varion.LCorridor" value="103,220,E"/>
				<Property name="position_if:$prev_scene == varion.RCorridor" value="143,252,NE"/>
			</Object>
		</if>
		<if t="$brawe_scene == varion.LandingDock">
			<Object type="Character2D" chr="brawe" x="0" y="0">
				<Property name="position_if:$prev_scene == varion.LCorridor" value="103,220,E"/>
				<Property name="position_if:$prev_scene == varion.RCorridor" value="143,252,NE"/>
			</Object>
		</if>
		<if t="$luna_scene == varion.LandingDock">
			<Object type="Character2D" chr="luna" x="0" y="0">
				<Property name="position_if:$prev_scene == varion.LCorridor" value="103,220,E"/>
				<Property name="position_if:$prev_scene == varion.RCorridor" value="143,252,NE"/>
			</Object>
		</if>

		<Action color="FFFF00" type="CommandCharacter" chr="$current_character" rollover="RO_GOTO_MAZSLOW|u">
			<Job condition="$current_character == danny" type="Move" x="280" y="165"/>
			<Job condition="$current_character == danny" type="SetOrientation" direction="NW"/>
			<Job condition="$current_character == danny" type="SwitchScene" scene="ship.Kitchen" pos="150,275,S"/>
			<Job condition="not $current_character == danny" type="Say" key="NOT_DANNY_ENTER_MAZSLOW_01"/>
		</Action>
	</else>
	</if>

	<!-- Actions -->
	<Action color="FF0000" type="CommandCharacter" chr="$current_character" rollover="RO_GOTO_LCORR|l">
		<Job condition="not $current_character == brawe" type="Move" x="100" y="252"/>
		<Job condition="not $current_character == brawe" type="SetOrientation" direction="SE"/>
		<Job condition="not $current_character == brawe" type="SwitchScene" scene="LCorridor"/>
		<Job condition="$current_character == brawe" type="Say" key="NOGO_VARION_01"/>
	</Action>

	<Action color="0000FF" type="CommandCharacter" chr="$current_character" rollover="RO_GOTO_RCORR|d">
		<Job type="Move" x="100" y="252"/>
		<Job type="SetOrientation" direction="SE"/>
		<Job type="SwitchScene" scene="RCorridor"/>
	</Action>

	<if t="not $taken_withered_branch">
		<Action color="00FF00" type="Multiple" rollover="RO_WITHERED_BUSH">
			<Action multiple="look" type="CommandCharacter" chr="danny">
				<Job type="Move" x="220" y="265"/>
				<Job type="SetOrientation" direction="SE"/>
				<Job type="Say" key="WITHERED_BRANCH_01"/>
			</Action>

			<Action multiple="use" type="CommandCharacter" chr="danny" rollover="ui.casual_use_only">
				<Job type="Move" x="220" y="265"/>
				<Job type="SetOrientation" direction="SE"/>
				<Job type="Say" key="TAKEN_WITHERED_BRANCH_01"/>
				<Job type="Animate" ani="Take"/>
				<Job type="AddItem" item="withered_branch" reset="0"/>
				<Job type="PlaySound" sound="branch_ripoff"/>
				<Job type="SetVar" var="taken_withered_branch" value="1"/>
				<Job type="Animate" ani="TakeBack"/>
			</Action>
		</Action>
		<else>
			<Action color="00FF00" type="CommandCharacter" chr="danny" rollover="RO_WITHERED_BUSH">
				<Job type="Move" x="220" y="265"/>
				<Job type="SetOrientation" direction="SE"/>
				<Job type="Say" key="WITHERED_BRANCH_01"/>
			</Action>
		</else>
	</if>

	<!-- Foreground -->
	<Object type="ImageBox" image="Exit" x="18" y="216" />
	<Object type="ImageBox" image="LandingDock-Foreground" x="0" y="0" />

</Scene>