-
-
Notifications
You must be signed in to change notification settings - Fork 992
/
07_Elves_Last_Stand.cfg
667 lines (604 loc) · 17.9 KB
/
07_Elves_Last_Stand.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
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
#textdomain wesnoth-low
#TODO Add the ogre cage idea.
#TODO give a reward for saving some of the Kalian gold.
#TODO add the water sound effects.
#TODO try to tune the troll ai to not start a suicide run against the wood border.
[scenario]
random_start_time=no
allow_new_game=no
force_lock_settings=yes
id=07_Elves_Last_Stand
experience_modifier=100
next_scenario=08_Council_of_Hard_Choices
name= _ "Elves’ Last Stand"
### Story ###
[story]
[part]
story= _ "The journey back to Wesmere was surprisingly uneventful, the orcs having apparently withdrawn to regroup after their defeats. Kalenz and his band returned just in time..."
delay=4000
[/part]
[/story]
{LOW_TRACK ( {FLIGHT_COMPLETE} {TREASURY_STAGE4} ) }
### /Story ###
### Music playlist ###
{INTRO_AND_SCENARIO_MUSIC elf-land.ogg elvish-theme.ogg}
{EXTRA_SCENARIO_MUSIC the_city_falls.ogg}
{EXTRA_SCENARIO_MUSIC silvan_sanctuary.ogg}
{EXTRA_SCENARIO_MUSIC wanderer.ogg}
{EXTRA_SCENARIO_MUSIC siege_of_laurelmor.ogg}
{EXTRA_SCENARIO_MUSIC heroes_rite.ogg}
{EXTRA_SCENARIO_MUSIC casualties_of_war.ogg}
### /Music playlist ###
### Map setup ###
{TURNS 30 25 20}
{DEFAULT_SCHEDULE_AFTERNOON}
{LOW_MAP Kalian.map}
{LOW_MASK 07_Elves_Last_Stand.mask 1 1}
{campaigns/Legend_of_Wesmere/maps/Kalian_map.cfg}
### /Map Setup ###
#define PLAYER_GOLD
{GOLD 600 500 400}
income=-2
#enddef
#define MULTIPLAYER_GOLD
{GOLD 200 166 133}
income=-2
#enddef
#### Kalenz ###
[side]
side=1
{PLAYABLE}
no_leader=yes
save_id=Kalenz
[unit]
{KALENZ}
x=46
y=21
[/unit]
#ifndef MULTIPLAYER
{PLAYER_GOLD}
[unit]
{LANDAR}
x=45
y=35
[/unit]
[unit]
{CLEODIL}
x=47
y=28
[/unit]
#else
{MULTIPLAYER_GOLD}
#endif
[/side]
#TODO enable the extended recruit list and give a hint to the player about it
# [event]
# name=prestart
# [allow_recruit]
# side=1
# type={ELVES}
# [/allow_recruit]
# [/event]
[event]
name=prestart
# the usual suspects
{RECALL_LOYALS}
[/event]
# wmllint: skip-side
{MP_SIDE 2 (
no_leader=yes
{PLAYABLE}
save_id=Landar
{MULTIPLAYER_GOLD}
[unit]
{LANDAR}
x=45
y=35
[/unit]
)}
# wmllint: skip-side
{MP_SIDE 3 (
no_leader=yes
{PLAYABLE}
save_id=Cleodil
{MULTIPLAYER_GOLD}
[unit]
{CLEODIL}
x=47
y=28
[/unit]
)}
### Allies ####
[side]
side=4
{PLAYABLE}
no_leader=yes
save_id=Galtrid
#ifndef MULTIPLAYER
{GOLD 400 300 200}
#else
{GOLD 133 100 65}
previous_save_id=Kalenz
#endif
[unit]
# wmllint: recognize Galtrid
{GALTRID}
x=33
y=32
[/unit]
#ifndef MULTIPLAYER
[unit]
# wmllint: recognize El_Isomithir
{EL_ISOMITHIR}
x=29
y=32
[/unit]
[unit]
# wmllint: recognize Eradion
{ERADION}
x=7
y=36
[/unit]
#endif
[/side]
# wmllint: skip-side
{MP_SIDE 5 (
{PLAYABLE}
{EL_ISOMITHIR}
save_id=El_Isomithir
previous_save_id=Landar
x=29
y=32
{GOLD 133 100 65}
)}
# wmllint: skip-side
{MP_SIDE 6 (
{PLAYABLE}
{ERADION}
save_id=Eradion
previous_save_id=Cleodil
x=7
y=36
{GOLD 133 100 65}
)}
#ifndef MULTIPLAYER
{STARTING_VILLAGES_ALL 4}
#endif
### /ALLIES ###
### ENEMIES ###
[side]
side=7
no_leader=yes
allow_player=no
controller=ai
team_name=orcs
user_team_name= _ "Enemies"
{ORC_SETUP}
{GOLD 1200 1720 2260}
{INCOME 50 80 120}
[unit]
type=Naga Myrmidon
id=Mordrum
name= _ "Mordrum"
canrecruit=yes
x=6
y=4
#ifdef HARD
extra_recruit=Naga Fighter, Naga Warrior, Naga Myrmidon, Water Serpent
#endif
#ifdef NORMAL
extra_recruit=Naga Fighter, Naga Warrior, Naga Myrmidon, Water Serpent
#endif
#ifdef EASY
extra_recruit=Naga Fighter, Naga Warrior
#endif
[/unit]
[unit]
type=Orcish Warlord
id=Urug-Pir
name=_ "Urug-Pir"
profile=portraits/orcs/grunt-2.png
canrecruit=yes
x=6
y=23
#ifdef HARD
extra_recruit=Orcish Archer, Orcish Crossbowman, Orcish Slurbow, Orcish Assassin, Orcish Slayer, Orcish Grunt, Orcish Warrior, Orcish Warlord, Goblin Spearman, Goblin Impaler, Goblin Rouser, Wolf Rider, Goblin Knight, Goblin Pillager, Direwolf Rider
#endif
#ifdef NORMAL
extra_recruit=Orcish Archer, Orcish Crossbowman, Orcish Assassin, Orcish Slayer, Orcish Grunt, Orcish Warrior, Goblin Spearman, Goblin Impaler, Goblin Rouser, Wolf Rider, Goblin Knight, Goblin Pillager, Direwolf Rider
#endif
#ifdef EASY
extra_recruit=Orcish Archer, Orcish Crossbowman, Orcish Assassin, Orcish Grunt, Orcish Warrior, Goblin Spearman, Wolf Rider, Goblin Knight, Goblin Pillager
#endif
{ai/aliases/stable_singleplayer.cfg}
[ai]
{AI_NO_SCOUTS}
{AI_SIMPLE_ALWAYS_ASPECT recruitment_pattern "scout,fighter,fighter,archer,mixed fighter"}
{AI_SIMPLE_NIGHT_ASPECT aggression 0.75}
{AI_SIMPLE_NIGHT_ASPECT caution 0.0}
{AI_SIMPLE_NIGHT_ASPECT grouping no}
{AI_SIMPLE_NIGHT_ASPECT attack_depth 5}
[/ai]
[/unit]
[unit]
type=Great Troll
id=Truugl
name= _ "Truugl"
canrecruit=yes
x=26
y=7
#ifdef EASY
extra_recruit=Troll Whelp
#endif
#ifdef NORMAL
extra_recruit=Troll Whelp, Troll, Troll Rocklobber, Troll Shaman
#endif
#ifdef HARD
extra_recruit=Troll Whelp, Troll, Troll Rocklobber, Troll Shaman, Troll Warrior, Troll Hero
#endif
{ai/aliases/stable_singleplayer.cfg}
[ai]
{AI_NO_SCOUTS}
#ifdef EASY
{AI_SIMPLE_ALWAYS_ASPECT recruitment_pattern "fighter"}
#else
{AI_SIMPLE_ALWAYS_ASPECT recruitment_pattern "fighter, mixed fighter, fighter, mixed fighter, fighter"}
#endif
{AI_SIMPLE_NIGHT_ASPECT aggression 0.75}
{AI_SIMPLE_NIGHT_ASPECT caution 0.0}
{AI_SIMPLE_NIGHT_ASPECT attack_depth 5}
{AI_SIMPLE_NIGHT_ASPECT grouping offensive}
[/ai]
[/unit]
[/side]
### /ENEMIES ####
#### Objectives and corresponding events ####
#define OBJECTIVES
side=0
[objective]
#TODO reconsider the formulation
#TODO format?
description= _ "You must own the field and be capable of overwhelming your opponents. (Player(s) own more than 25 units while the foes’ numbers fall below 15.)"
condition=win
[/objective]
[objective]
description= _ "Defeat all enemy leaders."
condition=win
[/objective]
[objective]
description= _ "Death of Kalenz"
condition=lose
[/objective]
[objective]
description= _ "Death of Landar"
condition=lose
[/objective]
[objective]
description= _ "Death of Cleodil"
condition=lose
[/objective]
[objective]
description= _ "Death of Galtrid"
condition=lose
[/objective]
{TURNS_RUN_OUT}
[gold_carryover]
carryover_percentage=0
[/gold_carryover]
#enddef
[event]
name=prestart
[objectives]
{OBJECTIVES}
[/objectives]
[/event]
[event]
name=enemies defeated
[endlevel]
save=no
result=victory
bonus=no
carryover_percentage=0
[/endlevel]
[/event]
#Let the orcs flee if their numbers go low and the elves go high
[event]
name=side 7 turn
first_time_only=no
[filter_condition]
[variable]
name=turn_number
greater_than=1
[/variable]
[/filter_condition]
[if]
[have_unit]
side=7
count=1-15
[/have_unit]
[have_unit]
side=1,2,3,4
count=25-999
[/have_unit]
[then]
[message]
canrecruit=yes
[and]
race=orc
[or]
race=troll
[/or]
[/and]
message= _ "Flee! They have broken us!"
[/message]
[message]
id=Landar
message= _ "Hunt them down and kill every single one of them!"
[/message]
[message]
id=Cleodil
message= _ "It is not wise to put a wounded foe in a desperate situation; they will but fight harder for it. Break their will and let them flee, so they will spread fear of us among their kind."
[/message]
[message]
id=Galtrid
message= _ "She is right. Don’t let them lure you away from the Ka’lian, preparations for when more of them arrive must be made."
[/message]
[fire_event]
name=enemies defeated
[/fire_event]
[/then]
[/if]
[/event]
[event]
name=time over
[message]
id=Kalenz
message= _ "The orcs are not defeated, and our troops and supplies are exhausted. This is the end!"
[/message]
[/event]
#### /Objectives and corresponding events ####
#### INTRO ####
[event]
name=start
[message]
id=Kalenz
message= _ "The orcs have pushed us back to the Ka’lian. There is no way out. We must win here!"
[/message]
[message]
id=Galtrid
message= _ "This is our final stand. If they take the Ka’lian, all is lost!"
[/message]
[message]
id=Landar
# wmllint: local spelling Elvenkind
message= _ "Galtrid, speak not of defeat. Elvenkind shall rise! Our enemies shall perish in blood and fire!"
[/message]
[message]
id=Cleodil
message= _ "It is a dark day indeed when elves must steel themselves with dreams of slaughter."
[/message]
[message]
id=Urug-Pir
# wmllint: local spelling da
message= _ "We’ll crush those weak elves and I’ll get da stone!"
[/message]
[message]
id=El_Isomithir
message= _ "These are hardened orc and troll veterans. Men, prepare for a long, difficult fight..."
[/message]
[/event]
### /INTRO ####
### OLURF ###
[event]
name=olurf
[unit]
#ifndef MULTIPLAYER
side=1
#else
side=8
#endif
{OLURF}
canrecruit=yes
x=$olurf_entry.x
y=$olurf_entry.y
[/unit]
#ifndef MULTIPLAYER
{OLURF_PARTY 1}
#else
{OLURF_PARTY 8}
#endif
####ifndef MULTIPLAYER
#### {MODIFY_UNIT (side=8) side 1}
#### {TRANSFER_VILLAGE_OWNERSHIP 8 1}
######endif
#TODO the next message doesn't fit if turns are over
[message]
id=Olurf
#name=_ "Olurf"
message= _ "Did ye think we’d let you have all the fun wi’ the orcs by yerselves?"
[/message]
[message]
id=Landar
message= _ "It’s not much of an army he is bringing with him, though."
[/message]
[message]
id=Olurf
message= _ "Not much of an army? These are dwarves with mighty axes, each worth three of you and your silly plinking bows!"
[/message]
[message]
id=Kalenz
message= _ "Olurf, is that all the dwarves you could find? Was the gold not enough?"
[/message]
[message]
id=Olurf
message= _ "They are no’ fighting for gold, they’re here for the fun. I’d ha’ brought a lot more if my men ha’ all kept quiet about helping elves! But the rest o’ my clan should join us in a few days."
[/message]
[message]
id=Landar
message= _ "In a few days? That’s too late! We want our gold back!"
[/message]
[message]
id=Olurf
message= _ "Sure, minus expenses."
[/message]
[message]
id=Landar
message= _ "What expenses?"
[/message]
[message]
id=Olurf
message= _ "It’s an ancient dwarvish custom to buy the warriors a few drinks before the battle... So minus expenses that’s about even."
[/message]
[message]
id=Landar
message= _ "That explains why they are so reckless in battle..."
[/message]
[message]
id=Kalenz
message= _ "... Enough, gentlemen, we have a battle to fight!"
[/message]
[/event]
[event]
name=victory
{VARIABLE olurf_entry.x 40}
{VARIABLE olurf_entry.y 5}
[fire_event]
name=olurf
[/fire_event]
[/event]
### /OLURF ###
[event]
name=victory
[message]
id=Galtrid
message= _ "At last! The orcs are defeated."
[/message]
[unit]
type=Orcish Warrior
id=Pirorr
name= _ "Pirorr"
side=7
x=1
y=43
facing=ne
profile=portraits/orcs/grunt-2.png
[/unit]
{MOVE_UNIT id=Pirorr 1 41}
[message]
id=Pirorr
message= _ "The elves have beaten us and they did not use da stone. Maybe they don’t have it? Great Chief will not like bad news!"
[/message]
[kill]
id=Pirorr
animate=no
[/kill]
[message]
id=Galtrid
message= _ "Kalenz, we are again in your debt. You returned just in time."
[/message]
[message]
id=Kalenz
message= _ "And we have what’s left of the elvish treasury with us!"
[/message]
[message]
id=Landar
message= _ "Perhaps the gold will give our words more weight with the council."
[/message]
[message]
speaker=narrator
image=wesnoth-icon.png
side_for=1
message= _ "Kalenz" + _ " has returned any remaining gold into the elvish treasury. You will start the next scenario with a preset amount."
[/message]
[message]
speaker=narrator
image=wesnoth-icon.png
side_for=2
message= _ "Landar" + _ " has returned any remaining gold into the elvish treasury. You will start the next scenario with a preset amount."
[/message]
[/event]
###DEATH EVENTS###
[event]
name=last breath
[filter]
id=Truugl
[/filter]
[message]
id=Truugl
message= _ "Aargh! I should have stayed in the mountains instead of joining the orcs!"
[/message]
[/event]
[event]
name=last breath
[filter]
id=Mordrum
[/filter]
[message]
id=Kalenz
message= _ "Orcs, death is all you will find in this forest!"
[/message]
[/event]
[event]
name=last breath
[filter]
id=Urug-Pir
[/filter]
[message]
speaker=unit
message= _ "I die without getting da stone?"
[/message]
[/event]
#Eradion death is split in two events.
#The first part is spoken after deadly wounded but still speaking
[event]
name=last breath
[filter]
id="Eradion"
[/filter]
{INCIDENTAL_MUSIC sad.ogg}
[message]
speaker=second_unit
message= _ "Be grateful, tree-shagger, for I have spared you the pain of seeing your precious citadel burned and razed."
[/message]
[message]
speaker=unit
message= _ "Galtrid, my friend. Do not let my death be in vain. Destroy these foul orcs, and sing for me in the green woods when we have won."
[/message]
[message]
id=Galtrid
message= _ "We shall avenge you tenfold!"
[/message]
[scroll_to_unit]
id="Eradion"
[/scroll_to_unit]
[/event]
[event]
name=die
[filter]
id="Eradion"
[/filter]
[message]
speaker=second_unit
message= _ "Dead he is. Too quick. His screams were sweet."
[/message]
[message]
side=4,5,6
[not]
id=Galtrid
[/not]
[not]
id="Eradion"
[/not]
message= _ "Let us pursue the orc who murdered $unit.name|!"
[/message]
[message]
id=Galtrid
message= _ "No, don’t leave your formation. An elf was slain by beast. What does it matter which beast it was? We must kill them all."
[/message]
[/event]
{DEFAULT_VICTORY 0.4}
{campaigns/Legend_of_Wesmere/utils/deaths.cfg}
###/DEATH EVENTS###
[/scenario]
#undef PLAYER_GOLD
#undef MULTIPLAYER_GOLD