-
-
Notifications
You must be signed in to change notification settings - Fork 988
/
02_The_Escape_Tunnel.cfg
482 lines (408 loc) · 11.1 KB
/
02_The_Escape_Tunnel.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
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
#textdomain wesnoth-ei
[scenario]
id=02_The_Escape_Tunnel
name= _ "The Escape Tunnel"
map_data="{campaigns/Eastern_Invasion/maps/02_The_Escape_Tunnel.map}"
{TURNS 26 24 22}
next_scenario=03_An_Unexpected_Appearance
victory_when_enemies_defeated=no
{UNDERGROUND}
{INTRO_AND_SCENARIO_MUSIC the_city_falls.ogg underground.ogg}
{EXTRA_SCENARIO_MUSIC the_deep_path.ogg}
{EXTRA_SCENARIO_MUSIC revelation.ogg}
{EI_TRACK {JOURNEY_02_NEW} }
# wmllint: validate-off
[side]
side=1
controller=human
{GOLD 180 140 100}
team_name=wesnothians
user_team_name= _ "Wesnothians"
{FLAG_VARIANT loyalist}
# wmllint: recognize Gweddry
{CHARACTER_STATS_GWEDDRY}
shroud=yes
fog=yes
[/side]
# wmllint: validate-on
[side]
side=2
controller=ai
recruit=Troll Whelp
{GOLD 55 70 80}
{INCOME 2 3 4}
team_name=monster
user_team_name= _ "Monsters"
type=Troll
id=Kabak
name= _ "Kabak"
canrecruit=yes
[ai]
aggression=1.0
grouping=no
passive_leader=yes
[/ai]
[/side]
[side]
side=3
controller=ai
recruit=Dwarvish Fighter,Dwarvish Thunderer,Dwarvish Scout
{GOLD 65 50 45}
{INCOME 6 4 4}
team_name=wesnothians
user_team_name= _ "Wesnothians"
{FLAG_VARIANT knalgan}
type=Dwarvish Steelclad
id=Knutan
name= _ "Knutan"
canrecruit=yes
shroud=yes
fog=yes
share_vision=none
[ai]
grouping=no
[goal]
[criteria]
side=2
[/criteria]
value=100
[/goal]
[goal]
[criteria]
side=4
[/criteria]
value=1
[/goal]
[/ai]
[/side]
[side]
side=4
controller=null
#ifndef EASY
recruit=Vampire Bat,Ghost,Skeleton,Ghoul,Revenant
#else
recruit=Vampire Bat,Ghost,Skeleton,Ghoul
#endif
{GOLD 140 185 230}
{INCOME 8 10 12}
team_name=undead
user_team_name= _ "Undead"
{FLAG_VARIANT undead}
no_leader=yes
hidden=yes
village_gold=3
village_support=2
[ai]
recruitment_pattern=fighter,scout
aggression=0.7
{NO_SCOUTS}
[goal]
[criteria]
side=1
[/criteria]
value=50
[/goal]
[goal]
[criteria]
side=2
[/criteria]
value=1
[/goal]
[goal]
[criteria]
side=3
[/criteria]
value=5
[/goal]
[/ai]
[/side]
{LIMIT_CONTEMPORANEOUS_RECRUITS 4 Revenant 1}
# Treasure chest
{PLACE_IMAGE items/chest.png 35 8}
# The signpost
{PLACE_IMAGE scenery/signpost.png 29 10}
[event]
name=prestart
[objectives]
side=1
[objective]
description= _ "Move Gweddry to the tunnel exit"
condition=win
[/objective]
[objective]
description= _ "Death of Gweddry"
condition=lose
[/objective]
[objective]
description= _ "Death of Dacyn"
condition=lose
[/objective]
{TURNS_RUN_OUT}
[gold_carryover]
bonus=yes
carryover_percentage=40
[/gold_carryover]
#ifndef HARD
[note]
description= _ "Get moving quickly."
[/note]
#endif
[/objectives]
[recall]
id=Dacyn
[/recall]
[/event]
[event]
name=start
[message]
speaker=Gweddry
message= _ "Where are we? I can’t see where we are going."
[/message]
[message]
speaker=Dacyn
message= _ "This is an old escape route for the outpost. Unfortunately these caves are currently inhabited by trolls, who are blocking our path through the tunnel."
[/message]
[scroll_to]
x,y=15,7
[/scroll_to]
[remove_shroud]
side=1
x,y=15,7
radius=1
[/remove_shroud]
[delay]
time=750
[/delay]
[scroll_to]
x,y=22,5
[/scroll_to]
[remove_shroud]
side=1
x,y=22,5
radius=1
[/remove_shroud]
[delay]
time=750
[/delay]
[scroll_to]
x,y=28,6
[/scroll_to]
[remove_shroud]
side=1
x,y=28,6
radius=1
[/remove_shroud]
[delay]
time=750
[/delay]
[scroll_to]
x,y=34,5
[/scroll_to]
[remove_shroud]
side=1
x,y=34,5
radius=1
[/remove_shroud]
[delay]
time=750
[/delay]
[message]
speaker=Dacyn
message= _ "We must make haste to escape before the undead catch up."
[/message]
[message]
speaker=Gweddry
message= _ "Wait, before we go anywhere — who were those undead?"
[/message]
[message]
speaker=Dacyn
message= _ "I will explain later. For now, suffice to say they are much too powerful for us; our only hope is to head north."
[/message]
[/event]
[event]
name=moveto
[filter]
x,y=29,10
side=1
[/filter]
[message]
speaker=unit
image=scenery/signpost.png
message= _ "TROL TREZZUR HOLE: KEEP OWT" # wmllint: no spellcheck
[/message]
[allow_undo][/allow_undo]
[/event]
# Find the dwarves
[event]
name=sighted,moveto
[filter]
side=3
[/filter]
[filter_second]
side=1
[/filter_second]
[remove_shroud]
side=1
x,y=8-30,2-10
[/remove_shroud]
[remove_shroud]
side=1
x,y=31-36,4-10
[/remove_shroud]
[remove_shroud]
side=1
x,y=37-38,4-5
[/remove_shroud]
[modify_side]
side=3
share_vision=all
[/modify_side]
[message]
speaker=unit
message= _ "Who goes there?"
[/message]
[message]
speaker=Gweddry
message= _ "We are soldiers of the king of Wesnoth. Will you help us fight these trolls?"
[/message]
[message]
speaker=unit
message= _ "Aye, we’ll help ye, for we have nae love for the trolls. Anyone attacked by them deserves some help, I think."
[/message]
[if]
{VARIABLE_CONDITIONAL undead boolean_equals yes}
[then]
[message]
speaker=Dacyn
message= _ "Thank you. Now, I invite you to join us. Undead have followed us into these caves, and they will kill you if you stay behind."
[/message]
[/then]
[else]
[message]
speaker=Dacyn
message= _ "Thank you. Now, I invite you to join us. Undead are in these lands, and they will find these caves."
[/message]
[/else]
[/if]
[message]
speaker=unit
message= _ "My clan ha’ lived in these caves for centuries. We’ll no’ be scattered now by a few undead."
[/message]
[message]
speaker=Dacyn
message= _ "Very well. The best of luck in your battle. Gweddry, we may be able to avoid the bulk of the trolls by going through the dwarves’ tunnel."
[/message]
[/event]
{HOLY_AMULET 12 2}
[event]
name=moveto
[filter]
x,y=35,8
side=1
[/filter]
[sound]
name=gold.ogg
[/sound]
[message]
speaker=unit
message= _ "It seems these trolls were hiding some gold. I think I can count fifty gold pieces!"
[/message]
[gold]
side=1
amount=50
[/gold]
[remove_item]
x,y=$x1,$y1
[/remove_item]
[/event]
# Mal-Bakral arrives
[event]
name=turn 6
{VARIABLE undead yes}
[terrain]
x=2,3,4,2
y=4,4,4,5
terrain=Uu^Ii
[/terrain]
[redraw][/redraw]
{GENERIC_UNIT 4 (Wraith) 2 5}
{GENERIC_UNIT 4 (Wraith) 4 5}
{GENERIC_UNIT 4 (Necrophage) 2 4}
{GENERIC_UNIT 4 (Necrophage) 4 4}
#ifdef HARD
{GENERIC_UNIT 4 (Bone Shooter) 3 5}
{GENERIC_UNIT 4 (Bone Shooter) 3 4}
#endif
[remove_shroud]
side=1
x,y=2-4,2-3
[/remove_shroud]
[lift_fog]
side=1
x,y=2-4,2-3
[/lift_fog]
[modify_side]
side=4
controller=ai
hidden=no
[/modify_side]
[unit]
type=Necromancer
id=Mal-Bakral
name= _ "Mal-Bakral"
side=4
canrecruit=yes
x,y=3,3
[/unit]
{INCIDENTAL_MUSIC knalgan_theme.ogg}
[message]
speaker=Mal-Bakral
message= _ "We have found you, fleshbag! Prepare to die!"
[/message]
[message]
speaker=Dacyn
message= _ "They follow us... we must get out of this tunnel. It looks like it is leading east. That is unfortunate, for it will take us beyond the borders of Wesnoth. But it is our only option."
[/message]
[objectives]
side=1
silent=yes
[objective]
description= _ "Move Gweddry to the tunnel exit"
condition=win
[/objective]
[objective]
description= _ "Death of Gweddry"
condition=lose
[/objective]
[objective]
description= _ "Death of Dacyn"
condition=lose
[/objective]
{TURNS_RUN_OUT}
[gold_carryover]
bonus=yes
carryover_percentage=40
[/gold_carryover]
[/objectives]
[/event]
[event]
name=moveto
[filter]
x,y=39,6
id=Gweddry
[/filter]
[message]
speaker=Gweddry
message= _ "We have reached the end of the tunnel. I see daylight above us!"
[/message]
{CLEAR_VARIABLE undead}
[endlevel]
result=victory
bonus=yes
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/event]
{EARLY_DEFEAT}
{HERODEATH_GWEDDRY}
{HERODEATH_DACYN}
[/scenario]