1#textdomain wesnoth-trow
2[scenario]
3    id=09_Fallen_Lich_Point
4    name= _ "Fallen Lich Point"
5    next_scenario=10_Sewer_of_Southbay
6    victory_when_enemies_defeated=no
7    map_data="{campaigns/The_Rise_Of_Wesnoth/maps/09_Fallen_Lich_Point.map}"
8    {TURNS 39 36 33}
9    {DEFAULT_SCHEDULE}
10
11    {SCENARIO_MUSIC breaking_the_chains.ogg}
12    {EXTRA_SCENARIO_MUSIC knolls.ogg}
13
14    # No story part
15    {TROW_GI_TRACK {JOURNEY_09_NEW} }
16
17    {TROW_DEATHS}
18
19    [side]
20        type=Noble Commander
21        id=Prince Haldric
22        name= _ "Prince Haldric"
23        unrenamable=yes
24        side=1
25        canrecruit=yes
26        gold=200
27        controller=human
28        team_name=Haldric
29        user_team_name=_"Refugees"
30        {FLAG_VARIANT loyalist}
31    [/side]
32
33    [side]
34        type=Orcish Warlord
35        id="Ut'Tan-Grilg"
36        name= _ "Ut’Tan-Grilg"
37        profile=portraits/orcs/grunt-3.png
38        side=2
39        canrecruit=yes
40#ifdef EASY
41        recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Goblin Pillager, Goblin Knight, Goblin Spearman
42#endif
43
44#ifdef NORMAL
45        recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Goblin Knight, Orcish Slayer, Goblin Spearman
46#endif
47
48#ifdef HARD
49        recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Orcish Warrior, Goblin Knight, Goblin Pillager, Orcish Slayer, Goblin Spearman, Goblin Impaler
50#endif
51        {GOLD 210 250 290}
52        team_name=orcs
53        user_team_name=_"Orcs"
54        [ai]
55            {NO_SCOUTS}
56            recruitment_pattern=scout,fighter,fighter,mixed fighter,archer
57            {ATTACK_DEPTH 4 5 5}
58        [/ai]
59        [ai]
60            time_of_day=first_watch,second_watch
61            aggression=0.75
62            caution=0.0
63            grouping=no
64        [/ai]
65    [/side]
66
67    {STARTING_VILLAGES 2 8}
68
69    [side]
70        type=Orcish Warlord
71        id=Tan-Pulk
72        name= _ "Tan-Pulk"
73        side=3
74        profile=portraits/orcs/grunt.png
75        canrecruit=yes
76#ifdef EASY
77        recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Goblin Pillager, Goblin Spearman
78#endif
79
80#ifdef NORMAL
81        recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Orcish Warrior, Goblin Pillager, Goblin Spearman
82#endif
83
84#ifdef HARD
85        recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Orcish Warrior, Goblin Knight, Goblin Pillager, Orcish Slayer, Goblin Spearman, Goblin Impaler
86#endif
87
88        {GOLD 210 250 290}
89        team_name=orcs
90        user_team_name=_"Orcs"
91        [ai]
92            {NO_SCOUTS}
93            recruitment_pattern=scout,fighter,fighter,mixed fighter,archer
94            {ATTACK_DEPTH 4 5 5}
95        [/ai]
96        [ai]
97            time_of_day=first_watch,second_watch
98            aggression=0.75
99            caution=0.0
100            grouping=no
101        [/ai]
102    [/side]
103
104    {STARTING_VILLAGES 3 6}
105
106#define PETRIFIED
107    [status]
108        petrified=yes
109    [/status]
110#enddef
111
112    [side]
113        side=4
114        type=Lich
115        id=Lich-Lord Caror
116        name= _ "Lich-Lord Caror"
117        canrecruit=yes
118        recruit=Skeleton, Skeleton Archer, Ghost, Ghoul, Walking Corpse
119        {GOLD 0 150 190}
120        team_name=undead
121        user_team_name=_"Undead"
122        scroll_to_leader=no
123        [ai]
124            aggression=1.0
125            recruitment_pattern=scout,fighter,fighter,archer
126            {ATTACK_DEPTH 4 5 5}
127            {NO_SCOUTS}
128        [/ai]
129        {PETRIFIED}
130        {FLAG_VARIANT undead}
131    [/side]
132
133    [side]
134        side=5
135        no_leader=yes
136        team_name=yetis
137        user_team_name= _ "Yetis"
138        hidden=yes
139        # set these values as they will be displayed in the status table
140        gold=0
141        income=-2
142        village_gold=0
143        village_support=0
144        [ai]
145            village_value=0
146        [/ai]
147    [/side]
148
149    [event]
150        name=prestart
151
152        {PLACE_IMAGE (scenery/signpost.png) 25 1}
153        {PLACE_IMAGE (scenery/signpost.png) 14 8}
154        {PLACE_IMAGE (scenery/monolith4.png) 14 30}
155        {PLACE_IMAGE (scenery/mine-abandoned.png) 15 9}
156
157#define PETRIFIED_UNIT TYPE X Y
158    [unit]
159        side=4
160        type={TYPE}
161        x={X}
162        y={Y}
163        {PETRIFIED}
164        # upkeep cost removed so the gold doesn't change before the unpetrifying
165        upkeep=loyal
166    [/unit]
167#enddef
168
169        {PETRIFIED_UNIT "Bone Shooter" 12 35}
170        {PETRIFIED_UNIT "Bone Shooter" 13 37}
171        {PETRIFIED_UNIT "Bone Shooter" 11 37}
172        {PETRIFIED_UNIT "Revenant" 13 36}
173        {PETRIFIED_UNIT "Revenant" 12 37}
174        {PETRIFIED_UNIT "Revenant" 11 36}
175
176        [set_variable]
177            name=lich_free
178            value=0
179        [/set_variable]
180        [set_variable]
181            name=have_book
182            value=0
183        [/set_variable]
184
185        [hide_unit]
186            x=33
187            y=24
188        [/hide_unit]
189
190        [objectives]
191            side=1
192            [objective]
193                description= _ "Kill the lich to get his book"
194                condition=win
195            [/objective]
196            [objective]
197                description= _ "Haldric enters Southbay’s sewer"
198                condition=win
199            [/objective]
200            {ALTERNATIVE_OBJECTIVE_BONUS ( _ "Defeat all enemy leaders")}
201            [objective]
202                description= _ "Death of Prince Haldric"
203                condition=lose
204            [/objective]
205            [objective]
206                description= _ "Death of Lady Jessene"
207                condition=lose
208            [/objective]
209
210            {TURNS_RUN_OUT}
211
212            [gold_carryover]
213                carryover_percentage=40
214            [/gold_carryover]
215        [/objectives]
216    [/event]
217
218    [event]
219        name=start
220        [message]
221            speaker=Tan-Pulk
222            # wmllint: local spelling da tinkin
223            message= _ "Da big bosses said we’d be in da city by winter. Bosses wrong, human-worms still there, and I’m a tinkin—"
224        [/message]
225        [message]
226            speaker="Ut'Tan-Grilg"
227            message= _ "Wait! I see a ship! Humans is coming! Smash ’em good!"
228        [/message]
229
230        [sound]
231            name=ambient/ship.ogg
232        [/sound]
233
234        [move_unit_fake]
235            type=Transport Galleon
236            side=1
237            x=35,34,33,33,34,34
238            y=30,29,29,28,27,26
239        [/move_unit_fake]
240
241        {PLACE_IMAGE ("units/transport/transport-galleon.png~RC(magenta>red)") 34 26}
242
243        [unhide_unit]
244            x=33
245            y=24
246        [/unhide_unit]
247
248        [message]
249            speaker=narrator
250            message= _ "Prince Haldric has arrived at Fallen Lich Point, to retrieve the Lich-Lord Caror’s Book of Fire and Darkness, and flee into the sewers of Southbay."
251            image=wesnoth-icon.png
252        [/message]
253
254        [recall]
255            id=Lady Jessene
256        [/recall]
257        [recall]
258            id=Burin the Lost
259        [/recall]
260        [recall]
261            id=Sir Ruddry
262        [/recall]
263
264        [recall]
265            id=Sir Ladoc
266        [/recall]
267
268        [recall]
269            id=Minister Edren
270        [/recall]
271
272        [message]
273            speaker=Prince Haldric
274            # wmllint: local spelling un-petrify
275            message= _ "Well, let’s un-petrify that lich and take his book, then get into the sewers. Umm, what language would that book be in?"
276        [/message]
277        [message]
278            speaker=Lady Jessene
279            message= _ "Some pep talk. The book will probably be in the Old Wesfolk tongue."
280        [/message]
281        [message]
282            speaker=Prince Haldric
283            message= _ "Ohh." # wmllint: no spellcheck
284        [/message]
285        [message]
286            speaker=Lady Jessene
287            message= _ "Just get the book, I think I should be able to translate it."
288        [/message]
289        [message]
290            speaker=Prince Haldric
291            message= _ "Then, into Southbay’s sewer."
292        [/message]
293        [message]
294            speaker=Lady Jessene
295            message= _ "Right."
296        [/message]
297    [/event]
298
299    [event]
300        name=moveto
301        first_time_only=yes
302
303        [filter]
304            side=1
305            x=13-18
306            y=29-34
307        [/filter]
308
309        [if]
310            [have_unit]
311                id=Prince Haldric
312                x=13-18
313                y=29-34
314            [/have_unit]
315
316            [then]
317                [message]
318                    speaker=Prince Haldric
319                    message= _ "There’s an odd monolith standing near here. Maybe it has something to do with the Lich-Lord... I should investigate more closely."
320                [/message]
321            [/then]
322
323            [else]
324                [message]
325                    speaker=unit
326                    message= _ "There’s an odd monolith standing near here."
327                [/message]
328
329                [message]
330                    speaker=Lady Jessene
331                    message= _ "Haldric, this looks like a job for you, probably something to do with the lich. Maybe you should get yourself over here."
332                [/message]
333            [/else]
334        [/if]
335
336        [allow_undo]
337        [/allow_undo]
338    [/event]
339
340    [event]
341        name=moveto
342        first_time_only=no
343        [filter]
344            side=1
345            x=14
346            y=30
347        [/filter]
348        [message]
349            speaker=narrator
350            message= _ "This monolith was erected by me, ― (<i>chipped away</i>), first Mage of the good people of the Green Isle. By its power the Lich-Lord is bound in stone. To end the spell a noble of the line of Kings should utter the following..."
351            image=wesnoth-icon.png
352        [/message]
353
354        [if]
355            [variable]
356                name=lich_free
357                numerical_equals=0
358            [/variable]
359
360            [then]
361                [if]
362                    [have_unit]
363                        id=Prince Haldric
364                        x=14
365                        y=30
366                    [/have_unit]
367
368                    [then]
369                        [message]
370                            speaker=Prince Haldric
371                            message= _ "Hmm... after some thought..."
372                            image=portraits/haldric-annoyed.png
373
374                            [option]
375                                label= _ "I think I’ll say that magic phrase."
376
377                                [command]
378                                    [set_variable]
379                                        name=lich_free
380                                        value=1
381                                    [/set_variable]
382                                    [unpetrify]
383                                    [/unpetrify]
384
385                                    {MODIFY_UNIT side,canrecruit=4,no upkeep full}
386
387                                    [modify_side]
388                                        side=4
389                                        income=0
390                                    [/modify_side]
391
392                                    [message]
393                                        speaker=Prince Haldric
394                                        message= _ "The lich is free! Let’s bash him and grab that book. That sounds like a job for you, Lady Jessene!"
395                                    [/message]
396                                    [message]
397                                        speaker=Lady Jessene
398                                        message= _ "Hmph! You’re just happy because that monolith proves your paternity!"
399                                    [/message]
400                                    [message]
401                                        speaker=Lich-Lord Caror
402                                        message= _ "Free, I’m free, and I feel the Ruby of Fire! It will be mine."
403                                    [/message]
404                                    [message]
405                                        speaker=Minister Edren
406                                        message= _ "No you won’t, you soldier of darkness!"
407                                    [/message]
408                                [/command]
409                            [/option]
410
411                            [option]
412                                label= _ "I think I’ll wait a while before uttering any magic phrases."
413
414                                [command]
415                                    [message]
416                                        speaker=Prince Haldric
417                                        message= _ "We have more pressing matters to deal with before we free that lich."
418                                    [/message]
419
420                                    [message]
421                                        speaker=Lady Jessene
422                                        message= _ "Afraid you’ll find out you’re not of the line of Kings?"
423                                    [/message]
424                                [/command]
425                            [/option]
426                        [/message]
427                    [/then]
428
429                    [else]
430                        [message]
431                            speaker=narrator
432                            message= _ "This sounds like a job for Prince Haldric, hopefully."
433                            image=wesnoth-icon.png
434                        [/message]
435
436                        [allow_undo]
437                        [/allow_undo]
438                    [/else]
439                [/if]
440            [/then]
441
442            [else]
443                [message]
444                    speaker=narrator
445                    message= _ "The Lich-Lord is already free."
446                    image=wesnoth-icon.png
447                [/message]
448                [allow_undo]
449                [/allow_undo]
450            [/else]
451        [/if]
452    [/event]
453
454    [event]
455        name=moveto
456        [filter]
457            side=1
458            x=25
459            y=1
460        [/filter]
461
462        [redraw]
463        [/redraw]
464
465        [message]
466            speaker=narrator
467            # wmllint: local spelling NW
468            message= _ "NW — Southbay."
469            image=wesnoth-icon.png
470        [/message]
471        [message]
472            speaker=unit
473            message= _ "More like ‘NW — Every orc on the Isle’. Hmph!"
474        [/message]
475        [allow_undo]
476        [/allow_undo]
477    [/event]
478
479    [event]
480        name=moveto
481        first_time_only=no
482        [filter]
483            side=1
484            x=15
485            y=9
486        [/filter]
487
488        [if]
489            [have_unit]
490                id=Prince Haldric
491                x=15
492                y=9
493            [/have_unit]
494
495            [then]
496                [if]
497                    [variable]
498                        name=have_book
499                        numerical_equals=1
500                    [/variable]
501                    [then]
502                        [message]
503                            speaker=Prince Haldric
504                            message= _ "We have the book! Let’s get out of here!"
505                        [/message]
506
507                        [message]
508                            speaker=Lady Jessene
509                            message= _ "Sounds good to me."
510                        [/message]
511
512                        [endlevel]
513                            bonus=no
514                            result=victory
515                            {NEW_GOLD_CARRYOVER 40}
516                        [/endlevel]
517                    [/then]
518
519                    [else]
520                        [message]
521                            speaker=Prince Haldric
522                            message= _ "I feel like I’m forgetting something. Ohh, the book!"
523                            image=portraits/haldric-surprised.png
524                        [/message]
525                    [/else]
526                [/if]
527            [/then]
528
529            [else]
530                [message]
531                    speaker=narrator
532                    message= _ "Prince Haldric must be the first into the sewers of Southbay."
533                    image=wesnoth-icon.png
534                [/message]
535
536                [allow_undo]
537                [/allow_undo]
538            [/else]
539        [/if]
540    [/event]
541
542    [event]
543        name=moveto
544
545        [filter]
546            x=15-27
547            y=16-25
548        [/filter]
549
550        [modify_side]
551            side=5
552            hidden=no
553        [/modify_side]
554        [move_unit_fake]
555            type=Yeti
556            side=4
557            x=13,13,13,12,11,10,9,9,9,10,11,11,11,12,12
558            y=1,2,3,3,4,4,5,6,7,7,8,9,10,10,11
559        [/move_unit_fake]
560
561        {NAMED_LOYAL_UNIT 5 (Yeti) 12 11 (Rarlg) ( _ "Rarlg")}
562
563        [message]
564            speaker=Rarlg
565            message= _ "Rarlg — argh, a raul-rarlg!"  # wmllint: no spellcheck
566        [/message]
567        [message]
568            speaker=Prince Haldric
569            message= _ "Oh my!"
570            image=portraits/haldric-surprised.png
571        [/message]
572        [message]
573            speaker="Ut'Tan-Grilg"
574            message= _ "Oh my!"
575        [/message]
576        [message]
577            speaker=Tan-Pulk
578            message= _ "Oh my!"
579        [/message]
580        [message]
581            speaker=Lady Jessene
582            message= _ "And he brought a friend."
583        [/message]
584
585        [scroll_to_unit]
586            id=Rarlg
587        [/scroll_to_unit]
588
589        {NAMED_LOYAL_UNIT 5 (Yeti) 15 11 (Raul-Rarlg) ( _ "Raul-Rarlg")}
590    [/event]
591
592    [event]
593        name=last breath
594        [filter]
595            id=Lich-Lord Caror
596        [/filter]
597
598        [message]
599            speaker=Lich-Lord Caror
600            message= _ "So close. So close."
601        [/message]
602
603        [message]
604            speaker=second_unit
605            message= _ "I found the book in what was left of his robes! Let’s get out of here!"
606        [/message]
607
608        [set_variable]
609            name=have_book
610            value=1
611        [/set_variable]
612    [/event]
613
614    [event]
615        name=enemies defeated
616
617        [message]
618            speaker=Prince Haldric
619            message= _ "We have the book and the orcs are out of our way. Let’s get out of here!"
620        [/message]
621
622        [endlevel]
623            bonus=yes
624            result=victory
625            {NEW_GOLD_CARRYOVER 40}
626        [/endlevel]
627    [/event]
628
629    [event]
630        name=scenario_end
631
632        {CLEAR_VARIABLE have_book}
633        {CLEAR_VARIABLE lich_free}
634        {CLEAR_VARIABLE Killed_an_Orc}
635    [/event]
636
637    [event]
638        name=time over
639        [message]
640            speaker=Prince Haldric
641            message= _ "I can hear their reinforcements coming! We’re trapped! All is lost!"
642            image=portraits/haldric-surprised.png
643        [/message]
644    [/event]
645
646    [event]
647        name=moveto
648        [filter]
649            side=1
650            x=14
651            y=8
652        [/filter]
653
654        [redraw]
655        [/redraw]
656
657        [message]
658            speaker=narrator
659            message= _ "Sewer — Danger Keep Out!"
660            image=scenery/signpost.png
661        [/message]
662
663        [allow_undo]
664        [/allow_undo]
665    [/event]
666[/scenario]
667
668#undef PETRIFIED
669#undef PETRIFIED_UNIT
670