-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
14_Hope_or_Hostility.cfg
492 lines (477 loc) · 16.1 KB
/
14_Hope_or_Hostility.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
#textdomain wesnoth-Dawn_of_Thunder
[scenario]
id=14_Hope_or_Hostility
next_scenario=15_Wild_Steppe
name= _ "Hope or Hostility"
map_data="{~add-ons/dawn_of_thunder/maps/14_Hope_or_Hostility.map}"
victory_when_enemies_defeated=no
turns=-1
{DEFAULT_SCHEDULE}
{SCENARIO_MUSIC heroes_rite.ogg}
{EXTRA_SCENARIO_MUSIC legends_of_the_north.ogg}
{EXTRA_SCENARIO_MUSIC northern_mountains.ogg}
{EXTRA_SCENARIO_MUSIC weight_of_revenge.ogg}
{STARTING_VILLAGES_ALL 3}
[story]
[part]
story= _ "And so they followed the stranger who led them through countless valleys always along secret paths, with the howling of a dozen wolves behind them and the cold harsh wind blowing in their faces. On the second day of march, their guide, who didn't say much until now, decided to tell the group a bit more about his people.
The stranger revealed himself as Smilvolf, nephew to the chieftain Ungus, leader of one of the biggest Northguard clans in the Heart mountains. A few decades ago there were various other clans scattered through the mountain ranges, but Ungus united most of the under his banner in a long and bloody war.
Nearly all clans had pledged allegiance to him and the few who hadn't paid attention to stay on good terms with the Ungus. The Warlord held the clans united through an, although benevolent in good times, harsh and bloody reign in case of disobedience. The community was driven very much by honor and strength and as such most disputes were settled though trial by combat.
That, explained Smilvolf, was exactly what would await Fiannon. If he wanted to convince the Northguard to help him in his reconquest of Wesmere he would have to fight a champion, chosen by Ungus himself, to prove his worthiness."
background=story/coldmountain.png
[/part]
[part]
story= _ "After a few days of march, after walking through a valley, more elongated than the best elvish scout could ever see, they finally arrived at the home of the Northguards. Protected on two sides from mountain walls on the others from wooden walls, nested into the mountainside there laid something that resembled more a big encampment than a village.
When they arrived they were greeted generously and offered a safe space to sleep. They would receive an audience with Chieftain Ungus the next morning. While most were happy that they could finally rest, Fiannon couldn't sleep..."
background=story/map3.png
[/part]
[/story]
{BIGMAP_HOPE_OR_HOSTILITY}
[side]
side=1
controller=human
team_name=1
user_team_name= _ "Aethen's representants"
type=Elvish Thunderer
id=Fiannon
name= _ "Fiannon"
profile=portraits/Fiannon.png
canrecruit=yes
unrenamable=yes
recruit=""
extra_recruit=Elvish Fighter,Elvish Archer,Elvish Shaman,Elvish Scout
{GOLD 180 150 120}
{INCOME 2 0 -2}
{FLAG_VARIANT sylvan}
[/side]
[side]
side=2
controller=ai
team_name=2
user_team_name= _ "Northguards"
color=blue
no_leader=yes
{GOLD 0 0 0 }
{INCOME 0 0 0 }
{FLAG_VARIANT6 ragged}
[ai]
aggression=2.0
[goal]
[criteria] #NOTE: this is a SUF, because we're targeting a unit
side=1
canrecruit=yes
[/criteria]
value=2
[/goal]
[/ai]
[/side]
[side]
side=3
controller=ai
team_name=1
user_team_name= _ "Northguards"
name="Ungus"
id=Ungus
profile="portraits/Ungus.png"
type=Northguard Savageheart
x,y=11,3
color="4"
{GOLD 0 0 0 }
{INCOME 0 0 0 }
{FLAG_VARIANT6 ragged}
[unit]
side=3
type="Northguard Wildheart"
x,y=12,3
name=Leltalf
id=Leltalf
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_HERO}
[/unit]
[unit]
side=3
type="Northguard Deathblade"
x,y=7,4
id=deathblade
# wmllint: local spelling Vautheim
name=Vautheim
profile="portraits/Vautheim.png"
[modifications]
{TRAIT_LOYAL}
[object]
[effect]
apply_to=attack
increase_attacks=1
increase_damage=1
[/effect]
[effect]
apply_to=hitpoints
increase=12
heal_full=yes
[/effect]
[/object]
[/modifications]
{IS_HERO}
[/unit]
[unit]
side=3
type="Northguard Nightshaft"
x,y=17,4
name="Huth"
id=nightshaft
profile="portraits/Huth.png"
[modifications]
{TRAIT_LOYAL}
[object]
[effect]
apply_to=attack
name=bow
increase_attacks=2
increase_damage=-1
[/effect]
[effect]
apply_to=hitpoints
increase=12
heal_full=yes
[/effect]
[/object]
[/modifications]
{IS_HERO}
[/unit]
{NOTRAIT_UNIT 3 "Northguard Archer" 16 7}
{NOTRAIT_UNIT 3 "Northguard Silverbow" 13 3}
{NOTRAIT_UNIT 3 "Northguard Silverbow" 13 8}
{NOTRAIT_UNIT 3 "Northguard Silverbow" 9 8}
{NOTRAIT_UNIT 3 "Northguard Silverbow" 2 6}
{NOTRAIT_UNIT 3 "Northguard Warrior" 8 8}
{NOTRAIT_UNIT 3 "Northguard Warrior" 9 3}
{NOTRAIT_UNIT 3 "Northguard Warrior" 14 8}
{NOTRAIT_UNIT 3 "Northguard Archer" 19 6}
{NOTRAIT_UNIT 3 "Northguard Archer" 4 5}
[/side]
[event]
name=prestart
[recall]
id=Thindromli
x,y=12,6
[/recall]
[recall]
id=Naia
x,y=10,6
[/recall]
[recall]
id=Alasar
x,y=15,4
[/recall]
[recall]
id=Limwen
x,y=15,6
[/recall]
[recall]
id=Smilvolf
x,y=10,3
[/recall]
{MODIFY_UNIT id=Smilvolf side 3}
{VARIABLE scenario_number 14}
{BLACK_SCREEN}
{LOCK_VIEW}
{HIDE_UNIT}
[/event]
[event]
name=start
[delay]
time=750
[/delay]
# Trailing space is needed at the end to prevent the cutoff that
# happens with italicized GUI2 text
[interim_text]
text= _ "<i>14. Hope or Hostility </i>"
[/interim_text]
[clear_print]
[/clear_print]
{RESET_SCREEN}
{UNHIDE_UNIT}
[scroll_to_unit]
id=Ungus
[/scroll_to_unit]
[message]
speaker=Ungus
message= _ "Greetings Stranger! My nephew reported your request to me. I have to say that I am impressed. Never before an elf has ventured so far into the Heart Mountains.
Although the way up here is long, it is not enough to prove your worthiness to me. You will have to fight to prove yourself! Because I am Generous though I will let you choose between two of my best Fighters."
[/message]
[modify_unit]
[filter]
id=Ungus
[/filter]
facing=sw
[/modify_unit]
[redraw][/redraw]
[message]
image="portraits/Vautheim.png"
speaker=Ungus
second_image="portraits/Ungus.png"
second_mirror=yes
# wmllint: local spelling Greywolves
message= _ "...You can either choose to fight Vautheim, from the clan of the Greywolves, one of the most cunning swordsmen i've ever seen..."
[/message]
[scroll_to_unit]
id=deathblade
highlight=yes
[/scroll_to_unit]
[redraw][/redraw]
[delay]
time=1000
[/delay]
[scroll_to_unit]
id=Ungus
[/scroll_to_unit]
[modify_unit]
[filter]
id=Ungus
[/filter]
facing=se
[/modify_unit]
[redraw][/redraw]
[message]
image="portraits/Ungus.png"
# wmllint: local spelling Huth
second_image="portraits/Huth.png" # (putting this in the second_image key automatically implies ~RIGHT())
speaker=Ungus
message= _ "...Or you can fight Huth, from the clan of the Bloodrocs, I once heard he killed 3 goblins with one shot."
[/message]
[scroll_to_unit]
id=nightshaft
highlight=yes
[/scroll_to_unit]
[redraw][/redraw]
[delay]
time=1000
[/delay]
[scroll_to_unit]
id=Ungus
[/scroll_to_unit]
[message]
speaker=Ungus
message= _ "Have you made your choice?"
#wmllint: recognize champion
[option]
message= _ "I want to fight Vautheim, the Deathblade!"
[command]
#we do the following code twice because it is slightly different for each champion
{MODIFY_UNIT id=deathblade id champion}
[move_unit]
id=champion
to_x=6,6,8,9,9,11
to_y=4,5,6,6,5,4
[/move_unit]
[message]
speaker=champion
message= _ "I will fight for you my liege..."
[/message]
[move_unit]
id=champion
to_x=11
to_y=5
[/move_unit]
[message]
speaker=champion
message= _ "...and feed your guts to the Wolves!"
[/message]
[/command]
[/option]
[option]
message= _ "I want to fight Huth, the Nightshaft!"
[command]
#we do the following code twice because it is slightly different for each champion
{MODIFY_UNIT id=nightshaft id champion}
[move_unit]
id=champion
to_x=17,15,14,11,9,9,11
to_y=6,7,6,8,7,5,4
[/move_unit]
[message]
speaker=champion
message= _ "I will fight for you my liege..."
[/message]
[move_unit]
id=champion
to_x=11
to_y=5
[/move_unit]
[message]
speaker=champion
message= _ "...and feed your guts to the Crows!"
[/message]
[/command]
[/option]
[/message]
{MODIFY_UNIT id=champion side 2}
[unit_overlay]
id=champion
image=misc/boss-icon.png
[/unit_overlay]
[message]
speaker=Ungus
message= _ "You'll have to fight alone, elf. Would the mage and the dwarf please leave the fighting ground!"
[/message]
[move_unit]
id=Naia
to_x=8
to_y=7
[/move_unit]
[move_unit]
id=Thindromli
to_x=14
to_y=7
[/move_unit]
[terrain_mask]
x,y=1,1
mask="{~add-ons/dawn_of_thunder/maps/14_Hope_or_Hostility.mask}"
[/terrain_mask]
{BOSSFIGHT_ANIMATION}
[objectives]
side=1
[objective]
description= _ "Win the Duel and have the Northguard join you"
condition=win
[/objective]
[objective]
description= _ "Death of Fiannon"
condition=lose
[/objective]
[gold_carryover]
bonus=yes
carryover_percentage=40
[/gold_carryover]
[/objectives]
[/event]
[event]
name=turn refresh
first_time_only=no
[store_unit]
[filter]
side=1,3
[not]
id=Fiannon
[/not]
[/filter]
variable=watchers
kill=no
[/store_unit]
{FOREACH watchers i}
{MODIFY_UNIT id=$watchers[$i].id moves 0}
{NEXT i}
[/event]
[event]
name=last breath
[filter]
id=champion
[/filter]
[message]
speaker=champion
message= _ "We are not done yet!
By the Power of my ancestors!"
[/message]
[if]
[variable]
name=unit.type
equals="Northguard Deathblade"
[/variable]
[then]
[kill]
id=champion
animate=no
[/kill]
[unit]
id=champion_new
type=Great Wolf
x,y=$x1,$y1
profile="portraits/wolf.png"
side=2
[/unit]
[unit_overlay]
id=champion_new
image=misc/boss-icon.png
[/unit_overlay]
[message]
speaker=champion_new
message= _ "GGGRRRRGHHH" #wmllint: no spellcheck
[/message]
[/then]
[/if]
[if]
[variable]
name=unit.type
equals="Northguard Nightshaft"
[/variable]
[then]
[kill]
id=champion
animate=no
[/kill]
[unit]
id=champion_new
type=Roc
x,y=$x1,$y1
profile="portraits/roc.png"
side=2
[/unit]
[unit_overlay]
id=champion_new
image=misc/boss-icon.png
[/unit_overlay]
[message]
speaker=champion_new
message= _ "KRYYYYAAAAHHHHHH" #wmllint: no spellcheck
[/message]
[/then]
[/if]
[/event]
[event]
name=last breath
[filter]
id=champion_new
[/filter]
[message]
speaker=Ungus
message= _ "Well, you have proven your strength, elf! The Northguard will help you into your battle. Let's hope there is a lot of honour to gain.
I will send a division of my best men with you, under the leadership of Smilvolf. They will only follow his orders."
[/message]
{MODIFY_UNIT id=Smilvolf canrecruit yes}
{MODIFY_UNIT id=Smilvolf extra_recruit ("Northguard Fighter, Northguard Archer, Wolf, RocSmall")}
{MODIFY_UNIT id=Smilvolf side 1}
{UNMAKE_HERO Smilvolf}
[delay]
time=750
[/delay]
{BLACK_SCREEN}
{LOCK_VIEW}
{HIDE_UNIT}
[delay]
time=750
[/delay]
# Trailing space is needed at the end to prevent the cutoff that
# happens with italicized GUI2 text
[interim_text]
text= _ "<i>End of Chapter II </i>"
[/interim_text]
[delay]
time=750
[/delay]
[clear_print]
[/clear_print]
{RESET_SCREEN}
{UNHIDE_UNIT}
{CLEAR_VARIABLE watchers}
[endlevel]
result=victory
bonus=no
linger_mode=yes
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/event]
{GLOBAL_EVENTS}
{DEATHS}
[/scenario]