1 <?xml version="1.0" standalone="yes" ?>
3 <difficulty value="1"/>
5 <player control="cpu" faction="tech" team="1"/>
6 <player control="human" faction="magic" team="2"/>
7 <player control="closed"/>
8 <player control="closed"/>
10 <map value="valley_of_death"/>
11 <tileset value="spring"/>
12 <tech-tree value="megapack"/>
13 <default-resources value="false"/>
14 <default-units value="false"/>
15 <default-victory-conditions value="false"/>
19 createUnit('mage_tower', 1, startLocation(1))
20 setCameraPosition(unitPosition(lastCreatedUnit()))
21 createUnit('energy_source', 1, startLocation(1))
22 createUnit('initiate', 1, startLocation(1))
23 createUnit('initiate', 1, startLocation(1))
24 giveResource('gold', 1, 500)
25 giveResource('stone', 1, 500)
26 giveResource('wood', 1, 500)
27 showMessage('Welcome', 'GlestAdvancedTutorial')
28 showMessage('MagicBrief', 'GlestAdvancedTutorial')
29 showMessage('InitiateBrief', 'GlestAdvancedTutorial')
30 showMessage('InitiatePromotion', 'Promoting')
31 setDisplayText('PromoteInitiate')
32 objective= 'produce_battlemage'
37 <unitCreatedOfType type="battlemage">
38 if objective=='produce_battlemage' then
39 showMessage('BattlemageBrief', 'WellDone')
40 showMessage('EnergyBrief', 'Energy')
41 setDisplayText('BuildEnergySource')
42 objective= 'build_energy_source'
45 <unitCreatedOfType type="energy_source">
46 if objective=='build_energy_source' then
47 showMessage('EnergyBrief2', 'WellDone')
48 showMessage('SummonedUnitsBrief', 'Summoning')
49 setDisplayText('ProduceSummoner')
50 objective= 'produce_summoner'
53 <unitCreatedOfType type="summoner">
54 if objective=='produce_summoner' then
55 showMessage('SummonerBrief', 'WellDone')
56 setDisplayText('ProduceDaemon')
57 objective= 'produce_daemon'
60 <unitCreatedOfType type="daemon">
61 if objective=='produce_daemon' then
62 showMessage('DaemonBrief', 'WellDone')
63 showMessage('OtherSummonedCreatures', 'Summoning')
64 showMessage('GhostArmorRequirements', 'Summoning')
65 setDisplayText('ProduceGhostArmor')
66 objective= 'produce_ghost_armor'
69 <unitCreatedOfType type="ghost_armor">
70 if objective=='produce_ghost_armor' then
71 showMessage('GhostArmorBrief', 'WellDone')
72 showMessage('RitualBrief', 'Ritual')
73 setDisplayText('ProduceGolem')
74 objective= 'produce_golem'
77 <unitCreatedOfType type="golem">
78 if objective=='produce_golem' then
79 showMessage('GolemBrief', 'WellDone')
80 showMessage('ArmyManagement', 'Armies')
81 showMessage('DoubleClickBrief', 'Armies')
82 showMessage('GroupSelectBrief', 'Armies')
83 showMessage('FinalMission', 'Armies')
84 objective= 'defeat_enemy'
85 setDisplayText('DefeatEnemy')
86 createUnit('farm', 0, startLocation(0))
87 createUnit('barracks', 0, startLocation(0))
88 createUnit('swordman', 0, startLocation(0))
89 createUnit('swordman', 0, startLocation(0))
90 createUnit('archer', 0, startLocation(0))
94 if objective=='defeat_enemy' and unitCount(0)==0 then
95 setDisplayText('WellDoneNextScenarios')
97 timer_event1 = startTimerEvent()
102 if triggeredTimerEventId() == timer_event1 then
103 if timerEventSecondsElapsed(triggeredTimerEventId()) >= 5 then
105 stopTimerEvent(triggeredTimerEventId())