-
-
Notifications
You must be signed in to change notification settings - Fork 988
/
01_Defend_the_Forest.cfg
332 lines (281 loc) · 11.2 KB
/
01_Defend_the_Forest.cfg
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
#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]
id=01_Defend_the_Forest
name= _ "Defend the Forest"
map_data="{campaigns/An_Orcish_Incursion/maps/01_Defend_the_Forest.map}"
turns=24
next_scenario=02_Assassins
{DEFAULT_SCHEDULE}
{SCENARIO_MUSIC knolls.ogg}
{EXTRA_SCENARIO_MUSIC wanderer.ogg}
{EXTRA_SCENARIO_MUSIC sad.ogg}
[story]
[part]
music=elvish-theme.ogg
background=story.jpg
story= _ "The arrival of humans and orcs caused turmoil among the nations of the Great Continent. Elves, previously in uneasy balance with dwarves and others, had for centuries fought nothing more than an occasional skirmish. They were to find themselves facing conflicts of a long-forgotten intensity."
[/part]
[part]
background=story.jpg
story= _ "Their first encounter with the newcomers went less well than either side might have wished."
[/part]
[part]
background=story.jpg
story= _ "But humans, though crude and brash, at least had in them a creative spark which elves could recognize as akin to their own nature. Orcs seemed completely alien."
[/part]
[part]
background=story.jpg
story= _ "For some years after Haldric’s people landed, orcs remained scarce more than a rumor to trouble the green fastnesses of the elves. That remained so until the day that an elvish noble of ancient line, Erlornas by name, faced an enemy unlike any he had ever met before."
[/part]
[part]
background=story.jpg
#po: "northern marches" is *not* a typo for "northern marshes" here.
#po: In archaic English, "march" means "border country".
story=_ "The orcs were first sighted from the north marches of the great forest of Wesmere."
[/part]
[/story]
{AOI_TRACK {JOURNEY_01_NEW}}
# wmllint: validate-off
[side]
side=1
controller=human
{GOLD 200 150 100}
income=0
team_name=Elves
user_team_name= _ "Elves"
{FLAG_VARIANT wood-elvish}
# wmllint: recognize Erlornas
{CHARACTER_STATS_ERLORNAS}
facing=nw
[unit]
side=1
type=Elvish Rider
id=Lomarfel
name= _ "Lomarfel"
profile=portraits/lomarfel.png
x,y=15,18
[modifications]
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
facing=ne
[/unit]
[/side]
# wmllint: validate-on
[side]
side=2
controller=ai
recruit="Orcish Archer,Orcish Grunt,Wolf Rider"
{GOLD 100 125 150}
income=0
team_name=Orcs
user_team_name= _ "Orcs"
{FLAG_VARIANT6 ragged}
type=Orcish Warrior
id=Urugha
name=_ "Urugha"
canrecruit=yes
facing=se
[/side]
{STARTING_VILLAGES 1 6}
[event]
name=prestart
{SCATTER_IMAGE (terrain=Re) 1 scenery/rubble.png}
[objectives]
[objective]
description= _ "Defeat Urugha"
condition=win
[/objective]
[objective]
description= _ "Death of Erlornas"
condition=lose
[/objective]
{TURNS_RUN_OUT}
[gold_carryover]
bonus=yes
carryover_percentage=40
[/gold_carryover]
#ifdef EASY
{HINT ( _ "Elves can move quickly and safely among the trees. Pick off the enemy grunts with your archers from the safety of the forest.")}
#endif
[/objectives]
[/event]
[event]
name=start
[message]
speaker=Lomarfel
message= _ "My lord! A party of aliens has made camp to the north and lays waste to the forest. Our scouts believe it’s a band of orcs."
[/message]
[message]
speaker=Erlornas
message= _ "Orcs? It seems unlikely. The human king, Haldric, crushed them when they landed on these shores, and since then they’ve been no more than a bogey mothers use to scare the children."
[/message]
[message]
speaker=Lomarfel
message= _ "So it seemed, my lord. Yet there is a band of them in the north cutting down healthy trees by the dozen, and making great fires from the wood. They trample the greensward into mud and do not even bury their foul dung. I believe I can smell the stench even here."
[/message]
[message]
speaker=Erlornas
message=_ "So the grim tales of them prove true. They must not be allowed to continue; we must banish this blight from our forests. I shall marshal the wardens and drive them off. And the Council needs to hear of this; take the message and return with reinforcements, for there might be more of them."
[/message]
[message]
speaker=Lomarfel
message= _ "Yes, my lord!"
[/message]
[kill]
id=Lomarfel
[/kill]
[move_unit_fake]
type=Elvish Rider
x=15,14,14,13,12,11,10
y=18,18,19,20,20,20,20
[/move_unit_fake]
{VARIABLE has_recruited_healers no}
[/event]
[event]
name=turn 2
[message]
speaker=Erlornas
message= _ "Look at them. Big, slow, clumsy and hardly a bow in hand. Keep to the trees, use your arrows and the day will be ours."
[/message]
[/event]
# Give the player a hint to recruit healers, if they haven't already. No hints about leveling her - when playing on easy, they're unlikely to get enough XP.
[event]
name=recruit
[filter]
side=1
type=Elvish Shaman
[/filter]
{VARIABLE has_recruited_healers yes}
[/event]
[event]
name=turn 5
[filter_condition]
[have_unit]
type=Elvish Shaman,Elvish Druid
count=0
[/have_unit]
[have_unit]
# if they have less than 5 surviving units, then it's the wrong time to hint about healers
side=1
count=5-99999
[/have_unit]
[/filter_condition]
[message]
race=elf
[not]
id=Erlornas
[/not]
# po: the player hasn't recruited any Shamans. This message isn't shown if they have a Shaman, even if she has 0 xp.
message= _ "My lord, none of our healers have experience on the battlefield. It pleases me that they are safe, but if we should embark on a campaign then we will surely need them alongside us in the battles ahead."
female_message= _ "female^My lord, none of our healers have experience on the battlefield. It pleases me that they are safe, but if we should embark on a campaign then we will surely need them alongside us in the battles ahead."
[show_if]
[variable]
name=has_recruited_healers
boolean_equals=no
[/variable]
[/show_if]
[/message]
[message]
race=elf
[not]
id=Erlornas
[/not]
# po: the player has recruited some Shamans but has lost all them (or managed to level a Sorceress)
message= _ "My lord, none of our surviving healers have experience on the battlefield. It pains me to suggest that we should risk another, but if we should embark on a campaign then we will surely need them alongside us in the battles ahead."
female_message= _ "female^My lord, none of our surviving healers have experience on the battlefield. It pains me to suggest that we should risk another, but if we should embark on a campaign then we will surely need them alongside us in the battles ahead."
[show_if]
[variable]
name=has_recruited_healers
boolean_equals=yes
[/variable]
[/show_if]
[/message]
[/event]
[event]
name=time over
[message]
race=elf
message= _ "It’s hopeless; we’ve tried everything, and they’re still coming back."
[/message]
[message]
speaker=Urugha
message= _ "Forward, you worthless worms! Look at them, they’re tired and afraid! You killed their will to fight, now go and finish the job!"
[/message]
[message]
speaker=Erlornas
message= _ "That cloud of dust on the horizon... flee! There’s more of the abominations heading this way! Fall back before we’re outnumbered and crushed."
[/message]
[message]
speaker=narrator
image=wesnoth-icon.png
message= _ "Lord Erlornas didn’t drive the orcs back, although he and his warriors tried their absolute best. When another war band arrived, elvish resistance crumbled."
[/message]
[message]
speaker=narrator
image=wesnoth-icon.png
message= _ "Of the ensuing events little is known, since much was lost in the chaos and confusion, but one thing is painfully sure. Elves lost the campaign."
[/message]
[/event]
[event]
name=last breath
[filter]
id=Erlornas
[/filter]
[message]
speaker=Erlornas
message= _ "Ugh..."
[/message]
[message]
speaker=Urugha
message= _ "Finally! Got him!"
[/message]
[message]
race=elf
[not]
id=Erlornas
[/not]
message= _ "Lord!"
[/message]
[message]
speaker=Erlornas
message= _ "Take... command... Drive them... away."
[/message]
[message]
speaker=narrator
image=wesnoth-icon.png
message= _ "Lord Erlornas died the day he first fought the orcs and never saw the end of the war. Given its final outcome, this was perhaps for the best."
[/message]
[/event]
[event]
name=last breath
[filter]
id=Urugha
[/filter]
[message]
speaker=unit
message= _ "I’ve been bested, but the combat wasn’t fair... A thousand curses on you, withered coward! May you suffer... and when my master, Rualsha, finds you may he wipe your people from the face of this earth!"
[/message]
[/event]
[event]
name=die
[filter]
id=Urugha
[/filter]
[message]
speaker=Erlornas
message= _ "Rualsha? Hmm... What if... Assemble a war-party, we need to scout north!"
[/message]
[endlevel]
result=victory
bonus=yes
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
{CLEAR_VARIABLE has_recruited_healers}
[/event]
[/scenario]