1#textdomain wesnoth-httt
2[scenario]
3    id=22_Return_to_Wesnoth
4    name= _ "Return to Wesnoth"
5    map_data="{campaigns/Heir_To_The_Throne/maps/22_Return_to_Wesnoth.map}"
6    {TURNS 31 28 25}
7
8    next_scenario=23_Test_of_the_Clans
9
10    {DEFAULT_SCHEDULE}
11
12    {INTRO_AND_SCENARIO_MUSIC "revelation.ogg" "breaking_the_chains.ogg"}
13    {EXTRA_SCENARIO_MUSIC "battle.ogg"}
14    {EXTRA_SCENARIO_MUSIC "loyalists.ogg"}
15    {EXTRA_SCENARIO_MUSIC "knolls.ogg"}
16
17    [event]
18        name=prestart
19        [disallow_recruit]
20            side=1
21            type=Gryphon
22        [/disallow_recruit]
23        [objectives]
24            side=1
25            [objective]
26                description= _ "Defeat all enemy leaders"
27                condition=win
28            [/objective]
29            [objective]
30                description= _ "Death of Konrad"
31                condition=lose
32            [/objective]
33            [objective]
34                description= _ "Death of Delfador"
35                condition=lose
36            [/objective]
37            [objective]
38                description= _ "Death of Li’sar"
39                condition=lose
40            [/objective]
41            [objective]
42                description= _ "Death of Kalenz"
43                condition=lose
44            [/objective]
45
46            {TURNS_RUN_OUT}
47
48            [gold_carryover]
49                bonus=yes
50                carryover_percentage=40
51            [/gold_carryover]
52        [/objectives]
53
54        [if]
55            [variable]
56                name=gryphons_return
57                boolean_equals=yes
58            [/variable]
59            [then]
60                [event]
61                    name=turn 4
62
63                    [sound]
64                        name=gryphon-shriek-1.ogg
65                    [/sound]
66                    [message]
67                        speaker=narrator
68                        message= _ "The battlefield falls silent as a loud shriek fills the air."
69                    [/message]
70                    [scroll_to]
71                        x,y=1,1
72                    [/scroll_to]
73                    [message]
74                        speaker=Kalenz
75                        scroll=no
76                        message= _ "Look! In the distance! I have never before seen such a thing!"
77                    [/message]
78#define GRYPHON_RETURNS X Y
79    [sound]
80        name=gryphon-shriek-1.ogg
81    [/sound]
82    [move_unit_fake]
83        type=Gryphon
84        x=1,{X}
85        y=1,{Y}
86    [/move_unit_fake]
87    {LOYAL_UNIT 1 (Gryphon) {X} {Y}}
88#enddef
89                    {GRYPHON_RETURNS 5 5}
90                    {GRYPHON_RETURNS 5 4}
91                    {GRYPHON_RETURNS 4 4}
92                    {GRYPHON_RETURNS 5 3}
93                    {GRYPHON_RETURNS 3 4}
94#undef GRYPHON_RETURNS
95                    [message]
96                        speaker=Delfador
97                        {DELFADOR_MENTORING}
98                        message= _ "What a surprise! This world never ceases to amaze me."
99                    [/message]
100                    [message]
101                        speaker=Konrad
102                        {KONRAD_VARIATION glad}
103                        message= _ "Such wondrous beasts! It appears our aid in their mountain homeland is being repaid."
104                    [/message]
105                    [message]
106                        speaker="Li'sar"
107                        {LISAR_VARIATION glad}
108                        message= _ "Assault from the air? What an intriguing idea!"
109                    [/message]
110                    [allow_recruit]
111                        side=1
112                        type=Gryphon
113                    [/allow_recruit]
114                    [message]
115                        speaker=narrator
116                        image=wesnoth-icon.png
117                        message= _ "You can now recruit Gryphons!"
118                    [/message]
119                [/event]
120            [/then]
121        [/if]
122    [/event]
123
124    {campaigns/Heir_To_The_Throne/utils/deaths.cfg}
125
126    [story]
127        [part]
128            story= _ "After many days enjoying the strange food and fine linen of his hosts, restlessness overtook Konrad. The urgency nagged at him as he donned a new tunic and fastened newly-oiled leather straps."
129            {HTTT_BIGMAP}
130            show_title=no
131        [/part]
132        [part]
133            story= _ "He strode the halls of the elven citadel, visiting and encouraging his soldiers. Many were elves about to leave behind the comfort and peace of their capital to make war on a vast human army — his war. The weight of that thought bore on him."
134            {HTTT_BIGMAP}
135            show_title=no
136        [/part]
137        [part]
138            story= _ "Konrad stood on the rampart staring out towards the horizon as his men bustled below. He suddenly realized why he was uneasy: he had been staring at thin streams of black smoke, merging into the clouds far in the distance. He shouted orders to depart and was ardently obeyed."
139            {HTTT_BIGMAP}
140            show_title=no
141        [/part]
142        [part]
143            story= _ "Kalenz’s champion courtiers escorted Konrad and Delfador through their forest, a near-invincible vanguard. War had spread to the Northlands, but by taking long-deserted trails through the rugged eastern hills, it failed to find the band of rebels. The high craggy peaks of the mountains of the Dragons looked down on them in deserted desolation."
144            {HTTT_BIGMAP}
145            show_title=no
146        [/part]
147        [part]
148            story= _ "Konrad’s small band of elves had grown to a massive army. The occasional hermit mage knew better than to interfere with its progress, and soon the plains of Northeastern Wesnoth lay before them."
149            {HTTT_BIGMAP}
150            show_title=no
151        [/part]
152        [part]
153            story= _ "After spending the greater part of a year in remote, dangerous wastes, Konrad’s heart leapt at the thought this journey was almost over. Though the greatest danger lay ahead, he knew he was finally returning home."
154            {HTTT_BIGMAP}
155            show_title=no
156        [/part]
157    [/story]
158
159    {HTTT_TRACK {JOURNEY_22_NEW} }
160
161    [side]
162        type=Commander
163        id=Konrad
164        name= _ "Konrad"
165        unrenamable=yes
166        profile=portraits/konrad-human.png
167        side=1
168        canrecruit=yes
169        controller=human
170        team_name=good
171        user_team_name=_"Rebels"
172        gold=400
173        {FLAG_VARIANT long}
174    [/side]
175
176    [side]
177        type=General
178        id=Josephus
179        name= _ "Josephus"
180        side=2
181        canrecruit=yes
182        controller=ai
183        recruit=Royal Guard
184        [ai]
185            recruitment_pattern=fighter
186            {ATTACK_DEPTH 5 5 6}
187        [/ai]
188        {GOLD 100 140 180}
189        team_name=evil
190        user_team_name=_"Asheviere"
191        {FLAG_VARIANT loyalist}
192    [/side]
193
194    {STARTING_VILLAGES 2 13}
195
196    [side]
197        type=Orcish Warlord
198        id=Dwar-Ni
199        name= _ "Dwar-Ni"
200        side=3
201        canrecruit=yes
202        controller=ai
203        recruit=Goblin Pillager,Goblin Knight,Orcish Warrior,Orcish Crossbowman
204        {GOLD 110 150 190}
205        [ai]
206            {ATTACK_DEPTH 5 5 6}
207        [/ai]
208        team_name=evil
209        user_team_name=_"Asheviere"
210        {FLAG_VARIANT6 ragged}
211    [/side]
212
213    {STARTING_VILLAGES 3 13}
214
215    [side]
216        type=General
217        id=Malatus
218        name= _ "Malatus"
219        side=4
220        canrecruit=yes
221        controller=ai
222        recruit=Royal Guard,Pikeman,Master Bowman,Shock Trooper,Duelist
223        {GOLD 100 160 200}
224        [ai]
225            {ATTACK_DEPTH 5 5 6}
226        [/ai]
227        team_name=evil
228        user_team_name=_"Asheviere"
229        {FLAG_VARIANT loyalist}
230    [/side]
231
232    {STARTING_VILLAGES 4 10}
233
234    [event]
235        name=prestart
236
237        {PLACE_IMAGE scenery/rock1.png 16 26}
238
239        {NEED_DELFADOR placement=leader}
240        {NEED_KALENZ placement=leader}
241        {NEED_LISAR placement=leader}
242    [/event]
243
244    [event]
245        name=start
246
247        [message]
248            speaker=Malatus
249            message= _ "Halt! Who goes there?"
250        [/message]
251        [message]
252            speaker=Dwar-Ni
253            message= _ "Look! It is the traitor Li’sar, with the old mage and the filthy elven lord. Quickly, capture them! The Queen wishes to make them her prisoners."
254        [/message]
255        [message]
256            speaker="Li'sar"
257            message= _ "What? I, a traitor? It is the Queen who is a traitor, for not obeying the wishes of King Garard II. We have the Sceptre of Fire, so let us in!"
258        [/message]
259        [message]
260            speaker=Malatus
261            message= _ "You leave us no choice but to kill you."
262        [/message]
263    [/event]
264
265    #bad things happen when first enemy leader dies
266    [event]
267        name=die
268        [filter]
269            id=Josephus
270        [/filter]
271        [filter_condition]
272            [have_unit]
273                id=Malatus
274            [/have_unit]
275        [/filter_condition]
276        [message]
277            speaker=Malatus
278            message= _ "These intruders are stronger than we expected. Call in the reinforcements!"
279        [/message]
280
281        {NAMED_LOYAL_UNIT 4 (Halberdier) 33 37 (Dacayan) ( _ "Dacayan")}
282        {LOYAL_UNIT 4 (Halberdier) 32 37}
283        {LOYAL_UNIT 4 (Halberdier) 34 37}
284
285        #a little attempt at comic relief
286        [message]
287            speaker=Dacayan
288            message= _ "The Queen has sent us to aid you in capturing these rebels."
289        [/message]
290        [message]
291            speaker=Malatus
292            message= _ "We have changed the plan. Now we are killing them."
293        [/message]
294    [/event]
295
296    [event]
297        name=die
298        [filter]
299            id=Malatus
300        [/filter]
301        [filter_condition]
302            [have_unit]
303                id=Josephus
304            [/have_unit]
305        [/filter_condition]
306        [message]
307            speaker=Josephus
308            message= _ "These intruders are stronger than we expected. Call in the reinforcements!"
309        [/message]
310
311        {NAMED_LOYAL_UNIT 4 (Halberdier) 33 37 (Dacayan) ( _ "Dacayan")}
312        {LOYAL_UNIT 4 (Halberdier) 32 37}
313        {LOYAL_UNIT 4 (Halberdier) 34 37}
314
315        #a little attempt at comic relief
316        [message]
317            speaker=Dacayan
318            message= _ "The Queen has sent us to aid you in capturing these rebels."
319        [/message]
320        [message]
321            speaker=Josephus
322            message= _ "We have changed the plan. Now we are killing them."
323        [/message]
324    [/event]
325
326    [event]
327        name=turn 18
328        [message]
329            speaker=Delfador
330            message= _ "We must make haste! Far greater challenges lie before us. By tarrying here we’re diminishing our resources."
331        [/message]
332    [/event]
333
334    [event]
335        name=enemies defeated
336
337        [endlevel]
338            result=victory
339            bonus=yes
340            {NEW_GOLD_CARRYOVER 40}
341        [/endlevel]
342    [/event]
343[/scenario]
344