[mission]
name = 0
mapwidth = 20
mapheight = 15
info = 3
skirmish = 1
campaign = 0
campaignname = -1
campaigninfo = -1
players = 1
tileset = default
unitset = default

[map-raw]
30,180,30,30,30,30,78,71,65,79,77,78,360,360,360,30,30,30,30,30
30,30,177,177,77,79,70,73,72,82,38,81,30,365,360,360,30,360,360,360
117,30,74,30,181,78,80,98,104,99,81,82,79,80,360,360,360,360,360,360
117,117,30,30,180,181,30,96,30,87,81,82,81,80,78,80,360,30,30,30
117,117,30,30,55,179,98,57,58,94,82,81,82,77,77,30,30,19,30,30
117,117,30,30,182,56,88,30,59,30,90,99,81,78,30,224,224,176,177,183
76,80,30,30,180,181,88,57,58,30,30,87,30,227,224,30,30,176,56,30
80,78,30,30,30,176,93,89,59,30,30,95,30,222,30,30,34,176,30,30
81,79,30,30,30,176,142,34,89,101,91,37,31,225,30,31,30,176,30,207
81,30,77,80,30,179,133,30,30,38,30,224,224,38,30,30,30,190,207,30
82,77,30,178,178,30,143,30,30,224,224,76,30,30,32,30,30,205,30,35
82,79,182,78,30,30,30,30,224,30,30,31,30,117,38,117,30,176,30,30
117,77,176,30,30,30,30,30,30,30,30,38,36,117,117,75,30,179,30,30
117,38,176,3,21,23,144,134,30,35,75,117,117,117,117,178,178,53,30,76
117,178,185,177,24,30,30,30,134,134,117,117,117,182,178,30,67,30,30,30

[player]
name = 1
briefing = 6
fcolor = 254,166,4
bcolor = 86,54,12

[player]
name = 2
briefing = -1
fcolor = 0,170,255
bcolor = 2,38,92

[unit]
type = Medium Tanks
player = 1
id = 0
pos = 8/10
xp = 6
face = 1

[unit]
type = Medium Tanks
player = 1
id = 1
pos = 5/4

[unit]
type = Medium Tanks
player = 2
id = 2
pos = 9/9
face = 4

[unit]
type = Medium Tanks
player = 2
id = 3
pos = 5/3

[building]
name = 4
player = 1
id = 0
pos = 3/13
type = workshop
type = factory
crystals = 10
capacity = 1000
minweight = 0
maxweight = 99

[building]
name = 5
player = 2
id = 1
pos = 17/4
type = workshop
type = factory
factory = Infantry
crystals = 0
capacity = 1000
minweight = 0
maxweight = 99

[event]
id = 0
type = message
player = 1
message = 7
trigger = timer
ttime = 0

[event]
id = 1
type = message
player = 1
message = 8
trigger = unitdestroyed
tunit = -1
towner = 2

[event]
id = 2
type = mining
player = 1
depend = 3
message = 9
trigger = unitposition
tunit = 0
towner = 1
tpos = 3/13
building = 0
crystals = 20
action = 1

[event]
id = 3
type = research
player = 1
depend = 2
trigger = unitposition
tunit = 1
towner = 1
tpos = 3/13
building = 0
unit = Medium Tanks

[event]
id = 4
type = mining
player = 2
depend = 2
trigger = timer
ttime = 0
building = 1
crystals = 8
action = 2

[event]
id = 5
type = settimer
player = 1
depend = 2
trigger = timer
ttime = 0
event = 6
time = 6
offset = 1

[event]
id = 6
type = mining
player = 1
message = 10
flags = 1
trigger = timer
ttime = 6
building = 1
crystals = 15
action = 2

[event]
id = 7
type = research
player = 2
depend = 6
trigger = timer
ttime = 0
building = 1
unit = Medium Tanks

[event]
id = 8
type = research
player = 2
depend = 6
trigger = timer
ttime = 0
building = 1
unit = Infantry
action = 1

