-
-
Notifications
You must be signed in to change notification settings - Fork 988
/
06_The_Siege_of_Elensefar.cfg
786 lines (703 loc) · 23.9 KB
/
06_The_Siege_of_Elensefar.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
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
#textdomain wesnoth-httt
[scenario]
id=06_The_Siege_of_Elensefar
name= _ "The Siege of Elensefar"
map_data="{campaigns/Heir_To_The_Throne/maps/06_The_Siege_of_Elensefar.map}"
{TURNS 40 32 29}
{DEFAULT_SCHEDULE}
next_scenario=07_Crossroads
{SCENARIO_MUSIC "the_city_falls.ogg"}
{EXTRA_SCENARIO_MUSIC "breaking_the_chains.ogg"}
{EXTRA_SCENARIO_MUSIC "battle.ogg"}
{EXTRA_SCENARIO_MUSIC "vengeful.ogg"}
{EXTRA_SCENARIO_MUSIC "casualties_of_war.ogg"}
{EXTRA_SCENARIO_MUSIC "legends_of_the_north.ogg"}
[event]
name=prestart
[objectives]
side=1
[objective]
description= _ "Defeat all enemy leaders"
condition=win
[/objective]
[objective]
description= _ "Death of Konrad"
condition=lose
[/objective]
{TURNS_RUN_OUT}
[gold_carryover]
bonus=yes
carryover_percentage=40
[/gold_carryover]
[/objectives]
[/event]
[label]
x,y=16,28
text= _ "Elensefar"
[/label]
{HTTT_TRACK {JOURNEY_06_NEW} }
[side]
type=Commander
id=Konrad
name= _ "Konrad"
unrenamable=yes
profile=portraits/konrad-elvish.png
side=1
canrecruit=yes
controller=human
team_name=elves
user_team_name=_"Rebels"
{GOLD 180 120 120}
{FLAG_VARIANT long}
[/side]
# wmllint: recognize Delfador
[side]
type=Orcish Warlord
id=Agadla
name= _ "Agadla"
side=2
canrecruit=yes
recruit=Orcish Warrior,Orcish Grunt,Orcish Assassin,Orcish Crossbowman,Orcish Archer
{GOLD 100 180 240}
team_name=orcs
user_team_name=_"Evil"
[ai]
recruitment_pattern=fighter,fighter,mixed fighter,archer
leader_value=10.0
aggression=0.0
caution=1.0
grouping=defensive
{ATTACK_DEPTH 1 3 5}
[/ai]
[ai]
time_of_day=dusk
aggression=0.6
grouping=defensive
[/ai]
[ai]
time_of_day=first_watch,second_watch
aggression=0.7
caution=0.25
grouping=offensive
[/ai]
{FLAG_VARIANT6 ragged}
[/side]
#ifndef HARD
{LIMIT_CONTEMPORANEOUS_RECRUITS 2 "Orcish Warrior" 2}
{LIMIT_CONTEMPORANEOUS_RECRUITS 2 "Orcish Crossbowman" 2}
#endif
[side]
type=Dark Sorcerer
id=Muff Jaanal
name= _ "Muff Jaanal"
side=3
canrecruit=yes
recruit=Skeleton Archer,Skeleton
{GOLD 100 160 220}
team_name=orcs
user_team_name=_"Evil"
[ai]
recruitment_pattern=fighter,fighter,archer
leader_value=10.0
{ATTACK_DEPTH 1 3 5}
[/ai]
[ai]
time_of_day=dusk,first_watch,second_watch
aggression=1.0
grouping=no
[/ai]
{FLAG_VARIANT undead}
[/side]
# Start the orcs/undead with most of the villages on the map
#ifdef EASY
{STARTING_VILLAGES 2 5}
{STARTING_VILLAGES 3 0}
#endif
#ifdef NORMAL
{STARTING_VILLAGES 2 10}
{STARTING_VILLAGES 3 10}
#endif
#ifdef HARD
{STARTING_VILLAGES 2 10}
{STARTING_VILLAGES 3 20}
#endif
[time_area]
x= 11, 12, 13, 14, 15, 16-22, 23, 24, 25-26
y= 0-1, 0-2, 0-6, 0-5, 0-6, 0-5, 0-3, 0-1, 0-2
{UNDERGROUND}
[/time_area]
[event]
name=prestart
{PLACE_IMAGE scenery/rock1.png 13 12}
{PLACE_IMAGE scenery/rock2.png 25 28}
[disallow_recruit]
side=1
type=Thief
[/disallow_recruit]
{NEED_KALENZ (x,y=recall,recall)}
{NEED_DELFADOR (x,y=recall,recall)}
{STORE_DELFADOR}
{STORE_KALENZ}
#define ADVISOR
[role]
role=Advisor
[auto_recall][/auto_recall]
type="Elvish Sylph,Great Mage," +
"Elvish Marshal,Elvish Champion,Elvish Avenger,Elvish Sharpshooter,Elvish Shyde,Elvish Enchantress,Elvish Outrider," +
"Paladin,Grand Knight," +
"Mage of Light,Arch Mage,Silver Mage," +
"Merman Triton,Merman Hoplite,Merman Javelineer,Merman Entangler,Mermaid Diviner,Mermaid Siren," +
"Highwayman,Fugitive,Huntsman,Ranger," +
"Elvish Captain,Elvish Hero,Elvish Ranger,Elvish Marksman,Elvish Druid,Elvish Sorceress,Elvish Rider," +
"Knight,Lancer," +
"White Mage,Red Mage," +
"Merman Warrior,Merman Spearman,Merman Netcaster,Mermaid Priestess,Mermaid Enchantress," +
"Bandit,Outlaw,Trapper," +
"Elvish Fighter,Elvish Archer,Elvish Shaman,Elvish Scout," +
"Horseman," +
"Mage," +
"Merman Fighter,Merman Hunter,Mermaid Initiate," +
"Thug,Footpad,Poacher"
[else]
[unit]
side=1
type=Elvish Fighter
role=Advisor
placement=leader
[/unit]
[/else]
[/role]
#enddef
{ADVISOR}
[/event]
[event]
name=start
[message]
speaker=narrator
image="wesnoth-icon.png"
message= _ "The party arrived at Elensefar at last, but found that the city had already fallen to the savage orcs."
[/message]
[message]
role=Advisor
message= _ "My lord! It seems the city has already fallen!"
[/message]
[message]
speaker=Konrad
message= _ "This is terrible news! We must retake the city!"
[/message]
[message]
role=Advisor
message= _ "There are so many of them. This will not be easy! And look to the north! It seems that the undead are allied with the orcs!"
[/message]
[message]
speaker=Muff Jaanal
message= _ "Here come the elves! Our newly forged alliance with the orcs will give us the power to crush them with ease!"
[/message]
[message]
speaker=Konrad
message= _ "We must take the city, and destroy the evil undead before reinforcements arrive!"
[/message]
[/event]
[event]
name=turn 4
[move_unit_fake]
type=Rogue
side=1
x=24,24,23
y=38,39,40
[/move_unit_fake]
[unit]
id=Reglok
name= _ "Reglok"
type=Rogue
side=1
x=23
y=40
gender=male
facing=sw
[modifications]
{TRAIT_LOYAL}
{TRAIT_INTELLIGENT}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
id=Gelgar
name= _ "Gelgar"
type=Thief
side=1
x=22
y=39
gender=male
facing=sw
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
id=Gamlel
name= _ "Gamlel"
type=Thief
side=1
x=24
y=40
gender=female
facing=sw
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[redraw]
[/redraw]
[delay]
time=1250
[/delay]
[message]
speaker=narrator
image="wesnoth-icon.png"
message= _ "As night began to fall, three dark figures crept out of the forest."
[/message]
[message]
speaker=Konrad
{KONRAD_VARIATION_ELF mad}
message= _ "Halt! Who goes there, friend or foe?"
[/message]
[message]
speaker=Reglok
message= _ "Greetings, friend. We are from the Elensefar Thieves’ Guild. We would like to help you against the orcs!"
[/message]
{ADVISOR}
[message]
role=Advisor
message= _ "Thieves, hmmm? Who says we can trust such as you?"
[/message]
[message]
speaker=Gamlel
message= _ "We would understand if you didn’t trust us, of course, but it is in our mutual interest to rid the city of the orcs!"
[/message]
[message]
speaker=Konrad
message= _ "Very well. You may join us."
[/message]
[message]
speaker=Reglok
message= _ "We will serve you well, for we respect the help you are providing to our city. You shall find that there is honor, even among thieves."
[/message]
[message]
speaker=Konrad
message= _ "Yes, but where is your fighting force? How can you help us?"
[/message]
[message]
speaker=Gelgar
message= _ "We survive by stealth. We can help you sneak into the city and surround the orcs. Alternatively, we can lay in wait until you give us a signal then ambush the orcs’ rear."
[/message]
[message]
speaker=Konrad
message= _ "Hmm... I have to consider this..."
[option]
label= _ "Help us infiltrate the city. We can do the rest."
[command]
[message]
speaker=Reglok
message= _ "Excellent. Two hours past midnight meet us on the west bank of the river, across from Elensefar’s docks."
[/message]
[set_variable]
name=thieves_ford
value=yes
[/set_variable]
[/command]
[/option]
[option]
label= _ "I want you to reinforce us once we break through their line."
[command]
[message]
speaker=Reglok
message= _ "Very well. When you raise your red banner over any building in the city proper, we will see the sign and attack from the city’s northern gate."
[/message]
[message]
speaker=Konrad
message= _ "Agreed. But, will you be able to see our flag if it’s dark?"
[/message]
[message]
speaker=Reglok
message= _ "Yes, we will see it. In fact, we prefer to fight at night. I pray you do not lead us into slaughter."
[/message]
[message]
speaker=Konrad
message= _ "Do not fear, friends. There will be a slaughter here, but it will be orcish blood staining the streets."
[/message]
#
# Special event - if you chose to have the thieves
# ambush the orcs, they appear when you capture
# one of the Elensefar villages
#
[event]
name=moveto
[filter]
side=1
[filter_location]
terrain=*^V*
[and]
x,y=16,26
radius=5
[/and]
[/filter_location]
[/filter]
[message]
speaker=narrator
image="wesnoth-icon.png"
message= _ "As the banner was raised, sounds of fighting could be heard from across the city."
[/message]
#create units
[unit]
id=Reglok
name= _ "Reglok"
type=Rogue
side=1
x=16
y=22
gender=male
facing=sw
[modifications]
{TRAIT_LOYAL}
{TRAIT_INTELLIGENT}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
id=Gelgar
name= _ "Gelgar"
type=Thief
side=1
x=14
y=22
gender=male
facing=se
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
id=Gamlel
name= _ "Gamlel"
type=Thief
side=1
x=20
y=23
gender=female
facing=sw
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
id=Darglen
name= _ "Darglen"
type=Thief
side=1
x=18
y=23
facing=sw
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
#dialog
[message]
speaker=Reglok
message= _ "Let’s expel these invaders! Today, the city is ours again!"
[/message]
# Allow the player to cancel attack orders
[cancel_action][/cancel_action]
[/event]
[/command]
[/option]
[/message]
[kill]
type=Thief
[/kill]
[kill]
type=Rogue
[/kill]
[allow_recruit]
side=1
type=Thief
[/allow_recruit]
[message]
speaker=narrator
image=wesnoth-icon.png
message= _ "You can now recruit Thieves!"
[/message]
[/event]
#
# Special event - if you chose to have the thieves help you across the river,
# on turn 6 the ford appears
#
[event]
name=turn 6
[if]
[variable]
name=thieves_ford
equals=yes
[/variable]
[then]
[message]
speaker=narrator
image="wesnoth-icon.png"
message= _ "On the banks of Elensefar’s port district, three shadowy figures appeared."
[/message]
[message]
speaker=narrator
image="wesnoth-icon.png"
message= _ "To Konrad’s surprise, they quickly made their way across the river’s mouth. The turbulent waters hid a nearly invisible ford, wide enough for two soldiers to march shoulder-to-shoulder."
[/message]
#create units
[unit]
id=Reglok
name= _ "Reglok"
type=Rogue
side=1
x=7
y=30
gender=male
facing=se
[modifications]
{TRAIT_LOYAL}
{TRAIT_INTELLIGENT}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
id=Gelgar
name= _ "Gelgar"
type=Thief
side=1
x=6
y=30
gender=male
facing=se
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
id=Gamlel
name= _ "Gamlel"
type=Thief
side=1
x=6
y=31
gender=female
facing=se
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
#create terrain
[terrain]
terrain=Wwf # wmllint: ignore
x=8,7-8
y=30,31-32
[/terrain]
#dialog
[message]
speaker=Reglok
message= _ "Very few people know that the river can be forded here. The orcs have yet to discover this place. Bring your forces into the city, quickly now, and you can flank them."
[/message]
[/then]
[/if]
[/event]
[event]
name=enemies defeated
[message]
speaker=Konrad
{KONRAD_VARIATION_ELF glad}
message= _ "Finally, we have retaken the city! Let us rest here, friends."
[/message]
[role]
role=Thief
type=Assassin,Rogue,Thief
[/role]
[message]
role=Thief
message= _ "Victory! The thieves of Elensefar will be in your service, my lord."
[/message]
[message]
speaker=narrator
image="wesnoth-icon.png"
message= _ "The party rested for three days, after which an old friend returned."
[/message]
{VARIABLE delfador_store.profile "portraits/delfador.png"}
{RESTORE_DELFADOR}
{RESTORE_KALENZ}
[move_unit_fake]
type=Elder Mage
side=1
x=25,24,24
y=18,17,16
[/move_unit_fake]
[recall]
id=Delfador
x,y=24,16
show=no
[/recall]
[recall]
id=Kalenz
x,y=22,16
[/recall]
[message]
speaker=Delfador
message= _ "Greetings, friends. I see that you have rescued the city! I knew that you could do it."
[/message]
[message]
speaker=Konrad
{KONRAD_VARIATION_ELF glad}
message= _ "Delfador! So good to see you! Where have you been?"
[/message]
[message]
speaker=Delfador
message= _ "I have been meeting with the Ka’lian, the Great Council of the Elves. This is Kalenz, a great lord of the Northern Elves who came to the Council to offer us the support of his people."
# See Legend of Wesmere; Kalenz is the former High Lord of
# the elves. At this time in 517 YW, he is probably a leader or
# legate of the elves of the Forest of Lintanir. None of
# this backstory existed when HttT was first written.
[/message]
[message]
speaker=Kalenz
message= _ "Greetings, friend."
[/message]
[message]
speaker=Konrad
message= _ "Delfador, we have captured this city, but surely Asheviere’s men will come and attack us! What should we do?"
[/message]
[message]
speaker=Delfador
message= _ "The Ka’lian has met and decided: we must capture the Sceptre of Fire."
[/message]
[message]
speaker=Konrad
message= _ "The Sceptre of Fire? What’s that?"
[/message]
[message]
speaker=Delfador
{DELFADOR_MENTORING}
message= _ "The Sceptre of Fire is the most ancient artifact of the realm of Wesnoth. It was forged by the dwarves of Knalga at the request of King Haldric II. It took their finest smiths years to make it, but soon after it was completed, the makers were chased underground, attacked by the elves. None know exactly what occurred, but the Sceptre was lost somewhere in the great caverns. Years have passed, and the fortunes of the dwarves have waxed and waned, but the Sceptre has never been found."
[/message]
[message]
speaker=Konrad
message= _ "But what has this to do with me?"
[/message]
[message]
speaker=Delfador
message= _ "When Garard II, your uncle, was deciding upon a successor, he issued an edict that whichever member of the royal family could retrieve the Sceptre of Fire would rule the land."
[/message]
[message]
speaker=Konrad
message= _ "Oh, and you want me to get this Sceptre?"
[/message]
[message]
speaker=Kalenz
message= _ "We will help you retrieve it, my lord."
[/message]
[message]
speaker=Delfador
message= _ "Time is short. We think that Asheviere is also searching for the Sceptre, to help seal her place as ruler. But if you find the Sceptre first, the people will support you as the king."
[/message]
[message]
speaker=Konrad
message= _ "Me? King?"
[/message]
[message]
speaker=Delfador
message= _ "Yes, Konrad. I believe you will be king one day. Now let us make haste!"
[/message]
[message]
speaker=Delfador
message= _ "We cannot go to Wesmere, for Asheviere’s orcs have the approaches ringed about with steel; Kalenz and I barely escaped, and Chantal cannot get out. Until we are stronger, we must go where the orcs are not."
[/message]
[endlevel]
result=victory
bonus=yes
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/event]
# Konrad's troops reach Muff Jaanal's citadel.
[event]
name=moveto
[filter]
side=1
x=16-17
y=5-6
[/filter]
[message]
speaker=Muff Jaanal
message= _ "So you endeavor to fight me in my home. Foolish."
[/message]
#ifdef EASY
[gold]
side=3
amount=30
[/gold]
#else
[gold]
side=3
amount=60
[/gold]
#endif
[terrain]
x=13
y=2
terrain=Uu
[/terrain]
[sound]
name=skeleton-big-die.ogg
[/sound]
#ifdef EASY
{LOYAL_UNIT 3 (Skeleton) 13 2}
#else
{LOYAL_UNIT 3 (Revenant) 13 2}
#endif
[scroll_to_unit]
x=13
y=2
[/scroll_to_unit]
[terrain]
x=22
y=2
terrain=Uu
[/terrain]
[sound]
name=skeleton-big-die.ogg
[/sound]
#ifdef HARD
{LOYAL_UNIT 3 (Deathblade) 22 2}
#else
{LOYAL_UNIT 3 (Skeleton) 22 2}
#endif
[scroll_to_unit]
x=22
y=2
[/scroll_to_unit]
# Allow the player to cancel attack orders
[cancel_action][/cancel_action]
[/event]
{campaigns/Heir_To_The_Throne/utils/deaths.cfg}
[event]
name=victory
{CLEAR_VARIABLE thieves_ford}
[allow_recruit]
side=1
type=Thief
[/allow_recruit]
{RESTORE_DELFADOR}
{RESTORE_KALENZ}
[/event]
[/scenario]
#undef ADVISOR