/
22_Northern_Battle.cfg
390 lines (352 loc) · 10.2 KB
/
22_Northern_Battle.cfg
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
#textdomain wesnoth-low
[scenario]
name= _ "Northern Battle"
id=22_Northern_Battle
next_scenario=23_End_of_War
experience_modifier=100
random_start_time=no
allow_new_game=no
{LOW_MAP North_Elves.map}
{LOW_MASK 22_Northern_Battle.mask 1 1}
{NORTH_ELVES_VILLAGES}
{TURNS 40 36 32}
{DEFAULT_SCHEDULE}
{INTRO_AND_SCENARIO_MUSIC elf-land.ogg breaking_the_chains.ogg}
{EXTRA_SCENARIO_MUSIC legends_of_the_north.ogg}
{EXTRA_SCENARIO_MUSIC elvish-theme.ogg}
{EXTRA_SCENARIO_MUSIC the_city_falls.ogg}
{EXTRA_SCENARIO_MUSIC nunc_dimittis.ogg}
{EXTRA_SCENARIO_MUSIC silvan_sanctuary.ogg}
{EXTRA_SCENARIO_MUSIC weight_of_revenge.ogg}
{EXTRA_SCENARIO_MUSIC casualties_of_war.ogg}
[story]
[part]
story= _ "It was clear to Kalenz and Cleodil that there would be no sanctuary for them while Landar lived. But during their years in seclusion the fame of their deeds had only grown. Many healers and sorceresses responded to Cleodil’s call, and Kalenz found that recruits came to him as readily as if he were still High Lord in name."
[/part]
[part]
story= _ "Kalenz’s veterans joined the host of the Northern Elves under Uradredia. Very soon, Landar’s army appeared..."
{LOW_BIGMAP}
{CIVILWAR_STAGE2}
[/part]
[/story]
[side]
side=1
{PLAYABLE}
save_id=Kalenz
disallow_shuffle=yes
{GOLD 250 225 200}
{KALENZ}
x=46
y=39
#ifndef MULTIPLAYER
[unit]
{CLEODIL}
#TODO place on her keep
placement=leader
[/unit]
#endif
[/side]
[event]
name=prestart
# modify 2/3 of the non-loyal, non-shaman-line units to join Landar
# TODO: This this still needed in mp?
{MODIFY_UNIT (id=Landar) side 3}
[store_unit]
#TODO spellcheck
variable=steal_wearer
kill=yes
[filter]
side=1
x,y=recall,recall
[not]
id=Kalenz
[/not]
[not]
# wmllint: recognize Anduilas
id=Anduilas
[/not]
[not]
{FILTER_LOYALS}
[/not]
[not]
type={ELVES_NON_STEEL}
[/not]
[/filter]
[/store_unit]
[foreach]
array=steal_wearer
[do]
{RANDOM (2,1,2)}
[if]
[variable]
name=random
numerical_equals=1
[/variable]
[then]
{VARIABLE this_item.side 2}
{VARIABLE this_item.role kalenz_loyal}
[unstore_unit]
variable=this_item
x,y=recall,recall
[/unstore_unit]
[/then]
[else]
{VARIABLE this_item.side 3}
{VARIABLE this_item.role landar_loyal}
[unstore_unit]
variable=this_item
x,y=recall,recall
[/unstore_unit]
[/else]
[/if]
[/do]
[/foreach]
{CLEAR_VARIABLE steal_wearer}
# recall our loyals
{RECALL_LOYALS}
[recall]
id=Landar
x=15
y=38
[/recall]
[/event]
# wmllint: recognize Uradredia
[event]
name=scenario_end
[filter_condition]
[proceed_to_next_scenario]
[/proceed_to_next_scenario]
[/filter_condition]
{MODIFY_UNIT (side=2
[not]
id=Uradredia
[/not]) side 1}
[/event]
[event]
name=start
[message]
speaker=narrator
message= _ "Kalenz can only recall shamans and their advancements from his former army; the rest of his men joined Uradredia before he arrived."
image=wesnoth-icon.png
[/message]
[/event]
[side]
side=2
no_leader=yes
[unit]
{URADREDIA}
x=24
y=7
[/unit]
persistent=yes
save_id=Uradredia
allow_player=no
{PLAYER_TEAM}
recruit=Elvish Fighter, Elvish Archer, Elvish Shaman, Elvish Hero, Elvish Marksman, Elvish Ranger, Elvish Druid, Elvish Sorceress
[ai]
{AI_SIMPLE_ALWAYS_ASPECT passive_leader_shares_keep yes}
{AI_SIMPLE_ALWAYS_ASPECT villages_per_scout 0}
{AI_SIMPLE_ALWAYS_ASPECT aggression 0.0}
{AI_SIMPLE_ALWAYS_ASPECT caution 0.75}
{AI_SIMPLE_ALWAYS_ASPECT grouping defensive}
[/ai]
[/side]
[side]
side=3
#ifndef MULTIPLAYER
controller=ai
allow_player=no
{GOLD 400 500 600}
#else
{GOLD 250 275 300}
{PLAYABLE}
#endif
no_leader=yes
team_name=landar
persistent=yes
save_id=Landar
disallow_shuffle=yes
user_team_name= _ "Enemies"
#ifdef EASY
recruit=Elvish Archer, Elvish Fighter
#endif
#ifdef NORMAL
recruit=Elvish Archer, Elvish Fighter, Elvish Hero
#endif
#ifdef HARD
recruit=Elvish Archer, Elvish Fighter, Elvish Hero, Elvish Ranger
#endif
[ai]
passive_leader=yes
{NO_SCOUTS}
#ifndef HARD
recruitment_pattern=archer, fighter
#else
recruitment_pattern=archer, fighter, mixed fighter
#endif
[/ai]
{INCOME 4 8 12}
[/side]
[event]
name=prestart
# TODO: shouldn't Landar already be able to recuit?
{MODIFY_UNIT id=Landar canrecruit yes}
[/event]
[side]
side=4
allow_player=no
persistent=yes
save_id=Crintil
team_name=landar
user_team_name= _ "Enemies"
type=Elvish Marshal
id=Crintil
name=_ "Crintil"
canrecruit=yes
x=41
y=29
#ifdef EASY
recruit=Elvish Archer, Elvish Fighter
#endif
#ifdef NORMAL
recruit=Elvish Archer, Elvish Fighter, Elvish Hero
#endif
#ifdef HARD
recruit=Elvish Archer, Elvish Fighter, Elvish Hero, Elvish Ranger
#endif
{GOLD 180 220 260}
[ai]
{NO_SCOUTS}
#ifndef HARD
recruitment_pattern=archer, fighter
#else
recruitment_pattern=archer, fighter, mixed fighter
#endif
[/ai]
[/side]
[event]
name=prestart
[allow_recruit]
side=4
#ifdef EASY
type=Elvish Archer, Elvish Fighter
#endif
#ifdef NORMAL
type=Elvish Archer, Elvish Fighter, Elvish Hero
#endif
#ifdef HARD
type=Elvish Archer, Elvish Fighter, Elvish Hero, Elvish Ranger
#endif
[/allow_recruit]
[/event]
[event]
name=prestart
[objectives]
side=1
[objective]
description= _ "Defeat all enemy leaders"
condition=win
[/objective]
[objective]
description= _ "Survive for six days"
condition=win
show_turn_counter=yes
[/objective]
[objective]
description= _ "Death of Kalenz"
condition=lose
[/objective]
#ifdef MULTIPLAYER
[objective]
description= _ "Death of Cleodil"
condition=lose
[/objective]
#endif
[objective]
description= _ "Death of Uradredia"
condition=lose
[/objective]
[gold_carryover]
bonus=yes
carryover_percentage=40
[/gold_carryover]
[/objectives]
[objectives]
side=3
[objective]
description= _ "Death of Kalenz"
condition=win
[/objective]
[objective]
description= _ "Death of Landar"
condition=lose
[/objective]
[objective]
description= _ "Kalenz survives for six days"
condition=lose
show_turn_counter=yes
[/objective]
[gold_carryover]
bonus=yes
carryover_percentage=40
[/gold_carryover]
[note]
description= _ "If you lose you still have a chance to defeat Kalenz in the next scenario."
[/note]
[/objectives]
[/event]
[event]
name=start
[message]
id=Kalenz
message= _ "Landar, listen to me! It does not have to come to this. I know about the potion. Let us help!"
[/message]
[message]
id=Landar
message= _ "Here is Kalenz. There can be no talk with traitors! Leave none of them alive!"
[/message]
[/event]
[event]
name=moveto
[filter]
side=1,2
[filter_adjacent]
id=Landar
[/filter_adjacent]
[/filter]
[message]
id=Landar
message= _ "Things are not going well! Retreat! We will meet again, traitors!"
[/message]
[endlevel]
result=victory
[result]
side = 3
result = "defeat"
{NEW_GOLD_CARRYOVER 40}
[/result]
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/event]
[event]
name=time over
[message]
id=Landar
message= _ "We have yet to break their defenses! While we are getting weaker, the enemy is getting stronger! Retreat!"
[/message]
[message]
id=Kalenz
message= _ "We won!"
[/message]
[endlevel]
result=victory
[result]
side = 3
result = "defeat"
{NEW_GOLD_CARRYOVER 40}
[/result]
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/event]
{campaigns/Legend_of_Wesmere/utils/deaths.cfg}
[/scenario]