-
-
Notifications
You must be signed in to change notification settings - Fork 988
/
1_A_Bargain_is_Struck.cfg
709 lines (664 loc) · 22.3 KB
/
1_A_Bargain_is_Struck.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
#textdomain wesnoth-sof
[scenario]
name= _ "A Bargain is Struck"
id=1_A_Bargain_is_Struck
turns=24
map_data="{campaigns/Sceptre_of_Fire/maps/1_A_Bargain_is_Struck.map}"
next_scenario=2_Closing_the_Gates
{SCENARIO_MUSIC knolls.ogg}
{EXTRA_SCENARIO_MUSIC loyalists.ogg}
{EXTRA_SCENARIO_MUSIC breaking_the_chains.ogg}
{DEFAULT_SCHEDULE}
[side]
type=Dwarvish Fighter
id=Rugnur
name= _ "Rugnur"
unrenamable=yes
side=1
canrecruit=yes
facing=sw
profile=portraits/rugnur.png
controller=human
recruit=Dwarvish Fighter,Dwarvish Thunderer,Dwarvish Guardsman,Dwarvish Scout
team_name=dwarves
user_team_name= _ "Dwarves"
{FLAG_VARIANT knalgan}
[/side]
[side]
type=Haldric II
id=Haldric II
name= _ "Haldric II"
side=2
canrecruit=yes
facing=ne
profile=portraits/haldric-ii.png
{RECRUIT (Swordsman,Longbowman,Dragoon,Cavalryman,Red Mage,Mage) (Swordsman,Longbowman,Cavalryman,Red Mage,Mage) (Swordsman,Longbowman,Cavalryman,Mage)}
{GOLD 225 200 175}
team_name=dwarves
user_team_name= _ "Dwarves"
[ai]
{AI_SIMPLE_ALWAYS_ASPECT recruitment_pattern fighter,archer}
{AI_SIMPLE_ALWAYS_ASPECT aggression 0.5}
{AI_SIMPLE_ALWAYS_ASPECT caution 0.5}
{AI_SIMPLE_ALWAYS_ASPECT leader_value 0}
{AI_SIMPLE_ALWAYS_ASPECT village_value 0}
[goal]
name=protect_unit
[criteria]
side=1
type=Caravan
[/criteria]
value=7
protect_radius=12
[/goal]
[goal]
name=protect_unit
[criteria]
type=Haldric II
[/criteria]
value=8
protect_radius=7
[/goal]
[/ai]
{LOYAL_UNIT 2 "Royal Guard" 5 25}{GUARDIAN}
[+unit]
facing=ne
[/unit]
{LOYAL_UNIT 2 "Royal Guard" 5 29}{GUARDIAN}
[+unit]
facing=se
[/unit]
{FLAG_VARIANT loyalist}
[/side]
{STARTING_VILLAGES 2 5}
[side]
type=Elvish Captain
id=Glildur
name= _ "Glildur"
side=3
canrecruit=yes
facing=sw
{RECRUIT (Elvish Fighter,Elvish Scout,Elvish Archer) (Elvish Fighter,Elvish Scout,Elvish Archer,Elvish Shaman) (Elvish Fighter,Elvish Scout,Elvish Archer,Elvish Shaman)}
{GOLD 175 225 275}
{INCOME 6 9 12}
team_name=elves
user_team_name= _ "Elves"
[ai]
{AI_SIMPLE_ALWAYS_ASPECT passive_leader yes}
[goal]
[criteria]
side=1
type=Caravan
[/criteria]
value=7
[/goal]
[/ai]
{FLAG_VARIANT wood-elvish}
[/side]
{STARTING_VILLAGES 3 6}
[story]
[part]
# wmllint: local spelling Ay
story= _ "Ay, the Sceptre of Fire. The sceptre has a long, glorious, and fearful history. But I am not here to tell you how the jewel within it was brought over the ocean by Haldric the Great. Nor will I tell the story of Garard I, and the challenge he set, or that of Konrad, king of Wesnoth by virtue of the Sceptre."
[/part]
[part]
story= _ "I am here to tell you of its making. Of its crafting, deep in the caverns of dwarfdom. And of the dwarves who made it; for they were great, they were. They are counted among the greatest of the heroes of ancient Knalga."
[/part]
[part]
story= _ "Our story begins in a small border outpost in the southern hills of Knalga, with a young dwarf, named Rugnur, in charge of it. And with the second king of Wesnoth, Haldric II, riding up the road from the Ford of Abez with an army behind him..."
[/part]
[/story]
{SOF_TRACK {JOURNEY_01_NEW} }
{SOF_DEATHS}
[event]
name=prestart
[set_variable]
name=incominggold
value=5000
[/set_variable]
[objectives]
side=1
[objective]
#ifdef HARD
description= _ "Transport 5 caravans full of silver back to the dwarvish castle"
#else
description= _ "Transport 4 caravans full of silver back to the dwarvish castle"
#endif
condition=win
[show_if]
{VARIABLE_CONDITIONAL incominggold greater_than 0}
[/show_if]
[/objective]
[objective]
description= _ "Bring Alanin, who has the Ruby of Fire, to the dwarvish castle"
condition=win
[show_if]
{VARIABLE_CONDITIONAL havestone boolean_not_equals yes}
[/show_if]
[/objective]
{ALTERNATIVE_OBJECTIVE_BONUS ( _ "Defeat Glildur")}
[objective]
description= _ "Death of Rugnur"
condition=lose
[/objective]
[objective]
description= _ "Death of Haldric II"
condition=lose
[/objective]
[objective]
description= _ "Death of Alanin"
condition=lose
[/objective]
[objective]
description= _ "Loss of a caravan"
condition=lose
[/objective]
{TURNS_RUN_OUT}
[gold_carryover]
carryover_percentage=40
[/gold_carryover]
[/objectives]
#ifdef HARD
[terrain]
terrain=Ha
x,y=12,3
[/terrain]
#endif
#ifdef EASY
#else
[terrain]
terrain=Aa^Fpa
x,y=1,4
[/terrain]
[terrain]
terrain=Aa^Fpa
x,y=3,8
[/terrain]
#endif
[capture_village]
side=1
x=1-21,22-32
y= 1-8, 1-5
[/capture_village]
[/event]
[event]
name=start
[message]
speaker=Rugnur
message= _ "Humans, halt! Who dares bring an army into the dwarvish hills?"
[/message]
[message]
speaker=Haldric II
message= _ "We come to make a bargain with you."
[/message]
[message]
speaker=Rugnur
message= _ "Well, state your business and be done with it. And if we don’t like what you say, you leave!"
[/message]
[message]
speaker=Haldric II
message= _ "Have you heard of the Ruby of Fire?"
[/message]
[message]
speaker=Rugnur
message= _ "Yes... your first king brought it from over the sea, right? You own it."
scroll=no
[/message]
[message]
speaker=Haldric II
message= _ "Correct. However, we have a problem with it."
[/message]
[message]
speaker=Rugnur
message= _ "What sort of problem?"
scroll=no
[/message]
[message]
speaker=Haldric II
message= _ "Some form of magical aura makes those around the stone act... strangely. I noticed it with my father. The longer he stayed near the stone, the more arrogant, almost evil, he became."
[/message]
[message]
speaker=Rugnur
message= _ "So, what do you want me to do? I don’t see how this relates to us dwarves."
scroll=no
[/message]
# Historical note:
# The conversation Haldric alludes to took place in the Legend of
# Wesmere scenario "The Treaty", which is thus pinned to 15YW.
# This scenario establishes that Landar is already leading a
# Xenophobic faction at start of this campaign, e.g 25YW. This
# development is noted as having begun on the main timeline in 24YW.
# Be careful to change this chronology consistently, if you do so.
[message]
speaker=Haldric II
message= _ "When the elves came to Weldyn, about ten years ago, they spoke of a mage named Crelanu, and of his advice about the ruby. He said that the radiance of the stone could be contained, and that doing so would stop the stone’s effect."
[/message]
[message]
speaker=Rugnur
message= _ "And what... you want us to do this, contain the radiance of the stone? By making an artifact of some kind?"
scroll=no
[/message]
[message]
speaker=Haldric II
message= _ "Exactly. I want you to craft it into a mighty artifact, that will leverage the stone’s power, but contain it also."
[/message]
[message]
speaker=Rugnur
message= _ "Well... I think we can make a deal, but I’m not sure. I’ll have to ask the tribal leaders."
[/message]
[message]
speaker=Haldric II
message= _ "If you are not authorized to make a deal, send out someone who is, and I will bargain with him."
scroll=no
[/message]
[message]
speaker=Rugnur
message= _ "They would refuse to come. You must come into the caves, and go to the city in person, or send a representative."
[/message]
[message]
speaker=Haldric II
message= _ "I can always take my offer to another tribe more friendly to its potential patrons. You are not the only smiths in the Northlands!"
scroll=no
[/message]
[message]
speaker=Rugnur
message= _ "Uh, no, wait! Let’s talk business — how much will you pay us to do this for you?"
[/message]
[message]
speaker=Haldric II
message= _ "Five thousand pieces of silver."
[/message]
[message]
speaker=Rugnur
# wmllint: local spelling playtoy
message= _ "You said you wanted a powerful magical artifact, not a child’s playtoy! So... twenty thousand, minimum. The crafting of this will take us many years, you must pay us well."
[/message]
[message]
speaker=Haldric II
message= _ "Ten thousand."
[/message]
[message]
speaker=Rugnur
message= _ "Nothing below fifteen!"
[/message]
[message]
speaker=Haldric II
message= _ "Then no deal. I’ll gather my things and go to another dwarvish clan now."
scroll=no
[/message]
[message]
speaker=Rugnur
message= _ "Fine then — ten thousand... now, what exactly do you want us to make the stone into?"
[/message]
[message]
speaker=Haldric II
message= _ "I want you to make it into a sceptre, a sceptre of fire."
scroll=no
[/message]
[message]
speaker=Rugnur
message= _ "I’ll see what I can do. But I will need five thousand silver in advance, to pay for the materials."
[/message]
[message]
speaker=Haldric II
message= _ "Very well. I have the silver here, ready to ship, and I will send someone over with the stone itself. He will stay with you as you make the sceptre, and make sure you are going to get it done on time. I expect it done before my reign as king is ended."
[/message]
[unit]
x,y=5,30
type=Caravan
side=1
facing=ne
upkeep=free
{IS_HERO}
[/unit]
[unit]
x,y=6,29
type=Caravan
side=1
facing=ne
upkeep=free
{IS_HERO}
[/unit]
[unit]
x,y=6,28
type=Caravan
side=1
facing=ne
upkeep=free
{IS_HERO}
[/unit]
[unit]
x,y=7,28
type=Caravan
side=1
facing=ne
upkeep=free
{IS_HERO}
[/unit]
#ifdef HARD
[unit]
x,y=7,29
type=Caravan
side=1
facing=ne
upkeep=free
{IS_HERO}
[/unit]
#endif
[unit]
x,y=6,26
type=Dragoon
side=1
id=Alanin
name= _ "Alanin"
unrenamable=yes
facing=ne
{IS_HERO}
profile=portraits/alanin.png
[modifications]
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
[/modifications]
[/unit]
[message]
speaker=Alanin
message= _ "That’s right. I’ll be coming over along with the silver."
[/message]
[message]
speaker=Glildur
message= _ "Hey! You can’t do that — this road is an elvish road. We’re not letting you transport gold and jewels on it without paying a toll."
[/message]
[message]
speaker=Rugnur
message= _ "What are you talking about?! This road has always been open to all."
scroll=no
[/message]
[message]
speaker=Glildur
message= _ "Yes, we have allowed people to use it, but it is our road."
[/message]
[message]
speaker=Rugnur
message= _ "Not true! This is dwarvish land; if anything, it’s our road!"
scroll=no
[/message]
[message]
speaker=Glildur
message= _ "Nevertheless, if you try to move your caravans here you have to pay the toll, or face our wrath!"
[/message]
[message]
speaker=Haldric II
message= _ "We Wesnothians and you elves have a treaty! Do you really mean to break it in defense of a road that is not even yours?!"
[/message]
[message]
speaker=Glildur
message= _ "I was never among those who agreed to that treaty. Not all of us elves are as low as Kalenz, or make deals with those who betrayed us."
scroll=no
[/message]
[message]
speaker=Haldric II
message= _ "Ah, I see — you are one of the rebels. Our treaty with the elves does not apply to you, so I have no problem with slaying you if you stand in our way. Rugnur, we will proceed with the shipment."
[/message]
[message]
speaker=Rugnur
message= _ "Very well. Glildur, if the high elvish council has made an alliance with the men, I would advise you to follow it, but not doing so is your choice."
[/message]
[/event]
# This helps prevent Haldric from getting himself killed by preventing him
# from leaving his camp
[event]
name=side 2 turn refresh
first_time_only=no
[modify_unit]
[filter]
id=Haldric II
[/filter]
[movement_costs]
flat=99
[/movement_costs]
[/modify_unit]
[/event]
[event]
name=side 2 turn end
first_time_only=no
[modify_unit]
[filter]
id=Haldric II
[/filter]
[movement_costs]
flat=1
[/movement_costs]
[/modify_unit]
[/event]
# Alanin reaches the dwarvish citadel
[event]
name=moveto
[filter]
id=Alanin
[filter_location]
terrain=Kud,Cud
[/filter_location]
[/filter]
[message]
speaker=Alanin
message= _ "Here’s the stone, for you dwarves! Now, if you’ll excuse me, I think I’ll be taking refuge in this castle here... I don’t much like fighting."
[/message]
[set_variable]
name=havestone
value=yes
[/set_variable]
[store_unit]
[filter]
x,y=$x1,$y1
[/filter]
variable=changealanin
kill=yes
[/store_unit]
[if]
[variable]
name=incominggold
equals=0
[/variable]
[then]
[message]
speaker=Haldric II
message= _ "All the silver is there too. Proceed with the task, Rugnur!"
[/message]
[unstore_unit]
variable=changealanin
find_vacant=yes
[/unstore_unit]
[endlevel]
result=victory
bonus=no
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/then]
[/if]
[/event]
# Caravan reaches the dwarvish citadel
[event]
name=moveto
first_time_only=no
[filter]
x=26-30
y=3-6
side=1
type=Caravan
[/filter]
[set_variable]
name=incominggold
#ifdef HARD
sub=1000
#else
sub=1250
#endif
[/set_variable]
[if]
[variable]
name=incominggold
greater_than=0
[/variable]
[then]
[message]
speaker=unit
message= _ "Cargo unloaded."
[/message]
[if]
[variable]
name=havestone
equals=yes
[/variable]
[then]
[message]
speaker=Haldric II
message= _ "You only need $incominggold more, then you can begin work."
[/message]
[/then]
[else]
[message]
speaker=Haldric II
message= _ "You only need $incominggold more, and the stone, then you can begin work."
[/message]
[/else]
[/if]
[/then]
[else]
[if]
[variable]
name=havestone
equals=yes
[/variable]
[then]
[message]
speaker=Rugnur
message= _ "That’s the last caravan! We will commence work immediately."
[/message]
[unstore_unit]
variable=changealanin
find_vacant=yes
[/unstore_unit]
[endlevel]
result=victory
bonus=no
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/then]
[else]
[message]
speaker=Rugnur
message= _ "We have all of the silver, now all we need is the stone."
[/message]
[/else]
[/if]
[/else]
[/if]
[kill]
x,y=$x1,$y1
[/kill]
[/event]
[event]
name=turn 10
[message]
speaker=Glildur
message= _ "Ha! Our reinforcements have arrived. There is no way you can withstand our combined strength!"
[/message]
[message]
speaker=Rugnur
message= _ "We cannot match you above ground, but in the caves we may still defeat you."
[/message]
[message]
speaker=Glildur
message=_ "We will see about that — if you ever get underground, which I doubt. Ha!"
[/message]
[gold]
side=3
amount=500
[/gold]
[message]
speaker=Haldric II
message= _ "Elvish reinforcements! Where did these come from? I thought the elvish resistance to the treaty was smaller than this. Hurry up and move those caravans!"
[/message]
[/event]
# Tie-ins to the Legend of Wesmere. The elves are xenophobes from
# Landar's faction.
[event]
name=attack
first_time_only=yes
[filter]
side=3
[/filter]
[filter_second]
race=human
[/filter_second]
[message]
speaker=unit
# wmllint: local spelling Landar
message=_ "Die, humans, in the name of Landar!"
[/message]
[message]
speaker=second_unit
message=_ "Landar? Who is this ‘Landar’ you speak of?"
[/message]
[/event]
[event]
name=attack
first_time_only=yes
[filter]
side=3
[/filter]
[filter_second]
race=dwarf
[/filter_second]
[message]
speaker=unit
message=_ "Die, dwarvish scum, in the name of Landar!"
[/message]
[message]
speaker=second_unit
message=_ "Yer precious Landar can kiss my axe."
[/message]
[/event]
[event]
name=enemies defeated
[if]
[variable]
name=havestone
equals=yes
[/variable]
[then]
[unstore_unit]
variable=changealanin
find_vacant=yes
[/unstore_unit]
[/then]
[/if]
[message]
speaker=Rugnur
message= _ "Good, the road is secured. Let’s move those caravans!"
[/message]
[endlevel]
result=victory
bonus=yes
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/event]
[event]
name=scenario_end
{CLEAR_VARIABLE incominggold,havestone}
[/event]
[event]
name=die
[filter]
side=1
type=Caravan
[/filter]
[message]
speaker=Haldric II
message= _ "You just let a caravan, with <i>my</i> money loaded in it, get captured! If I can’t trust you to keep my property secure, the deal’s off."
[/message]
[endlevel]
result=defeat
[/endlevel]
[/event]
[/scenario]