<?xml version="1.0" ?>

<DialogFile>
	<Menu name="start_tutorial_root">
		<Reply text="TUTORIAL_START_00"> <Reference ref="SEQ_TUTORIAL_START"/> </Reply>
		<Reply text="TUTORIAL_SHORT_00"> <Reference ref="SEQ_TUTORIAL_SHORT"/> </Reply>
		<Reply text="TUTORIAL_DECLINE_00"> <Reference ref="SEQ_TUTORIAL_DECLINE"/> </Reply>
	</Menu>

	<Menu name="root_tutorial">
		<Reply text="TUTORIAL_MOVE_00"> <Reference ref="SEQ_TUTORIAL_MOVE"/> </Reply>
		<Reply text="TUTORIAL_INV2_00"> <Reference ref="SEQ_TUTORIAL_INV2"/> </Reply>
		<Reply text="TUTORIAL_INV3_00"> <Reference ref="SEQ_TUTORIAL_INV3"/> </Reply>
		<Reply text="TUTORIAL_SAVELOAD_00"> <Reference ref="SEQ_TUTORIAL_SAVELOAD"/> </Reply>
		<Reply text="TUTORIAL_OTHER_00"> <Reference ref="SEQ_TUTORIAL_OTHER"/> </Reply>
		<Reply text="TUTORIAL_END_00"> <Reference ref="SEQ_TUTORIAL_END"/> </Reply>
	</Menu>

	<Sequence name="SEQ_TUTORIAL_DECLINE">
		<Dialog chr="brawe" text="TUTORIAL_DECLINE_01"/>
		<Dialog chr="kralek" text="TUTORIAL_DECLINE_02"/>
		<!-- <Job chr="kralek" type="SetOrientation" direction="NE"/> -->
		<Action type="ResetScene"/>		
		<Action type="SetVar" var="hint1_rowboat_activation" value="1" reset="0"/>
		<Action type="SetVar" var="hint2_locators" value="1" reset="0"/>
		<Action type="UnlockScene"/>
		<Redirect to="__END__"/>
	</Sequence>
	
	<Sequence name="SEQ_TUTORIAL_STEP_REVISIT_COMPLETE">
		<Action type="CommandCharacter" chr="brawe">
			<Job type="Move" x="190" y="270"/>
			<Job type="SetOrientation" direction="SE"/>
		</Action>
		
		<Action type="SetVar" var="hint100_tutorial" value="0" reset="0"/>
		<Action type="SetVar" var="hint101_tutorial" value="0" reset="0"/>
		<Action type="SetVar" var="hint102_tutorial" value="0" reset="0"/>
		<Action type="SetVar" var="hint103_tutorial" value="0" reset="0"/>
		<Action type="SetVar" var="hint104_tutorial" value="0" reset="0"/>
		<Action type="SetVar" var="tutorial_state" value="0" reset="0"/>		
		
		<Action type="SetVar" var="tutorial_arrow" value="" reset="0"/>		
		<Action type="SetVar" var="tutorial_step_revisited" value="0" reset="0"/>
		
		<Job chr="kralek" type="SetOrientation" direction="NW"/>
		<Dialog chr="kralek" text="TUTORIAL_KRALEK_ANYTHING_ELSE_01"/>
		<Redirect to="root_tutorial"/>		
	</Sequence>

	<Sequence name="SEQ_TUTORIAL_START">
		<Job chr="kralek" type="SetOrientation" direction="NW"/>
		<Dialog condition="not $tutorial_step_revisited" chr="brawe" text="TUTORIAL_START_01"/>
		<Dialog condition="not $tutorial_step_revisited" chr="kralek" text="TUTORIAL_START_02"/>
		<Dialog chr="kralek" text="TUTORIAL_START_02_OK_HERE_GOES"/>		

		<Action type="SetVar" var="hint100_tutorial" value="0" reset="0"/>
		<Action type="SetVar" var="hint101_tutorial" value="0" reset="0"/>
		<Action type="SetVar" var="hint102_tutorial" value="0" reset="0"/>

		<!-- <Action type="SetVar" var="hint100_tutorial" value="1" reset="0"/> -->
		<Action type="SetVar" var="tutorial_arrow" value="120,75,-40,not $inv_open and not $choice_menu_active" reset="0"/>
		
		<Dialog condition="$cage_target == pc" chr="kralek" text="TUTORIAL_START_03_PART1_PC"/>
		<Dialog condition="not $cage_target == pc" chr="kralek" text="TUTORIAL_START_03_PART1_TOUCH"/>
		
		<Dialog chr="kralek" text="TUTORIAL_START_03_PART2"/>
		<Action type="UnlockScene"/>

		<Action type="SetVar" var="tutorial_state" value="1"/> <!-- also resets scene -->
		<Redirect to="__END__"/>
	</Sequence>

	<Sequence name="SEQ_TUTORIAL_INVENTORY">
		<Action type="DebugPrint" text="Entered sequence..."/>
		<Action type="CommandCharacter" chr="brawe">
			<Job type="Move" x="190" y="270"/>
			<Job type="SetOrientation" direction="SE"/>
		</Action>
		<Job chr="kralek" type="SetOrientation" direction="NW"/>
		
		<Dialog chr="kralek" condition="not $tutorial_step_revisited" text="TUTORIAL_INVENTORY_00"/>
		<Dialog chr="kralek" condition="$cage_target == pc" text="TUTORIAL_INVENTORY_01"/>
		<Dialog chr="kralek" condition="not $cage_target == pc" text="TUTORIAL_INVENTORY_TOUCH_01"/>

		<Action type="SetVar" var="hint100_tutorial" value="0" reset="0"/>
		<Action type="SetVar" var="hint101_tutorial" value="0" reset="0"/>
		<Action type="SetVar" var="hint102_tutorial" value="0" reset="0"/>

		<!-- <Action type="SetVar" var="hint101_tutorial" value="1" reset="0"/> -->
		<Action type="SetVar" var="tutorial_arrow" value="120,75,-40,not $inv_open and $inv_item_in_selection == hanky ; 21,278,-90,not $inv_open and not $inv_item_in_selection and not $choice_menu_active ; 225,97,-90,$inv_open and not $inv_item_in_selection" reset="0"/> <!-- navigotron, inv button, inv hanky -->
		<!-- 																			  RU 											   RM					  							  RD				 								LU												   LD							   -->
		<Action type="AppendToVar" var="tutorial_arrow" value=" ; 350,30,35,$inv_open and $inv_item_in_selection == hanky ; 350,160,0,$inv_open and $inv_item_in_selection == hanky ; 330,270,325,$inv_open and $inv_item_in_selection == hanky ; 120,30,145,$inv_open and $inv_item_in_selection == hanky ; 125,280,200,$inv_open and $inv_item_in_selection == hanky" reset="0"/>

		<Action type="SetVar" var="tutorial_state" value="2"/> <!-- also resets scene -->
		<Redirect to="__END__"/>
	</Sequence>

	<Sequence name="SEQ_TUTORIAL_INVENTORY_ITEMS">
		<Action type="DebugPrint" text="Entered sequence..."/>
		<Action type="CommandCharacter" chr="brawe">
			<Job type="Move" x="190" y="270"/>
			<Job type="SetOrientation" direction="SE"/>
		</Action>
		<Job chr="kralek" type="SetOrientation" direction="NW"/>

		<Dialog chr="kralek" condition="$cage_target == pc" text="TUTORIAL_INVENTORY_02"/>
		<Dialog chr="kralek" condition="not $cage_target == pc" text="TUTORIAL_INVENTORY_TOUCH_02"/>

		<Action type="SetVar" var="tutorial_arrow" value="21,278,-90,not $inv_open and not $inv_item_in_selection and not $choice_menu_active ; 167,97,-90,$inv_open and not $choice_menu_active and not $inv_item_in_selection ; 119,132,180,$inv_open and $inv_item_in_selection == ion_gun"/>

		<Action type="SetVar" var="hint100_tutorial" value="0" reset="0"/>
		<Action type="SetVar" var="hint101_tutorial" value="0" reset="0"/>
		<Action type="SetVar" var="hint102_tutorial" value="0" reset="0"/>

		<!-- <Action type="SetVar" var="hint102_tutorial" value="1" reset="0"/> -->

		<Action type="SetVar" var="tutorial_state" value="3"/> <!-- also resets scene -->
		<Redirect to="__END__"/>
	</Sequence>
	
	<Sequence name="SEQ_TUTORIAL_INVENTORY_ITEMS_PART2">
		<Job chr="kralek" type="SetOrientation" direction="NW"/>
	
		<!-- <Action type="SetVar" var="hint103_tutorial" value="1" reset="0"/> -->
		<Dialog chr="kralek" condition="$cage_target == pc" text="TUTORIAL_INVENTORY_03"/>
		<Dialog chr="kralek" condition="not $cage_target == pc" text="TUTORIAL_INVENTORY_TOUCH_03"/>
		
		<Action type="SetVar" var="tutorial_arrow" value="21,278,-90,not $inv_open and not $inv_item_in_selection and not $choice_menu_active ; 167,97,-90,$inv_open and not $choice_menu_active and not $inv_item_in_selection ; 130,204,180,$inv_open and $inv_item_in_selection == ion_gun" reset="0"/>
		
		<Action type="SetVar" var="tutorial_state" value="5"/> <!-- also resets scene -->
		<Redirect to="__END__"/>
	</Sequence>
	
	<Sequence name="SEQ_TUTORIAL_INVENTORY_ITEMS_PART3">
		<Job chr="kralek" type="SetOrientation" direction="NW"/>
		
		<Action type="SetVar" var="hint103_tutorial" value="0" reset="0"/>
		<!-- <Action type="SetVar" var="hint104_tutorial" value="1" reset="0"/> -->
		<Dialog chr="kralek" condition="$cage_target == pc" text="TUTORIAL_INVENTORY_04"/>
		<Dialog chr="kralek" condition="not $cage_target == pc" text="TUTORIAL_INVENTORY_TOUCH_04"/>
		
		<Action type="SetVar" var="tutorial_arrow" value="21,278,-90,not $inv_open and not $inv_item_in_selection and not $choice_menu_active ; 167,97,-90,$inv_open and not $choice_menu_active and $inv_item_in_selection == hanky ; 225,97,-90,$inv_open and not $inv_item_in_selection == hanky" reset="0"/>
		
		<Action type="SetVar" var="tutorial_state" value="6"/> <!-- also resets scene -->		
		<Redirect to="__END__"/>
	</Sequence>

	<Sequence name="SEQ_TUTORIAL_SAVE">
		<Action type="DebugPrint" text="Entered sequence..."/>
		<Action type="SetVar" var="hint104_tutorial" value="0" reset="0"/>
		<Action type="CommandCharacter" chr="brawe">
			<Job type="Move" x="190" y="270"/>
			<Job type="SetOrientation" direction="SE"/>
		</Action>
		<Job chr="kralek" type="SetOrientation" direction="NW"/>
			
		<Dialog chr="kralek" condition="$cage_target == pc" text="TUTORIAL_SAVE_01"/>
		<Dialog chr="kralek" condition="not $cage_target == pc" text="TUTORIAL_SAVE_TOUCH_01"/>
		<Dialog chr="kralek" condition="$cage_target == pc and not $tutorial_step_revisited" text="TUTORIAL_DOUBLE_01"/>
		<Dialog chr="kralek" condition="not $cage_target == pc and not $tutorial_step_revisited" text="TUTORIAL_DOUBLE_TOUCH_01"/>

		<Action type="SetVar" var="tutorial_state" value="4" reset="0"/>
		<Redirect to="root_tutorial"/>
	</Sequence>

	<!-- tutorial step revisitations -->
	<Sequence name="SEQ_TUTORIAL_MOVE">
		<Dialog chr="brawe" text="TUTORIAL_MOVE_01"/>
		<Dialog chr="kralek" text="TUTORIAL_MOVE_02"/>
		<Action type="SetVar" var="tutorial_step_revisited" value="1" reset="0"/>
		<Redirect to="SEQ_TUTORIAL_START"/>
	</Sequence>

	<Sequence name="SEQ_TUTORIAL_INV2">
		<Dialog chr="brawe" text="TUTORIAL_INV2_01"/>
		<Dialog chr="kralek" text="TUTORIAL_INV2_02"/>
		<Action type="SetVar" var="tutorial_step_revisited" value="1" reset="0"/>
		<Redirect to="SEQ_TUTORIAL_INVENTORY"/>
	</Sequence>

	<Sequence name="SEQ_TUTORIAL_INV3">
		<Dialog chr="brawe" text="TUTORIAL_INV3_01"/>
		<Dialog chr="kralek" text="TUTORIAL_INV3_02"/>
		<Action type="SetVar" var="tutorial_step_revisited" value="1" reset="0"/>
		<Redirect to="SEQ_TUTORIAL_INVENTORY_ITEMS"/>
	</Sequence>

	<Sequence name="SEQ_TUTORIAL_SAVELOAD">
		<Dialog chr="brawe" text="TUTORIAL_SAVELOAD_01"/>
		<Action type="SetVar" var="tutorial_step_revisited" value="1" reset="0"/>
		<Redirect to="SEQ_TUTORIAL_SAVE"/>
	</Sequence>

	<Sequence name="SEQ_TUTORIAL_OTHER">
		<Dialog chr="brawe" text="TUTORIAL_OTHER_01"/>
		<Dialog chr="kralek" text="TUTORIAL_DOUBLE_01"/>
		<!-- <Action type="SetVar" var="tutorial_step_revisited" value="1" reset="0"/> -->
		<Redirect to="root_tutorial"/>
	</Sequence>

	<Sequence name="SEQ_TUTORIAL_END">
		<Action type="SetVar" var="tutorial_arrow" value="" reset="0"/>
		<Action type="SetVar" var="hint100_tutorial" value="0" reset="0"/>
		<Action type="SetVar" var="hint101_tutorial" value="0" reset="0"/>
		<Action type="SetVar" var="hint102_tutorial" value="0" reset="0"/>

		<Dialog chr="brawe" text="TUTORIAL_END_01"/>
		<Dialog chr="kralek" text="TUTORIAL_END_02"/>

		<Action type="SetVar" var="tutorial_step_revisited" value="0" reset="0"/>
		
		<Action type="SetVar" var="tutorial_state" value="0"/> <!-- also resets scene -->
		<Action type="SetVar" var="hint1_rowboat_activation" value="1" reset="0"/>
		<Action type="SetVar" var="hint2_locators" value="1" reset="0"/>		
		<Redirect to="__END__"/>
	</Sequence>

	<Sequence name="SEQ_TUTORIAL_SHORT">
		<Dialog chr="brawe" text="TUTORIAL_SHORT_01"/>
		<Dialog chr="kralek" text="TUTORIAL_SHORT_02"/>
		
		<Action type="SetVar" var="hint1_rowboat_activation" value="1" reset="0"/>
		<Action type="SetVar" var="hint2_locators" value="1" reset="0"/>
		<Action type="UnlockScene"/>
		<Action type="SwitchScene" scene="ui.QuickTutorial"/>
		<Redirect to="__END__"/>

		<Redirect to="__END__"/>
	</Sequence>

</DialogFile>