-
-
Notifications
You must be signed in to change notification settings - Fork 988
/
6_Towards_the_Caves.cfg
665 lines (611 loc) · 20.9 KB
/
6_Towards_the_Caves.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
#textdomain wesnoth-sof
[scenario]
name= _ "Towards the Caves"
id=6_Towards_the_Caves
turns=12
map_file=campaigns/Sceptre_of_Fire/maps/6_Towards_the_Caves.map
next_scenario=7_Outriding_the_Outriders
{SCENARIO_MUSIC breaking_the_chains.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"
{FLAG_VARIANT knalgan}
[/side]
# Rugnur starts with all villages within the captured Shorbear keep.
# Elves will start munching on them fairly soon.
{STARTING_VILLAGES 1 6}
[side]
type=Elvish Marshal
id=Gaenlar
name= _ "Gaenlar"
side=2
canrecruit=yes
recruit=Elvish Rider,Elvish Hero,Elvish Marksman,Elvish Ranger,Elvish Druid
{GOLD 300 350 400}
team_name=elves
user_team_name= _ "Elves"
[ai]
[goal]
name=protect_location
[criteria]
x,y=36,3
[/criteria]
value=100
protect_radius=10
[/goal]
[goal]
name=target
[criteria]
type=Gryphon,Gryphon Rider,Gryphon Master
[/criteria]
value=10
[/goal]
[goal]
name=target
[criteria]
id=Alanin
[/criteria]
value=2
[/goal]
[goal]
name=target
[criteria]
race=dwarf
[/criteria]
value=1
[/goal]
[/ai]
{FLAG_VARIANT wood-elvish}
[/side]
{STARTING_VILLAGES 2 12}
[side]
type=Elvish Marshal
id=Glinan
name= _ "Glinan"
side=3
canrecruit=yes
recruit=Elvish Rider,Elvish Hero,Elvish Marksman,Elvish Ranger,Elvish Druid
{GOLD 225 275 325}
team_name=elves
user_team_name= _ "Elves"
[ai]
[goal]
name=protect_location
[criteria]
x,y=36,3
[/criteria]
value=100
protect_radius=10
[/goal]
[goal]
name=target
[criteria]
race=dwarf
[/criteria]
value=10
[/goal]
[avoid]
x=1-18
y=1-38
[/avoid]
[/ai]
{FLAG_VARIANT wood-elvish}
[/side]
{STARTING_VILLAGES 3 8}
{STARTING_VILLAGES_AREA 3 34 10 8}
[side]
type=Elvish Captain
id=Kalnar
name= _ "Kalnar"
side=4
canrecruit=yes
recruit=Elvish Scout,Elvish Fighter,Elvish Archer,Elvish Shaman
{GOLD 100 150 200}
team_name=elves
user_team_name= _ "Elves"
[ai]
[goal]
name=target
[criteria]
id=Alanin
[/criteria]
value=10
[/goal]
[goal]
name=target
[criteria]
race=dwarf
[/criteria]
value=1
[/goal]
[/ai]
{FLAG_VARIANT wood-elvish}
[/side]
{STARTING_VILLAGES 4 11}
[story]
[part]
story= _ "Durstorn’s rash action led to many problems. Not the least of which was being surrounded by elves."
[/part]
[part]
story= _ "The dwarves spent several years trapped in those caves, the elves besieging them. The dwarves could not leave, for there were far too many elves, and there was no way out of the caverns other than above ground. But the elves could not enter, for the magical dwarven gates were closed."
[/part]
[part]
story= _ "During this time, Thursagan crafted the Sceptre of Fire, first cutting the jewel, then putting it, the gold and the cold steel into the heat of the flame. The sceptre was crafted, but something was not right. No matter what enchantment of runes he put on the Sceptre, it did not fulfill its original purpose."
[/part]
[/story]
{SOF_TRACK {JOURNEY_06_NEW} }
{SOF_DEATHS}
[event]
name=prestart
[objectives]
side=1
[objective]
description= _ "Move Rugnur to the northeast cave entrance"
condition=win
[show_if]
[have_unit]
id=Rugnur
[/have_unit]
[/show_if]
[/objective]
[objective]
description= _ "Move Alanin to the southern border east of the river"
condition=win
[show_if]
[have_unit]
id=Alanin
[/have_unit]
[/show_if]
[/objective]
[objective]
description= _ "Death of Rugnur"
condition=lose
[show_if]
[have_unit]
id=Rugnur
[/have_unit]
[/show_if]
[/objective]
[objective]
description= _ "Death of Alanin"
condition=lose
[show_if]
[have_unit]
id=Alanin
[/have_unit]
[/show_if]
[/objective]
[objective]
description= _ "Death of Krawg"
condition=lose
[show_if]
[have_unit]
# wmllint: recognize Krawg
id=Krawg
[/have_unit]
[/show_if]
[/objective]
[objective]
description= _ "Death of Thursagan"
condition=lose
[show_if]
[have_unit]
# wmllint: recognize Thursagan
id=Thursagan
[/have_unit]
[/show_if]
[/objective]
{TURNS_RUN_OUT}
[gold_carryover]
bonus=no
carryover_percentage=40
[/gold_carryover]
[/objectives]
{LOYAL_UNIT 2 "Elvish Ranger" 5 25} {GUARDIAN}
{LOYAL_UNIT 3 "Elvish Hero" 5 7} {GUARDIAN}
{LOYAL_UNIT 3 "Elvish Ranger" 11 5} {GUARDIAN}
{LOYAL_UNIT 3 "Elvish Hero" 19 6} {GUARDIAN}
{LOYAL_UNIT 3 "Elvish Captain" 24 6} {GUARDIAN}
{LOYAL_UNIT 4 "Elvish Fighter" 31 27} {GUARDIAN}
{LOYAL_UNIT 4 "Elvish Archer" 27 30} {GUARDIAN}
[/event]
[event]
name=start
#alanin, baglur, krawg and thursagan
[recall]
id=Thursagan
x,y=18,16
[/recall]
[recall]
id=Durstorn
x,y=19,16
[/recall]
[recall]
id=Alanin
[/recall]
[recall]
id=Baglur
[/recall]
[recall]
id=Krawg
[/recall]
{MODIFY_UNIT id=Alanin profile "portraits/alanin-older.png~BLIT(portraits/alanin-winter-overlay.png,0,0)"}
#dialogue starts
[message]
speaker=Rugnur
message= _ "Well, Thursagan has reached a conclusion. He can’t make the sceptre with the materials he has here, but he has the final plans for it, and all the jewels and gold he needs. Shouldn’t we leave now?"
[/message]
[message]
speaker=Durstorn
message= _ "All this time and he couldn’t make it? Fine, we should try to leave... but it’s not like we could leave if we wanted to. We’re surrounded!"
[/message]
[if]
[have_unit]
id=Baglur
[/have_unit]
[then]
[message]
speaker=Baglur
message= _ "If ye’ll permit me to say so, sir, ye’re wrong. We could—"
[/message]
[message]
speaker=Durstorn
message= _ "Shut up, Baglur! You don’t know what you’re talking about. I’ve analyzed the situation, and we’re doomed. Our best hope is to surrender. Perhaps if we give the elves the plans for the Sceptre of Fire they will let us survive."
[/message]
[/then]
[else]
[message]
speaker=Rugnur
message= _ "If you’ll permit me to say so, sir, you’re wrong. We could —"
[/message]
[message]
speaker=Durstorn
message= _ "Shut up, Rugnur! You don’t know what you’re talking about. I’ve analyzed the situation, and we’re doomed. Our best hope is to surrender. Perhaps if we give the elves the plans for the Sceptre of Fire they will let us survive."
[/message]
[/else]
[/if]
[message]
speaker=Rugnur
message= _ "Yes, of course, let’s just all be cowards! What happened to your honor, Durstorn?!"
[/message]
[message]
speaker=Durstorn
message= _ "You little fool, honor is less important than life! So, I’m ordering Thursagan to give the plans and the ruby to the elves, as a peace offering. Then maybe we’ll walk out of here alive."
[/message]
[message]
speaker=Thursagan
message= _ "You don’t have authority over me, Durstorn. And I wouldn’t give the Sceptre to them even if you did. It’s not yours to give, it’s mine, and Rugnur’s, and Baglur’s. Krawg’s done more for its existence than you have! And yet, you still get the profits from selling it to Haldric."
[/message]
[message]
speaker=Durstorn
message= _ "So what, all of you want to die? Fine by me, but I won’t die with you! And if you won’t give the Sceptre to the elves, I’ll take it from you!"
[/message]
[animate_unit]
flag=attack
[filter]
id=Durstorn
[/filter]
[primary_attack]
name=battle axe
[/primary_attack]
hits=no
text= _ "<i>Swoosh!</i>"
red=255
green=0
blue=0
[facing]
[filter]
id=Thursagan
[/filter]
[/facing]
[animate]
flag=defend
[filter]
id=Thursagan
[/filter]
hits=no
[facing]
[filter]
id=Durstorn
[/filter]
[/facing]
[/animate]
[/animate_unit]
[message]
speaker=Thursagan
message= _ "Nice try, Durstorn, but you missed. Now, I’d say that attacking an ally constitutes treason, wouldn’t you?"
[/message]
[message]
speaker=Durstorn
message= _ "You’re not my ally. You’re more against me than the elves are; all they want is the ruby, but you want us dead!"
[/message]
[message]
speaker=Rugnur
message= _ "If that’s what you’re thinking, you’re not fit to be ruler over us! So step down, or we’ll force you."
[/message]
[message]
speaker=Durstorn
message= _ "Never!"
[/message]
[animate_unit]
flag=attack
[filter]
id=Thursagan
[/filter]
[primary_attack]
name=hammer
[/primary_attack]
hits=yes
[facing]
[filter]
id=Durstorn
[/filter]
[/facing]
[animate]
flag=defend
[filter]
id=Durstorn
[/filter]
hits=yes
text= _ "<i>Thud!</i>"
red=255
green=0
blue=0
[facing]
[filter]
id=Thursagan
[/filter]
[/facing]
[/animate]
[/animate_unit]
[kill]
id=Durstorn
animate=yes
[/kill]
{REPLACE_SCENARIO_MUSIC the_king_is_dead.ogg}
{APPEND_MUSIC casualties_of_war.ogg}
{APPEND_MUSIC battle.ogg}
[message]
speaker=Rugnur
message= _ "Well, I suppose we were right to silence him, but I don’t like this. In any case, now we should try to get out of here."
[/message]
[message]
speaker=Thursagan
message= _ "Yes. So, see the area to the northeast of us?"
[/message]
[scroll_to]
x,y=36,3
[/scroll_to]
[delay]
time=1000
[/delay]
[message]
speaker=Thursagan
message= _ "That’s where there are the least elvish guards, so we have the greatest chance of success there. I think we should try to get to it."
[/message]
[message]
speaker=Alanin
message= _ "This plan, it isn’t worse than staying here to be killed, but it isn’t likely to succeed either. Even if it does, what will it accomplish? We will be cornered there."
[/message]
[message]
speaker=Thursagan
message= _ "I don’t know if we will be cornered. That cave looks like it goes deep, and we can lose the elves in the caves, they move so slow there. Once we get out, we’ll make our way back to Knalga."
[/message]
[message]
speaker=Rugnur
message= _"The country between here and Knalga will be swarming with elves. We had better head back to the abandoned mines north of the Arkan-thoria, where we gathered our gold and coal. At least there Alanin will have some hope of finding us."
[/message]
[message]
speaker=Alanin
message= _ "That’s fine for you, you can run fast in caves, but I can’t! What am I supposed to do?"
[/message]
[message]
speaker=Rugnur
message= _ "Well, you are a member of the Wesnothian army. Why don’t you rejoin it? See if you can run past those elves to our southeast..."
[/message]
[scroll_to]
x,y=31,37
[/scroll_to]
[delay]
time=1000
[/delay]
[message]
speaker=Rugnur
message= _ "... and then ride south until you reach one of your outposts."
[/message]
[message]
speaker=Alanin
message= _ "I’m not going to do that, it’s suicide! And in any case, I’ve been with you for ten years, almost as long as I was in the Wesnothian army; I’d prefer to fight with you."
[/message]
[message]
speaker=Thursagan
message= _ "You going south has more of a chance of success for you than staying here or going back to the mines! And getting news to Haldric of what has happened is also the best way to get help to us."
[/message]
[message]
speaker=Alanin
message= _ "I suppose..."
[/message]
[message]
speaker=Gaenlar
message= _ "Come out, dwarves, and surrender! Or die in that cave, your choice."
[/message]
[/event]
[event]
name=turn 4
[gold]
side=2
amount=200
[/gold]
[gold]
side=3
amount=200
[/gold]
[gold]
side=4
amount=200
[/gold]
[/event]
[event]
name=moveto
[filter]
id=Alanin
x=22-40
y=38
[/filter]
[if]
[have_unit]
id=Rugnur
[/have_unit]
[then]
[message]
speaker=Rugnur
message= _ "Alanin, ride south as fast as you can. Tell Haldric we are heading northeast, towards the old eastern mines, and if he wants his precious sceptre he should send forces to meet us there as soon as he can!"
[/message]
[store_unit]
[filter]
id=Alanin
[/filter]
variable=alanin
kill=yes
[/store_unit]
[show_objectives]
[/show_objectives]
[/then]
[else]
[message]
speaker=Alanin
message= _ "I have made it past those elves, but they will chase me, and elvish horses are faster than mine."
[/message]
[store_unit]
[filter]
id=Alanin
[/filter]
variable=alanin
kill=yes
[/store_unit]
[endlevel]
result=victory
bonus=no
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/else]
[/if]
[/event]
[event]
name=moveto
[filter]
id=Rugnur
x,y=36,3
[/filter]
[if]
[have_unit]
id=Alanin
[/have_unit]
[then]
[message]
speaker=Alanin
message= _ "Rugnur, I am going south. What should I tell Haldric?"
[/message]
[message]
speaker=Rugnur
message= _ "Tell him to send forces north to aid us and fight the elves, but that we are probably going to die. We will run northeast towards the old eastern mines, and if he wants his sceptre intact he’d best send troops to meet us there."
[/message]
[store_unit]
[filter]
side=1
[not]
id=Alanin
[/not]
[/filter]
variable=dwarves
kill=yes
[/store_unit]
# for purely flavor reasons
[disallow_recruit]
side=1
[/disallow_recruit]
[show_objectives]
[/show_objectives]
[/then]
[else]
[message]
speaker=Rugnur
message= _ "I don’t know what is in these caves, but whatever it is can’t be worse than staying here to die."
[/message]
[store_unit]
[filter]
side=1
[not]
id=Alanin
[/not]
[/filter]
variable=dwarves
kill=yes
[/store_unit]
[endlevel]
result=victory
bonus=no
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/else]
[/if]
[/event]
[event]
name=enemies defeated
[endlevel]
result=victory
bonus=yes
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/event]
[event]
name=victory
# This [if] is used only in the case the player happened to defeat all
# the enemy leaders and didn't move Alanin to the signpost
[if]
[have_unit]
id=Alanin
[/have_unit]
[then]
[store_unit]
[filter]
id=Alanin
[/filter]
variable=alanin
kill=yes
[/store_unit]
[/then]
[/if]
# This [if] is used only in the case the player happened to defeat all
# the enemy leaders and didn't move Rugnur to the caves
[if]
[have_unit]
id=Rugnur
[/have_unit]
[then]
[store_unit]
[filter]
side=1
[not]
id=Alanin
[/not]
[/filter]
variable=dwarves
kill=yes
[/store_unit]
[/then]
[/if]
[store_side]
side=1
variable=stored_Rugnur_side
[/store_side]
[/event]
[/scenario]