1#textdomain wesnoth-tsg
2[scenario]
3    id=08a_Return_to_Kerlath
4    name= _ "Return to Kerlath"
5    map_data="{campaigns/The_South_Guard/maps/08a_Return_to_Kerlath.map}"
6    next_scenario=09a_Vengeance
7    {TURNS 22 20 18}
8    victory_when_enemies_defeated=no
9
10    {SCENARIO_MUSIC wanderer.ogg}
11    {EXTRA_SCENARIO_MUSIC knolls.ogg}
12    {EXTRA_SCENARIO_MUSIC silvan_sanctuary.ogg}
13
14#define SG_DEATHS_LAST_LEVEL
15#enddef
16    {campaigns/The_South_Guard/utils/sg_deaths.cfg}
17
18    {DEFAULT_SCHEDULE_DUSK}
19
20    {SG_RETURN_TO_KERLATH}
21    {TSG_BIGMAP {JOURNEY_08A_NEW} }
22
23    [event]
24        name=prestart
25        [objectives]
26            side=1
27            [objective]
28                description= _ "Move Deoran into Kerlath Province"
29                condition=win
30            [/objective]
31            [objective]
32                description= _ "Death of Deoran"
33                condition=lose
34            [/objective]
35            [objective]
36                description= _ "Death of Ethiliel"
37                condition=lose
38            [/objective]
39
40            {TURNS_RUN_OUT}
41
42            [gold_carryover]
43                bonus=yes
44                carryover_percentage=40
45            [/gold_carryover]
46        [/objectives]
47    [/event]
48
49    [label]
50        x,y=18,2
51        text= _ "Westin"
52    [/label]
53
54    [side]
55        side=1
56        type=Horseman Commander
57        id=Deoran
58        name= _ "Deoran"
59        profile=portraits/deoran.png
60        unrenamable=yes
61
62        team_name=South_Guard
63        user_team_name=_"South Guard"
64        controller=human
65        {CUSTOM_SG_FLAG}
66
67        {GOLD 60 50 40}
68        {INCOME 6 4 2}
69
70        fog=yes
71        shroud=no
72
73        canrecruit=yes
74        recruit=Bowman, Spearman, Cavalryman, Elvish Shaman, Elvish Fighter
75    [/side]
76
77    {STARTING_VILLAGES 1 3}
78
79    [side]
80        side=2
81        no_leader=yes
82        team_name=elves
83        hidden=yes
84        controller=ai
85        color=green
86
87        [ai]
88            aggression=0.7
89            caution=0.4
90            [goal]
91                name=target
92                [criteria]
93                    side=1
94                [/criteria]
95                value=5
96            [/goal]
97        [/ai]
98        {FLAG_VARIANT long}
99    [/side]
100
101    [side]
102        no_leader=yes
103        side=3
104        controller=ai
105        team_name=elves
106        hidden=yes
107        color=blue
108        defeat_condition=always
109    [/side]
110
111    [side]
112        side=4
113        no_leader=yes
114        team_name=South_Guard
115        hidden=yes
116        controller=ai
117        {CUSTOM_SG_FLAG}
118    [/side]
119
120    {STARTING_VILLAGES 4 10}
121
122    [event]
123        name=start
124
125        # the ogre
126        {NAMED_GENERIC_UNIT 3 (Ogre) 17 21 (Kramak) (_"Kramak")} {GUARDIAN}
127
128        # enemy elvesk
129#ifdef EASY
130        {GENERIC_UNIT 2 (Elvish Captain) 9 25} {GUARDIAN}
131        {GENERIC_UNIT 2 (Elvish Fighter) 10 22} {GUARDIAN}
132        {GENERIC_UNIT 2 (Elvish Scout) 12 23} {GUARDIAN}
133
134        {GENERIC_UNIT 2 (Elvish Hero) 6 18} {GUARDIAN}
135        {GENERIC_UNIT 2 (Elvish Archer) 7 20} {GUARDIAN}
136        {GENERIC_UNIT 2 (Elvish Fighter) 11 18} {GUARDIAN}
137
138        {GENERIC_UNIT 2 (Elvish Archer) 8 14} {GUARDIAN}
139        {GENERIC_UNIT 2 (Elvish Fighter) 7 11} {GUARDIAN}
140#endif
141#ifdef NORMAL
142        {GENERIC_UNIT 2 (Elvish Captain) 9 25} {GUARDIAN}
143        {GENERIC_UNIT 2 (Elvish Fighter) 10 22} {GUARDIAN}
144        {GENERIC_UNIT 2 (Elvish Scout) 12 23} {GUARDIAN}
145
146        {GENERIC_UNIT 2 (Elvish Hero) 6 18} {GUARDIAN}
147        {GENERIC_UNIT 2 (Elvish Ranger) 7 20} {GUARDIAN}
148        {GENERIC_UNIT 2 (Elvish Fighter) 11 18} {GUARDIAN}
149        {GENERIC_UNIT 2 (Elvish Archer) 12 14} {GUARDIAN}
150        {GENERIC_UNIT 2 (Elvish Scout) 10 19} {GUARDIAN}
151
152        {GENERIC_UNIT 2 (Elvish Archer) 8 14} {GUARDIAN}
153        {GENERIC_UNIT 2 (Elvish Fighter) 7 11} {GUARDIAN}
154#endif
155#ifdef HARD
156        {GENERIC_UNIT 2 (Elvish Captain) 9 25} {GUARDIAN}
157        {GENERIC_UNIT 2 (Elvish Fighter) 10 22} {GUARDIAN}
158        {GENERIC_UNIT 2 (Elvish Scout) 12 23} {GUARDIAN}
159        {GENERIC_UNIT 2 (Elvish Archer) 15 24} {GUARDIAN}
160
161        {GENERIC_UNIT 2 (Elvish Hero) 6 18} {GUARDIAN}
162        {GENERIC_UNIT 2 (Elvish Ranger) 7 20} {GUARDIAN}
163        {GENERIC_UNIT 2 (Elvish Fighter) 11 18} {GUARDIAN}
164        {GENERIC_UNIT 2 (Elvish Marksman) 12 14} {GUARDIAN}
165        {GENERIC_UNIT 2 (Elvish Scout) 10 19} {GUARDIAN}
166        {GENERIC_UNIT 2 (Elvish Archer) 3 20} {GUARDIAN}
167
168        {GENERIC_UNIT 2 (Elvish Archer) 8 14} {GUARDIAN}
169        {GENERIC_UNIT 2 (Elvish Fighter) 7 11} {GUARDIAN}
170#endif
171
172        [recall]
173            id=Ethiliel
174        [/recall]
175        [redraw][/redraw]
176
177        [recall]
178            id=Minister Hylas
179        [/recall]
180        [redraw][/redraw]
181
182        [recall]
183            id=Sir Gerrick
184        [/recall]
185        [redraw][/redraw]
186
187#ifdef HARD
188        [recall]
189            type=Royal Guard, Pikeman, Swordsman, Javelineer, Master Bowman, Longbowman, Spearman, Bowman
190        [/recall]
191        [recall]
192            type=Royal Guard, Pikeman, Swordsman, Javelineer, Master Bowman, Longbowman, Spearman, Bowman
193        [/recall]
194#else
195        [recall]
196            type=Royal Guard, Pikeman, Swordsman, Javelineer, Master Bowman, Longbowman, Spearman, Bowman
197        [/recall]
198        [recall]
199            type=Royal Guard, Pikeman, Swordsman, Javelineer, Master Bowman, Longbowman, Spearman, Bowman
200        [/recall]
201        [recall]
202            type=Royal Guard, Pikeman, Swordsman, Javelineer, Master Bowman, Longbowman, Spearman, Bowman
203        [/recall]
204#endif
205        [redraw][/redraw]
206
207        [message]
208            id=Deoran
209            message= _"We are finally back in familiar territory. Westin is no more than a couple days’ journey from here. Let us make haste back to our homes."
210        [/message]
211
212        {HIGHLIGHT_IMAGE 3 7 items/gohere.png ()}
213    [/event]
214
215    # Kramak, the wild ogre
216
217    [event]
218        name=sighted
219        [filter]
220            id=Kramak
221        [/filter]
222        [message]
223            speaker=Kramak
224            #po: The ogre purposely has very bad grammar, because he is very stupid.
225            message= _ "Oh! Me see human. Human tasty food?"
226        [/message]
227        [message]
228            speaker=Deoran
229            # wmllint: local spelling Mr.
230            message= _ "Err, Mr. Ogre, we are not very tasty."
231        [/message]
232        [message]
233            speaker=Kramak
234            message= _ "Oh. Me like only tasty meat. You go away."
235        [/message]
236        [message]
237            speaker=Kramak
238            message= _ "..."
239        [/message]
240        [message]
241            speaker=Kramak
242            message= _ "Wait! Me no believe! Me eat you!"
243        [/message]
244    [/event]
245
246    [event]
247        name=last breath
248        [filter]
249            id=Kramak
250        [/filter]
251        [message]
252            speaker=Kramak
253            message= _ "Bad food! It hurt me. Me no like. Me ouch..."
254        [/message]
255    [/event]
256
257    [event]
258        name=sighted
259
260        [filter]
261            side=2
262        [/filter]
263
264        [message]
265            speaker=unit
266            message= _"Humans! Vile beasts!"
267        [/message]
268        [message]
269            id=Deoran
270            message= _"What? We are your friends, not your enemies! We mean no harm to you. My men and I are simply tired and wish to return to our homes."
271        [/message]
272        [message]
273            speaker=unit
274            message= _"Save those wishes for another life, cur! You kidnapped and slew the Sage Mebrin!"
275        [/message]
276        [message]
277            id=Deoran
278            message= _"We did no such thing! Mebrin adopted the dark arts of his own volition. He was consumed by it and twisted into a being of great evil!"
279        [/message]
280        [message]
281            speaker=unit
282            message= _"How dare you! To accuse our beloved sage of such things... does the stupidity of humanity know no bounds?"
283        [/message]
284        [message]
285            id=Ethiliel
286            message= _"The human speaks the truth. As much as my heart grieves for Mebrin, he was not innocent either."
287        [/message]
288        [message]
289            speaker=unit
290            message= _"Fine words for a traitor."
291        [/message]
292        [message]
293            id=Ethiliel
294            image=portraits/ethiliel-mad.png
295            message= _"You dare speak to me so? Have you forgotten who I am? I <i>order</i> you to stand down this instant, warrior!"
296        [/message]
297        [message]
298            speaker=unit
299            message= _"Your orders no longer hold any weight, friend of the tree-killers. If you will not withdraw, we will kill you along with them!"
300        [/message]
301        [message]
302            id=Deoran
303            message= _"<i>Ethiliel, what in the world is going on?</i>"
304        [/message]
305        [message]
306            id=Ethiliel
307            message= _"<i>I am not sure. Mebrin was beloved by many of our people. His death must have angered some of them greatly, perhaps to the point that they have become utterly irrational. Even so, this seems like madness to me.</i>"
308        [/message]
309        [message]
310            id=Deoran
311            message= _"<i>But to be angered enough to attack you? And besides, you were his student. You have the right to be the most angry of all, yet even you have made peace with us. Should they not recognize this?</i>"
312        [/message]
313        [message]
314            id=Ethiliel
315            message= _"<i>The events that transpired in those caves brought too much grief for me to be angry any longer. But, I am afraid the rest of my people did not see firsthand what Mebrin had become. As for attacking me, I am not usually the one in command of our warriors; that responsibility belongs to Ithelden, whom I very much doubt sent anyone to come hunt us down. Something else is going on.</i>"
316        [/message]
317        [message]
318            id=Deoran
319            message= _"<i>What should we do?</i>"
320        [/message]
321        [message]
322            id=Ethiliel
323            message= _"<i>Fight past our foes, but if possible, fight to subdue and not to kill. We elves have suffered enough from this ordeal. I would not have our people be slaughtered needlessly as well.</i>"
324        [/message]
325        [message]
326            id=Deoran
327            message= _"<i>Very well.</i>"
328        [/message]
329    [/event]
330
331    [event]
332        name=time over
333
334        [remove_shroud]
335            [filter_side]
336                side=1
337            [/filter_side]
338            x=10-18
339            y=0-5
340        [/remove_shroud]
341        [lift_fog]
342            [filter_side]
343                side=1
344            [/filter_side]
345            x=10-18
346            y=0-5
347            multiturn=yes
348        [/lift_fog]
349        [redraw]
350            side=1
351            clear_shroud=yes
352        [/redraw]
353
354        [unit]
355            type=Elvish Avenger
356            side=2
357            id=Eltenmir
358            name= _ "Eltenmir"
359            animate=yes
360            x,y=13,2
361        [/unit]
362        {GENERIC_UNIT 2 (Elvish Hero) 12 1}
363        {GENERIC_UNIT 2 (Elvish Captain) 12 2}
364        {GENERIC_UNIT 2 (Elvish Marksman) 11 3}
365
366        [message]
367            speaker=Eltenmir
368            # po: Defeat message after time-over
369            message= _ "These human beasts slew our people and murdered Mebrin! We must have vengeance for this vile atrocity. Burn their city to the ground!"
370        [/message]
371        [message]
372            speaker=Deoran
373            # po: Defeat message after time-over
374            message= _ "The elves are attacking Westin! They'll surely destroy the city without us there to defend it..."
375        [/message]
376    [/event]
377
378    [event]
379        name=moveto
380        [filter]
381            side=1
382            x,y=3,7
383            id=Deoran
384        [/filter]
385
386        [remove_item]
387            x,y=3,7
388        [/remove_item]
389
390        [unit]
391            side=4
392            type=Lieutenant
393            id=Liryn
394            name= _ "Liryn"
395            x,y=2,6
396        [/unit]
397
398        [message]
399            speaker=Liryn
400            message= _ "Halt! Who comes to the border of Wesnoth?"
401        [/message]
402
403        [message]
404            speaker="Deoran"
405            message= _ "It is I, Deoran, commander of the South Guard."
406        [/message]
407
408        [message]
409            speaker=Liryn
410            message= _ "Deoran? It truly is you? We had thought you had been lost to the undead."
411        [/message]
412
413        [message]
414            speaker="Deoran"
415            message= _ "We and our elvish allies have won a great battle against a lich. The undead are no more."
416        [/message]
417
418        [message]
419            speaker=Liryn
420            message= _ "This is wonderful news, commander! I shall spread word about your heroic deed! But... I am afraid there is another problem. There are rumors of trouble with the elves of the Aethenwood."
421        [/message]
422
423        [message]
424            speaker="Ethiliel"
425            message= _ "That does not surprise me, given our troubles in even getting here. Deoran, we had best hurry back to your city. I will need to see what the circumstances are."
426        [/message]
427
428        [message]
429            speaker="Deoran"
430            message= _ "Very well, let us make haste to Westin."
431        [/message]
432
433        [endlevel]
434            result=victory
435            bonus=yes
436            {NEW_GOLD_CARRYOVER 40}
437        [/endlevel]
438    [/event]
439[/scenario]
440