This file is indexed.

/usr/share/games/wesnoth/1.10/data/campaigns/Liberty/scenarios/04_Unlawful_Orders.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
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
#textdomain wesnoth-l
[scenario]
    id=04_Unlawful_Orders
    name= _ "Unlawful Orders"
    next_scenario=05_Hide_and_Seek
    victory_when_enemies_defeated=yes
    map_data="{campaigns/Liberty/maps/04_Unlawful_Orders.map}"
    {TURNS 30 22 16}
    {DEFAULT_SCHEDULE}

    {INTRO_AND_SCENARIO_MUSIC "knolls.ogg" "the_city_falls.ogg"}
    {EXTRA_SCENARIO_MUSIC "the_deep_path.ogg"}
    {EXTRA_SCENARIO_MUSIC "legends_of_the_north.ogg"}
    {EXTRA_SCENARIO_MUSIC "vengeful.ogg"}

    [label]
        x,y=16,15
        text= _ "Elensefar"
    [/label]

    [label]
        x,y=8,13
        text= _ "Port of Elensefar"
    [/label]

    [story]
        [part]
            music="knolls.ogg"
            show_title=yes
            {TO_UNLAWFUL_ORDERS}
        [/part]
    [/story]

    [side]
        type=Bandit
        id=Baldras
        side=1
        canrecruit=yes
        controller=human
        recruit=Thug,Footpad,Poacher
        {GOLD 200 150 100}
        team_name=good_guys
        user_team_name=_"Rebels"
    [/side]

    {AI_CONTROLLER () 1 2 ()}

    # wmllint: directory spelling Maddock
    [side]
        type=General
        id=Lord Maddock
        name= _ "Lord Maddock"
        profile=portraits/maddock.png
        side=2
        canrecruit=yes
        controller=ai
        recruit=Spearman,Horseman,Cavalryman,Heavy Infantryman,Mage,Bowman
        [ai]
            recruitment_pattern=scout,mixed fighter,fighter,archer,fighter
            leader_value=3
            village_value=0.2
        [/ai]
        {GOLD 100 100 70}
        team_name=good_guys
        user_team_name=_"Rebels"
        {FLAG_VARIANT loyalist}
    [/side]

    {STARTING_VILLAGES 2 15}

    [side]
        type=General
        id=Kestrel
        name= _ "Kestrel"
        side=3
        canrecruit=yes
        controller=ai
        recruit=Spearman,Horseman,Cavalryman,Heavy Infantryman,Dark Adept,Bowman
        [ai]
            caution=0.0
            aggression=1.0
            recruitment_pattern=scout,fighter,fighter,archer,archer
            leader_value=20
        [/ai]
        {GOLD 140 180 260}
        user_team_name=_"Asheviere"
        {FLAG_VARIANT loyalist}
    [/side]

    {STARTING_VILLAGES 3 5}

    #
    # Prestart events
    #
    [event]
        name=prestart

        # {SCATTER_IMAGE (terrain=Gg) 12 scenery/oak-leaning.png}

        [objectives]
            side=1
            [objective]
                description= _ "Defeat the enemy general"
                condition=win
            [/objective]
            [objective]
                description= _ "Death of Baldras"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Harper"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Maddock"
                condition=lose
            [/objective]

            {TURNS_RUN_OUT}

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

            {AI_CONTROLLER_NOTE}
        [/objectives]

        [store_unit]
            [filter]
                id=Baldras
            [/filter]

            kill=yes
            variable=stored_Baldras
        [/store_unit]

        {VARIABLE stored_Baldras.facing sw}

        {NAMED_LOYAL_UNIT 3 Lieutenant 17 39 Rothel (_ "Rothel")}
        [+unit]
            [modifications]
                {TRAIT_QUICK}
            [/modifications]
        [/unit]
    [/event]

    #
    # Starting conversation and actions
    #
    [event]
        name=start

        [move_unit_fake]
            side=1
            type=Boat
            x=25,23
            y= 9,11
        [/move_unit_fake]

        [item]
            x,y=23,11
            image=units/transport/boat.png~FL(horiz)
        [/item]

        [move_unit_fake]
            side=1
            type=$stored_Baldras.type
            x=23,21
            y=11,11
        [/move_unit_fake]

        [unstore_unit]
            variable=stored_Baldras
        [/unstore_unit]

        [recall]
            id=Harper
        [/recall]
        [role]
            type=Outlaw,Trapper,Thug,Poacher,Footpad,Bandit
            role=Advisor
        [/role]
        [recall]
            role=Advisor
        [/recall]

        [message]
            speaker=Lord Maddock
            message= _ "Baldras, your trip here was not wise. The Queen’s patrols have been visiting the local villages and bringing the elders here. Those that swear allegiance to the Queen are allowed to return home. Those that do not—"
        [/message]
        [message]
            speaker=Baldras
            message= _ "— Are dispatched on the spot. I know the price of dissent. But what of you?"
        [/message]
        [message]
            speaker=Lord Maddock
            message= _ "Well, they do not come within the walls of my city. They are actually camped nearby, and the main garrison is further south at Halstead. I know my time will soon come to swear allegiance, but they do not press me. They are afraid I will refuse."
        [/message]
        [message]
            speaker=Baldras
            message= _ "Will you?"
        [/message]
        [message]
            speaker=Lord Maddock
            message= _ "Yes. The Queen ascended to the throne through the vilest of treachery. However, while most of my forces were sent with the King to fight the orcs, we have a strong enough contingent here to make the Queen’s forces think twice about attacking Elensefar outright."
        [/message]
        [message]
            speaker=Lord Maddock
            message= _ "We have an uneasy peace until they are done with the smaller villages and finally come around to obtaining my oath. The treaty between Elensefar and Wesnoth is ancient, but I am not so naïve as to place my full trust in it. Not in these wicked times."
        [/message]
        [message]
            speaker=Harper
            message= _ "What can we do then? We have brought with us many from Annuvin province who are willing to fight, but our families are still at home. They will not last long if the Queen’s patrols return."
        [/message]
        [message]
            speaker=Lord Maddock
            message= _ "I am unwilling to start a civil war. I believe the Queen will remain preoccupied with order throughout the kingdom and, more importantly, with quelling the Northerner threat. We are a matter she will choose to deal with later rather than sooner, if she can."
        [/message]
        [message]
            speaker=Kestrel
            message= _ "A foolish miscalculation, Lord Maddock. These men with which you consort are outlaws and fugitives. They are a well-organized gang of criminals and murderers. We will kill them and then expect your oath of allegiance to Queen Asheviere."
        [/message]
        [message]
            speaker=Lord Maddock
            message= _ "Men, to arms! The defense of Elensefar has begun!"
        [/message]

        {CLEAR_VARIABLE stored_Baldras}
    [/event]

    #
    # Special event - the human enemies become undead at night
    #

    [event]
        name=turn 4

        [music]
            name="frantic.ogg"
        [/music]

        [message]
            speaker=narrator
            message= _ "As the sun set, a horrific change began to take place to the human adversaries of Baldras and his allies..."
            image="wesnoth-icon.png"
        [/message]
    [/event]

    [event]
        name=prestart

        [set_variables]
            name=undead_transformation

            [value]
                human_type=Spearman
                undead_type=Skeleton
            [/value]
            [value]
                human_type=Swordsman
                undead_type=Deathblade
            [/value]
            [value]
                human_type=Pikeman
                undead_type=Revenant
            [/value]
            [value]
                human_type=Bowman
                undead_type=Skeleton Archer
            [/value]
            [value]
                human_type=Longbowman
                undead_type=Bone Shooter
            [/value]
            [value]
                human_type=Heavy Infantryman
                undead_type=Ghoul
            [/value]
            [value]
                human_type=Shock Trooper
                undead_type=Necrophage
            [/value]
            [value]
                human_type=Cavalryman
                undead_type=Skeleton Rider
            [/value]
            [value]
                human_type=Dragoon
                undead_type=Bone Knight
            [/value]
            [value]
                human_type=Lieutenant
                undead_type=Death Squire
            [/value]
            [value]
                human_type=General
                undead_type=Death Knight
            [/value]
            [value]
                human_type=Horseman
                undead_type=Skeleton Rider
            [/value]
            [value]
                human_type=Knight
                undead_type=Bone Knight
            [/value]
            [value]
                human_type=Lancer
                undead_type=Bone Knight
            [/value]
        [/set_variables]
    [/event]

    [event]
        name=new turn
        first_time_only=no

        {VARIABLE temp $turn_number}
        {VARIABLE_OP temp add 2}
        {VARIABLE_OP temp modulo 6}

        [if]
            [variable]
                name=temp
                equals=0
            [/variable]

            [variable]
                name=turn_number
                greater_than_equal_to=4
            [/variable]

            [then]
                [color_adjust]
                    red=255
                    green=100
                    blue=100
                [/color_adjust]
                [delay]
                    time=10
                [/delay]
                [color_adjust]
                    red=0
                    green=0
                    blue=0
                [/color_adjust]
                [redraw]
                [/redraw]

                [disallow_recruit]
                    side=3
                    type=Spearman,Horseman,Cavalryman,Heavy Infantryman,Dark Adept,Bowman
                [/disallow_recruit]
                [allow_recruit]
                    side=3
                    type=Skeleton,Skeleton Rider,Dark Adept,Skeleton Archer
                [/allow_recruit]

                [store_unit]
                    [filter]
                        side=3

                        [not]
                            type=Dark Adept,Dark Sorcerer
                        [/not]
                    [/filter]

                    kill=yes
                    variable=stored_changers
                [/store_unit]

                {FOREACH stored_changers i}
                    {FOREACH undead_transformation j}
                        [if]
                            [variable]
                                name=stored_changers[$i].type
                                equals=$undead_transformation[$j].human_type
                            [/variable]

                            [then]
                                {VARIABLE type_to_turn_into $undead_transformation[$j].undead_type}
                                {VARIABLE j 999}
                            [/then]
                        [/if]
                    {NEXT j}

                    [unit]
                        type=$type_to_turn_into
                        side=3
                        x,y=$stored_changers[$i].x,$stored_changers[$i].y
                        id=$stored_changers[$i].id
                        name=$stored_changers[$i].name
                        experience=$stored_changers[$i].experience
                        hitpoints=$stored_changers[$i].hitpoints
                        canrecruit=$stored_changers[$i].canrecruit
                        [variables]
                            [insert_tag]
                                name=stored_trait
                                variable=stored_changers[$i].modifications.trait
                            [/insert_tag]

                            turned_to_undead_at_least_once=yes
                        [/variables]
                        to_variable=changer
                    [/unit]

                    [if]
                        [variable]
                            name=changer.hitpoints
                            greater_than=$changer.max_hitpoints
                        [/variable]

                        [then]
                            {VARIABLE changer.hitpoints $changer.max_hitpoints}
                        [/then]
                    [/if]

                    [unstore_unit]
                        variable=changer
                    [/unstore_unit]
                {NEXT i}

                {CLEAR_VARIABLE stored_changers,changer}
            [/then]
        [/if]
    [/event]

    [event]
        name=new turn
        first_time_only=no

        {VARIABLE temp $turn_number}
        {VARIABLE_OP temp modulo 6}

        [if]
            [variable]
                name=temp
                equals=1
            [/variable]

            [variable]
                name=turn_number
                greater_than_equal_to=4
            [/variable]

            [then]
                [color_adjust]
                    red=255
                    green=255
                    blue=100
                [/color_adjust]
                [delay]
                    time=10
                [/delay]
                [color_adjust]
                    red=0
                    green=0
                    blue=0
                [/color_adjust]
                [redraw]
                [/redraw]

                [disallow_recruit]
                    side=3
                    type=Skeleton,Skeleton Rider,Dark Adept,Skeleton Archer
                [/disallow_recruit]
                [allow_recruit]
                    side=3
                    type=Spearman,Horseman,Cavalryman,Heavy Infantryman,Dark Adept,Bowman
                [/allow_recruit]

                [store_unit]
                    [filter]
                        side=3

                        [not]
                            type=Dark Adept,Dark Sorcerer
                        [/not]
                    [/filter]

                    kill=yes
                    variable=stored_changers
                [/store_unit]

                {FOREACH stored_changers i}
                    {FOREACH undead_transformation j}
                        [if]
                            [variable]
                                name=stored_changers[$i].type
                                equals=$undead_transformation[$j].undead_type
                            [/variable]

                            [then]
                                {VARIABLE type_to_turn_into $undead_transformation[$j].human_type}
                                {VARIABLE j 999}
                            [/then]
                        [/if]
                    {NEXT j}

                    [if]
                        [variable]
                            name=stored_changers[$i].variables.turned_to_undead_at_least_once
                            equals=yes
                        [/variable]

                        [then]
                            [unit]
                                type=$type_to_turn_into
                                side=3
                                x,y=$stored_changers[$i].x,$stored_changers[$i].y
                                id=$stored_changers[$i].id
                                name=$stored_changers[$i].name
                                experience=$stored_changers[$i].experience
                                hitpoints=$stored_changers[$i].hitpoints
                                canrecruit=$stored_changers[$i].canrecruit
                                [modifications]
                                    [insert_tag]
                                        name=trait
                                        variable=stored_changers[$i].variables.stored_trait
                                    [/insert_tag]

                                    turned_to_undead_at_least_once=yes
                                [/modifications]
                                to_variable=changer
                            [/unit]
                        [/then]

                        [else]
                            [unit]
                                type=$type_to_turn_into
                                side=3
                                x,y=$stored_changers[$i].x,$stored_changers[$i].y
                                experience=$stored_changers[$i].experience
                                hitpoints=$stored_changers[$i].hitpoints
                                canrecruit=$stored_changers[$i].canrecruit
                                random_traits=yes
                                generate_name=yes
                                to_variable=changer
                            [/unit]
                        [/else]
                    [/if]

                    [if]
                        [variable]
                            name=changer.hitpoints
                            greater_than=$changer.max_hitpoints
                        [/variable]

                        [then]
                            {VARIABLE changer.hitpoints $changer.max_hitpoints}
                        [/then]
                    [/if]

                    [unstore_unit]
                        variable=changer
                    [/unstore_unit]
                {NEXT i}

                {CLEAR_VARIABLE stored_changers,changer}
            [/then]
        [/if]
    [/event]

    [event]
        name=turn 4
        [message]
            speaker=Harper
            message= _ "I cannot believe what my eyes are seeing! The flesh runs from their bones... these are not human warriors we fight. They are evil spirits masquerading as human!"
        [/message]
    [/event]

    [event]
        name=turn 7
        [music]
            name="knolls.ogg"
        [/music]
        [message]
            speaker=Lord Maddock
            message= _ "Their human aspect is returning! This is an evil manner of sorcery we face, but one that we may yet overcome. CHARGE!"
        [/message]
    [/event]

    #
    # Victory
    #
    [event]
        name=last breath
        [filter]
            id=Kestrel
        [/filter]
        [message]
            speaker=second_unit
            message= _ "Who are you? What are you?"
        [/message]
        [message]
            speaker=Kestrel
            message= _ "We are accursed. We were once under the command of Prince Eldred, the King’s son and betrayer. The price for our treason is this hellish existence. We know not who or what inflicted this curse upon us, but our mortal deaths may be only the beginning of the penance we are doomed to pay."
        [/message]

        [kill]
            id=Kestrel
            animate=yes
            fire_event=no
        [/kill]

        [message]
            speaker=Baldras
            message= _ "Lord Maddock, now that we are victorious, will you help us?"
        [/message]
        [message]
            speaker=Lord Maddock
            message= _ "I will not. Unless you want me to round up the city’s thieves to fight for you, I do not have the troops to spare. However, I am not the only one who commands men in this corner of Wesnoth."
        [/message]
        [message]
            speaker=Baldras
            message= _ "I don’t understand. There are no other noble lords in this area."
        [/message]
        [message]
            speaker=Lord Maddock
            message= _ "Southeast of here there is a town, and there you may find assistance of the type I cannot give."
        [/message]
        [message]
            speaker=Baldras
            message= _ "Wish us well. If we are to resist the Wesnoth army a second time, we’re going to need more than clubs and slings against steel."
        [/message]

        {CLEAR_VARIABLE undead_transformation}

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

    #
    # Loss conditions - turns run out
    #
    [event]
        name=time over
        [message]
            speaker=Baldras
            message= _ "Look, more riders come from the southeast. We cannot survive another assault. We are finished!"
        [/message]
        [endlevel]
            result=defeat
        [/endlevel]
    [/event]

    [event]
        name=defeat

        [message]
            speaker=narrator
            image=wesnoth-icon.png
            message=_ "Indeed, Asheviere’s armies had mustered and struck before the nascent rebellion could even be planned. Her power and ruthlessness — and their toll of death — would only grow greater with time."
        [/message]
    [/event]

    {LIBERTY_DEATHS}
[/scenario]