This file is indexed.

/usr/share/games/wesnoth/1.10/data/campaigns/An_Orcish_Incursion/scenarios/04_Valley_of_Trolls.cfg is in wesnoth-1.10-aoi 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
#textdomain wesnoth-aoi

# Warning: If you are not a native and literate English speaker, do
# not try to modify the storyline text.  It is deliberately written
# in a somewhat archaic and poetic form of English, and some previous
# attempts to "fix" it inflicted damage that was difficult to undo.

[scenario]
    name=_ "Valley of Trolls"
    id=04_Valley_of_Trolls
    map_data="{campaigns/An_Orcish_Incursion/maps/04_Valley_of_Trolls.map}"
    turns=24
    next_scenario=05_Linaera_the_Quick
    {DEFAULT_SCHEDULE}

    {INTRO_AND_SCENARIO_MUSIC breaking_the_chains.ogg the_dangerous_symphony.ogg}
    {EXTRA_SCENARIO_MUSIC wanderer.ogg}
    {EXTRA_SCENARIO_MUSIC underground.ogg}

    [side]
        type="Elvish Lord"
        id=Erlornas
        canrecruit=yes
        profile=portraits/erlornas.png
        side=1
        controller=human
        shroud=yes
        team_name=Elves
        user_team_name=_ "Elves"
        recruit="Elvish Scout,Elvish Fighter,Elvish Archer,Elvish Shaman"
        {FLAG_VARIANT long}
    [/side]

    [side]
#ifdef EASY
        type="Troll"
#else
        type="Troll Warrior"
#endif
        id=Gurk
        name=_ "Gurk"
        canrecruit=yes

        side=2
        {GOLD 30 40 50}
        {INCOME 5 7 9}
#ifdef EASY
        recruit="Troll, Troll Whelp"
#else
        recruit="Troll, Troll Rocklobber,Troll Whelp"
#endif
        team_name=Trolls
        user_team_name=_ "Trolls"
        controller=ai
        fog=no
        shroud=no
        [ai]
            aggression=0.8
            turns="4,5,6,10,11,12,16,17,18,22,23,24"
            grouping=offensive
            {ATTACK_DEPTH 1 3 5}
        [/ai]
        [ai]
            aggression=-0.1
            simple_targeting=yes
            turns="1,2,3,7,8,9,13,14,15,19,20,21"
            grouping=none
            {ATTACK_DEPTH 1 3 5}
        [/ai]
        {FLAG_VARIANT undead}
    [/side]

    [side]
#ifdef EASY
        type="Troll"
#else
        type="Troll Warrior"
#endif
        id=Hrugu
        canrecruit=yes
        name=_ "Hrugu"

        side=3
        {GOLD 30 40 50}
        {INCOME 5 7 9}
#ifdef EASY
        recruit="Troll Rocklobber, Troll Whelp"
#else
        recruit="Troll, Troll Rocklobber,Troll Whelp"
#endif
        team_name=Trolls
        user_team_name=_ "Trolls"
        controller=ai
        fog=no
        shroud=no
        [ai]
            aggression=0.8
            turns="4,5,6,10,11,12,16,17,18,22,23,24"
            grouping=offensive
            attack_depth=5
        [/ai]
        [ai]
            aggression=-0.1
            turns="1,2,3,7,8,9,13,14,15,19,20,21"
            grouping=none
            attack_depth=5
            simple_targeting=yes
        [/ai]
        {FLAG_VARIANT undead}
    [/side]

    {LIMIT_CONTEMPORANEOUS_RECRUITS 2 "Troll" 1}
    {LIMIT_CONTEMPORANEOUS_RECRUITS 2 "Troll Rocklobber" 1}
    {LIMIT_CONTEMPORANEOUS_RECRUITS 3 "Troll" 1}
    {LIMIT_CONTEMPORANEOUS_RECRUITS 3 "Troll Rocklobber" 1}
#ifdef EASY
    {LIMIT_CONTEMPORANEOUS_RECRUITS 2 "Troll Whelp" 3}
    {LIMIT_CONTEMPORANEOUS_RECRUITS 3 "Troll Whelp" 3}
#endif

    [story]
        [part]
            background="an-orcish-incursion-map.png"
            story=_ "Next morning, the elves set off again, increasingly wearied by the hardships of the campaign and longing for the green comfort of their home forests. This land was barren and rugged; nothing shielded them from biting northern wind as they traveled towards the mountains looming before them."
        [/part]
        [part]
            background="an-orcish-incursion-map.png"
            story=_ "At dusk they arrived at the mouth of a valley cutting almost straight through the range and made camp, as scouts warned that the area was hostile and the road ahead treacherous in darkness. There were no songs or music that night and most of the elves slept uneasily. An unlucky few kept a cautious watch."
        [/part]
        [part]
            background="an-orcish-incursion-map.png"
            story=_ "When sunrise came, the elves moved into battle formations. Whatever waited in the slopes ahead, it would not find them unprepared."
        [/part]
        [part]
            show_title="yes"
            {TO_VALLEY_OF_TROLLS}
        [/part]
    [/story]

    [event]
        name=prestart

        [store_locations]
            variable=lowland_hex
            terrain=G*,Ww,Ww^*,R*,Gs^*,Gg^*
        [/store_locations]

        {FOREACH lowland_hex i}
            [remove_shroud]
                side=1
                x=$lowland_hex[$i].x
                y=$lowland_hex[$i].y
            [/remove_shroud]
        {NEXT i}
        {CLEAR_VARIABLE lowland_hex}

        [objectives]
