This file is indexed.

/usr/share/games/wesnoth/1.10/data/campaigns/Delfadors_Memoirs/scenarios/15_Save_the_King.cfg is in wesnoth-1.10-dm 1:1.10.7-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
#textdomain wesnoth-dm
[scenario]
    id=15_Save_the_King
    name= _ "Save the King"
    next_scenario=16_Dark_Sky_Over_Weldyn
    {MEMOIRS_MAP 15_Save_the_King.map}
    {TURNS 35 30 25}
    {DEFAULT_SCHEDULE}

    {INTRO_AND_SCENARIO_MUSIC loyalists.ogg vengeful.ogg}
    {EXTRA_SCENARIO_MUSIC the_dangerous_symphony.ogg}
    {EXTRA_SCENARIO_MUSIC the_city_falls.ogg}
    {EXTRA_SCENARIO_MUSIC northerners.ogg}

    [story]
        [part]
            show_title=yes
            {TO_SAVE_THE_PRINCE}
        [/part]
        [part]
            story= _ "Following Delfador, the elves moved to unite with the Wesnothian forces and meet Zorlan head-on..."
            delay=4000
            background="maps/wesnoth.png"
            {TO_SAVE_THE_PRINCE_BATTLE}
        [/part]
        [part]
            story= _ "but the King was in an unenviable position..."
            delay=8000
        [/part]
    [/story]

    #wmllint: validate-off
    [side]
        # wmllint: recognize Delfador
        {YOUNG_DELFADOR}
        profile="portraits/young_delfador.png"
        type=Journeyman Mage
        recruit={ELVES}
        team_name=kalenz
        user_team_name= _ "Player"
        {FLAG_VARIANT long}
        {GOLD 200 150 100}
    [/side]
    #wmllint: validate-on

    [side]
        type=King of Wesnoth
        id=Garard II
        name=_ "Garard II"
        profile="portraits/garard.png"
        side=2
        canrecruit=yes
        controller=ai
        team_name=kalenz
        user_team_name= _ "Player"
        recruit=Heavy Infantryman, Spearman, Bowman, Cavalryman, Horseman, Mage, Royal Guard, Shock Trooper, Swordsman
        {GOLD 300 450 600}
        {INCOME 0 0 0}
        [ai]
            passive_leader=yes
            [protect_unit]
                id="Garard II"
                value=20
            [/protect_unit]
            [avoid]
                [not]
                    x,y=14,22
                    radius=5
                [/not]
            [/avoid]
        [/ai]

        {FLAG_VARIANT loyalist}
    [/side]

    [side]
        type=Orcish Sovereign
        id=Zorlan
        name=_ "Zorlan"
        side=3
        canrecruit=yes
        controller=ai
#ifdef EASY
        recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Goblin Pillager, Goblin Knight, Goblin Spearman
#endif

#ifdef NORMAL
        recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Goblin Knight, Orcish Slayer, Goblin Pillager, Goblin Spearman
#endif

#ifdef HARD
        recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Orcish Warrior, Goblin Knight, Goblin Pillager, Orcish Slayer, Goblin Spearman
#endif
        {GOLD 150 260 330}
        team_name=orcs
        {FLAG_VARIANT ragged}
    [/side]
    [side]
        type=Orcish Warrior
        id="T'bhan"
        name=_ "T’bhan"
        side=4
        canrecruit=yes
        controller=ai
#ifdef EASY
        recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Goblin Pillager, Goblin Knight, Goblin Spearman
#endif

#ifdef NORMAL
        recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Goblin Knight, Orcish Slayer, Goblin Pillager, Goblin Spearman
#endif

#ifdef HARD
        recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Orcish Warrior, Goblin Knight, Goblin Pillager, Orcish Slayer, Goblin Spearman
#endif
        {GOLD 150 250 300}
        team_name=orcs
        {FLAG_VARIANT ragged}
    [/side]
    [side]
        type=Orcish Warrior
        id=Qgthun
        name=_ "Qgthun"
        side=5
        canrecruit=yes
        controller=ai

