-
-
Notifications
You must be signed in to change notification settings - Fork 988
/
5_Hills_of_the_Shorbear_Clan.cfg
852 lines (808 loc) · 26.2 KB
/
5_Hills_of_the_Shorbear_Clan.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
#textdomain wesnoth-sof
[scenario]
name= _ "Hills of the Shorbear Clan"
id=5_Hills_of_the_Shorbear_Clan
turns=24
map_data="{campaigns/Sceptre_of_Fire/maps/5_Hills_of_the_Shorbear_Clan.map}"
next_scenario=6_Towards_the_Caves
# the music will change in the end of the opening dialogue
{SCENARIO_MUSIC knolls.ogg}
{DEFAULT_SCHEDULE}
[side]
type=Dwarvish Fighter
id=Rugnur
side=1
canrecruit=yes
controller=human
recruit=Dwarvish Fighter,Dwarvish Thunderer,Dwarvish Guardsman,Dwarvish Scout,Gryphon Rider
gold=200
team_name=dwarves
user_team_name= _ "Dwarves"
[village]
x,y=5,2
[/village]
[village]
x,y=10,1
[/village]
{FLAG_VARIANT knalgan}
[/side]
[side]
type=Dwarvish Lord
id=Glonoin
name= _ "Glonoin"
side=2
canrecruit=yes
{RECRUIT (Dwarvish Fighter,Dwarvish Steelclad,Dwarvish Thunderer,Dwarvish Guardsman) (Dwarvish Steelclad,Dwarvish Thunderguard,Dwarvish Thunderer,Dwarvish Guardsman) (Dwarvish Steelclad,Dwarvish Thunderguard,Dwarvish Thunderer,Dwarvish Stalwart,Dwarvish Pathfinder,Dwarvish Scout)}
{GOLD 200 300 400}
[ai]
recruitment_pattern=fighter,fighter,fighter,mixed fighter
aggression=-0.5
caution=0.5
village_value=0.1
leader_value=0
villages_per_scout=0
grouping=defensive
[goal]
name=protect_unit
[criteria]
side=2
canrecruit=yes
[/criteria]
protect_radius=4
value=2
[/goal]
[/ai]
team_name=enemies
user_team_name= _ "Enemies"
{FLAG_VARIANT knalgan}
[/side]
{STARTING_VILLAGES 2 6}
[side]
no_leader=yes
side=3
{RECRUIT (Elvish Ranger,Elvish Scout,Elvish Hero) (Elvish Ranger,Elvish Marksman,Elvish Scout,Elvish Hero) (Elvish Ranger,Elvish Marksman,Elvish Scout,Elvish Hero)}
{GOLD 250 300 350}
[ai]
recruitment_pattern=scout,scout,fighter,archer
turns=1-6
aggression=1.0
caution=0.1
village_value=2
leader_value=1
grouping=no
[goal]
name=protect_unit
[criteria]
side=3
canrecruit=yes
[/criteria]
value=0.5
[/goal]
[/ai]
[ai]
recruitment_pattern=fighter,fighter,archer
turns=6-20
aggression=0.5
caution=0.2
village_value=2
grouping=offensive
[goal]
name=protect_unit
[criteria]
side=3
canrecruit=yes
[/criteria]
value=1
[/goal]
[/ai]
[ai]
recruitment_pattern=fighter,fighter,archer,scout
turns=20-24
aggression=1.0
caution=0
village_value=0
leader_value=10
grouping=no
[goal]
name=protect_unit
[criteria]
side=3
canrecruit=yes
[/criteria]
value=0
[/goal]
[/ai]
team_name=enemies
user_team_name= _ "Enemies"
{FLAG_VARIANT wood-elvish}
[/side]
[story]
[part]
story= _ "All dwarves are known for a love of gold and a heart of stone. The Shorbears were no exception. They were crafters of crafters — they made tools. The best in the land. And they bartered well."
[/part]
[/story]
{SOF_TRACK {JOURNEY_05_NEW} }
{SOF_DEATHS}
[event]
name=prestart
[objectives]
side=1
[objective]
description= _ "Defeat Glonoin, the Shorbear clan leader"
condition=win
[/objective]
[objective]
description= _ "Death of Rugnur"
condition=lose
[/objective]
[objective]
description= _ "Death of Alanin"
condition=lose
[/objective]
[objective]
description= _ "Death of Krawg"
condition=lose
[/objective]
[objective]
description= _ "Death of Thursagan"
condition=lose
[/objective]
[objective]
description= _ "Death of Durstorn"
condition=lose
[/objective]
{TURNS_RUN_OUT}
[gold_carryover]
bonus=no
carryover_percentage=40
[/gold_carryover]
[/objectives]
[/event]
# wmllint: directory spelling Shorbear Shorbears
[event]
name=start
#durstorn, noiraran and kuhnar
[unit]
x,y=11,1
type=Dwarvish Lord
id=Durstorn
name= _ "Durstorn"
unrenamable=yes
side=1
{IS_HERO}
profile=portraits/durstorn-insane.png
random_traits=no
[modifications]
{TRAIT_LOYAL}
[/modifications]
[/unit]
[unit]
x,y=11,1
type=Dwarvish Thunderguard
id=Noiraran
name= _ "Noiraran"
side=1
[modifications]
{TRAIT_LOYAL}
{TRAIT_INTELLIGENT}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
x,y=11,1
type=Dwarvish Steelclad
id=Kuhnar
name= _ "Kuhnar"
side=1
[modifications]
{TRAIT_LOYAL}
{TRAIT_QUICK}
[/modifications]
{IS_LOYAL}
[/unit]
#alanin, baglur, krawg and thursagan
[recall]
id=Alanin
[/recall]
[recall]
id=Baglur
[/recall]
[recall]
id=Krawg
[/recall]
[recall]
id=Thursagan
[/recall]
{MODIFY_UNIT id=Alanin profile "portraits/alanin-old.png~BLIT(portraits/alanin-winter-overlay.png,0,0)"}
#dialogue starts
[message]
speaker=Kuhnar
message= _ "Here we are; the hills of the Shorbear clan. What are we here for, anyway?"
[/message]
[message]
speaker=Rugnur
message= _ "If I understand it correctly, we’re here to bargain with the Shorbears, and arrange for us to use their tools to cut the ruby."
[/message]
[message]
speaker=Thursagan
message= _ "Exactly."
[/message]
[message]
speaker=Durstorn
message= _ "And I’ll be doing the talking; I remember what happened last time you negotiated a deal! We lost five thousand pieces of silver."
[/message]
[message]
speaker=Glonoin
message= _ "Och, it’s some o’ them cave-dwarves. What business do you have here?"
[/message]
[message]
speaker=Durstorn
message= _ "I’m Lord Durstorn, king of my tribe. I have been told you are great jeweler-workers, and so we come to rent some of your tools for a short time, a few years at most."
[/message]
[message]
speaker=Glonoin
message= _ "You’re a king?! Must be a pretty small kingdom for you to come yourself to bargain with us!"
[/message]
[message]
speaker=Durstorn
message= _ "You insult me! Do you want my business, or not?"
[/message]
[message]
speaker=Glonoin
message= _ "Well, fine, I’ll hear your offer."
[/message]
[message]
speaker=Durstorn
message= _ "We’d like to rent your best tools for a short period of time. We’ll only be cutting one jewel with it. My starting offer is two hundred silver."
[/message]
[message]
speaker=Glonoin
message= _ "It must be worth a lot for you to come this way and offer that much! How much are you going to sell it for, eh?"
[/message]
[message]
speaker=Durstorn
message= _ "That’s none of your concern!"
[/message]
[message]
speaker=Glonoin
message= _ "I’ll take twenty-five hundred, minimum."
[/message]
[message]
speaker=Rugnur
message={WHISPER _"Durstorn, that would be a quarter of all our profits!"}
[/message]
[message]
speaker=Durstorn
message= _ "I know that. Uh, Glonoin, how about five hundred?"
[/message]
[message]
speaker=Glonoin
message= _ "Twenty-three hundred is my lowest offer. I can tell I don’t need the money as much as you need the jewel cut!"
[/message]
[message]
speaker=Durstorn
message= _ "You must be mad! I’ll offer one thousand, but no higher!"
[/message]
[message]
speaker=Glonoin
message= _ "Two thousand, and I’ll go no lower!"
[/message]
[message]
speaker=Rugnur
message={WHISPER _"What are we going to do? We can’t go much higher!"}
[/message]
[message]
speaker=Baglur
message= {WHISPER _"Offer him fifteen hundred, but don’t go up, even if he refuses."}
[/message]
[message]
speaker=Durstorn
message= {WHISPER _"Bah! Getting this cut isn’t worth that much; what with Rugnur’s mistake earlier, and all the other expenses, if we pay more than a thousand we’ll barely even make a profit!"}
[/message]
[message]
speaker=Thursagan
message= {WHISPER _"So what are you going to do?"}
[/message]
[message]
speaker=Durstorn
message= {WHISPER _"Fight him, and take the tools by force."}
[/message]
[message]
speaker=Thursagan
message= {WHISPER _"Are you mad?!"}
[/message]
[message]
speaker=Durstorn
message= _ "Of course not! Now, Glonoin; one thousand was my final offer. If you won’t accept it, we will take the tools from you by force!"
[/message]
[message]
speaker=Glonoin
message= _ "I’d like to see you try!"
[/message]
[message]
speaker=Thursagan
message= _ "You’re making a mistake, Durstorn."
[/message]
[music]
name=the_city_falls.ogg
immediate=yes
append=no
[/music]
[music]
name=battle.ogg
append=yes
[/music]
[message]
speaker=Durstorn
message= _ "Shut up, all of you! Attack them!"
[/message]
[/event]
[event]
name=turn 3
[unit]
x,y=1,35
side=3
id=Lyndar
name= _ "Lyndar"
canrecruit=yes
type=Elvish Marshal
[/unit]
{MOVE_UNIT id=Lyndar 3 33}
[terrain]
terrain=Cea
x,y=3,33
radius=1
[/terrain]
[terrain]
terrain=Ke
x,y=3,33
[/terrain]
[terrain]
terrain=Ce
x,y=2,33
[/terrain]
[message]
speaker=Lyndar
message= _ "Aha! I’ve spent years looking for you dwarves, but now I’ve found you! Prepare to die!"
[/message]
[message]
speaker=Glonoin
message= _ "Who the devil are you?"
[/message]
[message]
speaker=Rugnur
message= _ "I thought we left the elves behind at the gates four years ago! It seems we have two enemies now."
[/message]
[message]
speaker=Glonoin
message= _ "So, elves, are you against these dwarves too? They’re attacking my clan for absolutely no reason!"
[/message]
[message]
speaker=Lyndar
message= _ "I see. So you don’t have the ruby?"
[/message]
[message]
speaker=Glonoin
message= _ "No, they do. They wanted to rent my tools to cut it, but they didn’t offer me nearly enough!"
[/message]
[message]
speaker=Lyndar
message= _ "How about this — I help you defeat them, and you let me keep the ruby when we have?"
[/message]
[message]
speaker=Glonoin
message= _ "Deal!"
[/message]
[message]
speaker=Durstorn
message= _ "Ah, they don’t scare me! We can take both of them!"
[/message]
[message]
speaker=Thursagan
message= _ "Don’t be a fool! We can’t take the elves, and it was a mistake to attack these dwarves, but if we have to fight we should retreat once we get what we came for, the tools!"
[/message]
[objectives]
side=1
[objective]
description= _ "Defeat Glonoin, the Shorbear clan leader"
condition=win
[/objective]
[objective]
description= _ "Have all heroes in the Shorbear caves while no enemies are in the caves"
condition=win
[/objective]
[objective]
description= _ "Death of Rugnur"
condition=lose
[/objective]
[objective]
description= _ "Death of Alanin"
condition=lose
[/objective]
[objective]
description= _ "Death of Krawg"
condition=lose
[/objective]
[objective]
description= _ "Death of Thursagan"
condition=lose
[/objective]
[objective]
description= _ "Death of Durstorn"
condition=lose
[/objective]
{TURNS_RUN_OUT}
[gold_carryover]
bonus=no
carryover_percentage=40
[/gold_carryover]
[/objectives]
[/event]
#define IN_CAVES
[filter_location]
x,y=19,17
radius=6
# x=16-22,15-23,13-25,15-22,17-21
# y= 11, 12,13-19, 20, 21
[/filter_location]
#enddef
[event]
name=die
[filter]
id=Glonoin
[/filter]
[kill]
id=Glonoin
animate=no
fire_event=no
[/kill]
[message]
speaker=Durstorn
message= _ "Ha! Now we can get those tools easily, and go back to our own caves."
[/message]
[message]
speaker=Thursagan
message= _ "And how do you plan on doing that? There are elves swarming these hills, trying to kill us."
[/message]
[message]
speaker=Durstorn
message= _ "You are right... well, we will be able to break out eventually, and while we’re here, we’ll be able to finally make the sceptre."
[/message]
[if]
[have_unit]
id=Rugnur
{IN_CAVES}
[/have_unit]
[have_unit]
id=Alanin
{IN_CAVES}
[/have_unit]
[have_unit]
id=Krawg
{IN_CAVES}
[/have_unit]
[have_unit]
id=Thursagan
{IN_CAVES}
[/have_unit]
[have_unit]
id=Durstorn
{IN_CAVES}
[/have_unit]
[then]
[if]
[have_unit]
side=2,3
{IN_CAVES}
[/have_unit]
[then]
[message]
speaker=Thursagan
message= _ "Well, back to the battle — we are all in the caves, but there are still enemies in here also!"
[/message]
[message]
speaker=Durstorn
message= _ "Indeed. Kill them! And make sure no more enter. Then we can close the gates."
[/message]
{VARIABLE ready_to_close yes}
[objectives]
side=1
[objective]
description= _ "Have all heroes in the Shorbear caves while no enemies are in the caves"
condition=win
[/objective]
[objective]
description= _ "Death of Rugnur"
condition=lose
[/objective]
[objective]
description= _ "Death of Alanin"
condition=lose
[/objective]
[objective]
description= _ "Death of Krawg"
condition=lose
[/objective]
[objective]
description= _ "Death of Thursagan"
condition=lose
[/objective]
[objective]
description= _ "Death of Durstorn"
condition=lose
[/objective]
{TURNS_RUN_OUT}
[gold_carryover]
bonus=no
carryover_percentage=40
[/gold_carryover]
[/objectives]
[/then]
[else]
[message]
speaker=Thursagan
message= _ "We have driven all of the dwarves and elves out of these caves. They are not ours, though, and we can’t stay here forever."
[/message]
[message]
speaker=Durstorn
message= _ "True. I suspect these elves will try to besiege us here."
[/message]
[endlevel]
result=victory
bonus=no
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/else]
[/if]
[/then]
[else]
[message]
speaker=Thursagan
message= _ "Well, back to the battle — we need everyone to get into the Shorbear caves. And then stop any enemies from coming in here."
[/message]
[message]
speaker=Durstorn
message= _ "Indeed. Everyone to the caves, and kill those still inside!"
[/message]
{VARIABLE ready_to_close yes}
[objectives]
side=1
[objective]
description= _ "Have all heroes in the Shorbear caves while no enemies are in the caves"
condition=win
[/objective]
[objective]
description= _ "Death of Rugnur"
condition=lose
[/objective]
[objective]
description= _ "Death of Alanin"
condition=lose
[/objective]
[objective]
description= _ "Death of Krawg"
condition=lose
[/objective]
[objective]
description= _ "Death of Thursagan"
condition=lose
[/objective]
[objective]
description= _ "Death of Durstorn"
condition=lose
[/objective]
{TURNS_RUN_OUT}
[gold_carryover]
bonus=no
carryover_percentage=40
[/gold_carryover]
[/objectives]
[/else]
[/if]
[/event]
[event]
name=die
first_time_only=no
[filter]
side=2,3
[/filter]
[if]
[variable]
name=ready_to_close
equals=yes
[/variable]
[have_unit]
id=Rugnur
{IN_CAVES}
[/have_unit]
[have_unit]
id=Alanin
{IN_CAVES}
[/have_unit]
[have_unit]
id=Krawg
{IN_CAVES}
[/have_unit]
[have_unit]
id=Thursagan
{IN_CAVES}
[/have_unit]
[have_unit]
id=Durstorn
{IN_CAVES}
[/have_unit]
[then]
[if]
[have_unit]
side=2,3
{IN_CAVES}
[/have_unit]
[else]
[message]
speaker=Durstorn
message= _ "We have driven all of the dwarves and elves out of these caves! Now, seal the gates!"
[/message]
[endlevel]
result=victory
bonus=no
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/else]
[/if]
[/then]
[/if]
[/event]
[event]
name=moveto
first_time_only=no
[filter]
side=1
[not]
[not]
id=Rugnur
[/not]
[not]
id=Alanin
[/not]
[not]
id=Krawg
[/not]
[not]
id=Thursagan
[/not]
[not]
id=Durstorn
[/not]
[/not]
[/filter]
[if]
[variable]
name=ready_to_close
equals=yes
[/variable]
[have_unit]
id=Rugnur
{IN_CAVES}
[/have_unit]
[have_unit]
id=Alanin
{IN_CAVES}
[/have_unit]
[have_unit]
id=Krawg
{IN_CAVES}
[/have_unit]
[have_unit]
id=Thursagan
{IN_CAVES}
[/have_unit]
[have_unit]
id=Durstorn
{IN_CAVES}
[/have_unit]
[then]
[if]
[have_unit]
side=2,3
{IN_CAVES}
[/have_unit]
[then]
[allow_undo][/allow_undo]
[/then]
[else]
[message]
speaker=Durstorn
message= _ "We have driven all of the dwarves and elves out of these caves! Now, seal the gates!"
[/message]
[endlevel]
result=victory
bonus=no
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/else]
[/if]
[/then]
[else]
[allow_undo][/allow_undo]
[/else]
[/if]
[/event]
[event]
name=new turn
first_time_only=no
[if]
[variable]
name=ready_to_close
equals=yes
[/variable]
[have_unit]
id=Rugnur
{IN_CAVES}
[/have_unit]
[have_unit]
id=Alanin
{IN_CAVES}
[/have_unit]
[have_unit]
id=Krawg
{IN_CAVES}
[/have_unit]
[have_unit]
id=Thursagan
{IN_CAVES}
[/have_unit]
[have_unit]
id=Durstorn
{IN_CAVES}
[/have_unit]
[then]
[if]
[have_unit]
side=2,3
{IN_CAVES}
[/have_unit]
[else]
[message]
speaker=Durstorn
message= _ "We have driven all of the dwarves and elves out of these caves! Now, seal the gates!"
[/message]
[endlevel]
result=victory
bonus=no
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/else]
[/if]
[/then]
[/if]
[/event]
[event]
name=enemies defeated
[endlevel]
result=victory
bonus=yes
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/event]
[event]
name=last breath
[filter]
id=Durstorn
[/filter]
[message]
speaker=Durstorn
message= _ "Gaanngh..." # wmllint: no spellcheck
[/message]
[endlevel]
result=defeat
[/endlevel]
[/event]
[event]
name=turn 10
[gold]
side=3
amount=200
[/gold]
[/event]
[/scenario]
#undef IN_CAVES