/
03_A_Desparate_Errand.cfg
382 lines (317 loc) · 10.8 KB
/
03_A_Desparate_Errand.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
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
#textdomain wesnoth-tsg
[scenario]
id=03_A_Desperate_Errand
name= _ "A Desperate Errand"
next_scenario=04_Vale_of_Tears
{SCENARIO_MUSIC wanderer.ogg}
{EXTRA_SCENARIO_MUSIC breaking_the_chains.ogg}
map_data="{campaigns/The_South_Guard/maps/03_A_Desperate_Errand.map}"
{campaigns/The_South_Guard/utils/sg_deaths.cfg}
{DUSK}
{FIRST_WATCH}
{SECOND_WATCH}
{DAWN}
{MORNING}
{AFTERNOON}
victory_when_enemies_defeated=no
{TURNS 30 24 20}
{BIGMAP_03}
# 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 120 105 75}
canrecruit=yes
recruit=Bowman, Spearman
[village]
x,y=40,32
[/village]
[/side]
{STARTING_VILLAGES 1 4}
# The Bandit Armies
[side]
side=2
type=Rogue
id=Urza Fastik
name= _ "Urza Fastik"
team_name=bandits
user_team_name=_"Bandits"
controller=ai
{GOLD 20 40 70}
canrecruit=yes
[ai]
#ifdef EASY
recruitment_pattern=fighter,scout,scout
#else
recruitment_pattern=fighter,scout,archer,scout
#endif
{QUANTITY aggression 0.55 0.75 0.85}
{ATTACK_DEPTH 3 4 5}
village_value=0.1
villages_per_scout=10
[goal]
name=target
[criteria]
id=Deoran
[/criteria]
value=10
[/goal]
[goal]
name=protect_location
[criteria]
x,y=28,16
[/criteria]
protect_radius=10
value=5.0
[/goal]
[avoid]
x,y=1-24,1-9
[/avoid]
[/ai]
#ifdef EASY
recruit=Ruffian,Thug,Footpad,Vampire Bat
#endif
#ifdef NORMAL
recruit=Ruffian,Thug,Thief,Poacher,Vampire Bat,Skeleton
#endif
#ifdef HARD
recruit=Footpad,Thief,Poacher,Vampire Bat,Skeleton,Skeleton Archer
#endif
{FLAG_VARIANT ragged}
[/side]
{STARTING_VILLAGES_AREA 2 28 21 5}
{STARTING_VILLAGES_AREA 2 12 27 10}
[event]
name=prestart
# Reduce the size of the enemy camp on 'trivial' difficulty
#ifdef EASY
{MODIFY_TERRAIN Gg 16 21}
{MODIFY_TERRAIN Gg 15 21}
#endif
[/event]
#start
[event]
name=start
[recall]
id=Sir Gerrick
[/recall]
[recall]
id=Minister Hylas
[/recall]
[message]
speaker=narrator
message= _ "Deoran and his men came to the eastern border of the Aethenwood..."
image=wesnoth-icon.png
[/message]
[message]
speaker=Deoran
message= _ "Look, men! There is the forest of the Elves to the northwest. Let us hasten across the river and the hills."
[/message]
[message]
speaker=Minister Hylas
message= _ "Be careful, Deoran. No man has set foot in the elvish woods for many a year. We do not know how they will receive us. Sir Loris thought that it was some trick of theirs trying to bring him into the woods..."
[/message]
[message]
speaker=Deoran
message= _ "But if we do not discover the source of these undead warriors, the whole province shall surely be swallowed up by them, and then their bandit masters will fare no better. We cannot allow it!"
[/message]
[message]
speaker=Urza Fastik
message= _ "I have lost two brothers to Deoran — I shall not allow him to reach the accursed elves! Deoran will die before he reaches the western forest!"
[/message]
{HIGHLIGHT_IMAGE 17 7 items/gohere.png ()}
#ifdef EASY
[message]
speaker=narrator
message= _ "You must move Deoran to the center of the elvish citadel. Be sure to recruit a force strong enough to drive off the bandits before moving Deoran from his encampment!"
image=wesnoth-icon.png
[/message]
#endif
[scroll_to_unit]
id=Deoran
[/scroll_to_unit]
[objectives]
side=1
[objective]
description= _ "Move Deoran to the elvish city in the northern woods"
condition=win
[/objective]
[objective]
description= _ "Death of Deoran"
condition=lose
[/objective]
[objective]
description= _ "Death of Sir Gerrick"
condition=lose
[/objective]
[objective]
description= _ "Death of Minister Hylas"
condition=lose
[/objective]
{TURNS_RUN_OUT}
[gold_carryover]
bonus=yes
carryover_percentage=40
[/gold_carryover]
[/objectives]
[/event]
[event]
name=turn 2
[message]
speaker=Deoran
message= _ "There is so much ground to cover. If only our riders would arrive!"
[/message]
[/event]
[event]
name=turn 3
[unit]
side=1
id=Jarek
name= _ "Jarek"
{QUANTITY type Cavalier Dragoon Cavalryman}
x,y=41,33
facing=sw
[modifications]
{TRAIT_STRONG}
{TRAIT_QUICK}
[/modifications]
[/unit]
[message]
speaker=Jarek
message= _ "Commander, I received your request for reinforcements, and I have brought my riders with me!"
[/message]
[message]
speaker=narrator
image="units/human-loyalists/cavalryman/cavalryman.png~RC(magenta>red)"
#ifdef EASY
message= _ "You may now recruit Cavalrymen. They are fast and deadly on grassland, but weak in forests and hills. They can keep up with Deoran, so use them to guard him!"
#else
message= _ "You may now recruit Cavalrymen."
#endif
[/message]
[allow_recruit]
side=1
type=Cavalryman
[/allow_recruit]
[/event]
[event]
name=last breath
[filter]
speaker=Urza Fastik
[/filter]
[message]
speaker=unit
message= _ "What have we done?! Even our undead allies cannot stand against this commander!"
[/message]
[kill]
x,y=$x1,$y1
animate=yes
[/kill]
[role]
role=second
type=Spearman,Swordsman,Pikeman,Javelineer,Bowman,Longbowman,Cavalryman,Dragoon
[/role]
[message]
role=second
message= _ "I hope that’s the last of the bandits! How many more of these foul undead must we fight?"
[/message]
# Deoran arrives at the elvish citadel
[message]
speaker=Deoran
message= _ "If we are to check the advance of the dead, I must reach the home of the elves!"
[/message]
[/event]
[event]
name=moveto
[filter]
id=Deoran
x,y=17,7
[/filter]
[remove_item]
x,y=17,7
[/remove_item]
{NAMED_LOYAL_UNIT 1 (Elvish Ranger) 15 4 (Linderion) (_"Linderion")}
{NAMED_LOYAL_UNIT 1 (Elvish Marksman) 19 4 (Mithalwe) (_"Mithalwe")}
{NAMED_LOYAL_UNIT 1 (Elvish Ranger) 13 7 (Sidaurios) (_"Sidaurios")}
{NAMED_LOYAL_UNIT 1 (Elvish Avenger) 21 7 (Eltenmir) (_"Eltenmir")}
{NAMED_LOYAL_UNIT 1 (Elvish Hero) 15 10 (Vardanos) (_"Vardanos")}
{NAMED_LOYAL_UNIT 1 (Elvish Outrider) 19 10 (Talchar) (_"Talchar")}
[unit]
#ifdef EASY
type=Elvish Shyde
#else
type=Elvish Druid
#endif
id=Ethiliel
name= _ "Ethiliel"
profile=portraits/ethiliel.png
{IS_HERO}
side=1
x,y=18,6
facing=sw
[modifications]
{TRAIT_LOYAL}
{TRAIT_QUICK}
[/modifications]
[/unit]
[message]
speaker=Linderion
message= _ "Halt! Who has entered our citadel without leave?"
[/message]
[message]
speaker=Deoran
message= _ "De..." # wmllint: no spellcheck
[/message]
[message]
speaker=Linderion
message= _ "Speak carefully, for the penalty for trespass on our lands is death, and your life is thus forfeit."
[/message]
[message]
speaker=Deoran
message= _ "Deora..." # wmllint: no spellcheck
[/message]
[message]
speaker=Ethiliel
# wmllint: local spelling Elrath
message= _ "Stay a moment. This man wears the colors of Wesnoth, and Kalenz told us not all the folk of Wesnoth are foes of the elves. Tell us, then, what brings you to the hallowed citadel of Elrath?"
[/message]
[message]
speaker=Deoran
message= _ "My lady, we have come to the elves to seek guidance. Bandits and criminals in our land have summoned the dead to help them plunder our farms and villages. They are coming across the river from the great forest to the south of our lands, where no man has yet traveled."
[/message]
[message]
speaker=Ethiliel
message= _ "The elves know of the great southern forest, and have walked its paths many times. What would you do, Deoran?"
[/message]
[message]
speaker=Deoran
message= _ "I would lead my men south of the river to find the source of these beings of darkness that we might destroy it. For surely, ere that be done, we cannot stand against them for long."
[/message]
[message]
speaker=Ethiliel
message= _ "Indeed you are brave to face such foes. But I fear that alone you will fail and fall. One elf now lives who remembers the secrets of the undead that we learned when Haldric I came to our land. His name is Mebrin, and he lives, secluded in the hills, near here. I will take you to him."
[/message]
[message]
speaker=Deoran
image=portraits/deoran-glad.png
message= _ "My thanks, lady."
[/message]
[kill]
type=Elvish Ranger,Elvish Avenger,Elvish Outrider,Elvish Hero,Elvish Marksman
animate=no
fire_event=no
[/kill]
[endlevel]
result=victory
bonus=yes
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/event]
[/scenario]