#ifdef EASY
        recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Goblin Pillager, Goblin Knight, Goblin Spearman
#endif

#ifdef NORMAL
        recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Goblin Knight, Orcish Slayer, Goblin Pillager, Goblin Spearman
#endif

#ifdef HARD
        recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Orcish Warrior, Goblin Knight, Goblin Pillager, Orcish Slayer, Goblin Spearman
#endif
        {GOLD 150 250 300}
        team_name=orcs
    [/side]
    [side]
#ifndef EASY
        type=Great Troll
#else
        type=Troll Hero
#endif
        id=Trgrau
        name=_ "Trgrau"
        side=6
        canrecruit=yes
        controller=ai
#ifdef EASY
        recruit=Troll Whelp
#endif
#ifdef NORMAL
        recruit=Troll Whelp,Troll,Troll Rocklobber
#endif

#ifdef HARD
        recruit=Troll Whelp,Troll,Troll Warrior,Troll Rocklobber
#endif

        {GOLD 150 250 300}
        team_name=orcs
        {FLAG_VARIANT ragged}
    [/side]
    [event]
        name=prestart

        [recall]
            id=Chantal
        [/recall]

        [recall]
            id=Kalenz
        [/recall]

        [objectives]
            side=1
            [objective]
                description= _ "Defeat all enemy leaders"
                condition=win
            [/objective]
            [objective]
                description= _ "Death of Kalenz"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Delfador"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Chantal"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Garard II"
                condition=lose
            [/objective]

            {TURNS_RUN_OUT}

            [gold_carryover]
                bonus=yes
                carryover_percentage=80
            [/gold_carryover]
        [/objectives]
        [recall]
            id=Chantal
        [/recall]
        [recall]
            id=Clogrin
        [/recall]
        [recall]
            id=Droni
        [/recall]
        [recall]
            id=Artos
        [/recall]
        [recall]
            id=Theorsten
        [/recall]
        [recall]
            id=Igler
        [/recall]
        [recall]
            id=Larsin
        [/recall]
        [recall]
            id=Glen
        [/recall]
        [recall]
            id=Aldrin
        [/recall]
    [/event]

    [event]
        name=start

        [message]
            id=Delfador
            message= _ "It appears we have arrived just in time! The King stands at bay, surrounded by the enemy."
        [/message]
        [message]
            id=Chantal
            message= _ "I fear we may be too late. This new warlord must have united every orcish tribe north of the Great River. Look at their army, it is vast!"
        [/message]
        [message]
            id=Zorlan
            message= _ "Elves! I heard you have been looking for me! But you will save neither the human prince, nor yourselves."
        [/message]
        [message]
            id=Kalenz
            message= _ "We must destroy this warlord now, before his power grows any greater!"
        [/message]
        [message]
            id=Delfador
            message= _ "Agreed, but we must make haste, for the King is hard pressed."
        [/message]
    [/event]

    [event]
        name=victory
        [message]
            id=Kalenz
            message= _ "Victory!"
        [/message]
        [message]
            id="Garard II"
            message= _ "Delfador! And you, elvish friends! The kingdom of Wesnoth is in your debt today!"
        [/message]
        [message]
            id=Delfador
            message= _ "My King, this is Kalenz, High Lord of the Elves."
        [/message]
        [message]
            id="Garard II"
            message= _ "You will be forever welcome in the court of Wesnoth."
        [/message]
        [message]
            id=Kalenz
            message= _ "We look forward to fighting beside you to defeat those threats that remain."
        [/message]
        [message]
            id=Delfador
            message= _ "Your Majesty, we have more urgent matters. Leollyn sent me on a mission to find out why the dead are restless. A foul necromancer has opened a portal to the land of the dead. It must be closed at all costs, and I am afraid my skills may be insufficient for that task."
        [/message]
        [message]
            id=Kalenz
            message= _ "Delfador, our weapons are weak against the undead, but perhaps we have other help to give you. Centuries ago the great mage Crelanu entrusted to us a book of lore, powerful knowledge, perilous secrets that it took Crelanu all his life to gather."
        [/message]
        [message]
            id=Kalenz
            message= _ "Crelanu charged us to guard his book until someone worthy of it appeared. We believe you are that one, Delfador. The book may help you find a way to close that portal."
        [/message]
        [message]
            id=Delfador
            message= _ "Friends, your words do me perhaps greater honor than I deserve. I am not sure I am worthy of this charge."
        [/message]
        [message]
            id=Kalenz
            message= _ "Chantal and I are sure of your quality. But be warned: there is a curse on this book. Crelanu fairly warned us that his arts would bring much woe down upon us. And so it proved, though at the time we had no other choice. The victories you win with it may cost you as dearly."
        [/message]
        [message]
            id=Delfador
            message= _ "Curse or no, we must close that portal soon, or else we are all doomed."
        [/message]
        [message]
            id=Kalenz
            message= _ "This is a decision you will have to make. If we fight the undead without the book’s help, it will be an honor to fight by your side, no matter what the outcome."
        [/message]
        [message]
            id=Delfador
            message= _ "I think I, too, have no choice but to accept the book. I cannot allow the sure death of many humans and elves for fear of the curse."
        [/message]
        [message]
            id=Chantal
            message= _ "Then here it is, Delfador. May it help you bring a swift end to the undead menace. And may it cost you less than it has cost us..."
        [/message]
        [message]
            id=Delfador
            message= _ "Thank you, friends. May we meet again in happier times. Now I must make haste, for I need to study the book and prepare for the battle with the undead."
        [/message]

        {ELVES_DEPART}
    [/event]

    ## Extra help for Garard in case Delf and Kalenz are a bit late
    #  but this is only once
    [event]
        name=moveto
        [filter]
            side=3,4,5,6
            x=12-17
            y=20-24
        [/filter]

        [message]
            speaker="Garard II"
            message= _ "The enemy is drawing near. My personal guards must join the fight. We can only hope help arrives soon."
        [/message]

        [move_unit_fake]
            type=Royal Guard
            side=2
            x=12,12
            y=19,20
        [/move_unit_fake]

        [unit]
            id=Adamar
            name= _ "Adamar"
            type=Royal Guard
            side=2
            x=12
            y=20
            [modifications]
                {TRAIT_RESILIENT}
                {TRAIT_STRONG}
            [/modifications]
            facing=sw
        [/unit]

        [move_unit_fake]
            type=Royal Guard
            side=2
            x=16,17
            y=23,24
        [/move_unit_fake]
        [unit]
            id=Mitbreen
            name= _ "Mitbreen"
            type=Royal Guard
            side=2
            x=17
            y=24
            [modifications]
                {TRAIT_RESILIENT}
                {TRAIT_STRONG}
            [/modifications]
            facing=sw
        [/unit]

        [move_unit_fake]
            type=Iron Mauler
            side=2
            x=12,12
            y=19,20,21,22,23
        [/move_unit_fake]

        [unit]
            id=Ronduger
            name= _ "Ronduger"
            type=Iron Mauler
            side=2
            x=12
            y=23
            [modifications]
                {TRAIT_RESILIENT}
                {TRAIT_STRONG}
            [/modifications]
            facing=sw
        [/unit]

        [scroll_to_unit]
            x=12
            y=20
        [/scroll_to_unit]

        [message]
            speaker=Adamar
            message= _ "For the King!"
        [/message]
    [/event]

    # The king usually takes care of the first wave of orcs by himself.
    # They need a second wave for the player to help with.
    # Since this event uses the player's turn, the orcs will not be
    # able to use their gold until the following turn.
    [event]
#ifdef HARD
        name=turn 8
#endif
#ifdef NORMAL
        name=turn 9
#endif
#ifdef EASY
        name=turn 10
#endif
        [gold]
            side=4
            {QUANTITY amount 140 230 320}
        [/gold]
        [gold]
            side=5
            {QUANTITY amount 120 210 300}
        [/gold]
    [/event]

    [event]
        name=enemies defeated
        [endlevel]
            result=victory
            save=no
        [/endlevel]
    [/event]

    {MEMOIRS_DEATHS}
[/scenario]