-
Notifications
You must be signed in to change notification settings - Fork 0
/
possession_obsession.xml
117 lines (94 loc) · 3.38 KB
/
possession_obsession.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<?xml version="1.0" standalone="yes" ?>
<!-- version 0.1.0 -->
<scenario>
<difficulty value="3"/>
<players>
<player control="cpu-mega" faction="tech" team="2"/>
<player control="human" faction="tech" team="1"/>
<player control="cpu-mega" faction="tech" team="2"/>
<player control="cpu-mega" faction="tech" team="2"/>
</players>
<map value="island_siege"/>
<tileset value="forest"/>
<tech-tree value="alphapack"/>
<default-resources value="false"/>
<default-units value="false"/>
<default-victory-conditions value="true"/>
<fog-of-war value="explored"/>
<scripts>
<startup>
createUnit('castle', 1, startLocation(1))
createUnit('swordman', 1, startLocation(1))
createUnit('archer_', 1, startLocation(1))
createUnit('battle_machine', 1, startLocation(1))
createUnit('worker', 1, startLocation(1))
createUnit('worker', 1, startLocation(1))
createUnit('worker', 1, startLocation(1))
createUnit('guard_', 1, startLocation(1))
createUnit('archer_', 1, startLocation(1))
createUnit('catapult_', 1, startLocation(1))
createUnit('cow', 1, startLocation(1))
giveResource('gold', 1, 500);
giveResource('wood', 1, 500);
giveResource('stone', 1, 500);
giveResource('food', 1, 300);
createUnit('colosseum', 0, startLocation(0))
createUnit('guard_tower', 0, startLocation(0))
createUnit('swordsman', 0, startLocation(0))
createUnit('spearman_', 0, startLocation(0))
createUnit('spearman_', 0, startLocation(0))
createUnit('spearman_', 0, startLocation(0))
createUnit('archer', 0, startLocation(0))
createUnit('archer', 0, startLocation(0))
createUnit('catapult', 0, startLocation(0))
createUnit('guard', 0, startLocation(0))
createUnit('slave', 0, startLocation(0))
createUnit('slave', 0, startLocation(0))
createUnit('slave', 0, startLocation(0))
createUnit('cow', 0, startLocation(0))
giveResource('gold', 0, 500);
giveResource('wood', 0, 500);
giveResource('stone', 0, 500);
giveResource('food', 0, 300);
createUnit('mage_tower', 2, startLocation(2))
createUnit('golem', 2, startLocation(2))
createUnit('summoner', 2, startLocation(2))
createUnit('ghost_armor', 2, startLocation(2))
createUnit('battlemage', 2, startLocation(2))
createUnit('library', 2, startLocation(2))
createUnit('archmage_tower', 2, startLocation(2))
createUnit('daemon', 2, startLocation(2))
createUnit('daemon', 2, startLocation(2))
createUnit('initiate', 2, startLocation(2))
createUnit('initiate', 2, startLocation(2))
createUnit('initiate', 2, startLocation(2))
giveResource('gold', 2, 500);
giveResource('wood', 2, 500);
giveResource('stone', 2, 500);
giveResource('energy', 2, 14);
createUnit('pyramid', 3, startLocation(3))
createUnit('slave_', 3, startLocation(3))
createUnit('slave_', 3, startLocation(3))
createUnit('slave_', 3, startLocation(3))
createUnit('priest', 3, startLocation(3))
createUnit('spearman', 3, startLocation(3))
createUnit('spearman', 3, startLocation(3))
createUnit('spearthrower', 3, startLocation(3))
createUnit('farm', 3, startLocation(3))
createUnit('chicken', 3, startLocation(3))
giveResource('gold', 3, 500);
giveResource('wood', 3, 500);
giveResource('stone', 3, 500);
giveResource('food', 3, 300);
</startup>
<unitDied>
unitB = lastDeadUnitKiller()
unitA = lastDeadUnit()
if lastDeadUnitCauseOfDeath() ~= 3 then
if unitFaction(unitB) ~= unitFaction(unitA) then
createUnitNoSpacing(unitName(unitA), unitFaction(unitB), unitPosition(unitA))
end
end
</unitDied>
</scripts>
</scenario>