#ifdef EASY
            note=_ "Hint:
Trolls are poor fighters when not on rugged terrain and fare even worse during the daytime. Lure them out of the hills and attack in the sunlight."
#endif
            [objective]
                description=_ "Defeat all enemy leaders"
                condition=win
            [/objective]
            [objective]
                description=_ "Death of Erlornas"
                condition=lose
            [/objective]

            {TURNS_RUN_OUT}

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

    [event]
        name=start

        [role]
            race=elf
            [not]
                canrecruit=yes
            [/not]
            role=Advisor
        [/role]
        [recall]
            role=Advisor
        [/recall]

        [message]
            role=Advisor
            message=_"We are far from our lands, now, Erlornas, and we have driven the orcs from the forest. Why do we not return home?"
        [/message]
        [message]
            id=Erlornas
            message=_ "You know well enough... Rualsha. That name sounds everywhere we go since the incursion began. That orc is much more than a mere marauding bandit in search of pillage. And he wants this land. <i>Our</i> land. He is planning an invasion, I’m sure of it. We must gather more information about his plans before we go back."
        [/message]
        [message]
            id=Erlornas
            message=_ "And tell me... How did you sleep last night?"
        [/message]
        [message]
            role=Advisor
            message=_ "How did I?... Uneasy, lord. My dreams were bleak, some of them nightmares."
        [/message]
        [message]
            id=Erlornas
            message=_"Yes. The earth currents are perturbed here, and the bridges to the dreamland are tainted. I think there is a mage dwelling somewhere nearby. Or perhaps more than one; the traces are mixed, and some of them have an unwholesome flavor."
        [/message]
        [message]
            role=Advisor
            message=_"It would be dire indeed for us if these orcs have magic to add to their battle-might."
        [/message]
        [message]
            id="Erlornas"
            message=_"We must discover if this is so."
        [/message]
        [message]
            role="Advisor"
            message=_"Information will do us no good if we are killed before we return with it! These mountains look like troll territory."
        [/message]
        [message]
            id=Erlornas
            message=_ "Enough. The sun’s fully over the horizon. Give the order to advance."
        [/message]
    [/event]

    [event]
        name=enemies defeated

        [role]
            race=elf
            [not]
                canrecruit=yes
            [/not]
            role=Advisor
        [/role]

        [message]
            role=Advisor
            message=_ "That was the last of the chieftains, lord. The lesser trolls seem to be retreating now."
        [/message]
        [message]
            id=Erlornas
            message=_ "It is well. Break camp and move everyone through the pass before they rally. We’ll rest a bit on the other side; we have earned it."
        [/message]
        [message]
            role=Advisor
            message=_ "At once. How much time do you think we have?"
        [/message]
        [message]
            id=Erlornas
            message=_ "A day, perhaps. We fought two clans today; they won’t take long to rally. We need to be gone from here by sunset next."
        [/message]

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

    [event]
        name=die
        [filter]
            race=troll
            canrecruit=yes
        [/filter]

        [message]
            id=Erlornas
            message=_ "We have slain a chieftain! Take heart! This battle is almost won!"
        [/message]
    [/event]

    [event]
        name=die
        [filter]
            id=Erlornas
        [/filter]

        [role]
            race=elf
            [not]
                canrecruit=yes
            [/not]
            role=Advisor
        [/role]

        [message]
            speaker=second_unit
            # wmllint: local spelling da
            message=_ "Ha! Me smashed da funny elf. Me got a trophy!"
        [/message]
        [message]
            role=Advisor
            message=_ "No! This can’t be!"
        [/message]
        [message]
            speaker=narrator
            message=_ "Soon after Erlornas died, the elven party, lacking a leader and pressed from all sides, scattered and fled. Their retreat to Wesmere was arduous and long."
            image=wesnoth-icon.png
        [/message]
        [message]
            speaker=narrator
            message=_ "During their retreat, the pass was crossed by another army moving in the opposite direction. Orcs were back south of the pass, and this time they were to stay for a long, long time."
            image=wesnoth-icon.png
        [/message]
    [/event]

    [event]
        name=time over

        [message]
            role=Advisor
            message=_ "We can’t get through, my Lord. These whelps are not individually very dangerous, but there are huge numbers of them."
        [/message]
        [message]
            id=Erlornas
            message=_ "Four days of combat and nothing to show for it. How does it feel to you?"
        [/message]
        [message]
            role=Advisor
            message=_ "Terrible, my lord. Never in my life did I dream I’d be bested by mere trolls. What are your orders?"
        [/message]
        [message]
            id=Erlornas
            message=_ "Withdraw and make camp a safe distance from the hills. There is no further point in this fight. We’ll wait for reinforcements."
        [/message]
        [message]
            speaker=narrator
            message=_ "The reinforcements arrived a few days later, a crack force of rangers with some cavalry support. When they attempted the pass again, they found not trolls but something worse — an orcish army approaching from the north."
            image=wesnoth-icon.png
        [/message]
        [message]
            speaker=narrator
            message=_ "The battle that ensued was bloody and inconclusive, and the elven losses were only the beginning of the mournful toll in a war that would rage for many years after."
            image=wesnoth-icon.png
        [/message]
    [/event]
[/scenario]