<campaign Name="Tutorial">

<mission Id="T1" Act="1" Mission="1" Name="Tutorial" GoalTime="1800" NameLocaleId="100" IntroLocaleId="101" HelpLocaleId="102">

		<allowed>
		</allowed>
		<notallowed>
			<item Unit="Tech 2" />
			<item Unit="Tech 3" />
		</notallowed>

	<!-- intro -->
		<trigger Id="1" Valid="1" />
	<action Triggers="1" Type="Setting" Unit="SetOreStorageWarning" Count="0" />
	<action Triggers="1" Type="Text" Text="[ops smile]Hello my name is Linda, I'll be your technical ops advisor.  [ops]In this tutorial I'll cover the basics of the game, such as building your base, moving units, and attacking the enemy." LocaleId="110" />

	<action Triggers="1" Type="Text" Text="[ops]To win the game you must build a base and command offensive units to destroy the enemy.  Great strategy is essential since there are many different types of units you can build and face, each with their own strengths and weaknesses." LocaleId="111" />

	<!-- build menu -->
	<trigger Id="41" Type="TextDialogs" Count="0" WaitForTrigger="1" Valid="1" />
	<action Triggers="41" Type="SetIndicator" Unit="Engineering" Valid="3" AutoDismiss="20" />
	<action Triggers="41" Type="SetIndicator" Unit="Buildings" Valid="4" AutoDismiss="20" />
	<action Triggers="41" Type="SetIndicator" Unit="Defense" Valid="5" AutoDismiss="20" />
	<action Triggers="41" Type="Text" Text="[ops]Notice on the right the set of icons.  The default command menu will contain icons for building Engineering units, Buildings, and Defensive units.  These icons change based on what you currently have selected, since you currently have nothing selected it shows the default menu.  Close this dialog to continue." LocaleId="112" />

	<!-- hq -->
	<trigger Id="2" Type="TextDialogs" Count="0" WaitForTrigger="41" Valid="1" />
	<action Triggers="2" Type="MoveView" Unit="3965" />
	<action Triggers="2" Type="SetIndicator" Unit="3965" Valid="2" AutoDismiss="20" />
	<action Triggers="2" Type="Text" Text="[ops]This is your headquarters.  [ops smile]It automatically mines metal ore used to build units and buildings.  Select your Headquarters now by touching it and then close this dialog to continue." LocaleId="113" />

	<trigger Id="42" Type="TextDialogs" Count="0" WaitForTrigger="2" Valid="1" />
	<action Triggers="42" Type="SetIndicator" Unit="Orders" Valid="3" AutoDismiss="20" />
	<action Triggers="42" Type="Text" Text="[ops]Notice when you selected your headquarters the menu on the right changed." LocaleId="151" />

	<trigger Id="43" Type="TextDialogs" Count="0" WaitForTrigger="42" Valid="1" />
	<action Triggers="43" Type="SetIndicator" Unit="Unselect" Valid="2" AutoDismiss="20" />
	<action Triggers="43" Type="Text" Text="[ops]To see the default build menu again simply unselect your Headquarters.  Do this now by touching on an empty area on the landscape or the un-selection icon on the left." LocaleId="152" />

	<!-- resources -->
	<trigger Id="3" Type="TextDialogs" Count="0" WaitForTrigger="43" Valid="1" />
	<action Triggers="3" Type="SetIndicator" Unit="Credits" Valid="3" AutoDismiss="20" />
	<action Triggers="3" Type="SetSelection" Unit="1" /><!-- clear selection so default menu displays -->
	<action Triggers="3" Type="Text" Text="[ops]Your primary resources are metal ore displayed in blue and power displayed in yellow.  [ops smile]So with the basics out of the way lets build your base!" LocaleId="114" />

	<!-- power -->
	<trigger Id="4" Type="TextDialogs" Count="0" WaitForTrigger="3" Valid="1" />
	<action Triggers="4" Type="SetIndicator" Unit="Engineering" Valid="5" AutoDismiss="20" />
	<action Triggers="4" Type="SetSelection" Unit="1" /><!-- clear selection so default menu displays -->
	<action Triggers="4" Type="Text" Text="[ops]Power is used by buildings so as your base expands you must build more generators to create more power.  Select the Engineering menu now by touching the two white gears icon on the right and you will see the different power generators you can build.  [multitouch]Touch and hold[multitouch][desktop]Hover the mouse cursor[desktop] on a unit icon to see more information about each unit." LocaleId="115" />

	<!-- create power cell -->
	<trigger Id="5" Type="TextDialogs" Count="0" WaitForTrigger="4" Valid="1" />
	<action Triggers="5" Type="SetIndicator" Unit="Power Cell" Valid="3" AutoDismiss="20" />
	<action Triggers="5" Type="Text" Text="[ops]Create a Power Cell by touching the icon now.  Then place the Power Cell by touching a grid location on the landscape.  Note you can only build in areas near your other structures." LocaleId="116" />

	<!-- if player misses all dialogs on what to do, tell them about seeing dialog history -->
	<trigger Id="38" Type="TextDialogs" Count="0" WaitForTrigger="5" Valid="20" />
	<action Triggers="38,6!" Type="SetIndicator" Unit="Help" AutoDismiss="20" />
	<action Triggers="38,6!" Type="Text" Text="[ops]To read all previous dialog in the tutorial touch the ? button.  [ops smile]Your objectives are also in the top left corner of the screen." LocaleId="126" />

	<!-- if player misses all dialogs on what to do, tell them about seeing dialog history -->
	<trigger Id="39" Type="TextDialogs" Count="0" WaitForTrigger="6" Valid="20" />
	<action Triggers="39,7!" Type="SetIndicator" Unit="Help" AutoDismiss="20" />
	<action Triggers="39,7!" Type="Text" Text="[ops]To read all previous dialog in the tutorial touch the ? button.  [ops smile]Your objectives are also in the top left corner of the screen." LocaleId="126" />

	<!-- if player misses all dialogs on what to do, tell them about seeing dialog history -->
	<trigger Id="40" Type="TextDialogs" Count="0" WaitForTrigger="26" Valid="20" />
	<action Triggers="40,13!" Type="SetIndicator" Unit="Help" AutoDismiss="20" />
	<action Triggers="40,13!" Type="Text" Text="[ops]To read all previous dialog in the tutorial touch the ? button.  [ops smile]Your objectives are also in the top left corner of the screen." LocaleId="126" />

	<!-- create more power cells -->
	<trigger Id="6" Type="Units" Player="0" Compare="GTE" Count="1" Unit="Power Cell" />
	<action Triggers="6" Type="Text" Text="[ops smile]Great job!  To build a Land Factory you need more power, so create four more power cells now." LocaleId="117" />

	<!-- minimap -->
	<trigger Id="7" Type="Units" Player="0" Compare="GTE" Count="5" Unit="Power Cell" />
	<trigger Id="47" Type="TextDialogs" Count="0" WaitForTrigger="6" />
	<action Triggers="7,47" Type="SetIndicator" Unit="Minimap" Valid="6" AutoDismiss="20" />
	<action Triggers="7,47" Type="Text" Text="[ops]While waiting for the power cells to finish building I'll explain the mini-map, it is an overhead view of the entire landscape showing the location of all units, resources, trees, and water.  You can touch in the mini-map to view a location faster than scrolling.  The map is black in areas you haven't discovered yet." LocaleId="118" />

	<!-- OBJECTIVE 1 -->
	<objective Id="1" Desc="Build 5 Power Cells" LocaleId="119" />
	<trigger Id="8" Type="UnitsBuilt" Player="0" Compare="GTE" Count="5" Unit="Power Cell" />
	<action Triggers="8" Type="ObjectiveComplete" Objective="1" Valid="1" />

	<!-- build land factory -->
	<trigger Id="26" Type="TextDialogs" Count="0" WaitForTrigger="8" Valid="2" />
	<action Triggers="26" Type="Text" Text="[ops smile]You now have enough power to create a Land Factory!" LocaleId="120" />

	<trigger Id="30" Type="TextDialogs" Count="0" WaitForTrigger="26" />
	<action Triggers="30" Type="SetIndicator" Unit="Buildings" AutoDismiss="20" />
	<action Triggers="30" Type="Text" Text="[ops]Now select the buildings icon on the right side of the screen.  You will see there are several types of factories for land, air, sea, and infantry units." LocaleId="154" />

	<trigger Id="31" Type="TextDialogs" Count="0" WaitForTrigger="30" />
	<action Triggers="31" Type="SetIndicator" Unit="Land Factory" AutoDismiss="20" />
	<action Triggers="31" Type="Text" Text="[ops]Now build a Land Factory by touching it's icon.  Now place the Land Factory on the landscape to start construction." LocaleId="121" />

	<trigger Id="13" Type="Units" Player="0" Compare="GTE" Count="1" Unit="Land Factory" WaitForTrigger="26" />
	<action Triggers="13" Type="Text" Text="[ops][desktop]To move the view around right click the landscape and drag it.  You can also move the cursor to the side of the screen to scroll the view.[desktop][multitouch]To move the view around touch the landscape with one finger and drag it.  You can also touch and hold near the edge of the view to scroll.[multitouch]" LocaleId="122" Valid="6" />

	<objective Id="2" Desc="Build a Land Factory" LocaleId="123" />
	<trigger Id="9" Type="UnitsBuilt" Player="0" Compare="GTE" Count="1" Unit="Land Factory" />
	<action Triggers="9" Type="ObjectiveComplete" Objective="2" Valid="1" />

	<!-- build tanks -->
	<action Triggers="9" Type="SetIndicator" Unit="Challenger" Valid="10" AutoDismiss="20" />
	<action Triggers="9" Type="Text" Text="[ops smile]Great work!  Lets build a tank.  Select the factory you just built by touching it now, [multitouch]select the single gear icon in the build menu, [multitouch]and then touch the Challenger icon to build a unit.  You will see a blue bar over the factory indicating its building the unit.  Touch the icon multiple times to queue units to be built.  Queue 3 Challengers to build now." LocaleId="124" />
	<objective Id="3" Desc="Build 3 Challenger Tanks" LocaleId="125" />
	<trigger Id="10" Type="UnitsBuilt" Player="0" Compare="GTE" Count="3" Unit="Challenger" WaitForTrigger="9" />
	<action Triggers="10" Type="ObjectiveComplete" Objective="3" Valid="1" />
	<action Triggers="10" Type="Allow" Unit="Tech 2" Valid="1" />
	<action Triggers="10" Type="Allow" Unit="Tech 3" Valid="1" />

	<trigger Id="32" Type="TextDialogs" Count="0" WaitForTrigger="9" />
	<action Triggers="32" Type="SetIndicator" Unit="Help" AutoDismiss="20" />
	<action Triggers="32" Type="Text" Text="[ops]To read all previous dialog in the tutorial touch the ? button.  [ops smile]Your objectives are also in the top left corner of the screen." LocaleId="126" />

	<!-- select tanks -->
	<action Triggers="10" Type="Text" Text="[ops]Now you have a little army to command!  Lets move them.  First select the Challenger tanks, to select multiple units of the same type, double touch a Challenger, or [multitouch]touch with two fingers to create a lasso selection[multitouch][desktop]left click with the mouse and drag a selection around the tanks[desktop].  Select the tanks now." LocaleId="127" />

	<!-- move tanks -->
	<trigger Id="11" Type="TextDialogs" Count="0" WaitForTrigger="10" Valid="1" />
	<action Triggers="11" Type="Text" Text="[ops]After the units are selected touch where you want them to move to, so touch the landscape to the North near the flag now.[desktop]The game supports two different control schemes, so you can either use the left mouse button or right mouse button to move units.  Left clicking is easier to use if your mouse or trackpad only has one button, but you can sometimes accidentally select unit when you are trying to attack.  Right clicking to move units is how many other RTS games work so it may be more intuitive for you.  You can easily change this setting at any time, to do so hit ESCAPE then click SETTINGS and then change the RIGHT CLICK setting.[desktop]" LocaleId="128" />
	<action Triggers="11" Type="MoveView" Position="985 2027" Valid="2" />
	<action Triggers="11" Type="UnitCreate" Player="0" Unit="Flag" Position="985 2027" Valid="3" />
	<trigger Id="12" Type="Units" Player="0" Compare="GTE" Count="1" WaitForTrigger="11" Position="985 2027" Radius="100" />
	<!--
	<objective Id="4" Desc="Explore the North" LocaleId="129" />
	<action Triggers="12" Type="ObjectiveComplete" Objective="4" Valid="1" />
	-->
	<action Triggers="12" Type="UnitState" Player="1" Unit="18064" UnitN="Soldier" State="Attack" />
	<action Triggers="12" Type="UnitState" Player="1" Unit="18074" UnitN="Soldier" State="Attack" />
	<action Triggers="12" Type="UnitState" Player="1" Unit="18069" UnitN="Soldier" State="Attack" />
	<action Triggers="12" Type="UnitState" Player="1" Unit="18226" UnitN="Challenger" State="Attack" />

	<!-- attack enemies -->
	<trigger Id="14" Type="UnitsAttacked" Player="0" Unit="Challenger" />
	<action Triggers="14" Type="Text" Text="[ops]It looks like you've entered enemy territory!  Luckily your units will automatically attack any nearby enemies.  To attack specific units simply select your units and then touch the enemy you want to attack." LocaleId="130" />

	<!-- attack building -->
	<trigger Id="15" Type="Units" Player="1" Compare="LTE" Count="0" UnitType="Gun" Position="950 1850" Radius="350" />
	<action Triggers="15" Type="Text" Text="[ops]Now that the enemy is pushed back lets destroy their Infantry Training Center to the North so they can't produce any more infantry.  Move your tanks North and destroy the building.  If your tanks were destroyed simply build a few more.  To easily command units you can create groups, touch the group icon on the left.[desktop]  To quickly do so on the PC press Shift + 1-9." LocaleId="131" />

	<!-- while attacking build GAAM at base, make sure all dialogs are closed at this point -->
	<trigger Id="46" Type="TextDialogs" Count="0" WaitForTrigger="15" />
	<trigger Id="28" Type="UnitsAttacked" Player="1" Unit="Infantry Training Center" Valid="4" />
	<action Triggers="28,46" Type="MoveView" Unit="3965" Valid="5" />
	<action Triggers="28,46" Type="SetSelection" Unit="1" Valid="2" />
	<action Triggers="28,46" Type="SetIndicator" Unit="Defense" Valid="2" AutoDismiss="30" />
	<action Triggers="28,46" Type="Text" Text="[ops]While you are attacking the Infantry Training Center you should build some defenses at your base.  Defensive units cannot move but are stronger and more powerful than a similar costing mobile unit.  They also ensure your base is never left unprotected." LocaleId="132" />

	<trigger Id="29" Type="TextDialogs" Count="0" WaitForTrigger="28" Valid="1" />
	<action Triggers="29" Type="SetSelection" Unit="1" Valid="2" />
	<action Triggers="29" Type="SetIndicator" Unit="GAAM" Valid="2" AutoDismiss="20" />
	<action Triggers="29" Type="Text" Text="[ops]Build a GAAM and place it near your headquarters." LocaleId="133" />

	<!-- destroy building -->
	<objective Id="5" Desc="Destroy Enemy Building" LocaleId="134" />
	<trigger Id="16" Type="UnitsKilled" Player="1" Compare="GTE" Count="1" Unit="Infantry Training Center" />
	<action Triggers="16" Type="ObjectiveComplete" Objective="5" Valid="1" />
	<trigger Id="18" Type="UnitsBuilt" Player="0" Unit="GAAM" Count="1" />
	<action Triggers="16,18" Combine="All" Type="MoveView" Position="886 1705" Valid="2" />
	<action Triggers="16,18" Combine="All" Type="Text" Text="[ops smile]Great job!  The enemy Infantry Training Center is destroyed.  Go further North and terminate any enemies encountered." LocaleId="135" />

	<!-- learn about different unit types -->
	<trigger Id="17" Type="Units" Player="0" Compare="GTE" Count="1" WaitForTrigger="11" Position="700 1100" Radius="200" />
	<action Triggers="17" Type="MoveView" Position="875 1636" Valid="2" />
	<action Triggers="17" Type="Text" Text="[ops]Retreat!  Since Challenger tanks can only attack other ground units, they will be easily defeated by the airborne Apache helis.  [ops smile]Luckily you have already built a GAAM defensive unit at base." LocaleId="136" />

	<!-- if player gets wasted by apaches then build more challengers and humvees -->
	<trigger Id="37" Type="Units" Player="0" Unit="Challenger" Compare="EQ" Count="0" WaitForTrigger="17" Valid="10" />
	<action Triggers="37,19!" Type="Text" Text="[ops]To continue the mission build more Challenger tanks and continue North.  You may want to also build some anti-air Humvees in case you run into any more Apache helis." LocaleId="137" />

	<!-- research technologies -->
	<trigger Id="19" Type="Units" Player="1" Unit="Apache" Compare="EQ" Count="0" Valid="30" />
	<action Triggers="19" Type="Text" Text="[ops smile]Great work destroying the Apache helis.  [ops]There are two technologies to research at your headquarters to upgrade it.  [ops smile]Upgrading it to Tech Level 2 will allow you to build many new types units and buildings and increase its ore output.  To upgrade your headquarters select it and touch the Tech 2 icon.  You will probably have to build more Power Cells and a Storage unit in order to research Tech 2." LocaleId="138" />

	<trigger Id="33" Type="UnitsQueued" Unit="Tech 2" Player="0" Count="1" />
	<action Triggers="33" Type="Text" Text="[ops]While waiting for Tech 2 research to complete, build some more tanks and explore to the East.  Intel has reported activity in the area." LocaleId="139" Valid="3" />

	<objective Id="6" Desc="Research Tech 2" LocaleId="140" />
	<trigger Id="20" Type="UnitsBuilt" Player="0" Unit="Tech 2" Count="1" />
	<action Triggers="20" Type="ObjectiveComplete" Objective="6" Valid="1" />
	<action Triggers="20" Type="Text" Text="[ops]Tech 2 research is complete, this allows you to build more types of units, view each build category and your factories to see your new units." LocaleId="155" Valid="3" />

	<!-- note for player to find unique resource -->
	<trigger Id="25" Type="Units" Player="0" Compare="GTE" Count="1" Position="2670 2050" Radius="250" />
	<action Triggers="25" Type="MoveView" Position="2670 2050" />
	<action Triggers="25" Type="Text" Text="[soldier6]Commander, it looks like barracks for miners.  I found a note mentioning a mining site to the South, maybe we should check it out." LocaleId="141" />

	<!-- build a spec mine -->
	<trigger Id="21" Type="Units" Player="0" Compare="GTE" Count="1" Position="2166 3219" Radius="170" />
	<trigger Id="48" Type="TextDialogs" Count="0" WaitForTrigger="21" />
	<action Triggers="48" Type="UnitCreate" Player="0" Unit="Flag" Position="2100 3150" />
	<action Triggers="48" Type="MoveView" Position="2166 3219" />
	<action Triggers="48" Type="SetIndicator" Unit="Spec Mine" AutoDismiss="30" />
	<action Triggers="48" Type="Text" Text="[ops]You have found a unique resource!  You can build a specialized mine (Spec Mine) on a unique resource to increase your ore mining rate.  Note Spec Mines can only be built on unique resources and the crystals must be clear of your units in order to place the mine." LocaleId="142" />
	<action Triggers="20!,48" Combine="All" Type="Text" Text="[ops]Spec Mines are available after you research Tech 2 at your Headquarters." LocaleId="143" />

	<!-- mine built -->
	<trigger Id="24" Type="UnitsBuilt" Player="0" Unit="Spec Mine" Count="1" />
	<action Triggers="24" Type="Text" Text="[ops smile]Your Spec Mine is complete!  [ops]When you mine a unique resource you can also build special Mega units after researching Tech 3.  Mega units are super powerful gigantic units capable of destroying dozens of units and can turn the tides of war quickly." LocaleId="144" />
	<objective Id="7" Desc="Build a Spec Mine" LocaleId="145" />
	<action Triggers="24" Type="ObjectiveComplete" Objective="7" Valid="10" />

	<!-- build a radar tower -->
	<trigger Id="22" Type="TextDialogs" Count="0" WaitForTrigger="20" Valid="60" />
	<action Triggers="22" Type="SetIndicator" Unit="Radar Tower" AutoDismiss="30" />
	<action Triggers="22" Type="Text" Text="[ops]Building a radar tower will show you enemy positions across the entire map, this is very useful in forming an attack strategy.  You can even upgrade your radar tower to reveal enemy unit names." LocaleId="146" />

	<!-- build a lab -->
	<trigger Id="23" Type="TextDialogs" Count="0" WaitForTrigger="20" Valid="120" />
	<action Triggers="23" Type="SetIndicator" Unit="Orchid" AutoDismiss="30" />
	<action Triggers="23" Type="Text" Text="[ops]After researching Tech 2 you can build a research lab.  There are three labs to build and each allow researching technologies to upgrade units and buildings.  The research labs are named Orchid, Looking Glass, and Tempest, they are under the Buildings menu." LocaleId="147" />

	<!-- warn player if HQ is under attack -->
	<trigger Id="34" Type="UnitsHealth" Player="0" Count="50" Compare="LTE" Unit="Headquarters" />
	<action Triggers="34" Type="Text" Text="[ops]It looks like you could use some backup at your Headquarters, build some defenses ASAP!" LocaleId="148" />
	<action Triggers="34" Type="MoveView" Unit="3965" />

	<!-- if HQ is desparate help player out with some defenses -->
	<trigger Id="35" Type="UnitsHealth" Player="0" Count="20" Compare="LTE" Unit="Headquarters" />
	<action Triggers="35" Type="Text" Text="[ops]Reinforcements have arrived!" LocaleId="149" />
	<action Triggers="35" Player="0" Type="UnitCreate" Count="1" Unit="M779" State="Defend" Position="1096 2488" Valid="0.5" />
	<action Triggers="35" Player="0" Type="UnitCreate" Count="1" Unit="M779" State="Defend" Position="1396 2488" Valid="1" />
	<action Triggers="35" Player="0" Type="UnitCreate" Count="1" Unit="GAAM" State="Defend" Position="1230 2400" Valid="1.5" />
	<action Triggers="35" Player="0" Type="UnitCreate" Count="1" Unit="GAAM" State="Defend" Position="1230 2520" Valid="2" />

	<!-- if HQ is destroyed tutorial over -->
	<trigger Id="36" Type="Units" Player="0" Unit="3965" Compare="LTE" Count="0" />
	<action Triggers="36" Type="ObjectiveFailed" Objective="6" Valid="1" />

	<!-- if all objectives are complete except spec mine remind player to explore SE for orange unique resource -->
	<trigger Id="45" Type="Units" Player="0" Unit="Spec Mine" Compare="GT" Count="0" />
	<action Triggers="8,9,10,16,20,24!,45!" Combine="All" Type="Text" Text="[ops]To build a Spec Mine you must locate a unique resource in the Southeast area of the map.  The unique resource will be an orange crystal named Xephal." LocaleId="150" Valid="180" />

	<!-- mission complete -->
	<action Triggers="8,9,10,16,20,24" Combine="All" Type="Text" Text="[ops smile]Way to go completing the tutorial!  [ops]You are now ready to start the campaign missions.  [ops smile]Good luck :)" LocaleId="153" />

</mission>

</campaign>