-
-
Notifications
You must be signed in to change notification settings - Fork 988
/
12a_Get_the_Gold.cfg
585 lines (486 loc) · 19.7 KB
/
12a_Get_the_Gold.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
#textdomain wesnoth-nr
[scenario]
id=12a_Get_the_Gold
name= _ "Get the Gold"
map_data="{campaigns/Northern_Rebirth/maps/12a_Get_the_Gold.map}"
{TURNS 35 30 25}
next_scenario=13a_Showdown
{DEFAULT_SCHEDULE}
{INTRO_AND_SCENARIO_MUSIC "revelation.ogg" "breaking_the_chains.ogg"}
{EXTRA_SCENARIO_MUSIC "elvish-theme.ogg"}
{EXTRA_SCENARIO_MUSIC "the_king_is_dead.ogg"}
[story]
[part]
# wmllint: local spelling Angthurim
story= _ "After reducing Castle Angthurim, the party set off after Rakshas, hoping that Hidel’s elves had been able to hold him."
music=sad.ogg
[/part]
[part]
story= _ "Orcs are heavy-footed creatures; Rakshas’s trail was readily followed. But an ominous silence, broken only by the cawing of ravens, brooded over the road he had taken."
[/part]
[part]
story= _ "Soon they encountered the wrack of a great battle. Bodies of elves and orcs lay everywhere. Broken weapons and smashed armor were strewn about in profusion. Elvish arrows and orcish crossbow bolts bristled from the nearby trees. The ground was splotched red with blood."
[/part]
[part]
story= _ "They paused for scant minutes to bind the wounds of a few surviving elves and leave them a small guard. Then they pressed onward to rescue Hidel — and they found him."
[/part]
[part]
story= _ "Scattered around Hidel were the bodies of at least three orcish warlords, and nearly a score of grunts, warriors and crossbowmen. His weapons were notched and broken; his armor dented and smashed. It was clear to all that his fall had been an epic of valor and glory, worthy to be remembered in the songs of all the kindred races until the end of days."
music=heroes_rite.ogg
[/part]
[part]
story= _ "With tears streaming down her face, Eryssa approached the fallen hero and cradled his head in her lap. As she stroked his face, his eyes fluttered open."
[/part]
{STORY_PART_HIDEL (_ "I am sorry, princess... We held him for... as long as we could... but his bodyguards... were... just too many and powerful... And then... the orcish... reinforcements arrived...")}
[part]
story= _ "Her face streaked with tears, Eryssa gazed imploringly at Father Morvin and Sister Thera. They simply sighed and shook their heads. It was too late to save Hidel. In a broken voice Eryssa addressed him:"
[/part]
{STORY_PART_ERYSSA (_ "Hidel, I am sorry. I have sent you to your death, and I grieve.")}
{STORY_PART_HIDEL (_ "... Don’t tax yourself... princess... I have died... a warrior’s death... You should be proud...")}
{STORY_PART_HIDEL (_ "... But... there is... one thing... we... could do. We... managed to... recover the gold... Sisal... took it and... retreated south...")}
{STORY_PART_HIDEL (_ "I held out as... long as... I could... but they... defeated us... Rakshas went... east and the... rest... went... after... Sisal...")}
{STORY_PART_HIDEL (_ "Now... uphold the honor... of the Northern... Elves... Recover... the gold... slay this monster... and bring peace and... prosperity... back to the... Northlands... Tallin?")}
[part]
story= _ "At Hidel’s call Tallin approached and knelt beside Hidel, bowing his head in respect."
[/part]
{STORY_PART_TALLIN (_ "At your service, sir.")}
{STORY_PART_HIDEL (_ "Eryssa has been... my charge ever... since she was born... I now return... to the earth... from which... I sprang... Please take care... of her.")}
{STORY_PART_TALLIN (_ "Rest assured, sir, I will place myself between Eryssa and any ill that strength or love may counter.")}
{STORY_PART_HIDEL (_ "Thank you... Tallin... Now I may rest... in... peace... May you... be victorious...")}
[part]
story= _ "With these words Hidel closed his eyes and breathed his last. As Eryssa wept with Hidel’s head in her lap, Tallin approached her, hesitating, and then wrapped her gently in his arms."
music=love_theme.ogg
[/part]
[part]
story= _ "Sobbing against Tallin’s chest, Eryssa told him of the many ways Hidel had cherished and warded her since the hour of her birth. How he had comforted her childhood hurts; how in later years, he had guided her in the green paths of the forest, and taught her the deep mysteries of Elven-kind."
[/part]
[part]
story= _ "A torrent of childhood memories and the depth of her grief left her unable to speak. She and Tallin sat together silently holding each-other for some time."
[/part]
[part]
story= _ "As Tallin comforted Eryssa, the rest of the party spread out and rallied the scattered elves, and tending to the wounded. This being done, they once again came before Tallin and Eryssa."
[/part]
{STORY_PART_FATHER_MORVIN (_ "Princess... it is a hard thing, I know, but you must put your grief behind you. Or at least, put it aside for a little while. We must go quickly to the aid of Sisal and recover our gold.")}
{STORY_PART_ARTHIAN (_ "Forge your sorrow into rage, girl, and visit it on the slayers of your kinsmen. Teach them what happens to those who make an enemy of an elf.")}
[part]
story= _ "At these words, Eryssa arose and wiped away her tears. She took command of the surviving elvish forces, for all knew she was a princess of high rank and looked to Hidel’s ward as their leader by right. Scarcely a face among them was less grim than her own as they took arms and started down Rakshas’s back-trail."
music=vengeful.ogg
[/part]
[part]
# po: "espied" is correct here, it's a deliberate archaism
story= _ "Moments later a gryphon swooped down from overhead and reported battle in a forest just a few leagues south of their position. The remainder of the elvish forces had been espied fighting a desperate battle with the orcs."
[/part]
[part]
story= _ "It seemed to the gryphon that the elves were sore beset. The party quickly turned south and plunged into the forest."
[/part]
[/story]
{NR_TRACK ({RECOVERY_COMPLETE} {ELVES_STAGE1}) }
# Players side - Tallin
# wmllint: validate-off
[side]
side=1
controller=human
recruit=Peasant,Woodsman,Thug,Poacher,Spearman,Bowman,Dwarvish Fighter,Dwarvish Thunderer,Dwarvish Ulfserker,Dwarvish Scout,Gryphon,Footpad
team_name=knalgans
user_team_name= _ "Alliance"
# wmllint: recognize Tallin
{CHARACTER_STATS_TALLIN}
[/side]
# wmllint: validate-on
# Allied AI - Sisal, set to play cautiously
[side]
side=2
controller=ai
recruit=Elvish Fighter,Elvish Archer,Elvish Captain,Elvish Hero,Elvish Ranger,Elvish Marksman
{GOLD 350 300 250}
team_name=knalgans
user_team_name= _ "Alliance"
{FLAG_VARIANT wood-elvish}
type=Elvish Avenger
gender=female
id=Sisal
name= _ "Sisal"
profile=portraits/Sisal.png
canrecruit=yes
[ai]
aggression=0.3
caution=0.7
leader_value=10
[avoid]
terrain=D*,W*
[/avoid]
[/ai]
# Place Sisal troops
{GENERIC_UNIT 2 "Elvish Archer" 9 20}
[+unit]
hitpoints=18
[/unit]
{GENERIC_UNIT 2 "Elvish Fighter" 10 20}
[+unit]
hitpoints=24
[/unit]
{GENERIC_UNIT 2 "Elvish Shaman" 9 21}
{GENERIC_UNIT 2 "Elvish Captain" 11 21}
[+unit]
hitpoints=39
[/unit]
{GENERIC_UNIT 2 "Elvish Shaman" 20 21}
{GENERIC_UNIT 2 "Elvish Fighter" 21 21}
[/side]
{AI_CONTROLLER () 1 2 ()}
# Enemy AI - set to be aggressive
[side]
side=3
controller=ai
recruit=Orcish Warrior,Orcish Slayer,Troll,Troll Rocklobber,Orcish Crossbowman
{GOLD 1500 2000 2500}
team_name=orcs
user_team_name= _ "Orcs"
{FLAG_VARIANT6 ragged}
type=Orcish Warlord
id="Ha'Tuil"
name= _ "Ha’Tuil"
canrecruit=yes
[ai]
aggression=1.0
caution=-1.0
leader_value=50
[/ai]
# Place enemy troops
{GENERIC_UNIT 3 "Orcish Crossbowman" 10 19}
[+unit]
hitpoints=30
[/unit]
{GENERIC_UNIT 3 "Orcish Slayer" 11 20}
[+unit]
hitpoints=25
[/unit]
{GENERIC_UNIT 3 "Orcish Crossbowman" 14 17}
[+unit]
hitpoints=3
[/unit]
{GENERIC_UNIT 3 "Orcish Crossbowman" 23 19}
[+unit]
hitpoints=30
[/unit]
{GENERIC_UNIT 3 "Orcish Warrior" 17 17}
{GENERIC_UNIT 3 "Orcish Warrior" 15 15}
{GENERIC_UNIT 3 "Orcish Warrior" 14 14}
{GENERIC_UNIT 3 "Orcish Warrior" 17 15}
{GENERIC_UNIT 3 "Orcish Warrior" 18 14}
{GENERIC_UNIT 3 "Orcish Warrior" 18 14}
{GENERIC_UNIT 3 "Orcish Warrior" 16 14}
{GENERIC_UNIT 3 "Orcish Warrior" 18 13}
{GENERIC_UNIT 3 "Orcish Warrior" 18 13}
{GENERIC_UNIT 3 "Orcish Warrior" 18 13}
{GENERIC_UNIT 3 "Orcish Warrior" 18 13}
{GENERIC_UNIT 3 "Orcish Warrior" 15 17}
{GENERIC_UNIT 3 "Orcish Warrior" 20 18}
{GENERIC_UNIT 3 "Orcish Warrior" 19 18}
{GENERIC_UNIT 3 "Orcish Slayer" 17 17}
{GENERIC_UNIT 3 "Orcish Slayer" 17 17}
{GENERIC_UNIT 3 "Orcish Slayer" 15 15}
{GENERIC_UNIT 3 "Orcish Slayer" 15 14}
{GENERIC_UNIT 3 "Orcish Slayer" 17 15}
{GENERIC_UNIT 3 "Orcish Slayer" 18 14}
{GENERIC_UNIT 3 "Orcish Slayer" 16 14}
{GENERIC_UNIT 3 "Orcish Slayer" 18 13}
{GENERIC_UNIT 3 "Orcish Slayer" 18 13}
{GENERIC_UNIT 3 "Orcish Slayer" 21 17}
{GENERIC_UNIT 3 "Orcish Crossbowman" 18 13}
{GENERIC_UNIT 3 "Orcish Crossbowman" 18 13}
{GENERIC_UNIT 3 "Orcish Crossbowman" 18 13}
{GENERIC_UNIT 3 "Orcish Crossbowman" 17 17}
{GENERIC_UNIT 3 "Orcish Crossbowman" 15 15}
{GENERIC_UNIT 3 "Orcish Crossbowman" 15 14}
{GENERIC_UNIT 3 "Orcish Crossbowman" 17 15}
{GENERIC_UNIT 3 "Orcish Crossbowman" 18 14}
{GENERIC_UNIT 3 "Orcish Crossbowman" 16 14}
[/side]
# Krash may not actually still be alive at this point, but setting up
# his side this way is the only way to reliably pick up his recall
# list if he is.
[side]
side=4
controller=human
save_id=Krash
side_name= _ "Krash"
recruit=Drake Fighter,Drake Glider,Drake Burner,Drake Clasher
{GOLD 250 200 150}
team_name=knalgans
user_team_name= _ "Alliance"
no_leader=yes
[/side]
# Empty side - player will assume control of it if Eryssa is alive
[side]
side=5
controller=human
save_id=Elves
persistent=yes
no_leader=yes
recruit=Elvish Fighter,Elvish Archer,Elvish Shaman,Elvish Scout,Elvish Captain,Elvish Hero,Elvish Ranger,Elvish Marksman,Elvish Rider,Elvish Druid,Elvish Sorceress
{GOLD 400 350 300}
team_name=knalgans
user_team_name= _ "Alliance"
{FLAG_VARIANT long}
[/side]
[event]
name=prestart
# Remember we went this way
{VARIABLE path_get_the_gold yes}
# Here’s where we edit out Krash's side if he's dead.
{RECALL_KRASH}
[if]
[not]
[have_unit]
id=Krash
[/have_unit]
[/not]
[then]
[kill]
side=4
[/kill]
[terrain]
x=4,4,4,5,5,5,6,6,6
y=3,4,5,3,4,5,3,4,5
terrain=Gs^Fp
[/terrain]
[/then]
[/if]
# If Eryssa is alive change her to recruiting leader of side 5 and
# place on that keep. This method works because, unlike Krash, she
# has no recall list of followers to preserve.
[if]
[have_unit]
id=Eryssa
search_recall_list=yes
[/have_unit]
[then]
[store_starting_location]
side=5
variable=eryssa_starts_at
[/store_starting_location]
[recall]
id=Eryssa
x=$eryssa_starts_at.x
y=$eryssa_starts_at.y
[/recall]
# Remove loyalty overlay
[remove_unit_overlay]
id=Eryssa
image=misc/loyal-icon.png
[/remove_unit_overlay]
# Give expendable overlay
[unit_overlay]
id=Eryssa
image=misc/leader-expendable.png
[/unit_overlay]
[store_unit]
[filter]
id=Eryssa
[/filter]
variable=place_eryssa_at
kill=yes
fire_event=no
[/store_unit]
{VARIABLE place_eryssa_at.side 5}
{VARIABLE place_eryssa_at.x $eryssa_starts_at.x}
{VARIABLE place_eryssa_at.y $eryssa_starts_at.y}
{VARIABLE place_eryssa_at.canrecruit yes}
[unstore_unit]
variable=place_eryssa_at
[/unstore_unit]
[modify_side]
side=5
side_name= _ "Eryssa"
[/modify_side]
{CLEAR_VARIABLE place_eryssa_at}
{CLEAR_VARIABLE eryssa_starts_at}
[/then]
[/if]
# Recall heroes
{RECALL_SUPPORTER}
[recall]
id=Camerin
[/recall]
[recall]
id=Father Morvin
[/recall]
[recall]
id=Sister Thera
[/recall]
[recall]
id=Elenia
[/recall]
[recall]
id=Stalrag
[/recall]
[recall]
id="Ro'Sothian"
[/recall]
[recall]
id="Ro'Arthian"
[/recall]
[recall]
id=Abhai
[/recall]
[/event]
[event]
name=start
[message]
speaker=narrator
image=wesnoth-icon.png
message= _ "After making haste through the forest for most of a watch, the party arrived at the battle scene."
[/message]
[message]
id=Eryssa
message= _ "Sisal, how do you fare?"
[/message]
[message]
id=Sisal
message= _ "Princess! You are here! How fares Hidel?"
[/message]
[message]
id=Eryssa
message= _ "(<i>Sheds a tear</i>)"
[/message]
[message]
id=Tallin
message= _ "Hidel... died a hero’s death, one worthy to be sung forever."
[/message]
[message]
id=Sisal
message= _ "The dung-spawned bastards! Verily, Tallin, had it not been for Hidel we would all be dead and Rakshas would be gleefully counting his gold."
[/message]
[message]
id=Sisal
message= _ "Hidel and a handful of elves held off the orcs for more than an hour. That was enough time for us to make off with the gold and rally here at these ruins."
[/message]
[message]
id=Tallin
message= _ "So you have the gold?"
[/message]
[message]
id=Sisal
message= _ "We have the gold, and now we shall have the blood of these orcs! IN HIDEL’S NAME!"
[/message]
[message]
id="Ha'Tuil"
# wmllint: local spelling Grrr
message= _ "Grrr, Ha’Tuil has never failed in his mission. I will soon lay your severed heads at the feet of the Master!"
[/message]
[message]
id=Sisal
message= _ "You will eat cold steel and whimper your way to hell, foul wretch of an orc!"
[/message]
[objectives]
side=0
[objective]
description= _ "Defeat the orcs"
condition=win
[/objective]
[objective]
description= _ "Death of Tallin"
condition=lose
[/objective]
[objective]
description= _ "Death of Ro’Arthian"
condition=lose
[/objective]
[objective]
description= _ "Death of Ro’Sothian"
condition=lose
[/objective]
{TURNS_RUN_OUT}
{AI_CONTROLLER_NOTE}
[gold_carryover]
bonus=yes
carryover_percentage=40
[/gold_carryover]
[/objectives]
[/event]
# Bad guy die event
[event]
name=last breath
[filter]
id="Ha'Tuil"
[/filter]
[message]
id="Ha'Tuil"
message= _ "Argh! I have failed!"
[/message]
[message]
id=Sisal
message= _ "Cheer up — you won’t have to live with your failure for long... (<i>Snicker</i>)"
[/message]
[/event]
# Sisal die event
[event]
name=last breath
[filter]
id=Sisal
[/filter]
{INCIDENTAL_MUSIC "sad.ogg"}
[message]
id=Sisal
message= _ "Ahhhh! Farewell, friends. I now go to join Hidel."
[/message]
[message]
id=Eryssa
message= _ "Sisal! Noooo!"
[/message]
[message]
speaker=second_unit
message= _ "Haha! We got the gold now!"
[/message]
[message]
id="Ha'Tuil"
message= _ "Hahaha! Mission accomplished, men! Now let’s crush the rest of this scum and report back to the Master."
[/message]
[message]
id=Eryssa
message= _ "I don’t think so, you bastard orcs! That gold belongs to us. Besides, we now have a few scores to settle with you. Take them, troops — I want no orc left alive!"
[/message]
[/event]
[event]
name=enemies defeated
[endlevel]
result=victory
bonus=yes
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/event]
# Victory
[event]
name=victory
[if]
[have_unit]
id=Sisal
[/have_unit]
[then]
{MODIFY_UNIT id=Sisal canrecruit no}
[message]
id=Tallin
message= _ "Thanks to Hidel and the elves, we have recovered our gold. Now let’s run down Rakshas and settle up with him once and for all."
[/message]
[/then]
[else]
[message]
id=Tallin
message= _ "Hidel’s death was a grievous loss; our thirst for vengeance must do what the stolen gold cannot. Now let’s run down Rakshas and settle up with him once and for all."
[/message]
[/else]
[/if]
# Make veteran elves available for the Elf side in Showdown.
{MODIFY_UNIT (side=2) side 5}
# Sisal and Eryssa need to be recallable.
[modify_unit]
[filter]
id=Sisal,Eryssa
[/filter]
side=1
[/modify_unit]
[/event]
# Load death events
{HERODEATH_EVERYONE}
[/scenario]