-
-
Notifications
You must be signed in to change notification settings - Fork 988
/
8_The_Dragon.cfg
500 lines (461 loc) · 14.9 KB
/
8_The_Dragon.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
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
#textdomain wesnoth-sof
[scenario]
name= _ "The Dragon"
id=8_The_Dragon
turns=unlimited
map_file=campaigns/Sceptre_of_Fire/maps/8_The_Dragon.map
next_scenario=9_Caverns_of_Flame
victory_when_enemies_defeated=no
{SCENARIO_MUSIC "knalgan_theme.ogg"}
{UNDERGROUND}
[time_area]
x=0-4, 0-3, 0-2,0-4,0-3, 0-2
y=0-5,6-10,11-14, 15, 16,17-24
{DEFAULT_SCHEDULE}
[/time_area]
[side]
type=Dwarvish Fighter
id=Rugnur
save_id=Rugnur
side=1
canrecruit=yes
controller=human
recruit=Dwarvish Fighter,Dwarvish Thunderer,Dwarvish Guardsman,Dwarvish Scout,Gryphon Rider
gold=200
shroud=yes
{FLAG_VARIANT knalgan}
team_name=dwarves
user_team_name= _ "Dwarves"
[/side]
[side]
type=Elvish Marshal
id=Crintil
name= _ "Crintil"
side=2
canrecruit=yes
controller=ai
recruit=Elvish Avenger,Elvish Marshal,Elvish Champion,Elvish Outrider,Dwarvish Thunderguard,Dwarvish Berserker,Dwarvish Steelclad
gold=1000
income=50
[ai]
aggression=1.0
caution=0.0
leader_value=0
village_value=0
recruitment_pattern=scout,fighter,fighter,mixed fighter
grouping=no
passive_leader=yes
[goal]
name=target
[criteria]
side=1
[/criteria]
value=2
[/goal]
[/ai]
team_name=elves
user_team_name= _ "Elves"
{FLAG_VARIANT wood-elvish}
[/side]
[side]
type=Fire Dragon
id=Khrakrahs
name= _ "Khrakrahs"
side=3
canrecruit=yes
controller=ai
{RECRUIT (Vampire Bat) (Vampire Bat,Blood Bat) (Vampire Bat,Blood Bat)}
{GOLD 200 300 400}
[ai]
recruitment_pattern=scout
aggression=0.9
leader_aggression=0.9
caution=0.1
grouping=offensive
[goal]
name=target
[criteria]
side=1
[/criteria]
value=2
[/goal]
[/ai]
team_name=khrakrahs
user_team_name= _ "Khrakrahs"
[/side]
#ifdef EASY
{LIMIT_CONTEMPORANEOUS_RECRUITS 3 (Vampire Bat) 9}
#endif
#ifdef NORMAL
{LIMIT_CONTEMPORANEOUS_RECRUITS 3 (Vampire Bat) 10}
{LIMIT_CONTEMPORANEOUS_RECRUITS 3 (Blood Bat) 1}
#endif
#ifdef HARD
{LIMIT_CONTEMPORANEOUS_RECRUITS 3 (Vampire Bat) 11}
{LIMIT_CONTEMPORANEOUS_RECRUITS 3 (Blood Bat) 3}
#endif
[story]
[part]
story= _ "Thus Alanin escaped from his elvish pursuers. But the dwarves were not so lucky. I would say that, perhaps, their betrayal of Durstorn was coming back to haunt them. For the section of the old eastern mines that they reached in their flight had long since become the lair of Khrakrahs... the dragon."
[/part]
[/story]
{SOF_TRACK {JOURNEY_08_NEW} }
{SOF_DEATHS}
[event]
name=prestart
{VARIABLE found_forge no}
[objectives]
side=1
[objective]
description= _ "Get all heroes to the end of the tunnel"
condition=win
[show_if]
{VARIABLE_CONDITIONAL found_forge boolean_equals no}
[have_unit]
# wmllint: recognize Thursagan
id=Thursagan
[/have_unit]
[/show_if]
[/objective]
[objective]
description= _ "Move Thursagan to the forge"
condition=win
[show_if]
{VARIABLE_CONDITIONAL found_forge boolean_equals yes}
[/show_if]
[/objective]
[objective]
description= _ "Defend Thursagan until the Sceptre of Fire is complete"
condition=win
[show_if]
{VARIABLE_CONDITIONAL found_forge boolean_equals yes}
[/show_if]
[/objective]
[objective]
description= _ "Survive until turns run out"
condition=win
show_turn_counter=yes
[show_if]
[not]
[have_unit]
id=Thursagan
[/have_unit]
[/not]
[/show_if]
[/objective]
[objective]
description= _ "Death of Rugnur"
condition=lose
[/objective]
[objective]
description= _ "Death of Krawg"
condition=lose
[/objective]
[objective]
description= _ "Death of Thursagan"
condition=lose
[show_if]
[have_unit]
id=Thursagan
[/have_unit]
[/show_if]
[/objective]
[objective]
description= _ "An enemy moves onto the forge"
condition=lose
[show_if]
[not]
[have_unit]
id=Thursagan
[/have_unit]
[/not]
[/show_if]
[/objective]
[gold_carryover]
carryover_percentage=0
[/gold_carryover]
[/objectives]
[/event]
#define RANDOM_MERCENARY TYPE X Y WML
{UNIT 2 {TYPE} {X} {Y} (
generate_name=yes
random_gender=yes
upkeep=full
{WML}
)}
#enddef
[event]
name=start
{MOVE_UNIT id=Rugnur 12 7}
[redraw]
side=1
[/redraw]
[recall]
id=Baglur
[/recall]
[recall]
id=Krawg
[/recall]
[recall]
id=Thursagan
[/recall]
# The enemy gets mercenaries; berserker traits defined to prevent them
# from being quick... except one on hard
{RANDOM_MERCENARY "Dwarvish Berserker" 1 13 (
[modifications]
{TRAIT_STRONG}
{TRAIT_HEALTHY}
[/modifications]
)}
{RANDOM_MERCENARY "Dwarvish Berserker" 1 14 (
[modifications]
{TRAIT_INTELLIGENT}
{TRAIT_STRONG}
[/modifications]
)}
{RANDOM_MERCENARY "Dwarvish Berserker" 1 15 (
[modifications]
{TRAIT_RESILIENT}
{TRAIT_HEALTHY}
[/modifications]
)}
#ifdef EASY
#else
{RANDOM_MERCENARY "Dwarvish Berserker" 1 16 (
[modifications]
{TRAIT_STRONG}
{TRAIT_RESILIENT}
[/modifications]
)}
#endif
#ifdef HARD
{RANDOM_MERCENARY "Dwarvish Berserker" 1 17 (
[modifications]
{TRAIT_QUICK}
{TRAIT_INTELLIGENT}
[/modifications]
)}
#endif
{RANDOM_MERCENARY "Dwarvish Lord" 2 12 ()}
{RANDOM_MERCENARY "Dwarvish Lord" 2 13 ()}
{RANDOM_MERCENARY "Dwarvish Lord" 2 14 ()}
{RANDOM_MERCENARY "Dwarvish Dragonguard" 2 15 ()}
{RANDOM_MERCENARY "Dwarvish Dragonguard" 2 16 ()}
[message]
speaker=Rugnur
message= _ "Well, Thursagan, we’ve reached the eastern mine, but the elves are hot on our trail. What do we do now?"
[/message]
[message]
speaker=Thursagan
message= _ "Well, we have two choices. We may either stand and fight, and assuredly die, or run as quickly as possible down this path into the depths of the cave, where we may find something that will help us. Also, remember, the elves can’t run as fast in caves as we can, so we may be able to get ahead of them and perhaps lay a trap."
[/message]
[message]
speaker=Krawg
#po: "Why don't we just surrender? All they want is that magic stone!"
message= _ "Wyy yoo no urrendrr? Alddey woont iz za wagic doun!" # wmllint: no spellcheck
[/message]
[message]
speaker=Rugnur
message= _ "If we give them the ruby, then what? They’ll probably kill us anyway. And, that ruby has the power to do great things, evil things. We can’t let it fall into the wrong hands."
[/message]
[message]
speaker=Thursagan
message= _ "Then we shall run. I suggest calling to arms every last dwarf we possibly can here. This might be the last chance we’ll get to do so."
[/message]
[if]
[have_unit]
id=Baglur
[/have_unit]
[then]
[message]
speaker=Baglur
message= _ "So we’re running away, eh? I dinna’ like that, but it seems it’s our only option."
[/message]
[message]
speaker=Rugnur
message= _ "If it makes you feel any better, we’ll probably die this way, too."
[/message]
[/then]
[/if]
[/event]
[event]
# integrated the sighted events with moveto and [filter_vision]
name=sighted,moveto
[filter]
type=Fire Dragon
[filter_vision]
side=1
[/filter_vision]
[/filter]
[redraw]
side=1
[/redraw]
[scroll_to]
x,y=$x1,$y1
[/scroll_to]
[message]
speaker=Rugnur
message= _ "Look, there’s a dragon in these caves!"
[/message]
[message]
speaker=Khrakrahs
message= _ "Ah, fresh meat!"
[/message]
[message]
speaker=Thursagan
message= _ "And which of the great dragons are you?"
[/message]
[message]
speaker=Khrakrahs
# wmllint: local spelling Shek'kahan
message= _ "I am Khrakrahs, greatest dragon of all time! Haldric killed Shek’kahan my brother, but he was weaker than me, and you will not find me so easy to defeat. Now get out of my volcano!"
[/message]
[message]
speaker=Rugnur
message= _ "I’d rather face one powerful dragon than hundreds of mighty elves. Continue!"
[/message]
[/event]
[event]
name=sighted,moveto
[filter]
race=dwarf
side=2
[filter_vision]
side=1
[/filter_vision]
[/filter]
[redraw]
side=1
[/redraw]
[scroll_to]
x,y=$x1,$y1
[/scroll_to]
[message]
speaker=Thursagan
message= _ "What’s this? A dwarf fighting against us with the elves?!"
[/message]
[message]
speaker=Baglur
# wmllint: local spelling Surghan
message= _ "It must be one of those Surghan mercenaries. I’ll bet those elves have hired more of them. That’s bad news for us, for they’ll go as fast in caves as we do."
[/message]
[/event]
[item]
x,y=16,25
image=items/altar.png
[/item]
[event]
name=moveto
[filter]
x,y=16,25
side=1
[/filter]
[if]
[variable]
name=unit.id
equals=Krawg
[/variable]
[then]
[message]
speaker=Krawg
#po: "(excited bird cry) Look! Forge here!"
message= _ "Raaaawww! Loook! Forge heeeere!" # wmllint: no spellcheck
[/message]
[message]
speaker=Thursagan
message= _ "It looks like a forge, heated by the lava. It looks magic, and it looks hot enough to make the Sceptre."
[/message]
[/then]
[else]
[message]
speaker=unit
message= _ "Look, I’ve found something here. It looks like a forge, heated by the lava. It looks magic, and it looks hot enough to make the sceptre."
[/message]
[/else]
[/if]
[message]
speaker=Khrakrahs
message= _ "That pretty metal rock is mine! Get away from it!"
[/message]
{VARIABLE found_forge yes}
[show_objectives]
[/show_objectives]
[/event]
[event]
name=moveto
[filter]
x,y=16,25
id=Thursagan
[/filter]
[message]
speaker=Thursagan
message= _ "This forge will work perfectly. Give me a day or two here, and I can reforge the Sceptre of Fire to fulfill its purpose."
[/message]
[modify_turns]
value="$($turn_number + 9)"
[/modify_turns]
[store_unit]
[filter]
id=Thursagan
[/filter]
variable=thur
kill=yes
[/store_unit]
{CLEAR_VARIABLE found_forge}
[show_objectives]
[/show_objectives]
[event]
name=moveto
[filter]
x,y=16,25
side=2,3
[/filter]
[message]
speaker=narrator
caption= _ "Thursagan"
image=portraits/thursagan.png
message= _ "You fool, you let the enemy get at me when I was unarmed!"
[/message]
[message]
speaker=narrator
caption= _ "Thursagan"
image=portraits/thursagan.png
message= _ "Ayahahh..." # wmllint: no spellcheck
sound=dwarf-die-1.ogg
[/message]
[endlevel]
result=defeat
[/endlevel]
[/event]
[event]
name=time over
[unstore_unit]
variable=thur
find_vacant=yes
[/unstore_unit]
{CLEAR_VARIABLE thur}
[object]
id=sceptre of fire
silent=yes
duration=forever
[filter]
id=Thursagan
[/filter]
{SCEPTRE_OF_FIRE_EFFECT}
[/object]
[message]
speaker=Thursagan
message= _ "I have completed my work. Now it is truly the Sceptre of Fire, a powerful magical artifact."
[/message]
[message]
speaker=Rugnur
message= _ "Good. Now, let’s get out of this cave, before the elves, dwarves or bats kill us!"
[/message]
[endlevel]
result=victory
bonus=no
{NEW_GOLD_CARRYOVER 0}
[/endlevel]
[/event]
[/event]
[/scenario]