/
17a_The_Dragon.cfg
579 lines (518 loc) · 15.1 KB
/
17a_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
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
#textdomain wesnoth-trow
[scenario]
id=17a_The_Dragon
name= _ "The Dragon"
next_scenario=16_The_Kalian
victory_when_enemies_defeated=no
map_file=17a_The_Dragon.map
{TURNS 33 30 27}
{DEFAULT_SCHEDULE}
{SCENARIO_MUSIC wanderer.ogg}
{EXTRA_SCENARIO_MUSIC knalgan_theme.ogg}
{EXTRA_SCENARIO_MUSIC suspense.ogg}
# No story
{TROW_GC_TRACK {JOURNEY_17A_NEW} }
{TROW_DEATHS}
[side]
type=Noble Commander
id=Prince Haldric
name= _ "Prince Haldric"
unrenamable=yes
side=1
canrecruit=yes
{GOLD 270 220 170}
controller=human
team_name=Haldric
user_team_name=_"Refugees"
{FLAG_VARIANT loyalist}
[/side]
{STARTING_VILLAGES 1 {ON_DIFFICULTY 7 5 3}}
[side]
type=Saurian Flanker
id=Irix
name= _ "Irix"
side=2
canrecruit=yes
{GOLD 80 100 120}
{INCOME 3 6 9}
team_name=Liz
user_team_name=_"Saurians"
#ifdef EASY
recruit=Saurian Skirmisher, Mudcrawler, Giant Mudcrawler, Vampire Bat,Saurian Augur
#else
recruit=Saurian Skirmisher, Mudcrawler, Giant Mudcrawler, Saurian Ambusher, Vampire Bat,Saurian Augur,Saurian Oracle,Saurian Soothsayer
#endif
[ai]
recruitment_pattern=scout,archer,scout,scout,healer
[/ai]
[ai]
[goal]
name=protect_location
[criteria]
x,y=20,23
[/criteria]
protect_radius=12
value=10
[/goal]
[/ai]
[/side]
{STARTING_VILLAGES 2 {ON_DIFFICULTY 6 8 10}}
[side]
type=Saurian Flanker
id=Vriss
name= _ "Vriss"
side=3
canrecruit=yes
{GOLD 80 100 120}
{INCOME 3 6 9}
team_name=Liz
user_team_name=_"Saurians"
#ifdef EASY
recruit=Saurian Skirmisher, Mudcrawler, Giant Mudcrawler, Vampire Bat,Saurian Augur
#else
recruit=Saurian Skirmisher, Mudcrawler, Giant Mudcrawler, Saurian Ambusher, Vampire Bat,Saurian Augur,Saurian Oracle,Saurian Soothsayer
#endif
[ai]
recruitment_pattern=scout,archer,scout,scout,healer
[/ai]
[ai]
[goal]
name=protect_location
[criteria]
x,y=20,23
[/criteria]
protect_radius=12
value=10
[/goal]
[/ai]
[/side]
{STARTING_VILLAGES 3 {ON_DIFFICULTY 6 8 10}}
[side]
type=Saurian Flanker
id=Axiz
name= _ "Axiz"
side=4
canrecruit=yes
{GOLD 80 100 120}
{INCOME 3 6 9}
team_name=Liz
user_team_name=_"Saurians"
#ifdef EASY
recruit=Saurian Skirmisher, Mudcrawler, Giant Mudcrawler, Vampire Bat,Saurian Augur
#else
recruit=Saurian Skirmisher, Mudcrawler, Giant Mudcrawler, Saurian Ambusher, Vampire Bat,Saurian Augur,Saurian Oracle,Saurian Soothsayer
#endif
[ai]
recruitment_pattern=scout,archer,scout,scout,healer
[/ai]
[ai]
[goal]
name=protect_location
[criteria]
x,y=20,23
[/criteria]
protect_radius=12
value=10
[/goal]
[/ai]
[/side]
{STARTING_VILLAGES 4 {ON_DIFFICULTY 6 8 10}}
[side]
type=Saurian Flanker
id=Satras
name= _ "Satras"
side=5
canrecruit=yes
{GOLD 80 100 120}
{INCOME 3 6 9}
team_name=Liz
user_team_name=_"Saurians"
#ifdef EASY
recruit=Saurian Skirmisher, Mudcrawler, Giant Mudcrawler, Vampire Bat,Saurian Augur
#else
recruit=Saurian Skirmisher, Mudcrawler, Giant Mudcrawler, Saurian Ambusher, Vampire Bat,Saurian Augur,Saurian Oracle,Saurian Soothsayer
#endif
[ai]
recruitment_pattern=scout,archer,scout,scout,healer
[goal]
name=target
[criteria]
id=Prince Haldric
[/criteria]
value={ON_DIFFICULTY 9 12 15}
[/goal]
[/ai]
[/side]
[side]
side=6
no_leader=yes
team_name=Liz
hidden=yes
[ai]
village_value=0
[/ai]
[/side]
{STARTING_VILLAGES 5 {ON_DIFFICULTY 6 8 10}}
{campaigns/The_Rise_Of_Wesnoth/utils/trow-nlmsg.cfg}
[event]
name=prestart
{PLACE_IMAGE (scenery/mine-abandoned.png) 20 27}
[recall]
id=Lady Jessene
[/recall]
[recall]
id=Burin the Lost
[/recall]
[recall]
id=Sir Ruddry
[/recall]
[recall]
id=Sir Ladoc
[/recall]
[recall]
id=Minister Edren
[/recall]
[set_variable]
name=dragon_awake
value=0
[/set_variable]
[set_variable]
name=got_treasure
value=0
[/set_variable]
[set_variable]
name=got_enemies
value=0
[/set_variable]
[set_variable]
name=dragon_dead
value=0
[/set_variable]
#ifdef EASY
[terrain]
x,y=12,8
terrain=Ce
[/terrain]
#endif
[objectives]
side=1
[objective]
description= _ "Slay the Dragon"
condition=win
[/objective]
[objective]
{BONUS_OBJECTIVE_CAPTION}
description= _ "Slay the Dragon and defeat all enemy leaders"+{EARLY_FINISH_BONUS_FOOTNOTE}
condition=win
[/objective]
[objective]
description= _ "Death of Prince Haldric"
condition=lose
[/objective]
[objective]
description= _ "Death of Lady Jessene"
condition=lose
[/objective]
{TURNS_RUN_OUT}
[gold_carryover]
carryover_percentage=40
[/gold_carryover]
[/objectives]
[/event]
[event]
name=start
[message]
speaker=narrator
message= _ "After some days of travel Haldric finds himself confronted by a vast expanse of swamp. A small island with a mountain dominates the view. That can only be the home of the dragon."
image=wesnoth-icon.png
[/message]
[scroll_to]
x,y=20,27
[/scroll_to]
[delay]
time=1000
[/delay]
[message]
speaker=Burin the Lost
message= _ "Flies, flies, everywhere! Ack!"
image=portraits/burin-annoyed.webp
[/message]
[message]
speaker=Prince Haldric
# wmllint: local spelling Dragonbane
message= _ "‘Prince Haldric the Dragonbane’ sounds rather nice."
[/message]
[message]
speaker=Lady Jessene
message= _ "We’ll see..."
[/message]
[/event]
[event]
name=victory
[message]
speaker=Prince Haldric
message= _ "I’m glad that’s over. The elves certainly aren’t taking it easy on us. It’s a miracle any of us are alive at all."
[/message]
[message]
speaker=Lady Jessene
message= _ "I’m still not calling you ‘the Dragonbane’."
[/message]
{VARIABLE_OP num_done add 1}
[set_variable]
name=the_dragon
value=1
[/set_variable]
[set_variable]
name=last_done
value="Dragon"
[/set_variable]
{CLEAR_VARIABLE dragon_awake}
{CLEAR_VARIABLE got_treasure}
{CLEAR_VARIABLE got_enemies}
{CLEAR_VARIABLE dragon_dead}
[/event]
[event]
name=die
first_time_only=no
[filter]
type=Giant Mudcrawler
[/filter]
{LOYAL_UNIT 2 (Mudcrawler) ($x1) ($y1)}
{LOYAL_UNIT 3 (Mudcrawler) ($x1) ($y1)}
[/event]
[event]
name=die
[filter]
type=Giant Mudcrawler
[/filter]
[message]
speaker=Prince Haldric
message= _ "Watch for the big mudcrawlers. They divide when you kill them."
image=portraits/haldric-mad.webp
[/message]
[/event]
#define GOLD_TO_BADDIES
[gold]
side=2
amount={ON_DIFFICULTY 30 35 40}
[/gold]
[gold]
side=3
amount={ON_DIFFICULTY 30 35 40}
[/gold]
[gold]
side=4
amount={ON_DIFFICULTY 30 35 40}
[/gold]
[gold]
side=5
amount={ON_DIFFICULTY 40 50 60}
[/gold]
#enddef
[event]
name=moveto
first_time_only=no
[filter]
side=1
x=12-26
y=24-30
[/filter]
[if]
[variable]
name=dragon_awake
numerical_equals=0
[/variable]
[then]
{NAMED_LOYAL_UNIT 6 (Fire Dragon) 20 27 ("Shek'kahan") ( _ "Shek’kahan")}
[set_variable]
name=dragon_awake
value=1
[/set_variable]
[message]
speaker="Shek'kahan"
message= _ "It is unwise to trifle with dragons, boy!"
[/message]
[message]
speaker=Prince Haldric
message= _ "We shall see."
image=portraits/haldric-mad.webp
[/message]
{GOLD_TO_BADDIES}
[/then]
[else]
[allow_undo]
[/allow_undo]
[/else]
[/if]
[/event]
[event]
name={ON_DIFFICULTY (turn 17) (turn 16) (turn 15)}
[if]
[variable]
name=dragon_awake
numerical_equals=0
[/variable]
[then]
{NAMED_LOYAL_UNIT 6 (Fire Dragon) 20 27 ("Shek'kahan") ( _ "Shek’kahan")}
[set_variable]
name=dragon_awake
value=1
[/set_variable]
[message]
speaker="Shek'kahan"
message= _ "Who dares disturb Shek’kahan the Terrible?"
[/message]
[message]
speaker=Prince Haldric
message= _ "I do, you fiend!"
image=portraits/haldric-mad.webp
[/message]
{GOLD_TO_BADDIES}
[/then]
[/if]
[/event]
[event]
name=moveto
[filter]
side=1
x=20
y=27
[/filter]
{LOOT {ON_DIFFICULTY 225 200 175} 1}
[set_variable]
name=got_treasure
value=1
[/set_variable]
[/event]
[event]
name=enemies defeated
[if]
[variable]
name=dragon_dead
numerical_equals=0
[/variable]
[then]
[message]
speaker=Lady Jessene
message= _ "We still have to slay the dragon!"
[/message]
[/then]
[else]
[if]
[variable]
name=got_treasure
numerical_equals=0
[/variable]
[then]
[message]
speaker=Prince Haldric
message= _ "The dragon’s cave has yielded some treasure!"
[/message]
{LOOT {ON_DIFFICULTY 225 200 175} 1}
[/then]
[/if]
[endlevel]
result=victory
bonus=yes
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/else]
[/if]
[set_variable]
name=got_enemies
value=1
[/set_variable]
[/event]
[event]
name=last breath
[filter]
id="Shek'kahan"
[/filter]
[message]
speaker="Shek'kahan"
message= _ "No!"
[/message]
[set_variable]
name=dragon_dead
value=1
[/set_variable]
[if]
[variable]
name=got_enemies
numerical_equals=0
[/variable]
[then]
[message]
speaker=Prince Haldric
message= _ "We’ve slain the dragon: "
image=portraits/haldric-mad.png
[option]
label= _ "Let’s get out of here!"
[command]
[endlevel]
result=victory
bonus=no
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/command]
[/option]
[option]
label= _ "Let’s finish off the rest of these monsters!"
[/option]
[/message]
[/then]
[else]
[if]
[variable]
name=got_treasure
numerical_equals=0
[/variable]
[then]
[message]
speaker=Prince Haldric
message= _ "The dragon’s cave has yielded some treasure!"
[/message]
{LOOT {ON_DIFFICULTY 225 200 175} 1}
[/then]
[/if]
[endlevel]
result=victory
bonus=yes
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/else]
[/if]
[/event]
[event]
name=time over
[if]
[variable]
name=dragon_dead
numerical_equals=0
[/variable]
[then]
[message]
speaker=Prince Haldric
message= _ "More saurians are arriving. They’ve surrounded us! We’re doomed."
image=portraits/haldric-surprised.webp
[/message]
[/then]
[else]
[message]
speaker=Lady Jessene
message= _ "We already killed the dragon. We really don’t need to be spending this much time chasing down the rest of these lizards."
[/message]
[message]
speaker=Prince Haldric
message= _ "You’re right, you’re right. Let’s head back."
[/message]
[endlevel]
result=victory
bonus=yes
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/else]
[/if]
[/event]
[/scenario]
#undef GOLD_TO_BADDIES