/
16_Hasty_Alliance.cfg
429 lines (376 loc) · 11.1 KB
/
16_Hasty_Alliance.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
#textdomain wesnoth-httt
[scenario]
id=16_Hasty_Alliance
name= _ "Hasty Alliance"
map_file=16_Hasty_Alliance.map
{TURNS 26 24 22}
{DEEP_UNDERGROUND}
next_scenario=17_Sceptre_of_Fire
{SCENARIO_MUSIC "underground.ogg"} # More in start event
[event]
name=prestart
[objectives]
side=1
[objective]
description= _ "Defeat the enemy leader"
condition=win
[/objective]
[objective]
description= _ "Death of Konrad"
condition=lose
[/objective]
[objective]
description= _ "Death of Delfador"
condition=lose
[/objective]
[objective]
description= _ "Death of Li’sar"
condition=lose
[/objective]
[objective]
description= _ "Death of Kalenz"
condition=lose
[/objective]
{TURNS_RUN_OUT}
[gold_carryover]
bonus=yes
carryover_percentage=40
[/gold_carryover]
[/objectives]
#hide Li'sar until she arrives
[hide_unit]
x=12
y=18
[/hide_unit]
[/event]
[story]
[part]
story= _ "The last dwarvish settlement far behind them, the party descended into the deepest parts of the hewn caverns. Except for disturbances caused by the occasional goblin, the air in the lower passages was still and tomblike."
show_title=no
[/part]
[part]
story= _ "Stepping through a low corridor, Konrad and Delfador emerged from the maze-like catacombs into icy blackness. Darkness seemed to crush them. Lights flickered and went out. Even the staff of the elder mage struggled to produce enough light to see by."
show_title=no
[/part]
[part]
story= _ "A cavernous void stretched out ahead, across which no ceiling or walls were visible. Wind howled and whipped over narrow ledges bridging the depths, almost as if animated by powerful nearby magic... and newly awoken evil."
show_title=no
[/part]
[/story]
{HTTT_TRACK {JOURNEY_16_NEW} }
[side]
type=Commander
id=Konrad
name= _ "Konrad"
unrenamable=yes
profile=portraits/konrad-human.png
side=1
canrecruit=yes
team_name=elves
user_team_name=_"Humans"
controller=human
{GOLD 200 175 150}
{INCOME 5 4 3}
shroud=yes
{FLAG_VARIANT long}
[/side]
[side]
side=2
canrecruit=yes
controller=ai
type=Princess
id="Li'sar"
name= _ "Li’sar"
profile=portraits/lisar.png
facing=sw
[ai]
recruitment_pattern=fighter,fighter,fighter,fighter,mixed fighter
[/ai]
recruit=Swordsman,Heavy Infantryman,Pikeman,Red Mage,Ogre
{GOLD 350 325 300}
team_name=elves
user_team_name=_"Humans"
experience=62
{FLAG_VARIANT loyalist}
[/side]
# Ensure that Li'sar can't get herself killed during the first couple of
# turns when the player can't necessarily yet be able to protect her.
{FORCE_CHANCE_TO_HIT side=3 id="Li'sar" 0 (
[variable]
name=turn_number
less_than=5
[/variable]
)}
[side]
type=Troll Warrior
id=Haaf-Garga
name= _ "Haaf-Garga"
side=3
canrecruit=yes
controller=ai
#ifdef EASY
recruit=Troll,Troll Whelp,Vampire Bat,Wolf Rider
#else
recruit=Troll,Troll Warrior,Blood Bat,Wolf Rider
#endif
{GOLD 100 150 200}
{INCOME 3 6 9}
team_name=evil
user_team_name=_"Evil"
[/side]
[event]
name=prestart
{NEED_DELFADOR placement=leader}
{NEED_KALENZ placement=leader}
{NEED_LISAR (x,y=recall,recall)}
{STORE_LISAR}
[/event]
[event]
name=start
[message]
speaker=Konrad
message= _ "Where are we? Which way now? I am tired of this darkness!"
[/message]
[message]
speaker=Delfador
{DELFADOR_MENTORING}
message= _ "I am not sure of the way. Let me think for a moment."
[/message]
#Li'sar arrives
[move_unit_fake]
type=Princess
side=2
x=14,12
y=20,18
[/move_unit_fake]
[unhide_unit]
[/unhide_unit]
[move_unit_fake]
type=Royal Guard
side=2
x=14,11
y=20,18
[/move_unit_fake]
[unit]
type=Royal Guard
generate_name=yes
side=2
x=11
y=18
facing=sw
[modifications]
{TRAIT_LOYAL}
[/modifications]
[/unit]
[redraw]
[/redraw]
[move_unit_fake]
type=Royal Guard
side=2
x=14,11
y=20,19
[/move_unit_fake]
[unit]
type=Royal Guard
generate_name=yes
side=2
x=11
y=19
facing=sw
[modifications]
{TRAIT_LOYAL}
[/modifications]
[/unit]
[redraw]
[/redraw]
[message]
speaker="Li'sar"
{LISAR_VARIATION mad}
message= _ "En garde!" # wmllint: no spellcheck
[/message]
[message]
speaker=Konrad
message= _ "What in the world are you doing here?"
[/message]
[message]
speaker="Li'sar"
{LISAR_VARIATION mad}
message= _ "Tracking you down, of course! You have escaped me for the last time!"
[/message]
[message]
speaker=Delfador
{DELFADOR_VARIATION mad}
message= _ "Foolish girl! We are in the deepest of caverns, probably surrounded by all manner of creatures, and you still want to fight us? You will bring us all to ruin!"
[/message]
[message]
speaker="Li'sar"
{LISAR_VARIATION mad}
message= _ "Don’t try to trick me! I know why you have come here! But I will put an end to you and your treason here. Then I will get the Sceptre, and return to the daylight again!"
[/message]
#change the music to being frantic as lots of orcs arrive
[music]
name=the_dangerous_symphony.ogg
immediate=yes
play_once=yes
[/music]
[music]
name=the_deep_path.ogg
append=no
[/music]
[music]
name=heroes_rite.ogg
append=yes
[/music]
[music]
name=into_the_shadows.ogg
append=yes
[/music]
[music]
name=knalgan_theme.ogg
append=yes
[/music]
#define HASTY_TROLL X Y
{LOYAL_UNIT 3 Troll {X} {Y}}
[redraw]
[/redraw]
#enddef
#define HASTY_GOBLIN_KNIGHT X Y
{LOYAL_UNIT 3 (Goblin Knight) {X} {Y}}
[redraw]
[/redraw]
#enddef
#alot of enemies arrive
[move_unit_fake]
type=Troll
side=3
x=13,12,11
y=16,16,16
[/move_unit_fake]
{HASTY_TROLL 11 16}
[move_unit_fake]
type=Troll
side=3
x=13,13
y=16,17
[/move_unit_fake]
{HASTY_TROLL 13 17}
[move_unit_fake]
type=Troll
side=3
x=15,14
y=18,18
[/move_unit_fake]
{HASTY_TROLL 14 18}
[move_unit_fake]
type=Goblin Knight
side=3
x=4,5,6
y=13,14,14
[/move_unit_fake]
{HASTY_GOBLIN_KNIGHT 6 14}
[move_unit_fake]
type=Goblin Knight
side=3
x=3,4,5
y=16,16,16
[/move_unit_fake]
{HASTY_GOBLIN_KNIGHT 5 16}
[move_unit_fake]
type=Goblin Knight
side=3
x=7,8
y=20,20
[/move_unit_fake]
{HASTY_GOBLIN_KNIGHT 8 20}
[move_unit_fake]
type=Troll
side=3
x=3,4,5
y=14,14,15
[/move_unit_fake]
{HASTY_TROLL 5 15}
[move_unit_fake]
type=Troll
side=3
x=5,5,6
y=14,15,15
[/move_unit_fake]
{HASTY_TROLL 6 15}
#some more trolls that are behind in the caves
{HASTY_TROLL 3 13}
{HASTY_TROLL 4 9}
{HASTY_TROLL 15 13}
{HASTY_TROLL 17 14}
{HASTY_TROLL 13 10}
[message]
type=Goblin Knight
message= _ "Surprise! Die, you sun-lovers!"
[/message]
[message]
speaker=Kalenz
message= _ "Now we are surrounded! Do you still want to fight us, Li’sar? Surely that would lead to doom for us all!"
[/message]
[message]
speaker="Li'sar"
message= _ "I see we have little choice but to help each other. Let us fight together until we return to the surface. Agreed?"
[/message]
[message]
speaker=Konrad
message= _ "Very well, I promise that you will reach the surface again, or we shall all perish together."
[/message]
[message]
speaker="Li'sar"
message= _ "But once we escape from this hole, I have a score to settle with you!"
[/message]
[/event] #end of start event
[event]
name=enemies defeated
[message]
speaker=Konrad
message= _ "Well, we have helped each other survive so far. Now let’s continue together. What do you say?"
[/message]
[message]
speaker="Li'sar"
message= _ "Yes. We agreed to help each other get out of these pits alive, did we not? Let us continue to pool our resources. I pledge to you my gold."
[/message]
[message]
speaker=Konrad
message= _ "Thank you. Come, men. Let us find the Sceptre!"
[/message]
[endlevel]
result=victory
bonus=yes
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/event]
[event]
name=victory
[modify_unit]
[filter]
id="Li'sar"
[/filter]
side=1
canrecruit=no
{TRAIT_LOYAL_HERO}
[/modify_unit]
[/event]
#deaths.cfg only handles death of Li'sar is she’s on side '1', so handle
#it explicitly here.
[event]
name=last breath
[filter]
id="Li'sar"
[/filter]
[message]
speaker=unit
{LISAR_VARIATION defeat}
message= _ "I can’t believe it should end like this!"
[/message]
[endlevel]
result=defeat
[/endlevel]
[/event]
{campaigns/Heir_To_The_Throne/utils/deaths.cfg}
[/scenario]
#undef HASTY_TROLL
#undef HASTY_GOBLIN_KNIGHT