1#textdomain wesnoth-nr
2
3[scenario]
4    id=12a_Get_the_Gold
5    name= _ "Get the Gold"
6    map_data="{campaigns/Northern_Rebirth/maps/12a_Get_the_Gold.map}"
7    {TURNS 35 30 25}
8    next_scenario=13a_Showdown
9
10    {DEFAULT_SCHEDULE}
11
12    {INTRO_AND_SCENARIO_MUSIC "revelation.ogg" "breaking_the_chains.ogg"}
13    {EXTRA_SCENARIO_MUSIC     "elvish-theme.ogg"}
14    {EXTRA_SCENARIO_MUSIC     "the_king_is_dead.ogg"}
15
16    [story]
17        [part]
18            # wmllint: local spelling Angthurim
19            story= _ "After reducing Castle Angthurim, the party set off after Rakshas, hoping that Hidel’s elves had been able to hold him."
20            music=sad.ogg
21        [/part]
22        [part]
23            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."
24        [/part]
25        [part]
26            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."
27        [/part]
28        [part]
29            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."
30        [/part]
31        [part]
32            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."
33            music=heroes_rite.ogg
34        [/part]
35        [part]
36            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."
37        [/part]
38
39        {STORY_PART_HIDEL (_ "I am sorry, my lady... We held him for... as long as we could... but his bodyguards... were... just too many and powerful... And then... the orcish... reinforcements arrived...")}
40
41        [part]
42            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:"
43        [/part]
44
45        {STORY_PART_ERYSSA (_ "Hidel, I am sorry. I have sent you to your death, and I grieve.")}
46
47        {STORY_PART_HIDEL (_ "... Don’t tax yourself... Eryssa... I have died... a warrior’s death... You should be proud...")}
48
49        {STORY_PART_HIDEL (_ "... But... there is... one thing... we... could do. We... managed to... recover the gold... Sisal... took it and... retreated south...")}
50
51        {STORY_PART_HIDEL (_ "I held out as... long as... I could... but they... defeated us... Rakshas went... east and the... rest... went... after... Sisal...")}
52
53        {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?")}
54
55        [part]
56            story= _ "At Hidel’s call Tallin approached and knelt beside Hidel, bowing his head in respect."
57        [/part]
58
59        {STORY_PART_TALLIN (_ "At your service, sir.")}
60
61        {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.")}
62
63        {STORY_PART_TALLIN (_ "Rest assured, sir, I will place myself between Eryssa and any ill that strength or love may counter.")}
64
65        {STORY_PART_HIDEL (_ "Thank you... Tallin... Now I may rest... in... peace... May you... be victorious...")}
66
67        [part]
68            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."
69            music=love_theme.ogg
70        [/part]
71        [part]
72            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."
73        [/part]
74        [part]
75            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."
76        [/part]
77        [part]
78            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."
79        [/part]
80
81        {STORY_PART_FATHER_MORVIN (_ "My lady... 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.")}
82
83        {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.")}
84
85        [part]
86            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."
87            music=vengeful.ogg
88        [/part]
89        [part]
90            # po: "espied" is correct here, it's a deliberate archaism
91            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."
92        [/part]
93        [part]
94            story= _ "It seemed to the gryphon that the elves were sore beset. The party quickly turned south and plunged into the forest."
95        [/part]
96    [/story]
97
98    {NR_TRACK ({RECOVERY_COMPLETE} {ELVES_STAGE1}) }
99
100    # Players side - Tallin
101    # wmllint: validate-off
102    [side]
103        side=1
104        controller=human
105        recruit=Thug,Poacher,Spearman,Bowman,Dwarvish Fighter,Dwarvish Thunderer,Dwarvish Ulfserker,Dwarvish Scout,Gryphon,Footpad
106        team_name=knalgans
107        user_team_name= _ "Alliance"
108
109        # wmllint: recognize Tallin
110        {CHARACTER_STATS_TALLIN}
111    [/side]
112    # wmllint: validate-on
113
114    # Allied AI - Sisal, set to play cautiously
115    [side]
116        side=2
117        controller=ai
118        recruit=Elvish Fighter,Elvish Archer,Elvish Captain,Elvish Hero,Elvish Ranger,Elvish Marksman
119        {GOLD 350 300 250}
120        team_name=knalgans
121        user_team_name= _ "Alliance"
122        {FLAG_VARIANT wood-elvish}
123
124        type=Elvish Avenger
125        gender=female
126        id=Sisal
127        name= _ "Sisal"
128        profile=portraits/Sisal.png
129        canrecruit=yes
130
131        [ai]
132            aggression=0.3
133            caution=0.7
134            leader_value=10
135            [avoid]
136                terrain=D*,W*
137            [/avoid]
138        [/ai]
139
140        # Place Sisal troops
141        {GENERIC_UNIT 2 "Elvish Archer" 9 20}
142        [+unit]
143            hitpoints=18
144        [/unit]
145
146        {GENERIC_UNIT 2 "Elvish Fighter" 10 20}
147        [+unit]
148            hitpoints=24
149        [/unit]
150
151        {GENERIC_UNIT 2 "Elvish Shaman" 9 21}
152        {GENERIC_UNIT 2 "Elvish Captain" 11 21}
153        [+unit]
154            hitpoints=39
155        [/unit]
156
157        {GENERIC_UNIT 2 "Elvish Shaman" 20 21}
158        {GENERIC_UNIT 2 "Elvish Fighter" 21 21}
159    [/side]
160
161    {AI_CONTROLLER () 1 2 ()}
162
163    # Enemy AI - set to be aggressive
164    [side]
165        side=3
166        controller=ai
167        recruit=Orcish Warrior,Orcish Slayer,Troll,Troll Rocklobber,Orcish Crossbowman
168        {GOLD 800 1200 1600}
169        team_name=orcs
170        user_team_name= _ "Orcs"
171        {FLAG_VARIANT6 ragged}
172
173        type=Orcish Warlord
174        id="Ha'Tuil"
175        name= _ "Ha’Tuil"
176        canrecruit=yes
177
178        [ai]
179            aggression=1.0
180            caution=-1.0
181            leader_value=50
182        [/ai]
183
184        # Place enemy troops
185        {GENERIC_UNIT 3 "Orcish Crossbowman" 10 19}
186        [+unit]
187            hitpoints=30
188        [/unit]
189
190        {GENERIC_UNIT 3 "Orcish Slayer" 11 20}
191        [+unit]
192            hitpoints=25
193        [/unit]
194
195        {GENERIC_UNIT 3 "Orcish Crossbowman" 14 17}
196        [+unit]
197            hitpoints=3
198        [/unit]
199
200        {GENERIC_UNIT 3 "Orcish Crossbowman" 23 19}
201        [+unit]
202            hitpoints=30
203        [/unit]
204
205        {GENERIC_UNIT 3 "Orcish Warrior" 17 17}
206        {GENERIC_UNIT 3 "Orcish Warrior" 15 15}
207        {GENERIC_UNIT 3 "Orcish Warrior" 14 14}
208        {GENERIC_UNIT 3 "Orcish Warrior" 17 15}
209        {GENERIC_UNIT 3 "Orcish Warrior" 18 14}
210        {GENERIC_UNIT 3 "Orcish Warrior" 18 14}
211        {GENERIC_UNIT 3 "Orcish Warrior" 16 14}
212        {GENERIC_UNIT 3 "Orcish Warrior" 18 13}
213        {GENERIC_UNIT 3 "Orcish Warrior" 18 13}
214        {GENERIC_UNIT 3 "Orcish Warrior" 18 13}
215        {GENERIC_UNIT 3 "Orcish Warrior" 18 13}
216        {GENERIC_UNIT 3 "Orcish Warrior" 15 17}
217        {GENERIC_UNIT 3 "Orcish Warrior" 20 18}
218        {GENERIC_UNIT 3 "Orcish Warrior" 19 18}
219
220        {GENERIC_UNIT 3 "Orcish Slayer" 17 17}
221        {GENERIC_UNIT 3 "Orcish Slayer" 17 17}
222        {GENERIC_UNIT 3 "Orcish Slayer" 15 15}
223        {GENERIC_UNIT 3 "Orcish Slayer" 15 14}
224        {GENERIC_UNIT 3 "Orcish Slayer" 17 15}
225        {GENERIC_UNIT 3 "Orcish Slayer" 18 14}
226        {GENERIC_UNIT 3 "Orcish Slayer" 16 14}
227        {GENERIC_UNIT 3 "Orcish Slayer" 18 13}
228        {GENERIC_UNIT 3 "Orcish Slayer" 18 13}
229        {GENERIC_UNIT 3 "Orcish Slayer" 21 17}
230
231        {GENERIC_UNIT 3 "Orcish Crossbowman" 18 13}
232        {GENERIC_UNIT 3 "Orcish Crossbowman" 18 13}
233        {GENERIC_UNIT 3 "Orcish Crossbowman" 18 13}
234        {GENERIC_UNIT 3 "Orcish Crossbowman" 17 17}
235        {GENERIC_UNIT 3 "Orcish Crossbowman" 15 15}
236        {GENERIC_UNIT 3 "Orcish Crossbowman" 15 14}
237        {GENERIC_UNIT 3 "Orcish Crossbowman" 17 15}
238        {GENERIC_UNIT 3 "Orcish Crossbowman" 18 14}
239        {GENERIC_UNIT 3 "Orcish Crossbowman" 16 14}
240    [/side]
241
242    # Krash may not actually still be alive at this point, but setting up
243    # his side this way is the only way to reliably pick up his recall
244    # list if he is.
245    [side]
246        side=4
247        controller=human
248        save_id=Krash
249        side_name= _ "Krash"
250        recruit=Drake Fighter,Drake Glider,Drake Burner,Drake Clasher
251        {GOLD 250 200 150}
252        team_name=knalgans
253        user_team_name= _ "Alliance"
254        no_leader=yes
255        {FLAG_VARIANT long}
256    [/side]
257
258    # Empty side - player will assume control of it if Eryssa is alive
259    [side]
260        side=5
261        controller=human
262        save_id=Elves
263        persistent=yes
264        no_leader=yes
265        recruit=Elvish Fighter,Elvish Archer,Elvish Shaman,Elvish Scout,Elvish Captain,Elvish Hero,Elvish Ranger,Elvish Marksman,Elvish Rider,Elvish Druid,Elvish Sorceress
266        {GOLD 400 350 300}
267        team_name=knalgans
268        user_team_name= _ "Alliance"
269        {FLAG_VARIANT wood-elvish}
270    [/side]
271
272    [event]
273        name=prestart
274
275        # Remember we went this way
276        {VARIABLE path_get_the_gold yes}
277
278        # Here’s where we edit out Krash's side if he's dead.
279        {RECALL_KRASH 4}
280        [if]
281            [not]
282                [have_unit]
283                    id=Krash
284                [/have_unit]
285            [/not]
286            [then]
287                [kill]
288                    side=4
289                [/kill]
290
291                [terrain]
292                    x=4,4,4,5,5,5,6,6,6
293                    y=3,4,5,3,4,5,3,4,5
294                    terrain=Gs^Fp
295                [/terrain]
296
297                [modify_side]
298                    side=4
299                    hidden=yes
300                [/modify_side]
301
302                # give gold if no krash
303                [gold]
304                    side=1,5
305                    amount={ON_DIFFICULTY 300 275 250}
306                [/gold]
307            [/then]
308        [/if]
309
310        # If Eryssa is alive change her to recruiting leader of side 5 and
311        # place on that keep.  This method works because, unlike Krash, she
312        # has no recall list of followers to preserve.
313        [if]
314            [have_unit]
315                id=Eryssa
316                search_recall_list=yes
317            [/have_unit]
318            [then]
319                [store_starting_location]
320                    side=5
321                    variable=eryssa_starts_at
322                [/store_starting_location]
323
324                [recall]
325                    id=Eryssa
326                    x=$eryssa_starts_at.x
327                    y=$eryssa_starts_at.y
328                [/recall]
329
330                # Remove loyalty overlay
331                [remove_unit_overlay]
332                    id=Eryssa
333                    image=misc/loyal-icon.png
334                [/remove_unit_overlay]
335
336                # Give expendable overlay
337                [unit_overlay]
338                    id=Eryssa
339                    image=misc/leader-expendable.png
340                [/unit_overlay]
341
342                [store_unit]
343                    [filter]
344                        id=Eryssa
345                    [/filter]
346                    variable=place_eryssa_at
347                    kill=yes
348                [/store_unit]
349
350                {VARIABLE place_eryssa_at.side 5}
351                {VARIABLE place_eryssa_at.x    $eryssa_starts_at.x}
352                {VARIABLE place_eryssa_at.y    $eryssa_starts_at.y}
353                {VARIABLE place_eryssa_at.canrecruit yes}
354
355                [unstore_unit]
356                    variable=place_eryssa_at
357                [/unstore_unit]
358
359                [modify_side]
360                    side=5
361                    side_name= _ "Eryssa"
362                [/modify_side]
363
364                {CLEAR_VARIABLE place_eryssa_at}
365                {CLEAR_VARIABLE eryssa_starts_at}
366            [/then]
367            [else]
368                [modify_side]
369                    side=5
370                    hidden=yes
371                [/modify_side]
372            [/else]
373        [/if]
374
375        # Recall heroes
376        {RECALL_SUPPORTER}
377
378        [recall]
379            id=Camerin
380        [/recall]
381
382        [recall]
383            id=Father Morvin
384        [/recall]
385
386        [recall]
387            id=Sister Thera
388        [/recall]
389
390        [recall]
391            id=Elenia
392        [/recall]
393
394        [recall]
395            id=Stalrag
396        [/recall]
397
398        [recall]
399            id="Ro'Sothian"
400        [/recall]
401
402        [recall]
403            id="Ro'Arthian"
404        [/recall]
405
406        [recall]
407            id=Abhai
408        [/recall]
409    [/event]
410
411    [event]
412        name=start
413
414        [message]
415            speaker=narrator
416            image=wesnoth-icon.png
417            message= _ "After making haste through the forest for most of a watch, the party arrived at the battle scene."
418        [/message]
419
420        [message]
421            id=Eryssa
422            message= _ "Sisal, how do you fare?"
423        [/message]
424
425        [message]
426            id=Sisal
427            message= _ "Your Highness! You are here! How fares Hidel?"
428        [/message]
429
430        [message]
431            id=Eryssa
432            message= _ "(<i>Sheds a tear</i>)"
433        [/message]
434
435        [message]
436            id=Tallin
437            message= _ "Hidel... died a hero’s death, one worthy to be sung forever."
438        [/message]
439
440        [message]
441            id=Sisal
442            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."
443        [/message]
444
445        [message]
446            id=Sisal
447            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."
448        [/message]
449
450        [message]
451            id=Tallin
452            message= _ "So you have the gold?"
453        [/message]
454
455        [message]
456            id=Sisal
457            message= _ "We have the gold, and now we shall have the blood of these orcs! IN HIDEL’S NAME!"
458        [/message]
459
460        [message]
461            id="Ha'Tuil"
462            # wmllint: local spelling Grrr
463            message= _ "Grrr, Ha’Tuil has never failed in his mission. I will soon lay your severed heads at the feet of the Master!"
464        [/message]
465
466        [message]
467            id=Sisal
468            message= _ "You will eat cold steel and whimper your way to hell, foul wretch of an orc!"
469        [/message]
470
471        [objectives]
472            side=0
473            [objective]
474                description= _ "Defeat the orcs"
475                condition=win
476            [/objective]
477            [objective]
478                description= _ "Death of Tallin"
479                condition=lose
480            [/objective]
481            [objective]
482                description= _ "Death of Ro’Arthian"
483                condition=lose
484            [/objective]
485            [objective]
486                description= _ "Death of Ro’Sothian"
487                condition=lose
488            [/objective]
489            [objective]
490                description= _ "Death of Eryssa"
491                condition=lose
492                [show_if]
493                    [have_unit]
494                        id=Eryssa
495                    [/have_unit]
496                [/show_if]
497            [/objective]
498
499            {TURNS_RUN_OUT}
500
501            {AI_CONTROLLER_NOTE}
502
503            [note]
504                description= _ "You will not receive any gold if Sisal dies."
505            [/note]
506
507            [gold_carryover]
508                bonus=yes
509                carryover_percentage=40
510            [/gold_carryover]
511        [/objectives]
512    [/event]
513
514    # Bad guy die event
515    [event]
516        name=last breath
517        [filter]
518            id="Ha'Tuil"
519        [/filter]
520
521        [message]
522            id="Ha'Tuil"
523            message= _ "Argh! I have failed!"
524        [/message]
525
526        [message]
527            id=Sisal
528            message= _ "Cheer up — you won’t have to live with your failure for long... (<i>Snicker</i>)"
529        [/message]
530    [/event]
531
532    # Sisal die event
533    [event]
534        name=last breath
535        [filter]
536            id=Sisal
537        [/filter]
538
539        {INCIDENTAL_MUSIC "sad.ogg"}
540
541        [message]
542            id=Sisal
543            message= _ "Ahhhh! Farewell, friends. I now go to join Hidel."
544        [/message]
545
546        [message]
547            id=Eryssa
548            message= _ "Sisal! Noooo!"
549        [/message]
550
551        [message]
552            speaker=second_unit
553            message= _ "Haha! We got the gold now!"
554        [/message]
555
556        [message]
557            id="Ha'Tuil"
558            message= _ "Hahaha! Mission accomplished! I’ll send a wolf to the Master to deliver the gold. Now let’s crush the rest of this scum!"
559        [/message]
560
561        [move_unit_fake]
562            type=Goblin Knight
563            x=19,25
564            y=13,12
565            side=3
566        [/move_unit_fake]
567
568        [message]
569            id=Eryssa
570            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!"
571        [/message]
572    [/event]
573
574    [event]
575        name=enemies defeated
576
577        [endlevel]
578            result=victory
579            bonus=yes
580            {NEW_GOLD_CARRYOVER 40}
581        [/endlevel]
582    [/event]
583
584    # Victory
585    [event]
586        name=victory
587
588        [if]
589            [have_unit]
590                id=Sisal
591            [/have_unit]
592            [then]
593                [modify_unit]
594                    [filter]
595                        id=Sisal
596                    [/filter]
597                    canrecruit=no
598                    {TRAIT_LOYAL}
599                    {IS_LOYAL}
600                [/modify_unit]
601
602                [message]
603                    id=Tallin
604                    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."
605                [/message]
606            [/then]
607            [else]
608                [message]
609                    id=Tallin
610                    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."
611                [/message]
612            [/else]
613        [/if]
614
615        # Make veteran elves available for the Elf side in Showdown.
616        {MODIFY_UNIT (side=2) side 5}
617
618        # Sisal and Eryssa need to be recallable.
619        [modify_unit]
620            [filter]
621                id=Sisal,Eryssa
622            [/filter]
623            side=1
624        [/modify_unit]
625    [/event]
626
627    # Load death events
628    {HERODEATH_EVERYONE}
629[/scenario]
630