/
04_Beginning_of_the_Revenge.cfg
332 lines (269 loc) · 8.55 KB
/
04_Beginning_of_the_Revenge.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-did
[scenario]
id=04_Beginning_of_the_Revenge
name= _ "Beginning of the Revenge"
map_data="{campaigns/Descent_Into_Darkness/maps/04_Beginning_of_the_Revenge.map}"
turns=36
next_scenario=05_Orc_War
victory_when_enemies_defeated=yes
{HERODEATH_MALIN}
{HERODEATH_VOLK}
{TIME_OVER_DEFEAT}
{DEFAULT_SCHEDULE_DUSK}
{SCENARIO_MUSIC vengeful.ogg}
{EXTRA_SCENARIO_MUSIC nunc_dimittis.ogg}
{EXTRA_SCENARIO_MUSIC knalgan_theme.ogg}
{EXTRA_SCENARIO_MUSIC northerners.ogg}
[story]
[part]
music=revelation.ogg
story= _ "Burning inside with a desire to take his revenge against the orcs and push them further north, Malin spends the winter learning as much from Darken Volk as he can. His years of study with the mages serve him well, and his power grows quickly."
{STORYTXT_BACKGROUND travel.jpg}
[/part]
[part]
story= _ "When spring comes, the two head north to a mountain pass known to Darken Volk. In the higher reaches the snow is just beginning to melt, making the passage treacherous. The elder necromancer insists that they press on. He says that he hopes to catch the orc fighters unprepared by arriving early in the year, thereby inflicting as much damage as possible."
{STORYTXT_BACKGROUND travel.jpg}
[/part]
[/story]
{DID_TRACK {JOURNEY_04_NEW}}
# wmllint: validate-off
[side]
side=1
controller=human
recruit=Walking Corpse,Vampire Bat,Ghost,Ghoul,Skeleton Archer,Skeleton
gold=140
team_name=good
user_team_name= _ "Malin Keshar"
{FLAG_VARIANT undead}
# wmllint: recognize Malin Keshar
{CHARACTER_STATS_MALIN_KESHAR}
facing=nw
[/side]
# wmllint: validate-on
[side]
side=2
controller=ai
recruit=Orcish Archer,Orcish Crossbowman,Wolf Rider,Orcish Grunt
{GOLD 120 150 180}
team_name=orcs
user_team_name= _ "Orcs"
{FLAG_VARIANT6 ragged}
type=Orcish Warlord
id=Gron'r Hronk
name= _ "Gron’r Hronk"
canrecruit=yes
facing=nw
[ai]
aggression=0.5
caution=0.1
villages_per_scout=8
village_value=0.5
recruitment_pattern=scout,archer,archer,fighter
[/ai]
[/side]
{STARTING_VILLAGES 2 8}
[side]
side=3
controller=ai
recruit=Orcish Crossbowman,Wolf Rider,Goblin Pillager,Orcish Grunt
{GOLD 130 170 210}
team_name=orcs
user_team_name= _ "Orcs"
{FLAG_VARIANT6 ragged}
type=Orcish Warlord
id=K'rrlar Oban
name=_ "K’rrlar Oban"
canrecruit=yes
facing=sw
[ai]
aggression=0.5
caution=0.2
villages_per_scout=6
recruitment_pattern=archer,scout,fighter
[/ai]
[/side]
{STARTING_VILLAGES 3 8}
# Signpost at the end of the pass
{PLACE_IMAGE scenery/signpost.png 18 1}
[event]
name=prestart
[objectives]
side=1
[objective]
condition=win
description= _ "Move Malin to the end of the mountain pass"
[/objective]
[objective]
{ALTERNATIVE_OBJECTIVE_CAPTION}
condition=win
description= _ "Kill the orc leaders"
[/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]
# TODO: manually add snow detritus
[recall]
id=Darken Volk
[/recall]
{MODIFY_UNIT (id=Malin Keshar) profile (portraits/malin_old.png)}
{MODIFY_UNIT (side=1) facing nw}
[/event]
[event]
name=start
[message]
speaker=Darken Volk
message= _ "Orcs block the way out of the mountain pass. Destroy them, and we will move on to bigger targets."
[/message]
[message]
speaker=Malin Keshar
message= _ "With the might of the undead at my command, many orcs will die this day. They shall pay for getting me banished from Parthyn."
[/message]
[/event]
# In-scenario events
[event]
name=die
first_time_only=yes
[filter]
race=orc
[/filter]
[filter_second]
side=1
[/filter_second]
[message]
speaker=Malin Keshar
message=_ "Feel my wrath, vile creature!"
[/message]
[/event]
[event]
name=moveto
[filter]
side=1
[not]
type=Ghost,Wraith,Spectre,Shadow,Nightgaunt,Vampire Bat,Blood Bat,Dread Bat
[/not]
[filter_location]
terrain=Ai
[/filter_location]
[/filter]
[message]
speaker=Malin Keshar
message= _ "The ice doesn’t look very thick..."
[/message]
[message]
speaker=Darken Volk
message= _ "..."
[/message]
[allow_undo][/allow_undo]
[/event]
[event]
name=new turn
first_time_only=no
[store_locations]
[filter]
[not]
type=Ghost,Wraith,Spectre,Shadow,Nightgaunt,Vampire Bat,Blood Bat,Dread Bat
[/not]
[/filter]
find_in=weakened_ice
variable=breaking_ice
[/store_locations]
{FOREACH breaking_ice i}
[scroll_to]
x,y=$breaking_ice[$i].x,$breaking_ice[$i].y
[/scroll_to]
[terrain]
x,y=$breaking_ice[$i].x,$breaking_ice[$i].y
terrain=Wo
[/terrain]
[remove_item]
x,y=$breaking_ice[$i].x,$breaking_ice[$i].y
image=misc/weakened-ice.png
[/remove_item]
[redraw][/redraw]
[if]
[have_unit]
x,y=$breaking_ice[$i].x,$breaking_ice[$i].y
race=undead
[/have_unit]
[then]
[message]
speaker=narrator
image=wesnoth-icon.png
message= _ "The weak ice gives way beneath the undead creature, who becomes mired in the thick mud at the lake’s bottom."
[/message]
[/then]
[else]
[message]
speaker=narrator
image=wesnoth-icon.png
message=_ "The weak ice gives way beneath the heavy warrior, who drowns in the frigid mountain waters."
[/message]
[/else]
[/if]
[sound]
name=water-blast.wav
[/sound]
[kill]
x,y=$breaking_ice[$i].x,$breaking_ice[$i].y
animate=yes
fire_event=yes
[/kill]
{NEXT i}
[store_locations]
terrain=Ai
[filter]
[not]
type=Ghost,Wraith,Spectre,Shadow,Nightgaunt,Vampire Bat,Blood Bat,Dread Bat
[/not]
[/filter]
[or]
terrain=Ai
find_in=weakened_ice
[/or]
variable=weakened_ice
[/store_locations]
{FOREACH weakened_ice i}
[item]
x,y=$weakened_ice[$i].x,$weakened_ice[$i].y
image=misc/weakened-ice.png
[/item]
{NEXT i}
{CLEAR_VARIABLE breaking_ice}
[/event]
# Victory Condition
[event]
name=moveto
[filter]
id=Malin Keshar
x,y=18,1
[/filter]
[endlevel]
result=victory
bonus=yes
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/event]
[event]
name=enemies defeated
[endlevel]
result=victory
bonus=yes
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/event]
[event]
name=victory
{CLEAR_VARIABLE weakened_ice}
[/event]
[/scenario]