This file is indexed.

/usr/share/games/wesnoth/1.10/data/campaigns/The_South_Guard/scenarios/07b_Pebbles_in_the_Flood.cfg is in wesnoth-1.10-tsg 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
#textdomain wesnoth-tsg
[scenario]
    id=07b_Pebbles_in_the_Flood

    name= _ "Pebbles in the Flood"
    next_scenario=08b_The_Tides_of_War

    {SCENARIO_MUSIC elvish-theme.ogg}
    {EXTRA_SCENARIO_MUSIC the_king_is_dead.ogg}
    {EXTRA_SCENARIO_MUSIC nunc_dimittis.ogg}
    {EXTRA_SCENARIO_MUSIC heroes_rite.ogg}

    map_data="{campaigns/The_South_Guard/maps/07b_Pebbles_in_the_Flood.map}"

    {campaigns/The_South_Guard/utils/sg_help.cfg}

    {DEFAULT_SCHEDULE}

    {SG_PEBBLES_IN_THE_FLOOD}

    turns=-1
    victory_when_enemies_defeated=no
    disallow_recall=yes

    # The South Guard

    [side]
        side=1
        type=Horseman Commander
        id=Deoran
        name= _ "Deoran"
        unrenamable=yes

        team_name=South_Guard
        user_team_name=_"South Guard"
        controller=human
        {CUSTOM_SG_FLAG}

        gold=0
        {INCOME 4 2 0}

        canrecruit=yes
        recruit=Bowman, Spearman, Cavalryman, Footpad, Thug
    [/side]

    {STARTING_VILLAGES 1 15}

    # The Undead Hordes

    [side]
        side=2
        type=Ancient Lich
        id="Mal M'Brin"
        name= _ "Mal M’Brin"
        profile=portraits/mal-mbrin.png
        facing=sw

        team_name=The_Undead_Hordes
        user_team_name=_"Undead"
        controller=ai

        {GOLD 200 300 400}
        {INCOME 50 75 100}

        canrecruit=yes
        [ai]
            recruitment_pattern=scout, fighter, fighter, archer, scout, fighter, archer
            aggression=1.0
            caution=0.0
            [target]
                id=Sir Gerrick
                value=10.0
            [/target]
        [/ai]
        recruit=Wraith, Shadow, Skeleton, Revenant, Draug, Bone Shooter, Blood Bat, Chocobone
        {FLAG_VARIANT undead}
    [/side]

    # Make it impossible for the player to kill him, no matter how lucky.
    {FORCE_CHANCE_TO_HIT side=1 id="Mal M'Brin" 0 ()}

    [side]
        side=3
        type=Lich
        id=Mal Tera
        name= _ "Mal Tera"

        team_name=The_Undead_Hordes
        user_team_name=_"Undead"
        controller=ai

        {GOLD 200 250 300}
        {INCOME 0 0 0}

        canrecruit=yes
        [ai]
            recruitment_pattern=fighter
            aggression=0.95
        [/ai]
#ifdef EASY
        recruit=Walking Corpse
#endif
#ifdef NORMAL
        recruit=Walking Corpse, Soulless
#endif
#ifdef HARD
        recruit=Walking Corpse, Soulless, Ghoul
