-
-
Notifications
You must be signed in to change notification settings - Fork 988
/
02_Peaceful_Valley.cfg
401 lines (337 loc) · 11.8 KB
/
02_Peaceful_Valley.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
#textdomain wesnoth-did
[scenario]
id=02_Peaceful_Valley
name= _ "Peaceful Valley"
map_data="{campaigns/Descent_Into_Darkness/maps/02_Peaceful_Valley.map}"
victory_when_enemies_defeated=no
{TURNS 29 26 23}
next_scenario=03_A_Haunting_in_Winter
{DEFAULT_SCHEDULE_MORNING}
{SCENARIO_MUSIC elvish-theme.ogg}
{EXTRA_SCENARIO_MUSIC knolls.ogg}
{EXTRA_SCENARIO_MUSIC revelation.ogg}
[story]
[part]
music=wanderer.ogg
story= _ "Fighting tears and rage, Malin follows the back-trail of the orcish band. He curses the elder mages for sending him from the Isle of Alduin half-prepared, only to be thrust into conflict. He curses Drogan for lacking the courage to see what must be done. Most fiercely, he curses the orcs for ravaging his family and home through their ceaseless attacks."
{STORYTXT_BACKGROUND_BIGMAP_DID}
[/part]
[part]
story= _ "Three days’ travel outside Parthyn, Malin meets Darken Volk, the same necromancer who had saved Parthyn and taught Malin to raise the dead not long ago. The necromancer takes pity on Malin in his friendless state, and asks Malin to travel with him. As the weeks pass, he teaches Malin more dark magic."
{STORYTXT_BACKGROUND travel.jpg}
[/part]
[/story]
{DID_TRACK {JOURNEY_02_NEW}}
# wmllint: validate-off
[side]
side=1
controller=human
recruit=Walking Corpse,Vampire Bat
{GOLD 120 100 80}
team_name=good
user_team_name= _ "Malin Keshar"
{FLAG_VARIANT undead}
# wmllint: recognize Malin Keshar
{CHARACTER_STATS_MALIN_KESHAR}
fog=yes
shroud=yes
facing=nw
[unit]
x,y=15,16
facing=nw
# wmllint: recognize Darken Volk
{CHARACTER_STATS_DARKEN_VOLK}
[/unit]
[/side]
# wmllint: validate-on
[side]
side=2
controller=ai
recruit=Goblin Rouser,Goblin Impaler,Wolf Rider
{GOLD 70 90 110}
team_name=goblins
user_team_name= _ "Goblins"
{FLAG_VARIANT6 ragged}
type=Goblin Knight
id="T'shar Lggi"
name= _ "T’shar Lggi"
canrecruit=yes
fog=yes
facing=se
[ai]
village_value=2
caution=0.5
recruitment_pattern=scout,fighter
[/ai]
[/side]
{STARTING_VILLAGES_ALL 2}
[event]
name=prestart
[objectives]
side=1
[objective]
condition=win
description= _ "Occupy all of the goblin villages"
[/objective]
[objective]
condition=lose
description= _ "Death of Malin Keshar"
[/objective]
[objective]
condition=lose
description= _ "Death of Darken Volk"
[/objective]
{TURNS_RUN_OUT}
[gold_carryover]
bonus=yes
carryover_percentage=40
[/gold_carryover]
[/objectives]
[item]
x,y=8,3
image=terrain/castle/encampment/tent2.png
[/item]
[/event]
[event]
name=start
[message]
speaker=Darken Volk
message= _ "In truth, I share your hatred for the orcs. The northlands have been my... home... for many years, and the orcs have been a growing infestation in them. They despoil the beauty of the land wherever they go. If you are interested, I would be happy to take you on as my apprentice so that you can... aid me in the fight against them."
[/message]
[message]
speaker=Malin Keshar
message= _ "Yes! I thirst for revenge on those creatures!"
[/message]
[message]
speaker=Darken Volk
message= _ "Who knows? Perhaps removing the threat of orc raids will persuade the people of Parthyn to... welcome you home."
[/message]
[message]
speaker=Malin Keshar
message= _ "Perhaps. Even Drogan would have to be thankful for a summer without orc raids."
[/message]
[message]
speaker=Darken Volk
message= _ "A goblin village lies in this valley, just ahead. They are a bastard race born of the orcs, and help them in their wars against humans and dwarves. These do not know of our coming. Subduing them will give us souls upon which to call in our fight against the orcs."
[/message]
[message]
speaker=Darken Volk
message= _ "It will be a worthwhile test of your new skills."
[/message]
[/event]
# In-scenario events
[event]
name=capture
first_time_only=yes
[filter]
side=1
[/filter]
[message]
speaker=Darken Volk
message= _ "Beware the goblin guards in the villages."
[/message]
[/event]
[event]
name=capture
first_time_only=no
[filter]
side=1
[/filter]
[filter_condition]
[variable]
name=village_$x1|_$y1|_cleared
boolean_not_equals=yes
[/variable]
[/filter_condition]
{VARIABLE_OP number_of_guards rand "0..2"}
[random_placement]
num_items="$number_of_guards"
allow_less=yes
variable=guard_location
[filter_location]
[filter_adjacent_location]
x,y=$x1,$y1
[/filter_adjacent_location]
[not]
[filter]
[/filter]
[/not]
[/filter_location]
[command]
[move_unit_fake]
side=2
type=Goblin Spearman
x=$x1,$guard_location.x
y=$y1,$guard_location.y
[/move_unit_fake]
[unit]
id=guard_$x1|_$y1|_$guard_location.n
name= _ "Villager"
type=Goblin Spearman
side=2
x,y=$guard_location.x,$guard_location.y
random_traits=yes
[/unit]
[/command]
[/random_placement]
{VARIABLE village_$x1|_$y1|_cleared yes}
# Trigger an easter egg sometime after a third of villages have been taken
[if]
[variable]
name=done_shaun
not_equals=yes
[/variable]
[variable]
name=number_of_guards
numerical_equals=2
[/variable]
[have_location]
owner_side=1
count=4-99
[/have_location]
# Make sure the guards actually exist, in case there was no space for them
[have_unit]
# wmllint: recognize guard_$x1|_$y1|_1
id=guard_$x1|_$y1|_1
[/have_unit]
[have_unit]
# wmllint: recognize guard_$x1|_$y1|_2
id=guard_$x1|_$y1|_2
[/have_unit]
[then]
[modify_unit]
[filter]
id=guard_$x1|_$y1|_1
[/filter]
#po: Shaun and Ed are characters from the zombie film "Shaun of the Dead".
#po: If the names cannot be translated into your language so that the
#po: movie reference remains recognizable, then simply translate these the
#po: same as "Villager" above.
name= _ "Shaun"
[/modify_unit]
[modify_unit]
[filter]
id=guard_$x1|_$y1|_2
[/filter]
name= _ "Ed"
[/modify_unit]
{VARIABLE done_shaun yes}
[/then]
[/if]
{CLEAR_VARIABLE number_of_guards,guard_location}
[/event]
[event]
name=moveto
[filter]
side=1
x,y=15,11
[/filter]
[message]
speaker=Darken Volk
message= _ "Ahhh... I did not realize there was a swamp near this village. Malin, I believe it would be beneficial for your training if you and I were to investigate the swamp."
[/message]
[/event]
[event]
name=moveto
[filter]
id=Darken Volk,Malin Keshar
x=14-15,16-20,19-20
y=9-10,6-10,11
[/filter]
[message]
speaker=Darken Volk
message=_ "Rise, rise from the realms of death and decay!"
[/message]
[scroll_to]
x,y=17,8
[/scroll_to]
{GENERIC_UNIT 1 Ghoul 19 7}
[+unit]
facing=sw
[/unit]
{GENERIC_UNIT 1 Ghoul 17 9}
[+unit]
facing=sw
[/unit]
{GENERIC_UNIT 1 Ghoul 17 8}
[+unit]
facing=sw
[/unit]
[redraw]
side=1
[/redraw]
[message]
speaker=Malin Keshar
message= _ "What are those things?"
[/message]
[message]
speaker=Darken Volk
message= _ "They are ghouls. Once, they were... evil men... murderers and outlaws. Through magic they have been transformed so their outsides match the spirits within. Those that outlive their masters gravitate towards the swamps and bogs, drawn by the natural decay there."
[/message]
[message]
speaker=Malin Keshar
message= _ "It seems cruel to turn men into such a hideous form."
[/message]
[message]
speaker=Darken Volk
message= _ "In their present form they can best serve the greater good. Even now they will aid you in defeating this goblin rabble. Besides, as I said, these were men of great evil. No punishment is too great for their kind."
[/message]
[message]
speaker=Malin Keshar
message= _ "I suppose so..."
[/message]
[/event]
# Victory Condition
[event]
name=capture
first_time_only=no
[filter]
side=1
[/filter]
# When capturing a village we check if we own all villages of the map
[filter_condition]
[not]
[have_location]
terrain=*^V*
[not]
owner_side=1
[/not]
[/have_location]
[/not]
[/filter_condition]
[endlevel]
result=victory
bonus=yes
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/event]
[event]
name=victory
[message]
speaker=Malin Keshar
message= _ "Sacking goblin villages is all well and good, but walking corpses and bats won’t stand up to full orcish warriors."
[/message]
[message]
speaker=Darken Volk
message= _ "Your training is just beginning, Malin. With the souls from these goblins now available for our use, you will see your forces grow quickly."
[/message]
[message]
speaker=Malin Keshar
message= _ "Excellent. I’m eager to move on to the real foes."
[/message]
[store_villages]
variable=villages
[/store_villages]
[foreach]
array=villages
[do]
{VARIABLE_OP village_var value "village_$this_item.x|_$this_item.y|_cleared"}
{CLEAR_VARIABLE $village_var}
[/do]
[/foreach]
{CLEAR_VARIABLE villages,village_var,done_shaun}
[/event]
{HERODEATH_MALIN}
{HERODEATH_VOLK}
{TIME_OVER_DEFEAT}
[/scenario]