1#textdomain wesnoth-httt
2[scenario]
3    id=03_The_Isle_of_Alduin
4    name= _ "The Isle of Alduin"
5    map_data="{campaigns/Heir_To_The_Throne/maps/03_The_Isle_of_Alduin.map}"
6    {TURNS 34 24 21}
7
8    {DEFAULT_SCHEDULE_AFTERNOON}
9
10    next_scenario=04_The_Bay_of_Pearls
11
12    {SCENARIO_MUSIC "wanderer.ogg"}
13    {EXTRA_SCENARIO_MUSIC "nunc_dimittis.ogg"}
14    {EXTRA_SCENARIO_MUSIC "silvan_sanctuary.ogg"}
15    {EXTRA_SCENARIO_MUSIC "knolls.ogg"}
16    {EXTRA_SCENARIO_MUSIC "heroes_rite.ogg"}
17    {EXTRA_SCENARIO_MUSIC "weight_of_revenge.ogg"}
18
19    [event]
20        name=prestart
21        [objectives]
22            side=1
23            [objective]
24                description= _ "Defeat the enemy leader"
25                condition=win
26            [/objective]
27            [objective]
28                description= _ "Death of Konrad"
29                condition=lose
30            [/objective]
31            [objective]
32                description= _ "Death of Delfador"
33                condition=lose
34            [/objective]
35
36            {TURNS_RUN_OUT}
37
38            [gold_carryover]
39                bonus=yes
40                carryover_percentage=40
41            [/gold_carryover]
42        [/objectives]
43    [/event]
44
45    {HTTT_TRACK {JOURNEY_03_NEW} }
46
47    [side]
48        type=Commander
49        id=Konrad
50        name= _ "Konrad"
51        unrenamable=yes
52        profile=portraits/konrad-elvish.png
53        side=1
54        canrecruit=yes
55        team_name=elves
56        user_team_name=_"Rebels"
57        gold=140
58        controller=human
59        {FLAG_VARIANT long}
60    [/side]
61
62    # wmllint: recognize Delfador
63
64    [side]
65        type=Orcish Warrior
66        id="Usadar Q'kai"
67        name= _ "Usadar Q’kai"
68        side=2
69        canrecruit=yes
70        recruit=Orcish Grunt,Wolf Rider,Orcish Archer,Troll Whelp,Goblin Spearman
71        team_name=orcs
72        user_team_name=_"Orcs"
73        {GOLD 30 60 100}
74        [ai]
75            recruitment_pattern=scout,scout,fighter,fighter,archer
76            {ATTACK_DEPTH 1 3 5}
77        [/ai]
78
79        #make the AI a lot more aggressive at night
80        [ai]
81            time_of_day=dusk,first_watch,second_watch
82            aggression=0.75
83            caution=0
84            grouping=no
85        [/ai]
86        {FLAG_VARIANT6 ragged}
87    [/side]
88
89    #make the orcs start with all the villages
90    {STARTING_VILLAGES 2 45}
91
92    #if anyone moves next to the ship, they get a rebuke from Konrad
93    [event]
94        name=moveto
95        [filter]
96            side=1
97            x=31,31,32
98            y=9,10,11
99        [/filter]
100        [message]
101            speaker=Konrad
102            {KONRAD_VARIATION_ELF mad}
103            message= _ "This is no time to return to our vessel! We must take control of the island!"
104        [/message]
105        [allow_undo]
106        [/allow_undo]
107    [/event]
108
109    [event]
110        name=prestart
111
112        {PLACE_IMAGE scenery/rock3.png 25 30}
113
114        [disallow_recruit]
115            side=1
116            type=Mage
117        [/disallow_recruit]
118
119        {NEED_DELFADOR (x,y=26,12)}
120        [store_unit]
121            variable=konrad_store
122            kill=yes
123            [filter]
124                id=Konrad
125            [/filter]
126        [/store_unit]
127        [store_unit]
128            variable=delfador_store
129            kill=yes
130            [filter]
131                id=Delfador
132            [/filter]
133        [/store_unit]
134    [/event]
135
136    [event]
137        name=start
138
139        #the ship that brought them here
140
141        [sound]
142            name=ambient/ship.ogg
143        [/sound]
144
145        [move_unit_fake]
146            type=Galleon
147            side=1
148            x=33,32
149            y=1,10
150        [/move_unit_fake]
151
152        {PLACE_IMAGE "units/transport/galleon.png~RC(magenta>red)" 31 11}
153
154        #move Konrad out of the ship and onto the keep
155        [move_unit_fake]
156            type=$konrad_store.type
157            side=1
158            x=31,26
159            y=11,13
160        [/move_unit_fake]
161
162        #show Konrad
163        [unstore_unit]
164            variable=konrad_store
165        [/unstore_unit]
166        {CLEAR_VARIABLE konrad_store}
167
168        [redraw]
169        [/redraw]
170
171        #move Delfador out of the ship and onto the keep
172        [move_unit_fake]
173            type=$delfador_store.type
174            side=1
175            x=31,26
176            y=11,12
177        [/move_unit_fake]
178
179        #show Delfador
180        [unstore_unit]
181            variable=delfador_store
182        [/unstore_unit]
183        {CLEAR_VARIABLE delfador_store}
184
185        [redraw]
186        [/redraw]
187
188        [message]
189            speaker=narrator
190            image="wesnoth-icon.png"
191            message= _ "And so the party landed on the Isle of Alduin."
192        [/message]
193        [message]
194            speaker=Konrad
195            message= _ "So this is Alduin. It looks a little... desolate."
196        [/message]
197        [message]
198            speaker=Delfador
199            message= _ "I fear so, Konrad. It seems that the orcs have come even here. Here to the place where I was born, where I was trained."
200        [/message]
201        [message]
202            speaker="Usadar Q'kai"
203            message= _ "Who is that? Oh, a party of elves has landed. We shall drive them back into the sea!"
204        [/message]
205        [message]
206            speaker=Delfador
207            message= _ "I did not think the orcs would have come here. This island used to be so beautiful. We must recapture it! To arms!"
208        [/message]
209    [/event]
210
211    [event]
212        name=moveto
213        [filter]
214            x,y=21,10
215            side=1
216        [/filter]
217
218        [unit]
219            id=Elrian
220            name= _ "Elrian"
221            type=Mage
222            x=20
223            y=9
224            side=1
225            [modifications]
226                {TRAIT_LOYAL}
227                {TRAIT_RESILIENT}
228            [/modifications]
229            {IS_LOYAL}
230        [/unit]
231
232        [message]
233            speaker=unit
234            message= _ "I found someone hiding in the village!"
235        [/message]
236        [message]
237            speaker=Elrian
238            message= _ "My lords, I have been hiding in the village from the orcs, like many of the other magi here. I pledge myself to your service; let us move swiftly to recapture the island!"
239        [/message]
240        [message]
241            speaker=Delfador
242            message= _ "Certainly, let us join together to fight the evil ones."
243        [/message]
244        [message]
245            speaker=narrator
246            image="wesnoth-icon.png"
247            message= _ "You can now recruit magi!"
248        [/message]
249#ifdef EASY
250        [message]
251            speaker=Konrad
252            {KONRAD_VARIATION_ELF glad}
253            message= _ "Surely no orc can stand against us with magi in our ranks! Their magical attacks almost always find their mark, even against well-defended troops."
254        [/message]
255        [message]
256            speaker=Delfador
257            {DELFADOR_MENTORING_ELF}
258            message= _ "Caution, young prince. It is very difficult to train inexperienced magi in combat. When they fight on the front lines of battle, you must protect magi with stronger units, else the enemy would make short work of them."
259        [/message]
260#endif
261        [allow_recruit]
262            side=1
263            type=Mage
264        [/allow_recruit]
265
266        {VARIABLE received_mages yes}
267    [/event]
268
269    [event]
270        name=enemies defeated
271        [unit]
272            x=6
273            y=35
274            type=Arch Mage
275            id=Seimus
276            name= _ "Seimus"
277            side=1
278            [modifications]
279                {TRAIT_LOYAL}
280            [/modifications]
281            {IS_LOYAL}
282        [/unit]
283
284        # The guy does not show up on the screen without some help
285        [redraw]
286        [/redraw]
287        [delay]
288            time=1250
289        [/delay]
290
291        [message]
292            speaker=Seimus
293            message= _ "Delfador, my old master! You have saved the island from the orcs!"
294        [/message]
295
296        [message]
297            speaker=Delfador
298            message= _ "My apprentice! How did the island fall to such as these?"
299        [/message]
300
301        [message]
302            speaker=Seimus
303            message= _ "You have not heard, master Delfador? Asheviere is trying to control the entire western coast. She hired many orcs and sent them here. They were holding me until a ship could arrive to take me to Weldyn where I am to stand trial for treason for training magi!"
304        [/message]
305
306        [message]
307            speaker=Delfador
308            message= _ "We have come from fighting her forces at Blackwater. Where else has she attacked?"
309        [/message]
310
311        [message]
312            speaker=Seimus
313            message= _ "She has taken control of the Bay of Pearls, long held by the Mer, and has turned them into slaves. There they dive for pearls by which she grows richer every day. There are even rumors that she may break the ancient treaty and attack Elensefar!"
314        [/message]
315
316        [message]
317            speaker=Konrad
318            message= _ "Can’t we strike back at her? How many forces does she have at the Bay of Pearls? Can we take it back from her?"
319        [/message]
320
321        [message]
322            speaker=Delfador
323            message= _ "We must indeed go there. Let us therefore rest here a little, and then set sail for the Bay. Hopefully we will defeat her forces there!"
324        [/message]
325
326        [if]
327            [variable]
328                name=received_mages
329                not_equals=yes
330            [/variable]
331
332            [then]
333                [message]
334                    speaker=narrator
335                    image="wesnoth-icon.png"
336                    message= _ "You can now recruit magi!"
337                [/message]
338
339#ifdef EASY
340                [message]
341                    speaker=Konrad
342                    {KONRAD_VARIATION_ELF glad}
343                    message= _ "Surely no orc can stand against us with magi in our ranks! Their magical attacks almost always find their mark, even against well-defended troops."
344                [/message]
345                [message]
346                    speaker=Delfador
347                    {DELFADOR_MENTORING_ELF}
348                    message= _ "Caution, young prince. It is very difficult to train inexperienced magi in combat. When they fight on the front lines of battle, you must protect magi with stronger units, else the enemy would make short work of them."
349                [/message]
350#endif
351            [/then]
352        [/if]
353
354        [kill]
355            id=Seimus
356        [/kill]
357
358        [endlevel]
359            result=victory
360            bonus=yes
361            {NEW_GOLD_CARRYOVER 40}
362        [/endlevel]
363    [/event]
364
365    {campaigns/Heir_To_The_Throne/utils/deaths.cfg}
366
367    [event]
368        name=victory
369
370        [allow_recruit]
371            side=1
372            type=Mage
373        [/allow_recruit]
374
375        {CLEAR_VARIABLE received_mages}
376    [/event]
377[/scenario]
378