[event]
id = 9
type = settimer
player = 1
depend = 6
trigger = timer
ttime = 0
event = 10
time = 10
offset = 1

[event]
id = 10
type = research
player = 1
message = 11
flags = 1
trigger = timer
ttime = 10
building = 0
unit = Infantry

[event]
id = 11
type = score
player = 1
message = 12
trigger = havebuilding
tbuilding = 1
towner = 1
ttime = -1
success = 100
othermsg = -1
othertitle = -1

[event]
id = 12
type = mining
player = 1
depend = 10
trigger = timer
ttime = 0
building = 0
crystals = 8
action = 1

[event]
id = 13
type = score
player = 2
trigger = havebuilding
tbuilding = 0
towner = 2
ttime = -1
success = 100
othermsg = 14
othertitle = -1

[event]
id = 14
type = score
player = 2
trigger = unitdestroyed
tunit = 0
towner = 1
success = 100
othermsg = 13
othertitle = -1

[event]
id = 15
type = score
player = 2
trigger = unitdestroyed
tunit = 1
towner = 1
success = 100
othermsg = 13
othertitle = -1

[messages(en)]
Tutorial #2:
%
Rookie
%
Simulator
%
The Art of War, Lesson 2:

by Andrej Krivulčík <thefox@pobox.sk>
%
Depot
%
Enemy Base
%
This is a tutorial mission designed for a single player.
%
1st briefing message

Welcome, Commander!

This mission will concern close-range battle against real enemy. The point of this mission is to understand the importance of ranking and controlling skilled veteran units.

Right now, you have control of two Medium tanks units. Each has been attacked by enemy Medium tanks. You must destroy these units.

Notice that the veteran tanks can easily outperform the rookie unit while your unskilled unit will struggle against the enemy.

However, avoid losing any of your units. If necessary, retreat with your damaged tanks and get help from the veteran unit.
%
2 after destroying both enemy tanks (return home)

Well done, Commander. This was the first real force you defeated in your training. You should be prepared to destroy much more enemy units in future.

Enemy tanks are destroyed but your tanks got some beating as well. Retreat them to our depot so that you can repair any damages. You can do this by selecting your damaged unit in the depot window and clicking the "Repair" button (it looks like a cross with a wrench).

Repairing costs 5 crystals regardless of amount of damage and it lowers unit's experience by one rank for each two squad rookies. Take into account that units can be repaired only in shops that are workshops (indicated by the wrench icon next to the depot name in the main map view).
%
3 after returning - (build tanks)

Good. Now you can repair your damaged tanks. Additionally, we have allocated some more resources to the depot so that you can manufacture another unit.

You can build a unit by clicking the production button (which looks like a hammer). You will be presented with the list of units available to produce along with their cost. If you don't have enough crystals to build a unit, a red dot will appear on it's icon.

You can build units only in factory (a hammer is shown next to factory name in the main map view) and not all types of units can be built in a factory. The only unit you can build at this time is Medium tanks.
%
4 watch the ranking

Warning! Your enemy is launching an attack on your depot. Skirmish is inevitable. Proceed towards enemy base and destroy any opposing force. Be careful again not to lose any units.

As your units will fight, they will earn experience. A unit receives one experience point for damaging enemy unit in fight. If a unit destroys enemy unit, it is awarded three experience points. Every three experience points the unit advances to a new rank. It will have better combat skills then.

Watch your units gaining experience and notice that they are more and more efficient in battle as they advance.
%
5 timer - you have infantry, build it and conquer the base

You can now see that skilled units can easily beat units that have just left the factory. We have allocated some more resources to the depot and you can now build Infantry. Build a squad of infantry and conquer enemy base!
%
Mission complete

Mission accomplished!

The base is now under your control, which means another advantage over your enemy. You should now know how to build and repair units and understand the difference the ranking can make.
%
Unfortunately you lost one of your vital units. We have to abort the mission.
%
Our depot fell into enemy's hands! This mission can not continue.
[/messages]

