-
-
Notifications
You must be signed in to change notification settings - Fork 990
/
06_Return_to_Parthyn.cfg
528 lines (444 loc) · 16 KB
/
06_Return_to_Parthyn.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
#textdomain wesnoth-did
[scenario]
id=06_Return_to_Parthyn
name= _ "Return to Parthyn"
map_data="{campaigns/Descent_Into_Darkness/maps/06_Return_to_Parthyn.map}"
turns=-1
victory_when_enemies_defeated=no
next_scenario=07_A_Small_Favor
{DEFAULT_SCHEDULE}
{SCENARIO_MUSIC the_city_falls.ogg}
{EXTRA_SCENARIO_MUSIC knolls.ogg}
{EXTRA_SCENARIO_MUSIC elvish-theme.ogg}
[story]
[part]
music=breaking_the_chains.ogg
story= _ "Two days travel south of the previous battle, Malin loses the trail of the regrouped orcish warriors, but soon picks it up again. The trail moves unfailingly south for several days. As soon as it crosses the Great River it immediately turns west."
{STORYTXT_BACKGROUND parthyn.jpg}
[/part]
[part]
story= _ "Within a few days, Malin recognizes some familiar surroundings..."
{STORYTXT_BACKGROUND parthyn.jpg}
[/part]
[/story]
{DID_TRACK {JOURNEY_06_NEW}}
# wmllint: validate-off
[side]
side=1
controller=human
recruit=Walking Corpse,Vampire Bat,Ghost,Ghoul,Skeleton Archer,Skeleton,Dark Adept DiD
{GOLD 200 150 100}
team_name=good
user_team_name= _ "Malin Keshar"
{FLAG_VARIANT undead}
# wmllint: recognize Malin Keshar
{CHARACTER_STATS_MALIN_KESHAR}
facing=sw
[/side]
# wmllint: validate-on
# A fallback leader is defined for side 2 here just in case the stored unit
# doesn't exist for some reason, like if the player has used debug mode to
# jump to this scenario.
[side]
side=2
controller=ai
#ifdef EASY
recruit=Wolf Rider,Orcish Archer,Orcish Grunt,Troll Whelp
#else
recruit=Wolf Rider,Goblin Knight,Orcish Archer,Orcish Crossbowman,Orcish Grunt,Troll Whelp
#endif
{GOLD 120 160 200}
team_name=orcs
user_team_name= _ "Orcs"
{FLAG_VARIANT6 ragged}
type=Orcish Warlord
id=Borth
name= _ "Borth"
profile=portraits/orcs/warlord.png
canrecruit=yes
facing=se
[ai]
aggression=0.8
villages_per_scout=8
village_value=0.5
[/ai]
[/side]
[side]
side=3
controller=ai
recruit=Spearman,Bowman
{GOLD 16 30 45}
team_name=guardsmen
user_team_name= _ "Guardsmen"
{FLAG_VARIANT loyalist}
type=Lieutenant
id=Drogan
name= _ "Drogan"
profile=portraits/drogan.png
canrecruit=yes
facing=se
# Drogan has some guards at the river fort
{NAMED_LOYAL_UNIT () (Spearman) 32 11 () ( _ "River fort guard")}
{NAMED_LOYAL_UNIT () (Bowman) 33 13 () ( _ "River fort guard")}
{NAMED_LOYAL_UNIT () (Spearman) 31 13 () ( _ "River fort guard")}
[ai]
aggression=0.2
caution=0.5
[/ai]
[/side]
# wmllint: validate-off
[side]
side=4
controller=ai
recruit=Spearman,Bowman,Swordsman,Pikeman,Longbowman,Thug,Poacher,Footpad
gold=200
income=25
team_name=guardsmen
user_team_name= _ "Defenders"
{FLAG_VARIANT loyalist}
# wmllint: recognize Dela Keshar
{CHARACTER_STATS_DELA_KESHAR}
facing=ne
[ai]
[goal]
name=protect_unit
[criteria]
id=Drogan
[/criteria]
value=2
[/goal]
[goal]
name=target
[criteria]
id=Malin Keshar
[/criteria]
value=2
[/goal]
[/ai]
[/side]
# wmllint: validate-on
{STARTING_VILLAGES 3 6}
{STARTING_VILLAGES 4 10}
# Signpost
{PLACE_IMAGE scenery/signpost.png 30 14}
#define DID_RTP_HAS_ORC_LEADER
[have_unit]
side=2
canrecruit=yes
[/have_unit]
#enddef
#define DID_RTP_HAS_DROGAN
[have_unit]
id=Drogan
[/have_unit]
#enddef
#define DID_RTP_OBJECTIVE_KILL_ORCS
[objective]
condition=win
{BONUS_OBJECTIVE_CAPTION}
description= _ "Kill the orc leader"
[show_if]
{DID_RTP_HAS_ORC_LEADER}
[/show_if]
[/objective]
#enddef
[event]
name=prestart
[objectives]
side=1
[objective]
condition=win
description= _ "Remove the traitor Drogan"
[/objective]
{DID_RTP_OBJECTIVE_KILL_ORCS}
[objective]
condition=lose
description= _ "Kill any people from Parthyn but Drogan"
[/objective]
[objective]
condition=lose
description= _ "Death of Malin Keshar"
[/objective]
[gold_carryover]
bonus=no
carryover_percentage=40
[/gold_carryover]
[/objectives]
# Replace the fallback orcish leader with the stored one from the
# previous scenario
[if]
[variable]
name=orc_leader_store.side
not_equals=$empty
[/variable]
[then]
{VARIABLE orc_leader_store.x 29}
{VARIABLE orc_leader_store.y 2}
{VARIABLE orc_leader_store.side 2}
[unstore_unit]
variable=orc_leader_store
find_vacant=no
[/unstore_unit]
{CLEAR_VARIABLE orc_leader_store}
[/then]
[/if]
[/event]
[event]
name=start
{CREATE_ADVISOR}
[message]
speaker=Malin Keshar
message= _ "I bring word of a great victory against the orcs, Drogan!"
[/message]
[if]
[variable]
name=malin_used_necromancy
boolean_equals=yes
[/variable]
[then]
[message]
speaker=Drogan
message= _ "I had hoped never to see you again, Malin. You have been banished, and now return. You give me no choice but to order my soldiers to attack you."
[/message]
[message]
role=advisor
message=_ "Master, do not listen to the lies he tells. There is always a choice, and he chooses to attack you. He jeopardizes the safety of Parthyn!"
[/message]
[message]
speaker=Malin Keshar
message= _ "Silence from you."
[/message]
[message]
speaker=Malin Keshar
message= _ "I have eliminated two orc chieftains! I doubt that we will see any orc raids this summer. The beasts will be too busy trying to regroup."
[/message]
[/then]
[else]
[message]
speaker=Drogan
message= _ "I had not thought to see you again, Malin. But what is this foul creature that stands by your side?"
[/message]
[message]
speaker=Malin Keshar
message= _ "A spirit I raised with the arts taught to me by Darken Volk. With his help, I have slain two orcish chieftains!"
[/message]
[message]
speaker=Drogan
message= _ "You allowed yourself to be corrupted by the foul taint of the necromancer? Better to face the orcish menace than even dabble in dark magic! People would have rebuilt the town, just as they always have in the past. Your father would be ashamed to see the end to which you’ve come."
[/message]
[message]
speaker=Malin Keshar
message= _ "I doubt that we will see any orc raids this summer. The beasts will be too busy trying to regroup! Is this how you repay me?"
[/message]
[/else]
[/if]
[message]
speaker=Dela Keshar
message= _ "You are mistaken, brother. Even now the orcs camp north of the river."
[/message]
[message]
speaker=Malin Keshar
message= _ "I have been tracking that band since they fled the field at my great victory! But how did they get north of the river? Let my forces be and I will deal with them."
[/message]
[message]
speaker=Drogan
message= _ "A nice story. I find it more likely that you brought your orcish allies here with you to take your revenge upon the city. If we stand down your undead will no doubt kill us where we stand. Watching you grow up, I never could have believed you would turn into a traitor."
[/message]
[message]
role=advisor
message= _ "Master, he threatens the safety of the city by standing in your way."
[/message]
[message]
speaker=Malin Keshar
message= _ "Then you are the traitor, Drogan, for preventing me from protecting the city. I will defend Parthyn, and if you stand in my way I will cut you down for the treason you commit."
[/message]
[/event]
# In-scenario Events
[event]
name=moveto
[filter]
side=1
x,y=30,14
[/filter]
[message]
speaker=narrator
message= _ "Welcome to Parthyn"
image=scenery/signpost.png
[/message]
[allow_undo][/allow_undo]
[/event]
# Dialog for the rare event you kill the orc leader before Drogan or any town guard
[event]
name=die
[filter]
side=2
canrecruit=yes
[/filter]
[if]
{DID_RTP_HAS_DROGAN}
[then]
[message]
speaker=Malin Keshar
message= _ "Behold, Drogan! I have slain the last orc chieftain. Do you trust my word now?"
[/message]
[message]
speaker=Drogan
message= _ "You have saved us the trouble of killing those worthless orcs ourselves; for that I thank you. But you cannot return to Parthyn, Malin."
[/message]
[message]
speaker=Malin Keshar
message= _ "What! You still do not trust my word? Well, perhaps you have lost sight of the true threat. The orcs will not be gone forever, and without me, how will the town stand? You jeopardize its very safety. Attack him!"
[/message]
[show_objectives][/show_objectives]
[/then]
[else]
[endlevel]
result=victory
bonus=no
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/else]
[/if]
[/event]
# Dela Keshar can't actually die here, she needs to reappear in
# Alone At Last. It's not easy to get to this contingency, which
# is why we settle for a relatively crude fallback here.
[event]
name=last breath
[filter]
id=Dela Keshar
[/filter]
[message]
speaker=Dela Keshar
message= _ "I am defeated but not dead, foul thing that was once my brother. Watch your back, because I will be coming for you..."
[/message]
[move_unit]
id=Dela Keshar
to_x,to_y=1,20
[/move_unit]
[kill]
id=Dela Keshar
animate=no
[/kill]
[/event]
# Defeat Conditions
[event]
name=die
[filter]
side=3,4
[/filter]
[filter_second]
side=1
[/filter_second]
[if]
{DID_RTP_HAS_DROGAN}
[then]
[message]
speaker=Malin Keshar
message= _ "Now the people of Parthyn will never accept me back!"
[/message]
[endlevel]
result=defeat
[/endlevel]
[/then]
[else]
[message]
speaker=Malin Keshar
message= _ "See how you die when you spurn the help of Malin Keshar!"
[/message]
[/else]
[/if]
[/event]
# Victory Conditions
[event]
name=die
[filter]
id=Drogan
[/filter]
[message]
speaker=Malin Keshar
message= _ "See what your traitorous ways have won you, Drogan?"
[/message]
[message]
speaker=Dela Keshar
message= _ "You will pay for Drogan’s death. Now that I have seen the true evil to which you have come, I will commit every guardsman to your demise. It pains me to think that you were once my brother."
[/message]
[if]
{DID_RTP_HAS_ORC_LEADER}
[then]
[message]
speaker=Malin Keshar
message= _ "Even with my new power, I cannot fight the entire town as well as the orcs. I must flee to the west to find Darken Volk!"
[/message]
[/then]
[else]
[message]
speaker=Malin Keshar
message= _ "Even with my new power, I cannot fight the entire town. I must flee to the west to find Darken Volk!"
[/message]
[/else]
[/if]
{HIGHLIGHT_IMAGE 13 1 scenery/signpost.png ()}
[objectives]
side=1
[objective]
condition=win
description= _ "Escape to the northwest"
[/objective]
{DID_RTP_OBJECTIVE_KILL_ORCS}
[objective]
condition=lose
description= _ "Death of Malin Keshar"
[/objective]
[gold_carryover]
bonus=no
carryover_percentage=40
[/gold_carryover]
[/objectives]
{INCIDENTAL_MUSIC loyalists.ogg}
[event]
name=moveto
[filter]
id=Malin Keshar
x,y=13,1
[/filter]
[endlevel]
result=victory
bonus=no
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/event]
[/event]
[event]
name=victory
[if]
{DID_RTP_HAS_ORC_LEADER}
[then]
[message]
speaker=Dela Keshar
message= _ "While our forces must stay here to fight off your pet orcs, when we are done I shall come after you. You are my brother no longer."
[/message]
[/then]
[else]
[message]
speaker=Dela Keshar
message= _ "While our forces must stay here and make sure the orcs are routed, when we are done I shall come after you. You are my brother no longer."
[/message]
[/else]
[/if]
[message]
speaker=Malin Keshar
# wmllint: local spelling Zephrin
message= _ "Gods of Darkness, how did it come to this? My own sister determined on my death. Nothing has gone right since... since that day the fat toad Zephrin mocked my up-country accent and I lost my temper and cursed him with boils. <i>“A life curse goes beyond a joke,”</i> they said. <i>“Poor judgment,”</i> they said, and expelled me from the Academy."
[/message]
[message]
speaker=Malin Keshar
message= _ "Now the only being who still wants to keep me alive is a necromancer. Curse them all! Live or die, I’ll have my revenge on those that have wronged me."
[/message]
{CLEAR_VARIABLE malin_used_necromancy}
[/event]
{HERODEATH_MALIN}
[/scenario]
#undef DID_RTP_OBJECTIVE_KILL_ORCS
#undef DID_RTP_HAS_DROGAN
#undef DID_RTP_HAS_ORC_LEADER