#endif
        {FLAG_VARIANT undead}
    [/side]

    #prestart
    [event]
        name=prestart

        [store_side]
            side=1
            variable=stored_side_1
        [/store_side]
        {VARIABLE pebbles_starting_gold $stored_side_1.gold}

        [modify_side]
            side=1
            {GOLD 250 200 150}
        [/modify_side]

        # Sgt. Finde's Section

        {NAMED_GENERIC_UNIT 1 Sergeant 5 11 (Sgt. Finde) (_"Sgt. Finde")} {GUARDIAN}
        {NAMED_GENERIC_UNIT 1 Spearman 4 10 (Maelvas) (_"Maelvas")} {GUARDIAN}
        {NAMED_GENERIC_UNIT 1 Spearman 5 10 (Orome) (_"Orome")} {GUARDIAN}
        {NAMED_GENERIC_UNIT 1 Peasant 6 10 (Mitche) (_"Mitche")} {GUARDIAN}

        # Lt. Illan's Section

        {NAMED_GENERIC_UNIT 1 (Lieutenant) 13 12 (Lt. Illan) (_"Lt. Illan")} {GUARDIAN}
        {NAMED_GENERIC_UNIT 1 (Heavy Infantryman) 13 13 (Rheban) (_"Rheban")} {GUARDIAN}
        {NAMED_GENERIC_UNIT 1 (Horseman) 14 12 (Jul) (_"Jul")} {GUARDIAN}

        # Lt. Meris' Section

        {NAMED_GENERIC_UNIT 1 (Lieutenant) 35 11 (Lt. Meris) (_"Lt. Meris")} {GUARDIAN}
        {NAMED_GENERIC_UNIT 1 (Peasant) 34 10 (Findlas) (_"Findlas")} {GUARDIAN}
        {NAMED_GENERIC_UNIT 1 (Bowman) 33 10 (Chumet) (_"Chumet")} {GUARDIAN}
        {NAMED_GENERIC_UNIT 1 (Heavy Infantryman) 33 11 (Neras) (_"Neras")} {GUARDIAN}
        {NAMED_GENERIC_UNIT 1 (Bowman) 34 11 (Eera) (_"Eera")} {GUARDIAN}

        # Ancient Lich's Guards

        {NAMED_GENERIC_UNIT 2 Draug 26 23 () (_"Death Guard")} {GUARDIAN}
        {NAMED_GENERIC_UNIT 2 Draug 29 22 () (_"Death Guard")} {GUARDIAN}

        {MODIFY_UNIT x,y=24-40,5-25 facing sw}

        {CLEAR_VARIABLE stored_side_1}
    [/event]

    #start
    [event]
        name=start
        [recall]
            id=Sir Gerrick
            x,y=19,10
        [/recall]
        [recall]
            id=Urza Afalas
            x,y=18,9
        [/recall]

        [message]
            speaker=Deoran
            message= _ "We have escaped the great forest, but look! The undead are chasing us — we must not have rooted them all out of the wood."
        [/message]
        [message]
            speaker=Sir Gerrick
            message= _ "My lord, you must hasten back to Westin to prepare a defense against them. I will command the defense of the border forts."
        [/message]
        [message]
            speaker=Urza Afalas
            message= _ "I too will make my stand here — I owe you my life and must atone for my crimes. Together we will hold off the foul undead as long as we can."
        [/message]
        [message]
            speaker=Deoran
            message= _ "Minister Hylas, ride with me to Westin — you must summon the Council of Westin while I prepare the city’s defenses. We shall return as soon as we can in force and relieve you."
        [/message]
        [message]
            speaker=Sir Gerrick
            message= _ "Make no promises you know you cannot keep. Organize the defense of Westin, and if you survive, remember those who fell here."
        [/message]

        {MOVE_UNIT id=Deoran 18 5}

        [message]
            speaker=Deoran
            message= _ "Your name will be sounded in the roll of heroes, and you will be avenged. Thank you, my friend."
        [/message]

        {MOVE_UNIT id=Deoran 17 1}

        [store_unit]
            [filter]
                id=Deoran
            [/filter]

            kill=yes
            variable=stored_Deoran
        [/store_unit]

        {MODIFY_UNIT (id=Sir Gerrick) canrecruit yes}

        [message]
            speaker=Lt. Illan
            message= _ "We are yours to command, Sir Gerrick. Our men are not the great warriors that you and Deoran are, but we will hold our lines staunchly, until the bitter end."
        [/message]

        [objectives]
            side=1
            [objective]
                description= _ "Hold the line: Keep Sir Gerrick alive as long as possible"
                condition=win
            [/objective]

            note= _ "No gold carried over to the next scenario."
        [/objectives]

        [message]
            speaker=narrator
            message= _ "There is no way to win this scenario, and no way to lose. Hold off the undead hordes as long as you can. Keep Sir Gerrick alive as long as you can. Every turn that passes strengthens the defenses of Westin."
            image=wesnoth-icon.png
        [/message]
    [/event]

    [event]
        name=die
        first_time_only=no

        [filter]
            side=2
        [/filter]
        [gold]
            side=2
#ifdef EASY
            amount=50
#endif
#ifdef NORMAL
            amount=65
#endif
#ifdef HARD
            amount=80
#endif
        [/gold]
    [/event]

    [event]
        name=last breath
        [filter]
            id=Urza Afalas
        [/filter]

        [message]
            speaker=Urza Afalas
            message= _ "Now I will never see my home again... Hold back the undead, Gerrick!"
        [/message]
    [/event]

    [event]
        name=last breath
        [filter]
            id=Sir Gerrick
        [/filter]

        [message]
            speaker=Sir Gerrick
            message= _ "I only hope we have bought Deoran enough time to secure Westin for the onslaught!"
        [/message]
        [kill]
            x,y=$x1,$y1
            animate=yes
        [/kill]
        [message]
            speaker="Mal M'Brin"
            message= _ "We will crush Westin as we have crushed you! No one shall stand between us and our home."
        [/message]

        {VARIABLE pebbles_defense_length $turn_number}

        [kill]
            side=1
            {EVERYWHERE}
            fire_event=no
            animate=no
        [/kill]

        {VARIABLE stored_Deoran.x recall}
        {VARIABLE stored_Deoran.y recall}

        [unstore_unit]
            variable=stored_Deoran
        [/unstore_unit]

        #Set the amount of gold that the player has to what it was before Pebbles.
        [modify_side]
            side=1
            gold=$pebbles_starting_gold
        [/modify_side]
        {CLEAR_VARIABLE pebbles_starting_gold}

        [endlevel]
            result=victory
            bonus=no
            {NEW_GOLD_CARRYOVER 100}
        [/endlevel]
    [/event]
[/scenario]