This file is indexed.

/usr/share/games/wesnoth/1.10/data/campaigns/Liberty/scenarios/06_The_Grey_Woods.cfg is in wesnoth-1.10-l 1:1.10.2-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
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
#textdomain wesnoth-l
[scenario]
    id=06_The_Grey_Woods
    name= _ "The Grey Woods"
    next_scenario=07_The_Hunters
    victory_when_enemies_defeated=yes
    map_data="{campaigns/Liberty/maps/06_The_Grey_Woods.map}"
    {TURNS 50 44 42}
    {SECOND_WATCH}
    {DAWN}
    {MORNING}
    {AFTERNOON}
    {DUSK}
    {FIRST_WATCH}

    {INTRO_AND_SCENARIO_MUSIC "underground.ogg" "the_deep_path.ogg"}
    {EXTRA_SCENARIO_MUSIC "elvish-theme.ogg"}
    {EXTRA_SCENARIO_MUSIC "revelation.ogg"}
    {EXTRA_SCENARIO_MUSIC "suspense.ogg"}

    [story]
        [part]
            show_title=yes
            {TO_THE_GRAY_WOODS}
        [/part]
    [/story]

    [side]
        type=Bandit
        id=Baldras
        side=1
        canrecruit=yes
        controller=human
        recruit=Thug,Footpad,Poacher
        {GOLD 200 150 100}
#ifdef EASY
        shroud=no
        fog=yes
        share_maps=yes
        share_view=yes
#endif
#ifdef NORMAL
        shroud=yes
        fog=yes
        share_maps=yes
        share_view=yes
#endif
#ifdef HARD
        shroud=yes
        fog=yes
        share_maps=yes
        share_view=no
#endif
        team_name=good_guys
        user_team_name=_"Rebels"
    [/side]

    {AI_CONTROLLER () 1 2 ()}

    [side]
        type=Shadow Lord
        id=Helicrom
        name= _ "Helicrom"
        profile=portraits/helicrom.png
        facing=sw
        side=2
        canrecruit=yes
        recruit=Rogue Mage,Shadow Mage,Thief,Trapper,Huntsman,Outlaw,Fugitive
        {GOLD 300 250 200}
        controller=ai
        [ai]
            recruitment_pattern=mixed fighter,mixed fighter,fighter,mixed fighter,archer
        [/ai]
        shroud=yes
        fog=yes
        share_maps=yes
        share_view=yes
        team_name=good_guys
        user_team_name=_"Rebels"

        [ai]
            village_value=0.5
            leader_value=1

            [protect_unit]
                side=1
                radius=8
                value=2.0
            [/protect_unit]
        [/ai]
    [/side]

    {STARTING_VILLAGES 2 9}

    [side]
        type=Necromancer
        id=Mal-Jarrof
        name= _ "Mal-Jarrof"
        side=3
        canrecruit=yes
        recruit=Skeleton,Skeleton Archer,Ghost,Walking Corpse,Ghoul
        controller=ai
        {GOLD 80 100 100}
        shroud=no
        fog=no
        team_name=evil_ones
        user_team_name=_"Evil"
        {FLAG_VARIANT undead}
    [/side]

    [side]
        type=Necromancer
        id=Mal-Jerod
        name= _ "Mal-Jerod"
        side=4
        canrecruit=yes
        recruit=Skeleton,Revenant,Skeleton Archer,Ghost,Walking Corpse
        controller=ai
        {GOLD 80 100 100}
        shroud=no
        fog=no
        team_name=evil_ones
        user_team_name=_"Evil"
        {FLAG_VARIANT undead}
    [/side]

    [side]
        type=Lich
        id=Sel-Mana
        name= _ "Sel-Mana"
        facing=sw
        side=5
        canrecruit=yes
        recruit=Skeleton,Dark Adept,Skeleton Archer,Soulless,Vampire Bat
        controller=ai
        {GOLD 80 100 100}
        shroud=no
        fog=no
        team_name=evil_ones
        user_team_name=_"Evil"
        {FLAG_VARIANT undead}
    [/side]
    #
    # Prestart events
    #
    [event]
        name=prestart

        # {SCATTER_IMAGE (terrain=Gs^Fp) 30 "scenery/pine1.png"}

        [objectives]
            side=1
            [objective]
                description= _ "Defeat the lich and its minions"
                condition=win
            [/objective]
            [objective]
                description= _ "Death of Baldras"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Harper"
                condition=lose
            [/objective]

            {TURNS_RUN_OUT}

            [gold_carryover]
                bonus=yes
                carryover_percentage=40
            [/gold_carryover]

            {AI_CONTROLLER_NOTE}
        [/objectives]

        #Initialize switch
        {VARIABLE Helicrom_dead 0}

        #
        # Give Helicrom some free underlings and the villages in his camp
        #
        {GENERIC_UNIT 2 (Rogue Mage) 13 6}
        {GENERIC_UNIT 2 (Shadow Mage) 11 7}

        #
        # Give the SE Lich some baddies to shake things up
        #
        {GENERIC_UNIT 5 Wraith 37 36}
