1 <?xml version="1.0" standalone="yes" ?>
3 <difficulty value="3"/>
5 <player control="human" faction="magic" team="1"/>
6 <player control="cpu" faction="magic" team="1"/>
7 <player control="cpu" faction="magic" team="2"/>
8 <player control="cpu" faction="tech" team="2"/>
10 <map value="in_the_forest"/>
11 <tileset value="forest"/>
12 <tech-tree value="megapack"/>
13 <default-resources value="false"/>
14 <default-units value="false"/>
15 <default-victory-conditions value="false"/>
24 createUnit('mage_tower', 1, startLocation(2))
25 giveResource('gold', 1, 1000);
26 giveResource('wood', 1, 1000);
27 createUnit('summoner_guild', 1, startLocation(2))
28 giveUpgradeCommand(lastCreatedUnit(), 'ancient_summoning')
29 createUnit('energy_source', 1, startLocation(2))
30 createUnit('summoner', 1, startLocation(2))
31 summonerUnit= lastCreatedUnit()
32 setCameraPosition(unitPosition(summonerUnit))
33 givePositionCommand(summonerUnit, 'attack', startLocation(1))
37 createUnit('battlemage', 0, startLocation(2))
40 createUnit('daemon', 0, startLocation(2))
44 createUnit('library', 2, startLocation(1))
45 libraryUnit= lastCreatedUnit()
46 createUnit('golem', 2, startLocation(1))
48 --create enemy attackers
50 createUnit('daemon', 2, startLocation(1))
51 givePositionCommand(lastCreatedUnit(), 'attack', startLocation(2))
53 createUnit('ghost_armor', 2, startLocation(1))
54 givePositionCommand(lastCreatedUnit(), 'attack', startLocation(2))
57 objective='destroy_west_village'
58 showMessage('Brief1', 'Storming')
59 setDisplayText('ObjectiveWest')
64 --send units attack location 0
65 if objective=='destroy_north_east_village' and unitFaction(lastCreatedUnit())==1 then
66 firstArmorUnit=lastCreatedUnit()
67 givePositionCommand(lastCreatedUnit(), 'attack', startLocation(0))
68 if summonerUnit ~= nil then
69 givePositionCommand(summonerUnit, 'attack', startLocation(0))
73 createUnit('guard', 3, startLocation(0))
74 givePositionCommand(lastCreatedUnit(), 'attack', startLocation(1))
78 --send units attack location 3
79 if objective=='destroy_south_east_village' and unitFaction(lastCreatedUnit())==1 then
80 givePositionCommand(lastCreatedUnit(), 'attack', startLocation(3))
82 if firstArmorUnit ~= nil then
83 givePositionCommand(firstArmorUnit, 'attack', startLocation(3))
85 if summonerUnit ~= nil then
86 givePositionCommand(summonerUnit, 'attack', startLocation(3))
89 --create enemy attackers
90 createUnit('ornithopter', 3, startLocation(3))
91 givePositionCommand(lastCreatedUnit(), 'attack', startLocation(0))
92 createUnit('archmage', 2, startLocation(3))
93 givePositionCommand(lastCreatedUnit(), 'attack', startLocation(0))
94 createUnit('battlemage', 2, startLocation(3))
95 givePositionCommand(lastCreatedUnit(), 'attack', startLocation(0))
100 if lastDeadUnit()==firstArmorUnit then
104 --check for summoner dying
105 if lastDeadUnit()==summonerUnit then
113 --check for first village destroyed
114 if lastDeadUnit()==libraryUnit then
117 if summonerUnit ~= nil then
118 giveProductionCommand(summonerUnit, 'ghost_armor')
121 --send reinforcements
122 createUnit('daemon', 0, startLocation(2))
123 givePositionCommand(lastCreatedUnit(), 'move', startLocation(1))
125 --send reinforcements
126 createUnit('battlemage', 0, startLocation(2))
127 givePositionCommand(lastCreatedUnit(), 'move', startLocation(1))
129 --create next village
130 createUnit('guard', 3, startLocation(0))
131 createUnit('farm', 3, startLocation(0))
132 createUnit('technodrome', 3, startLocation(0))
133 technodromeUnit= lastCreatedUnit()
135 --create enemy attackers
137 createUnit('archer', 3, startLocation(0))
138 givePositionCommand(lastCreatedUnit(), 'attack', startLocation(1))
140 createUnit('swordman', 3, startLocation(0))
141 givePositionCommand(lastCreatedUnit(), 'attack', startLocation(1))
144 objective='destroy_north_east_village'
145 setDisplayText('ObjectiveNorthEast')
148 --check for second village destroyed
149 if lastDeadUnit()==technodromeUnit then
151 technodromeUnit = nil
153 if summonerUnit ~= nil then
154 giveProductionCommand(summonerUnit, 'ghost_armor')
157 --create next village
158 createUnit('farm', 3, startLocation(3))
159 createUnit('aerodrome', 3, startLocation(3))
160 createUnit('behemoth', 2, startLocation(3))
161 createUnit('archmage_tower', 2, startLocation(3))
162 archmageTowerUnit= lastCreatedUnit()
165 objective='destroy_south_east_village'
166 setDisplayText('ObjectiveSouthEast')
169 --check for last village destroyed
170 if lastDeadUnit()==archmageTowerUnit then
171 archmageTowerUnit = nil