-
-
Notifications
You must be signed in to change notification settings - Fork 988
/
01_The_Raid.cfg
407 lines (358 loc) · 13.7 KB
/
01_The_Raid.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
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
#textdomain wesnoth-l
[scenario]
id=01_The_Raid
name= _ "The Raid"
map_file=01_The_Raid.map
{TURNS 19 17 15}
next_scenario=02_Civil_Disobedience
{INTRO_AND_SCENARIO_MUSIC "nunc_dimittis.ogg" "northerners.ogg"}
{EXTRA_SCENARIO_MUSIC "knolls.ogg"}
[label]
x,y=11,1
text= _ "Dallben"
[/label]
[story]
[part]
#po: Baldras is an old man from the country and both speaks and writes with many grammatical errors due to his relative lack of education
#po: He is also a little bit rude and grumpy, so languages with ruder or more informal variants of words should use those in most cases
story= _ "From the journal of Baldras, 21 Scatterseed, 501 YW
Months... seven months it’s been since the Crown did send a single guard here to help us. This Garard II be a pompous stinker, worser than his father! Us of these border towns Delwyn and Dallben be already poor and needy, yet alls ‘His Majesty’ can thinks of is tax, tax, tax, making us pay even if we don’t technically be part of Wesnoth. And then he uses our gold to provoke more wars with more orcs and for what? Not care for peoples like us, no. Only getting more land for them grubby nobles to lord over more."
background=story/frontier.jpg
[/part]
[part]
story= _ "To abbadon with the Crown! We gots no armies and we don’t even got real weapons, but we of the Western Marches use our slings and clubs good enough. In all Annuvin Province, there won’t be nobody besting us in these forests and swamps. We’re self-reliant out here. We gots our own trade routes and pacts of mutual defense. No need for them Wesnothians. Not a single bit."
background=story/frontier.jpg
[/part]
[part]
#po: Some languages, including Norwegian and Old English, don't
#po: have a single word for "uncle", dividing it into
#po: mother's-brother vs. father's-brother. Baldras is
#po: Harper's mother's brother. In some human societies,
#po: including the Navaho and Akan, this would give him a
#po: special responsibility for the boy.
#po: Erwen is Baldras' younger sister, so languages with a special word for that should use it
story= _ "Sun was out today, but it was raining too. Weird mix of brightness and woe. Reminds me of that day Harper’s pa died in that orc raid. Since my sister Erwen died when he was young, poor lad had nobody left but me. Never wanted no kid of my own but... well, he’s mine to take care of now. Fine lad, that one, just a bit careless like his pa. I’ll needs to keep a good eye on him now, with all them orcs running round here of late."
background=story/frontier.jpg
[/part]
[/story]
{LIBERTY_BIGMAP {JOURNEY_01_NEW} }
{DEFAULT_SCHEDULE_DUSK}
[side]
type=Bandit_Peasant
id=Baldras
name= _ "Baldras"
profile=portraits/baldras.png
side=1
canrecruit=yes
recruit=
controller=human
unrenamable=yes
experience=25
gold=0
[modifications]
[object]
duration=forever
[effect]
apply_to=attack
name=mace-spiked
#textdomain wesnoth-units
set_description= _ "mace"
set_icon=attacks/mace.png
#textdomain wesnoth-l
[/effect]
[/object]
{TRAIT_STRONG}
[/modifications]
[/side]
{STARTING_VILLAGES 1 4}
[side]
type=Goblin Pillager
id=Fal Khag
name= _ "Fal Khag"
side=2
controller=ai
canrecruit=yes
facing=sw
team_name=orcs
user_team_name=_"Orcs"
gold=25
{FLAG_VARIANT6 ragged}
defeat_condition=no_units_left
[/side]
[event]
name=prestart
[micro_ai]
side=2
ai_type=messenger_escort
action=add
[filter]
id=Fal Khag
[/filter]
waypoint_x,waypoint_y=11,1
[/micro_ai]
[objectives]
side=1
[objective]
description= _ "Defeat all of the Goblin marauders"
condition=win
[/objective]
[objective]
description= _ "Goblins reach the village of Dallben"
condition=lose
[/objective]
[objective]
description= _ "Death of Baldras"
condition=lose
[/objective]
[objective]
description= _ "Death of Harper"
condition=lose
[/objective]
{TURNS_RUN_OUT}
[gold_carryover]
bonus=yes
carryover_percentage=100
[/gold_carryover]
[/objectives]
#sign to mark the village location
{PLACE_IMAGE scenery/signpost.png 11 3}
{SET_VILLAGE 10 1 1}
{SET_VILLAGE 12 1 1}
#define DALLBEN_PEASANT TYPE X Y ID_STRING NAME_STRING
[unit]
type={TYPE}
id={ID_STRING}
name={NAME_STRING} # wmllint: ignore
x,y={X},{Y}
side=1
random_traits=yes
[/unit]
#enddef
#define GOBLIN_RAIDER TYPE X Y NAME_STRING
[unit]
side=2
type={TYPE}
x,y={X},{Y}
name={NAME_STRING} # wmllint: ignore
random_traits=yes
facing=sw
[/unit]
#enddef
{GOBLIN_RAIDER (Goblin Pillager) 21 29 ( _ "Gatrakh")}
{GOBLIN_RAIDER (Goblin Pillager) 19 29 ( _ "Thurg")}
#ifdef EASY
{GOBLIN_RAIDER (Wolf Rider) 19 30 ( _ "Krung")}
{GOBLIN_RAIDER (Wolf Rider) 20 29 ( _ "Gorokh")}
#endif
#ifdef NORMAL
{GOBLIN_RAIDER (Goblin Pillager) 19 30 ( _ "Krung")}
{GOBLIN_RAIDER (Wolf Rider) 20 29 ( _ "Gorokh")}
#endif
#ifdef HARD
{GOBLIN_RAIDER (Goblin Pillager) 19 30 ( _ "Krung")}
{GOBLIN_RAIDER (Goblin Pillager) 20 29 ( _ "Gorokh")}
#endif
#undef GOBLIN_RAIDER
# now store the good guys so they are invisible during the
# goblin conversation
[store_unit]
variable=goodguys_store
kill=yes
[filter]
side=1
[/filter]
[/store_unit]
[/event]
# Starting conversation and actions
[event]
name=start
[message]
speaker=Fal Khag
message= _ "I long to burn human cities, but that weasley witch thinks we’re only good enough for these puny villages. Hapless clods have barely anything for us to take, but ‘least the witch’s gold is good."
[/message]
[message]
speaker=Fal Khag
message= _ "Ride, you worms! Let’s finish our raid before the hunting party returns to the human village."
[/message]
#Put the leader back and make some other good guys
[unstore_unit]
variable=goodguys_store
[/unstore_unit]
{CLEAR_VARIABLE goodguys_store}
{DALLBEN_PEASANT Footpad_Peasant 8 29 Jalak ( _ "Jalak")}
{DALLBEN_PEASANT Footpad_Peasant 7 29 Delurin ( _ "Delurin")}
{DALLBEN_PEASANT Footpad_Peasant 7 27 Red ( _ "Red")}
{DALLBEN_PEASANT Bandit_Peasant 5 29 Ordo ( _ "Ordo")}
{DALLBEN_PEASANT Bandit_Peasant 6 30 Novus ( _ "Novus")}
{DALLBEN_PEASANT Thug_Peasant 7 30 Teneor ( _ "Teneor")}
{DALLBEN_PEASANT Poacher_Peasant 5 28 Kembe ( _ "Kembe")}
{DALLBEN_PEASANT Poacher_Peasant 5 30 Treagh ( _ "Treagh")}
# wmllint: recognize Red
# wmllint: recognize Kembe
[unit]
type=Footpad_Peasant
id=Harper
name= _ "Harper"
profile=portraits/harper.png
x,y=8,30
side=1
random_traits=no
[modifications]
[object]
duration=forever
[effect]
apply_to=attack
name=mace-spiked
#textdomain wesnoth-units
set_description= _ "club"
set_icon=attacks/club.png
#textdomain wesnoth-l
[/effect]
[/object]
{TRAIT_LOYAL_HERO}
{TRAIT_RESILIENT}
{TRAIT_DEXTROUS}
[/modifications]
unrenamable=yes
[/unit]
[message]
speaker=Red
message= _ "Look, goblin riders approach! You were right, they were going to raid Dallben while we were gone."
[/message]
[message]
speaker=Baldras
message= _ "We’ve gots to stop them or they’ll burn the whole village. Damn these goblins and damn the Crown. We always be havin’ to fight fer ourselves."
[/message]
[message]
speaker=Harper
# po: Harper has a bit of an accent, but not as much as his Uncle.
# po: Harper is a bit of a reckless kid as Baldras alludes to, but he's much more polite
message= _ "Uncle, we got no time to talk! Them riders are heading full-speed straight for Dallben. We’ll need to chase them down through those woods — and fast, or we won’t be able to catch up."
[/message]
[message]
speaker=Baldras
message= _ "Do it. Hold them beasts back ‘til us old-timers gets there to finish ‘em off."
[/message]
[message]
speaker=Baldras
message= _ "And Harper... don’t be getting reckless on me today. Yer father died like that, chargin’ stupidly into a pack of goblins by ‘imself. I won’t lose ya the same way."
[/message]
[message]
speaker=Harper
message= _ "I know, I know, no need to worry so much, Uncle. All right now, let’s stop these riders!"
[/message]
[/event]
#
# Victory
#
[event]
name=enemies defeated
{CLEAR_VARIABLE town_guards_awakened}
[message]
speaker=Harper
message= _ "These orc raids keep gettin’ harder and harder to hold off. Feels like every new day’s just another chance for us to lose everything..."
[/message]
[message]
speaker=Baldras
message= _ "The King stopped sendin’ patrols out here a while back. Stinker probably started another war or somethin’. Don’t really matter. Technically Annuvin be under the charge of Elensefar, but you don’t see ‘em coming to help us either."
[/message]
[message]
speaker=Harper
message= _ "Then why do we got to pay taxes to the King? Maybe Elensefar doesn’t help us, but ‘least they don’t take our gold."
[/message]
[message]
speaker=Baldras
message= _ "I don’t know, Harper. I just don’t know. All I can say is we’re on our own out here."
[/message]
[endlevel]
result=victory
bonus=yes
{NEW_GOLD_CARRYOVER 100}
[/endlevel]
[/event]
# Orcs near the villlage
[event]
name=moveto
[filter]
side=2
[filter_location]
x,y=11,2
radius=12
[/filter_location]
[/filter]
[filter_condition]
[variable]
name=town_guards_awakened
not_equals=yes
[/variable]
[/filter_condition]
[message]
speaker=Harper
message= _ "They’re getting close to Dallben! What should we do?"
[/message]
[message]
speaker=Baldras
message= _ "I left a couple guards in the village. Might be able to slow them wolves down if they gets closer."
[/message]
[/event]
[event]
name=moveto
[filter]
[filter_location]
x,y=11,2
radius=9
[/filter_location]
[/filter]
{DALLBEN_PEASANT Thug_Peasant 12 2 Remald ( _ "Remald")}
{DALLBEN_PEASANT Thug_Peasant 10 2 Wolmas ( _ "Wolmas")}
# wmllint: recognize Remald
# wmllint: recognize Wolmas
#ifdef EASY
{DALLBEN_PEASANT Thug_Peasant 11 4 Jasken ( _ "Jasken")}
#endif
{IF_VAR unit.side equals 1 (
[then]
[message]
speaker=Wolmas
message= _ "What’s happening here? Why are you running like mad, $unit.name|?"
[/message]
[message]
speaker=unit
message= _ "Goblin riders on the hunt, headed right for the village. We must stop them!"
[/message]
[/then]
[else]
[message]
speaker=Wolmas
message= _ "Look! Goblin riders on the hunt, heading right for Dallben!"
[/message]
[message]
speaker=Remald
message= _ "We’ve got to stop them!"
[/message]
[/else]
)}
{VARIABLE town_guards_awakened yes}
[/event]
#
# Loss conditions - the orcs reach the village
#
[event]
name=moveto
[filter]
side=2
x=9-13
y=1-2
[/filter]
[message]
speaker=Harper
message= _ "The goblins reached the village! Now there’ll be nothing left after they raid our homes. We failed..."
[/message]
[endlevel]
result=defeat
[/endlevel]
[/event]
{LIBERTY_DEATHS}
[/scenario]
#undef GOBLIN_RAIDER
#undef DALLBEN_PEASANT