#ifdef HARD
        {GENERIC_UNIT 5 Shadow 36 36}
#endif

        [item]
            x,y=8,19
            image=items/burial.png
        [/item]
        [item]
            x,y=37,39
            image=items/bonestack.png
        [/item]
        [item]
            x,y=35,31
            image=items/burial.png
        [/item]
        [item]
            x,y=33,35
            image=items/bones.png
        [/item]
    [/event]

    #
    # Starting conversation and actions
    #
    [event]
        name=start
        {MOVE_UNIT id=Baldras 7 4}
        [recall]
            id=Harper
        [/recall]
        [redraw]
            side=1
        [/redraw]
        [message]
            speaker=Baldras
            message= _ "The leader, I presume."
        [/message]
        [message]
            speaker=Helicrom
            message= _ "I am Helicrom, and you should not be so glib. I control dangerous men. My henchmen can slip unseen through any city, rob a man while he sleeps, or attack a caravan head-on. It’s not noble work, but our pursuits require plenty of gold."
        [/message]
        [message]
            speaker=Baldras
            message= _ "Your pursuits?"
        [/message]
        [message]
            speaker=Helicrom
            message= _ "The former King’s magic ministry kept a tight control on the training and employment of mages in Wesnoth. Those of us who dared to... depart from the curriculum, you might say, were dealt with harshly. We are outcasts because we seek to master shadow magic. Our secrecy and security are not cheap."
        [/message]
        [message]
            speaker=Baldras
            message= _ "I have heard of you. Necromancers. Barely-human scum, I say."
        [/message]
        [message]
            speaker=Helicrom
            message= _ "Wrong. Necromancers become slaves to their lich masters and eventually lose their humanity. We have proven that practicing the dark arts need not lead down that path to damnation. We remain human, and seek the mystical secret of balance between the ways of light and darkness. We dance between both ways, adhering to neither."
        [/message]
        [message]
            speaker=Baldras
            message= _ "I... see, I think. Why do you want to help us?"
        [/message]
        [message]
            speaker=Helicrom
            message= _ "We don’t. You have sought us out. But, I do know of your situation and am willing to help. Any weakening of the Throne of Wesnoth, whether it be occupied by King or Queen, aids us."
        [/message]

        [music]
            name=knalgan_theme.ogg
            immediate=no
            append=no
        [/music]

        [message]
            speaker=Helicrom
            message= _ "Carcyn is always foggy as of late because these woods have recently become home to a lich and two of its underling necromancers. Our experiments may have actually aroused it from sleep... We’re not exactly sure."
        [/message]
        [message]
            speaker=Baldras
            message= _ "So now you need to defend your rear as well as your front... I see your predicament. My men will wipe this land clean if you can help us defend our homeland."
        [/message]
    [/event]

    [event]
        name=die
        [filter]
            id=Sel-Mana
        [/filter]
        [if]
            [have_unit]
                side=3
                canrecruit=yes
            [/have_unit]

            [or]
                [have_unit]
                    side=4
                    canrecruit=yes
                [/have_unit]
            [/or]

            [then]
                [message]
                    speaker=Helicrom
                    message= _ "Finally, that creature is dead, yet its foolish minions resist."
                [/message]
            [/then]

            [then]
                [message]
                    speaker=Baldras
                    message= _ "The lich is destroyed and its minions dead."
                [/message]
            [/then]
        [/if]
    [/event]

    [event]
        name=enemies defeated

        [if]
            [variable]
                name=Helicrom_dead
                numerical_equals=1
            [/variable]
            [then]
                [message]
                    speaker=narrator
                    message= _ "The defeat of the evil lich infesting the Grey Woods was a bittersweet victory. With Helicrom dead, the guild of shadow magic was thrown into disarray."
                    image="wesnoth-icon.png"
                [/message]
                [message]
                    speaker=narrator
                    message= _ "The remaining members were very grateful and offered Baldras a sizable sum of gold for his help. It was not the help he was hoping for, but he knew it would have to be enough for the coming conflict."
                    image="wesnoth-icon.png"
                [/message]
                [sound]
                    name=gold.ogg
                [/sound]
                [gold]
                    side=1
                    amount=500
                [/gold]
                [set_variable]
                    name=Helicrom_status
                    value=1
                [/set_variable]
            [/then]

            [else]
                [message]
                    speaker=Helicrom
                    message= _ "With the undead driven out, we may live here in relative peace and pursue our studies. For this, Baldras, I am grateful."
                [/message]
                [message]
                    speaker=Baldras
                    message= _ "Studies? Peace? You mean to continue feeding on the lawful citizens of Wesnoth. There will be no peace for them."
                [/message]
                [message]
                    speaker=Helicrom
                    message= _ "No one here is in a position to be dispensing moral judgments. Regardless, you have done great service to us today, and we owe you a debt. I will help you to the utmost of my ability."
                [/message]
                [message]
                    speaker=Helicrom
                    message= _ "I was planning on giving you gold. Any good army is well financed, and with the lich gone we can now spare it."
                [/message]
                [message]
                    speaker=Helicrom
                    message= _ "But, I think it would help you more if I lent you some of my men to join you on your adventures. The Queen has been sending mages out here, and my men are itching for some payback."
                [/message]
                [message]
                    speaker=Helicrom
                    message= _ "On the other hand, if I keep the full force of my organization here, we might be able to regroup and join you on the battlefield when the time comes."
                [/message]
                [message]
                    speaker=Helicrom
                    message= _ "I leave it to you to decide."
                    [option]
                        message= _ "I will take the gold. How does 500 sound?"
                        [command]
                            [message]
                                speaker=Helicrom
                                message= _ "Agreed. Good luck and farewell to you, Master Baldras."
                            [/message]

                            [sound]
                                name=gold.ogg
                            [/sound]

                            [gold]
                                side=1
                                amount=500
                            [/gold]

                            [set_variable]
                                name=Helicrom_status
                                value=1
                            [/set_variable]
                        [/command]
                    [/option]

                    # Note: don't mess with the alignment in the next message key.
                    [option]
                        message= _ "Send your men with us. They will be valuable help as we prepare for the assault from the Wesnoth army garrison."
                        [command]
                            [message]
                                speaker=Helicrom
                                message= _ "Done. My finest mages and thieves are at your disposal. Use them well."
                            [/message]

                            [allow_recruit]
                                side=1
                                type=Thief,Rogue Mage,Shadow Mage
                            [/allow_recruit]

                            [set_variable]
                                name=Helicrom_status
                                value=2
                            [/set_variable]
                        [/command]
                    [/option]
                    [option]
                        message= _ "I wish you to join us in battle against the Queen’s forces."
                        [command]
                            [message]
                                speaker=Helicrom
                                message= _ "All right. I need time to clean up this forest and recall my men from the countryside. We will be ready to march in seven days. All now hinges on you! Until then..."
                            [/message]

                            [set_variable]
                                name=Helicrom_status
                                value=3
                            [/set_variable]
                        [/command]
                    [/option]
                [/message]
            [/else]
        [/if]

        {CLEAR_VARIABLE Helicrom_dead}

        [endlevel]
            result=victory
            bonus=yes
            {NEW_GOLD_CARRYOVER 40}
        [/endlevel]
    [/event]

    #
    # Loss conditions - turns run out
    #
    [event]
        name=time over
        [message]
            speaker=Baldras
            message= _ "We have spent too much time here. Surely the Queen’s forces have returned to Dallben. Our mission is unfinished, but we must return to fight a suicide battle."
        [/message]
        [endlevel]
            result=defeat
        [/endlevel]
    [/event]

    {LIBERTY_DEATHS}

    {VILLAGE_BURNED}

    #
    # Helicrom dies - you don't lose but your benefits are not so good.
    #
    [event]
        name=last breath
        [filter]
            id=Helicrom
        [/filter]
        [message]
            speaker=Helicrom
            message= _ "My men... have failed to protect me! I perish..."
        [/message]
        {VARIABLE Helicrom_dead 1}
    [/event]
[/scenario]