/
05_A_Subterranean_Struggle.cfg
2657 lines (2178 loc) · 77.3 KB
/
05_A_Subterranean_Struggle.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
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#textdomain wesnoth-utbs
# wmllint: directory spelling Griknagh
[scenario]
id=05_A_Subterranean_Struggle
name= _ "A Subterranean Struggle"
next_scenario=06a_In_the_Tunnels_of_the_Trolls
{UTBS_MAP 05_A_Subterranean_Struggle.map}
victory_when_enemies_defeated=no
{UNDERGROUND}
{TURNS 45 43 41}
#TODO add extra music
{SCENARIO_MUSIC "underground.ogg"}
{EXTRA_SCENARIO_MUSIC "legends_of_the_north.ogg"}
{EXTRA_SCENARIO_MUSIC "the_dangerous_symphony.ogg"}
{STORY_A_SUBTERRANEAN_STRUGGLE}
[side]
side=1
id=Kaleh
type=Quenoth Youth
canrecruit=yes
gold=200
{INCOME 7 5 3}
controller=human
shroud=yes
fog=no
{FLAG_VARIANT long}
user_team_name= _ "team_name^Quenoth Elves"
[/side]
#Side=2 troll 1 (blue)
[side]
no_leader=yes
side=2
gold=0
income=0
controller=ai
shroud=no
fog=no
hidden=yes
team_name=trolls
user_team_name= _ "team_name^Trolls"
recruit=Troll Whelp, Troll, Troll Rocklobber
[ai]
recruitment_pattern=fighter,fighter,mixed fighter
aggression=0.8
caution=0.05
grouping=offensive
[goal]
name=target
[criteria]
side=1
[/criteria]
value=10
[/goal]
[goal]
name=target
[criteria]
side=4
[/criteria]
value=9
[/goal]
[goal]
name=target
[criteria]
side=5
[/criteria]
value=9
[/goal]
[/ai]
[/side]
#Side=3 troll 2 (green)
[side]
side=3
no_leader=yes
gold=0
income=0
controller=ai
shroud=no
fog=no
hidden=yes
team_name=trolls
user_team_name= _ "team_name^Trolls"
recruit=Troll Whelp, Troll, Troll Rocklobber
[ai]
recruitment_pattern=fighter,fighter,mixed fighter
aggression=0.8
caution=0.05
grouping=offensive
[goal]
name=target
[criteria]
side=1
[/criteria]
value=10
[/goal]
[goal]
name=target
[criteria]
side=4
[/criteria]
value=9
[/goal]
[goal]
name=target
[criteria]
side=5
[/criteria]
value=9
[/goal]
[/ai]
[/side]
#Side=4 dwarf 1 (yellow)
[side]
side=4
no_leader=yes
gold=0
income=0
controller=ai
shroud=no
fog=no
hidden=yes
team_name=dwarves
user_team_name= _ "team_name^Dwarves"
recruit=Dwarvish Fighter, Dwarvish Steelclad, Dwarvish Thunderer, Dwarvish Guardsman
[ai]
aggression=0.8
caution=0.05
grouping=offensive
[goal]
name=target
[criteria]
side=1
[/criteria]
value=10
[/goal]
[goal]
name=target
[criteria]
side=2
[/criteria]
value=9
[/goal]
[goal]
name=target
[criteria]
side=3
[/criteria]
value=9
[/goal]
[/ai]
{FLAG_VARIANT knalgan}
[/side]
#Side=5 dwarf 2 (purple)
[side]
side=5
no_leader=yes
gold=0
income=0
controller=ai
shroud=no
fog=no
hidden=yes
team_name=dwarves
user_team_name= _ "team_name^Dwarves"
recruit=Dwarvish Fighter, Dwarvish Steelclad, Dwarvish Thunderer, Dwarvish Guardsman
[ai]
aggression=0.8
caution=0.05
grouping=offensive
[goal]
name=target
[criteria]
side=1
[/criteria]
value=10
[/goal]
[goal]
name=target
[criteria]
side=2
[/criteria]
value=9
[/goal]
[goal]
name=target
[criteria]
side=3
[/criteria]
value=9
[/goal]
[/ai]
{FLAG_VARIANT knalgan}
[/side]
#Side=6 Ants
[side]
side=6
no_leader=yes
gold=0
income=0
controller=ai
shroud=no
fog=no
hidden=yes
color=white
[ai]
aggression=0.8
caution=0.1
village_value=0
recruitment_pattern=fighter,fighter,fighter,fighter
#causes ants to target cave spider
[goal]
name=target
[criteria]
type=Cave Spider
[/criteria]
value=150
[/goal]
[goal]
name=target
[criteria]
side=1
[/criteria]
value=100
[/goal]
passive_leader=yes
[/ai]
[/side]
#Side=7 Assassin & Cave Spider
[side]
side=7
no_leader=yes
gold=0
income=0
controller=ai
shroud=yes
fog=no
hidden=yes
color=teal
[ai]
aggression=0.90
caution=0.10
[/ai]
[/side]
# Prestart functions:
# set starting scenario objectives
# increase cost of recruiting units
# place item images on map
# recall main heroes
# initialize starting variable
# create elf units
# create AI=guardian starting units
#fires lighting central cavern
{ANIMATED_CAMPFIRE 31 32}
{ANIMATED_CAMPFIRE 33 21}
[event]
name=prestart
#set starting scenario objectives
[objectives]
summary= _ "Starting Objectives:"
[objective]
description= _ "Explore underground"
condition=win
[/objective]
[objective]
description= _ "Defeat enemy leaders"
condition=win
[/objective]
[objective]
description= _ "Death of Kaleh"
condition=lose
[/objective]
[objective]
description= _ "Death of Nym"
condition=lose
[/objective]
[objective]
description= _ "Death of Zhul"
condition=lose
[/objective]
{TURNS_RUN_OUT}
[gold_carryover]
bonus=yes
carryover_percentage=40
[/gold_carryover]
[/objectives]
{INCREASE_RECRUIT_COSTS 1}
#central cavern furnishings
{PLACE_IMAGE items/rock-cairn3.png 42 21} # this image is in a different folder because it is not in core, just campaign
{PLACE_IMAGE scenery/rock-cairn.png 38 20}
{PLACE_IMAGE scenery/rock-cairn2.png 30 20}
{PLACE_IMAGE items/burial.png 27 33}
{PLACE_IMAGE items/burial2.png 35 34}
{PLACE_IMAGE items/burial.png 43 33}
#recall heroes
[recall]
id=Nym
[/recall]
[recall]
id=Zhul
[/recall]
[recall]
id=Elyssa
[/recall]
#create starting elves
[unit]
type=Quenoth Fighter
name= _ "Nantheos"
x=4
y=23
side=1
[modifications]
{TRAIT_QUICK}
{TRAIT_STRONG}
[/modifications]
[/unit]
[unit]
type=Quenoth Fighter
name= _ "Sylestria"
x=5
y=25
side=1
[modifications]
{TRAIT_INTELLIGENT}
{TRAIT_RESILIENT}
[/modifications]
[/unit]
# If Elyssa the Mage isn't there, boost starting group a bit
[if]
[not]
[have_unit]
id=Elyssa
[/have_unit]
[/not]
[then]
[unit]
type=Quenoth Flanker
name= _ "Rygar"
x=6
y=24
side=1
[modifications]
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
[/unit]
[/then]
[/if]
[/event]
# starting events
[event]
name=start
# starting dialogue
[if]
[have_unit]
id=Elyssa
[/have_unit]
[then]
[message]
speaker=Kaleh
message= _ "You mentioned that dwarves and trolls often lived underground, Elyssa. I’ve only heard myths, have you ever met a dwarf or a troll?"
[/message]
[message]
speaker=Elyssa
message= _ "No I haven’t, I don’t often explore underground unless I have to. There are lots of nasty things that lurk far away from the light of the suns. But I’ve read a bit about them, and have even met a few people who had dealings with dwarves."
[/message]
[message]
speaker=Nym
message= _ "What are dwarves like?"
[/message]
[message]
speaker=Elyssa
message= _ "They’re a proud people, and some would say greedy. They love their gold and fine metals, and forge many beautiful things. I should warn you, they have little liking for elves. There was some betrayal many years ago, though I don’t know what happened."
[/message]
[message]
speaker=Kaleh
message= _ "And what about trolls? I’m not sure I’d want to meet one face to face."
[/message]
[message]
speaker=Elyssa
message= _ "Trolls and dwarves are natural enemies, living so close together. And many would say trolls are little more than brutes and savages. Trolls are huge and very strong, with skin as hard as stone, and can be fearsome foes. But I knew one man long ago who traded with a group of trolls and said they were quite honorable, as long as you didn’t try to cheat them."
[/message]
[message]
speaker=Zhul
message= _ "Well, with Eloh’s guidance, I hope we find these tunnels deserted. I’ll be happy if our biggest problem is not getting lost. I have little wish to meet either dwarves or trolls. But Eloh will watch over us."
[/message]
[message]
speaker=Kaleh
message= _ "Will she? I got the impression she was powerless underground."
[/message]
[message]
speaker=Zhul
message= _ "Where did you get that idea? Certainly Eloh is strongest during the day, when the suns are shining down on us. But it is said that even in the darkest of nights she will protect her faithful. And back during the Golden Age holy elven warriors led great crusades against orcs and other foul things that hid underground, killing them with Eloh’s aid. Faith is our shield, Kaleh. I think you should keep your doubts to yourself; it would not do to unduly worry our people. Eloh will always protect us, if we follow her path."
[/message]
[message]
speaker=Kaleh
message= _ "Then let us hope the rest of our journey may be as uneventful as it has been this far."
[/message]
[/then]
[else]
[message]
speaker=Kaleh
message= _ "I’ve heard of dwarves, but do you have any idea, Zhul, what kinds of creatures we might encounter underground?"
[/message]
[message]
speaker=Zhul
message= _ "These tunnels are foreign to me; I know little more than you do. All I know about dwarves is from the few tales from the Golden Age."
[/message]
[message]
speaker=Nym
message= _ "What are they like?"
[/message]
[message]
speaker=Zhul
message= _ "They lived deep under the earth, mining gold and fine metals and forging many beautiful things. We were once allies during the Golden Age, but in the strife and chaos of the fall we lost all contact. I don’t know if any survived. But in the golden age they were very helpful in our wars against the orcs and trolls."
[/message]
[message]
speaker=Kaleh
message= _ "What are trolls?"
[/message]
[message]
speaker=Zhul
message= _ "Trolls were huge gray creatures as big as giants and very strong. They were reclusive creatures, hiding underground. We never had much contact with them, though some fought with the orcs in the great wars. They were mighty warriors. I’m sure they have all died off; I certainly would never want to meet one face to face."
[/message]
[message]
speaker=Zhul
message= _ "But with Eloh’s guidance, I hope we find these tunnels deserted. I’d be happy if our biggest problem is not getting lost. Still, even underground Eloh will watch over us."
[/message]
[message]
speaker=Kaleh
message= _ "Will she? I got the impression she was powerless underground."
[/message]
[message]
speaker=Zhul
message= _ "Where did you get that idea? Certainly Eloh is strongest during the day, when the suns are shining down on us. But it is said that even in the darkest of nights she will protect her faithful. And back during the Golden Age holy elven warriors led great crusades against orcs and other foul things that hid underground, killing them with Eloh’s aid. Faith is our shield, Kaleh. I think you should keep your doubts to yourself; it would not do to unduly worry our people. Eloh will always protect us, if we follow her path."
[/message]
[message]
speaker=Kaleh
message= _ "Then let us hope the rest of our journey may be as uneventful as it has been this far."
[/message]
[/else]
[/if]
[/event]
# Event 1: Spider and Ants
[event]
name=moveto
[filter]
x=12-18
y=20-29
side=1
[/filter]
[message]
speaker=Nym
message= _ "All I’m saying is that these tunnels aren’t as bad as I expected."
[/message]
[message]
speaker=Kaleh
# wmllint: local spelling Shhh
message= _ "Shhh! Did you hear something?"
[/message]
[remove_shroud]
side=1
x=11-19
y=24-27
[/remove_shroud]
#make ants easy: 3 medium: 4 hard: 5
{NOTRAIT_UNIT 6 (Giant Ant) 17 26}
{NOTRAIT_UNIT 6 (Giant Ant) 17 27}
{NOTRAIT_UNIT 6 (Giant Ant) 18 26}
#ifndef EASY
{NOTRAIT_UNIT 6 (Giant Ant) 18 27}
#endif
#ifdef HARD
{NOTRAIT_UNIT 6 (Giant Ant) 19 27}
#endif
#make spider
{NOTRAIT_UNIT 7 (Cave Spider) 4 25}
[redraw]
[/redraw]
[scroll_to_unit]
type=Giant Ant
[/scroll_to_unit]
[delay]
time=400
[/delay]
[message]
speaker=Zhul
message= _ "Ants. Very big ants. Maybe they won’t be hostile."
[/message]
[scroll_to_unit]
type=Cave Spider
[/scroll_to_unit]
[delay]
time=400
[/delay]
[message]
speaker=Kaleh
message= _ "On the other hand, that spider probably is."
[/message]
[message]
speaker=Nym
message= _ "Caught between a spider and its prey. Not a good place to be."
[/message]
[/event]
# If player escapes cave spider, then reward player by killing it
[event]
name=moveto
[filter]
x=18-24
y=26-29
side=1
[/filter]
[if]
[have_unit]
type=Cave Spider
[/have_unit]
[then]
[kill]
type=Cave Spider
animate=yes
[/kill]
[message]
speaker=Nym
message= _ "Whoa! Did you see that? That huge stalactite just fell and crushed the spider. Aren’t we lucky!"
[/message]
[message]
speaker=Zhul
message= _ "Eloh must indeed be watching over us."
[/message]
[/then]
[/if]
[/event]
# When player approaches large cavern, a dying dwarf runs out and yells a warning.
[event]
name=moveto
[filter]
x=18-24
y=26-28
side=1
[/filter]
[message]
speaker=Nym
message= _ "You know, if all we discover down here are insects, I’ll be very disappointed."
[/message]
[if]
[have_unit]
id=Elyssa
[/have_unit]
[then]
[message]
speaker=Elyssa
message= _ "Spiders aren’t insects."
[/message]
[message]
speaker=Nym
message= _ "Thanks for the clarification."
[/message]
[/then]
[/if]
[unit]
type=Dwarvish Fighter
side=4
hitpoints=12
id=Wounded Dwarf
x=25
y=28
[/unit]
[move_unit]
id=Wounded Dwarf
to_x=25,24,23,22,21
to_y=28,28,29,28,29
[/move_unit]
[message]
speaker=Wounded Dwarf
message= _ "Help! They’re everywhere!"
[/message]
[kill]
id=Wounded Dwarf
animate=yes
[/kill]
[message]
speaker=Kaleh
message= _ "Nym, your timing is impeccable."
[/message]
[if]
[have_unit]
id=Elyssa
[/have_unit]
[then]
[message]
speaker=Elyssa
message= _ "That’s a dwarf, but it looks like he’s been beaten to a pulp."
[/message]
[/then]
[else]
[message]
speaker=Zhul
message= _ "Short and hairy, he must be a dwarf. But he’s been beaten to a pulp."
[/message]
[/else]
[/if]
[message]
speaker=Kaleh
message= _ "I don’t know what ‘they’ are, but we can’t go back. Prepare yourselves for anything, everyone."
[/message]
[/event]
# EVENT 5 IS LISTED OUT OF ORDER BECAUSE FOR SOME REASON IT WASN'T
# FIRING WHEN PLACED AFTER EVENT 4.5. CURRENTLY THIS EVENT WORKS
# FINE WHEN IT IS HERE AND EVENT 6 FIRES FINE AFTER 4.5. SO EVEN
# THOUGH THE EVENTS ARE OUT OF ORDER, I'M LEAVING THEM THIS WAY
# BECAUSE IT SEEMS TO MAKE EVERYTHING WORK FINE.
# Event 5: Sighted dwarf/troll leader events
#define DWARF_ALLY_APPROACH_MESSAGES
{VARIABLE Fundin_approach_message (_ "What are you doing back here? The trolls hide in the southern tunnels, not this way.")}
{VARIABLE Nori_approach_message (_ "What are you doing back here? The trolls hide in the southern tunnels, not this way.")}
# wmllint: local spelling stinkin'
{VARIABLE Thungar_approach_message (_ "Nasty dwarves and stinkin’ elves, we will smash you all!")}
{VARIABLE Gnarl_approach_message (_ "Kill the elves! We must stop them here. This is our land, crush the intruders!")}
#enddef
#define TROLL_ALLY_APPROACH_MESSAGES
{VARIABLE Fundin_approach_message (_ "Treacherous elves, how can you fight with such horrid creatures as trolls? I will cleave all in two with my axe!")}
{VARIABLE Nori_approach_message (_ "If you think you can take these caves from us, then you are fools. We are masters of fighting underground and we will die to defend our home. Fight on, my brothers!")}
{VARIABLE Thungar_approach_message (_ "What you doing back here? Nasty dwarves are to the north, no dwarves this way. Go back and fight bravely.")}
{VARIABLE Gnarl_approach_message (_ "What you doing back here? Nasty dwarves are to the north, no dwarves this way. Go back and fight bravely.")}
#enddef
#define APPROACH_LEADER LEADER_ID ENTER_X_SPAN ENTER_Y_SPAN REMOVE_X_SPAN REMOVE_Y_SPAN
[event]
name=moveto
[filter]
x={ENTER_X_SPAN}
y={ENTER_Y_SPAN}
side=1
[/filter]
[remove_shroud]
x={REMOVE_X_SPAN}
y={REMOVE_Y_SPAN}
side=1
[/remove_shroud]
[message]
speaker={LEADER_ID}
message=${LEADER_ID}_approach_message
[/message]
[/event]
#enddef
# NW dwarf
{APPROACH_LEADER Fundin 23-31 8-17 22-31 7-17}
# NE dwarf
{APPROACH_LEADER Nori 41-51 10-16 40-52 9-17}
# SW troll
{APPROACH_LEADER Thungar 23-31 37-44 21-32 37-44}
# SE troll
{APPROACH_LEADER Gnarl 42-51 37-45 42-51 37-46}
#undef APPROACH_LEADER
# victory events for trolls and dwarves here to make the ally event easier to follow
#define CLOAK_KILL_OBJECTIVES
[objectives]
summary= _ "New Objectives:"
silent=no
[objective]
description= _ "Defeat the Cloaked Figure"
condition=win
[/objective]
[objective]
description= _ "Death of Kaleh"
condition=lose
[/objective]
[objective]
description= _ "Death of Nym"
condition=lose
[/objective]
[objective]
description= _ "Death of Zhul"
condition=lose
[/objective]
{TURNS_RUN_OUT}
[gold_carryover]
bonus=yes
carryover_percentage=40
[/gold_carryover]
[/objectives]
#enddef
#define TROLL_ALLY_VICTORY
[event]
name=troll_victory_test
[filter_condition]
[have_unit]
race=dwarf
canrecruit=yes
count=0
[/have_unit]
[/filter_condition]
[terrain]
x=22,21,20,19,19,18,17
y=14,14,14,15,16,16,17
terrain=Uu
[/terrain]
{NAMED_NOTRAIT_UNIT 2 (Troll Shaman) 20 14 (Zurg) ( _ "Zurg")}
[remove_shroud]
x=19-23
y=12-16
side=1
[/remove_shroud]
[redraw]
side=1
[/redraw]
[delay]
time=200
[/delay]
# wmllint: recognize Cloaked Figure
[message]
speaker=Zurg
message= _ "Congratulations! Some of trolls didn’t think you strong enough to beat Dwarves."
[/message]
[message]
speaker=Kaleh
message= _ "Where did you come from?"
[/message]
[message]
speaker=Zurg
message= _ "There many secret tunnels that you sun dwellers not know of. Only troll know. We smarter than you think. Zurg would have killed dwarves himself, but he was just sent back from where real fighting is."
[/message]
[message]
speaker=Zhul
message= _ "The real fighting? I thought that was what we were waist-deep in?"
[/message]
[message]
speaker=Zurg
# wmllint: local spelling tricksy
message= _ "While you fighting, another clan of dwarves sneak around and flank us. They tricksy like that. We must leave you and run back to defend women and little trolls. Dwarves never give up, many trolls die today, very hard fighting. But dwarves make mistake, you stronger than dwarf or troll thought. You trolls’ secret weapon."
[/message]
[message]
speaker=Nym
message= _ "How do you mean?"
[/message]
[message]
speaker=Zurg
message= _ "Right before battle, we find secret passage just to the north leading straight to big dwarf stronghold. Hiding in stronghold is big important dwarf, directing the battle. Dwarves always think they best fighters around so they leave only a few dwarves guarding their stronghold. If you elves can break through dwarf defenses and kill dwarf chieftain, then it will do much damage to dwarves, make them afraid and confused, easy prey for trolls. You do this and we can drive them back. Then troll leader can help show you how to return to surface. You come with Zurg, he show you way to secret passage."
[/message]
[message]
speaker=Elyssa
message= _ "Their knowledge of these tunnels is uncanny. I could have sworn a minute ago that that wall was solid rock."
[/message]
[if]
[have_unit]
id=Cloaked Figure
[/have_unit]
[then]
[message]
speaker=Kaleh
message= _ "Wait a moment, Zurg, we must deal with this mysterious cloaked figure before we can follow you."
[/message]
#set new scenario objectives
{CLOAK_KILL_OBJECTIVES}
[/then]
[else]
[message]
speaker=Kaleh
message= _ "It sounds like our work is not yet done. Very well, gather yourselves together, we must follow Zurg."
[/message]
[endlevel]
result=victory
next_scenario=06b_In_the_Domain_of_the_Dwarves
bonus=yes
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/else]
[/if]
[/event]
#enddef
#define DWARF_ALLY_VICTORY
[event]
name=dwarf_victory_test
[filter_condition]
[have_unit]
race=troll
canrecruit=yes
count=0
[/have_unit]
[/filter_condition]
[terrain]
x=24,23,22,21,20,19,18
y=44,45,45,46,46,46,45
terrain=Uu
[/terrain]
[delay]
time=200
[/delay]
{NAMED_NOTRAIT_UNIT 5 (Dwarvish Pathfinder) 21 46 (Grimnir) ( _ "Grimnir")}
[remove_shroud]
x=20-26
y=43-46
side=1
[/remove_shroud]
[redraw]
side=1
[/redraw]
[message]
speaker=Grimnir
message= _ "Congratulations, some of me boys didn’t think you could beat the trolls."
[/message]
[message]
speaker=Kaleh
message= _ "Where did you come from?"
[/message]
[message]
speaker=Grimnir
message= _ "Don’t think you know all the tunnels and passages that twist through these caves, elf. I would have killed him myself, but I was just sent back from the main front of the battle."
[/message]
[message]
speaker=Zhul
message= _ "The front? I thought this was the front."
[/message]
[message]
speaker=Grimnir
message= _ "While you were fighting, a separate clan of trolls sneaked around our sentries and flanked us, attacking our supply depots. There are more of those stinking buggers than we had originally thought. To tell you the truth, we are hard pressed. We’re going to have to pull back all our forces in these caves to reinforce the back lines. But your victory here has produced a unexpected opportunity."
[/message]
[message]
speaker=Nym
message= _ "It has?"
[/message]
[message]
speaker=Grimnir
message= _ "Right before the trolls overran this area of the mines, our scouts had found an old tunnel south of here that leads almost straight to the main lair of this tribe of trolls. We believe that protected in the lair is one of their main leaders who is directing the battle. We were going to try to sneak in and lead a surprise attack, but frankly we didn’t have enough dwarves to spare. If by using this passage you can sneak past their front lines and kill him, then it will throw the trolls into disarray and relieve the pressure on our front lines. If you do this our King has promised to help you return your people to the sunlit lands. When you’re ready I’ll show you the way. It’s not far."
[/message]
[message]
speaker=Elyssa
message= _ "Their knowledge of these tunnels is uncanny. I could have sworn a minute ago that that wall was solid rock."
[/message]
[if]
[have_unit]
id=Cloaked Figure
[/have_unit]
[then]