-
-
Notifications
You must be signed in to change notification settings - Fork 991
/
01_The_Uprooting.cfg
603 lines (559 loc) · 17.8 KB
/
01_The_Uprooting.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
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
#textdomain wesnoth-low
[scenario]
name= _ "The Uprooting"
id=01_The_Uprooting
next_scenario=02_Hostile_Mountains
random_start_time=no
allow_new_game=yes
new_game_title= _ "Chapter One: Flight and Fight"
force_lock_settings=yes
experience_modifier=100
{LOW_MAP Lintanir.map}
{LOW_MASK 01_The_Uprooting.mask 1 1}
{TURNS 20 17 14}
{INTRO_AND_SCENARIO_MUSIC elf-land.ogg breaking_the_chains.ogg}
{EXTRA_SCENARIO_MUSIC elvish-theme.ogg}
{EXTRA_SCENARIO_MUSIC nunc_dimittis.ogg}
{EXTRA_SCENARIO_MUSIC casualties_of_war.ogg}
{EXTRA_SCENARIO_MUSIC silvan_sanctuary.ogg}
{DEFAULT_SCHEDULE_DUSK}
{STARTING_VILLAGES_ALL 3}
[story]
[part]
delay=4000
title= _ "<i>The Legend of Wesmere</i>
Chapter One"
[/part]
[part]
title= _ "Chapter One
<i>Flight and Fight</i>"
[/part]
[part]
story=_ "The great elven heroes Kalenz and Landar were born in a quiet green wood in Lintanir on the fringes of the Great Northern Forest."
{LOW_BIGMAP}
{NEW_REST 1094 444}
[/part]
[part]
story=_ "Though not of noble birth, Kalenz showed early promise in the arts of his people. His quick intelligence gained him more than usual respect among elders normally inclined to pay little heed to anyone younger than a century old."
delay=4000
background="story/characters/kalenz.png"
scale_background=no
[/part]
[part]
story=_ "Landar and Kalenz were friends from childhood. He too attracted the attention of elders, at first because of a knack for mischief and pranks. But there was no real harm in the boy, and his jokes made him popular among the younger elves."
delay=4000
background="story/characters/landar.png"
scale_background=no
[/part]
[part]
story=_ "Perhaps the elders sensed that changing times would require more flexible minds; these were the years when humans from the Green Isle were establishing themselves south of the Great River, and the known world was changing more rapidly than it had for a thousand years before."
delay=4000
[/part]
[part]
story=_ "Some changes were good. The Elves, awakened as from a long dream, began to increase in population. But some were very bad, and the worst of those was the coming of the orcs, the wreckers, the tree-killers. The years of their long childhoods were a golden age, and the last time of untroubled peace."
delay=4000
[/part]
[part]
story=_ "The elves had never been a martial people, and they were not prepared for the inevitable war with the orcs. The friends came of age in the very year that Erlornas of Wesmere fought the first orcish raiders. Within the next decade orcish raids greatly increased, and their shadow loomed ever greater over the elves.
This is the story of Kalenz, Landar, and of the Elves in the first days of the humans in Wesnoth."
delay=8000
background="story/landscape-battlefield.jpg"
[/part]
[/story]
{LOW_TRACK {FLIGHT_STAGE1} }
#### Kalenz's side ####
#define SINGLEPLAYER_GOLD
{GOLD 240 200 180}
{INCOME -2 -2 -2}
village_gold=1
#enddef
#define MULTIPLAYER_GOLD
{GOLD 120 100 90}
{INCOME -2 -2 -2}
village_gold=1
#enddef
[side]
fog=no
shroud=no
# wmllint: who KALENZ is Kalenz
{KALENZ}
{PLAYABLE}
type=Elvish Fighter
save_id=Kalenz
extra_recruit=Elvish Fighter, Elvish Archer
recruit=""
x=16
y=15
#ifndef MULTIPLAYER
[unit]
# wmllint: who LANDAR is Landar
{LANDAR}
extra_recruit=Elvish Fighter, Elvish Archer
x=18
y=15
[/unit]
[unit]
# wmllint: who ARKILDUR is Arkildur
{ARKILDUR}
x=19
y=16
[/unit]
{SINGLEPLAYER_GOLD}
#else
{MULTIPLAYER_GOLD}
#endif
[unit]
# wmllint: who ANDUILAS is Anduilas
{ANDUILAS}
x=15
y=16
[/unit]
[/side]
[event]
name=last breath
[filter_second]
id=Kalenz
[/filter_second]
[message]
speaker=second_unit
message= _ "You trifled with the wrong elf!"
[/message]
[/event]
[event]
name=last breath
[filter_second]
id=Landar
[/filter_second]
[message]
speaker=second_unit
message= _ "Take that, you orcish scum!"
[/message]
[/event]
#### /Kalenz side ####
#### Landar's side ####
{MP_SIDE 2 (
save_id=Landar
{PLAYABLE}
{LANDAR}
type=Elvish Archer
extra_recruit=Elvish Fighter, Elvish Archer
x=18
y=15
fog=no
shroud=no
recruit=""
{MULTIPLAYER_GOLD}
[unit]
{ARKILDUR}
x=19
y=16
[/unit]
)}
#### Landar's side ####
[side]
side=3
id=Velon
{ELF_SETUP}
village_gold=1
controller=ai
allow_player=no
name= _ "Velon"
{PLAYER_TEAM}
recruit=Elvish Fighter,Elvish Archer
{GOLD 150 180 200}
type=Elvish Captain
profile="portraits/velon.png"
canrecruit=yes
x=5
y=15
[modifications]
{TRAIT_AGED}
{TRAIT_INTELLIGENT}
[/modifications]
{ai/aliases/stable_singleplayer.cfg}
[ai]
{AI_SIMPLE_ALWAYS_ASPECT village_value 0}
{AI_SIMPLE_ALWAYS_ASPECT leader_value 0}
{AI_SIMPLE_ALWAYS_ASPECT_VALUE avoid (
x=1-30,1-30,1-3,7-30
y=1-13,17-30,1-30,1-30
)}
[/ai]
[/side]
[side]
side=4
id=Tbaran
name= _ "T’baran"
team_name=orcs
user_team_name= _ "Enemies"
allow_player=no
controller=ai
{ORC_SETUP}
#{FLAG_VARIANT undead}
type=Orcish Warrior
canrecruit=yes
x=27
y=14
#ifdef EASY
recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Goblin Knight, Goblin Pillager
#endif
#ifdef NORMAL
recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Goblin Knight, Goblin Pillager, Orcish Slayer
#endif
#ifdef HARD
recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Goblin Knight, Goblin Pillager, Orcish Slayer, Orcish Warrior
#endif
{GOLD 120 160 200}
{INCOME 10 20 30}
{ai/aliases/stable_singleplayer.cfg}
[ai]
{AI_NO_SCOUTS}
{AI_SCALE_ATTACK_DEPTH_BY_DIFFICULTY}
{AI_SIMPLE_ALWAYS_ASPECT recruitment_ignore_bad_movement yes}
{AI_SIMPLE_ALWAYS_ASPECT recruitment_pattern "fighter,fighter,archer,fighter,fighter,mixed fighter,scout"}
{AI_SIMPLE_ALWAYS_ASPECT aggression 0.75}
{AI_SIMPLE_ALWAYS_ASPECT caution 0}
{AI_SIMPLE_ALWAYS_ASPECT grouping no}
[/ai]
[/side]
[side]
side=5
allow_player=no
controller=ai
id=Wrulf
name= _ "Wrulf"
team_name=orcs
user_team_name= _ "Enemies"
{ORC_SETUP}
#{FLAG_VARIANT undead}
type=Orcish Warrior
canrecruit=yes
x=7
y=29
recruit=Orcish Archer, Orcish Assassin, Orcish Grunt
{GOLD 120 140 160}
{INCOME 10 20 30}
{ai/aliases/stable_singleplayer.cfg}
[ai]
{AI_NO_SCOUTS}
{AI_SIMPLE_ALWAYS_ASPECT recruitment_ignore_bad_movement yes}
{AI_SIMPLE_ALWAYS_ASPECT recruitment_pattern "fighter,mixed fighter,archer,mixed fighter"}
{AI_SIMPLE_ALWAYS_ASPECT grouping no}
{AI_SCALE_ATTACK_DEPTH_BY_DIFFICULTY}
{AI_SIMPLE_ALWAYS_ASPECT aggression 0.75}
#ifdef EASY
{AI_SIMPLE_NIGHT_ASPECT leader_aggression 0.5}
#endif
#ifdef NORMAL
{AI_SIMPLE_NIGHT_ASPECT leader_aggression -0.5}
#endif
{AI_SIMPLE_DAY_ASPECT caution 0}
{MODIFY_AI_ADD_CANDIDATE_ACTION 4 main_loop {AI_CA_POISONING}}
[/ai]
[/side]
[side]
side=6
allow_player=no
controller=ai
team_name=orcs
user_team_name= _ "Enemies"
{ORC_SETUP}
#{FLAG_VARIANT undead}
type=Orcish Warrior
id=Qumseh
name= _ "Qumseh"
profile=portraits/orcs/transparent/warlord.png
canrecruit=yes
x=28
y=2
#ifdef EASY
recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Goblin Pillager, Goblin Knight
#endif
#ifdef NORMAL
recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Goblin Knight, Orcish Slayer
#endif
#ifdef HARD
recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Orcish Warrior, Goblin Knight, Goblin Pillager, Orcish Slayer
#endif
{GOLD 100 130 160}
{INCOME 10 30 50}
{ai/aliases/stable_singleplayer.cfg}
[ai]
{AI_NO_SCOUTS}
{AI_SCALE_ATTACK_DEPTH_BY_DIFFICULTY}
{AI_SIMPLE_ALWAYS_ASPECT recruitment_ignore_bad_movement yes}
{AI_SIMPLE_ALWAYS_ASPECT recruitment_pattern "scout"}
{AI_SIMPLE_ALWAYS_ASPECT aggression 0.75}
{AI_SIMPLE_ALWAYS_ASPECT village_value 0}
{AI_SIMPLE_ALWAYS_ASPECT caution 0}
{AI_SIMPLE_ALWAYS_ASPECT grouping no}
[/ai]
[/side]
[side]
side=7
allow_player=no
controller=ai
team_name=orcs
user_team_name= _ "Enemies"
{ORC_SETUP}
#{FLAG_VARIANT undead}
type=Orcish Warrior
id=Graur-Tan
name= _ "Graur-Tan"
profile=portraits/orcs/transparent/warlord.png
canrecruit=yes
x=2
y=4
#ifdef EASY
recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Goblin Pillager, Goblin Knight
#endif
#ifdef NORMAL
recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Goblin Knight, Orcish Slayer
#endif
#ifdef HARD
recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Orcish Warrior, Goblin Knight, Goblin Pillager, Orcish Slayer
#endif
{GOLD 100 130 160}
{INCOME 10 30 50}
{ai/aliases/stable_singleplayer.cfg}
[ai]
{AI_NO_SCOUTS}
{AI_SCALE_ATTACK_DEPTH_BY_DIFFICULTY}
{AI_SIMPLE_ALWAYS_ASPECT recruitment_ignore_bad_movement yes}
{AI_SIMPLE_ALWAYS_ASPECT recruitment_pattern "fighter,scout,fighter,fighter,archer,scout,mixed fighter"}
{AI_SIMPLE_ALWAYS_ASPECT aggression 0.75}
{AI_SIMPLE_ALWAYS_ASPECT caution 0}
{AI_SIMPLE_ALWAYS_ASPECT grouping no}
[/ai]
[/side]
[event]
name=start
[message]
id=Kalenz
message= _ "Orcs are pressing on us from all directions! To arms!"
[/message]
[message]
id=Velon
message= _ "Hold, Kalenz. The Ka’lian council should discuss our response. Maybe we can reach an agreement with them!"
[/message]
[message]
id=Qumseh
message= _ "Surrender or die, tree-shaggers!"
[/message]
[message]
id=Velon
message= _ "They are too many. We have no choice but to submit!"
[/message]
[message]
id=Kalenz
message= _ "Elves must never surrender to these foul beasts! Who will fight them beside me?"
[/message]
[message]
#Changed the text from here on - The objectives changed from
#reaching the signpost and bonus for the death of a leader
#to death of an enemy leader for victory and bonus for not
#loosing velon.
id=Landar
message= _ "We will follow you, Kalenz — but where can we go?"
[/message]
[message]
id=Kalenz
message= _ "We must reach the elvish council in Ka’lian and enlist their help to recapture our home."
[/message]
[message]
id=Landar
message= _ "We are surrounded!"
[/message]
[message]
id=Kalenz
message= _ "Then we must storm one of the orcs’ outposts to break the encirclement before more enemies arrive!"
[/message]
[message]
id=Anduilas
message= _ "Very well, Kalenz — lead us!"
[/message]
[scroll_to_unit]
id=Kalenz
[/scroll_to_unit]
[/event]
[event]
name=start
[objectives]
side=0
[objective]
description= _ "Kill any of the orc leaders"
condition=win
[/objective]
[objective]
{BONUS_OBJECTIVE_CAPTION}
description= _ "Keep Velon alive"+{EARLY_FINISH_BONUS_FOOTNOTE}
condition=win
[/objective]
[objective]
description= _ "Death of Kalenz"
condition=lose
[/objective]
[objective]
description= _ "Death of Landar"
condition=lose
[/objective]
{TURNS_RUN_OUT}
[gold_carryover]
carryover_percentage=40
[/gold_carryover]
[/objectives]
[/event]
[event]
name=attack
[filter_second]
[filter_side]
[has_unit]
id=Velon
[/has_unit]
[/filter_side]
[/filter_second]
{INCIDENTAL_MUSIC the_king_is_dead.ogg}
[message]
id=Velon
message= _ "We surrender!"
[/message]
[message]
id=Graur-Tan
message= _ "Did I mention that we take no prisoners? Die!"
[/message]
#TODO Maybe that must change for multiplayer
[message]
id=Velon
message= _ "Kalenz was right and I was wrong. Go; join Kalenz while yet you can. I and the remaining elders will cover your retreat as best we may."
[/message]
[/event]
[event]
name=victory
#[message]
# id=Kalenz
#TODO ESR
# message= _ "And Velon? What about him?"
# [show_if]
# [have_unit]
# id=Velon
# [/have_unit]
# [/show_if]
#[/message]
[message]
id=Velon
message= _ "Flee, Kalenz... find vengeance for us!"
[/message]
[message]
id=Kalenz
message= _ "Velon, I swear on the life of Irdya that I will not let you be forgotten while elves yet draw breath to sing."
[show_if]
[have_unit]
id=Velon
[/have_unit]
[/show_if]
[/message]
[message]
id=Velon
message= _ "Swords will aid us more than songs, Kalenz; you saw that before I."
[/message]
[message]
id=Kalenz
message= _ "Swordsmen you shall have, as swiftly as I can find them and return."
[show_if]
[have_unit]
id=Velon
[/have_unit]
[/show_if]
[/message]
[message]
id=Landar
message= _ "Velon has fallen. He counseled weakness, but did not deserve such an ugly death. We shall return with swords to avenge him!"
[show_if]
[not]
[have_unit]
id=Velon
[/have_unit]
[/not]
[/show_if]
[/message]
#[message]
# id=Kalenz
#TODO ESR
# message= _ "Let's move on!"
#[/message]
[message]
canrecruit=yes
race=orc
message= _ "You won’t get very far! After them!"
[/message]
[kill]
id=Velon
animate=no
[/kill]
[/event]
[event]
name=last breath
[filter]
canrecruit=yes
race=orc
[/filter]
[message]
speaker=unit
message= _ "Curse you, tree-shaggers! We will feed your young to our wolves!"
[/message]
[/event]
[event]
name=die
[filter]
canrecruit="yes"
race=orc
[/filter]
[message]
speaker=second_unit
message= _ "What is this? The orc held plunder!"
[/message]
#ifdef MULTIPLAYER
{LOOT 25 1}
{LOOT 25 2}
#else
{LOOT 50 1}
#endif
[if]
[have_unit]
id=Velon
[/have_unit]
[then]
[endlevel]
result=victory
#ifdef MULTIPLAYER
bonus=0.5
#else
bonus=yes
#endif
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/then]
[else]
[endlevel]
result=victory
bonus=no
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/else]
[/if]
[/event]
[event]
name=last breath
[filter]
id=Velon
[/filter]
{INCIDENTAL_MUSIC sad.ogg}
[message]
id=Velon
message= _ "Flee, Kalenz... Our hopes ride with you..."
[/message]
[/event]
{campaigns/Legend_of_Wesmere/utils/deaths.cfg}
[/scenario]
#undef MULTIPLAYER_GOLD
#undef SINGLEPLAYER_GOLD