-
-
Notifications
You must be signed in to change notification settings - Fork 988
/
07b_Pebbles_in_the_Flood.cfg
531 lines (454 loc) · 15 KB
/
07b_Pebbles_in_the_Flood.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
#textdomain wesnoth-tsg
[scenario]
id=07b_Pebbles_in_the_Flood
name= _ "Pebbles in the Flood"
next_scenario=08b_The_Tides_of_War
{SCENARIO_MUSIC heroes_rite.ogg}
{EXTRA_SCENARIO_MUSIC the_king_is_dead.ogg}
{EXTRA_SCENARIO_MUSIC nunc_dimittis.ogg}
map_data="{campaigns/The_South_Guard/maps/07b_Pebbles_in_the_Flood.map}"
{campaigns/The_South_Guard/utils/sg_help.cfg}
{DEFAULT_SCHEDULE}
{SG_PEBBLES_IN_THE_FLOOD}
{TSG_BIGMAP {JOURNEY_07B_NEW} }
turns=unlimited
victory_when_enemies_defeated=no
disallow_recall=yes
# The South Guard
[side]
side=1
type=Horseman Commander
id=Deoran
name= _ "Deoran"
profile=portraits/deoran.png
unrenamable=yes
team_name=South_Guard
user_team_name=_"South Guard"
controller=human
{CUSTOM_SG_FLAG}
gold=0
{INCOME 4 2 0}
canrecruit=yes
recruit=Bowman, Spearman, Cavalryman, Footpad, Thug
[/side]
{STARTING_VILLAGES 1 15}
# The Undead Hordes
[side]
side=2
type=Ancient Lich
id="Mal M'Brin"
name= _ "Mal M’Brin"
profile=portraits/mal-mbrin.png
facing=sw
team_name=The_Undead_Hordes
user_team_name=_"Undead"
controller=ai
{GOLD 200 275 350}
{INCOME 10 15 20}
canrecruit=yes
[ai]
passive_leader=yes # So he can't attack or be pinned away from his keep
recruitment_pattern=scout, fighter, fighter, archer, scout, fighter, archer
aggression=1.0
caution=0.0
[goal]
[criteria]
id=Sir Gerrick
[/criteria]
value=10.0
[/goal]
[/ai]
recruit=Deathblade, Revenant, Draug, Bone Shooter, Blood Bat, Chocobone
{FLAG_VARIANT undead}
[/side]
[side]
side=3
type=Lich
id=Mal Tera
name= _ "Mal Tera"
team_name=The_Undead_Hordes
user_team_name=_"Undead"
controller=ai
{GOLD 125 175 225}
{INCOME 9 12 15}
canrecruit=yes
[ai]
recruitment_pattern=fighter
aggression=0.95
[/ai]
#ifdef EASY
recruit=Walking Corpse, Soulless, Ghoul, Vampire Bat
#endif
#ifdef NORMAL
recruit=Walking Corpse, Soulless, Ghoul, Blood Bat
#endif
#ifdef HARD
recruit=Walking Corpse, Soulless, Ghoul, Blood Bat, Necrophage
#endif
{FLAG_VARIANT undead}
[/side]
#prestart
[event]
name=prestart
[store_side]
side=1
variable=stored_side_1
[/store_side]
{VARIABLE pebbles_starting_gold $stored_side_1.gold}
[modify_side]
side=1
{GOLD 150 125 100}
[/modify_side]
# Sgt. Finde's Section
{NAMED_LOYAL_UNIT 1 Sergeant 2 9 (Finde) (_"Finde")}
{NAMED_LOYAL_UNIT 1 Peasant 3 9 (Maelvas) (_"Maelvas")}
{NAMED_LOYAL_UNIT 1 Spearman 4 9 (Orome) (_"Orome")}
{NAMED_LOYAL_UNIT 1 Peasant 2 8 (Mitche) (_"Mitche")}
# Lt. Illan's Section
{NAMED_LOYAL_UNIT 1 (Lieutenant) 11 10 (Illan) (_"Illan")}
{NAMED_LOYAL_UNIT 1 (Heavy Infantryman) 11 11 (Rheban) (_"Rheban")}
{NAMED_LOYAL_UNIT 1 (Bowman) 10 10 (Jul) (_"Jul")}
# Lt. Meris' Section
{NAMED_LOYAL_UNIT 1 (Lieutenant) 21 10 (Meris) (_"Meris")}
{NAMED_LOYAL_UNIT 1 (Heavy Infantryman) 21 11 (Findlas) (_"Findlas")}
{NAMED_LOYAL_UNIT 1 (Heavy Infantryman) 22 10 (Chumet) (_"Chumet")}
# Sgt. Cadry's Section
{NAMED_LOYAL_UNIT 1 Sergeant 29 10 (Cadry) (_"Cadry")}
{NAMED_LOYAL_UNIT 1 (Peasant) 30 9 (Seran) (_"Seran")}
{NAMED_LOYAL_UNIT 1 (Bowman) 29 9 (Eera) (_"Eera")}
{NAMED_LOYAL_UNIT 1 (Peasant) 31 9 (Cinry) (_"Cinry")}
# Ancient Lich's Guards
{NAMED_LOYAL_UNIT 2 Draug 22 17 () (_"Death Guard")} {GUARDIAN}
{NAMED_LOYAL_UNIT 2 Draug 25 17 () (_"Death Guard")} {GUARDIAN}
# Advancing Undead
#ifdef EASY
{LOYAL_UNDEAD_UNIT 2 Chocobone 18 14}
{LOYAL_UNDEAD_UNIT 2 Skeleton 4 12}
{LOYAL_UNDEAD_UNIT 2 Skeleton 21 13}
{LOYAL_UNDEAD_UNIT 2 Skeleton 29 16}
{LOYAL_UNIT 2 (Vampire Bat) 2 14}
{LOYAL_UNIT 2 (Vampire Bat) 9 13}
{LOYAL_UNIT 2 (Vampire Bat) 23 16}
{LOYAL_UNIT 2 (Vampire Bat) 32 10}
#endif
#ifdef NORMAL
{LOYAL_UNDEAD_UNIT 2 Chocobone 18 14}
{LOYAL_UNDEAD_UNIT 2 Skeleton 4 12}
{LOYAL_UNDEAD_UNIT 2 Skeleton 21 13}
{LOYAL_UNDEAD_UNIT 2 Revenant 29 16}
{LOYAL_UNIT 2 (Vampire Bat) 2 14}
{LOYAL_UNIT 2 (Blood Bat) 9 13}
{LOYAL_UNIT 2 (Vampire Bat) 23 16}
{LOYAL_UNIT 2 (Blood Bat) 32 10}
#endif
#ifdef HARD
{LOYAL_UNDEAD_UNIT 2 Chocobone 18 14}
{LOYAL_UNDEAD_UNIT 2 Revenant 4 12}
{LOYAL_UNDEAD_UNIT 2 Deathblade 21 13}
{LOYAL_UNDEAD_UNIT 2 Revenant 29 16}
{LOYAL_UNIT 2 (Blood Bat) 2 14}
{LOYAL_UNIT 2 (Blood Bat) 9 13}
{LOYAL_UNIT 2 (Blood Bat) 23 16}
{LOYAL_UNIT 2 (Blood Bat) 32 10}
#endif
{MODIFY_UNIT x,y=16-33,1-25 facing sw}
{CLEAR_VARIABLE stored_side_1}
# Make it impossible for the player to kill the enemy leaders, no matter how lucky.
[modify_unit]
[filter]
id="Mal M'Brin"
[/filter]
[status]
invulnerable=yes
[/status]
[/modify_unit]
[modify_unit]
[filter]
id="Mal Tera"
[/filter]
[status]
invulnerable=yes
[/status]
[/modify_unit]
[/event]
#start
[event]
name=start
[recall]
id=Sir Gerrick
x,y=16,8
[/recall]
[recall]
id=Urza Afalas
x,y=15,8
[/recall]
[recall]
id=Minister Hylas
x,y=16,7
[/recall]
[message]
speaker=Deoran
message= _ "We are finally back in Kerlath, but look! The undead have almost caught up to us!"
[/message]
[message]
speaker=Sir Gerrick
message= _ "These forts and ill-equipped for holding back so many undead. I am certain we will be slaughtered if we try to fight them here!"
[/message]
[message]
speaker=Deoran
message= _ "But we cannot flee like this forever... the horses are tired, and the men are tired, and I am tired as well. The undead can march day and night without rest, but we cannot. They will certainly overtake us before we reach Westin."
[/message]
[message]
speaker=Sir Gerrick
message= _ "Then we have only one course of action to take. Deoran, you must hasten back to Westin to prepare a defense against them. I will command the defense of the border forts. Leave me a few men, and we will hold back the undead as long as we can."
[/message]
[message]
speaker=Deoran
message= _ "But such a thing will mean certain death!"
[/message]
[message]
speaker=Sir Gerrick
message= _ "Deoran, you are still young and have many things to learn. In dire times, sacrifices must always be made one way or another. If we flee with you, the undead will surely run us down and make short work of the city-folk. Then everything we have fought for will be lost!"
[/message]
[message]
speaker=Deoran
message= _ "Even so..."
[/message]
[message]
speaker=Urza Afalas
message= _ "I will stand here with you, Sir Gerrick. You will need my help to slow down the undead, and I have a debt to repay to you for sparing my life."
[/message]
[message]
speaker=Sir Gerrick
message= _ "Those are brave words that I would not have expected from you, Afalas."
[/message]
[message]
speaker=Urza Afalas
message= _ "All things end one way or another. Alas, I would have liked to see my home in Westin one more time, but I am too tired. Tired of running, and tired of fleeing from these undead, who corrupted and consumed my brothers. You may think us criminals and outlaws, but we are still human and we still know loyalty and gratitude, sir knights."
[/message]
[message]
speaker=Sir Gerrick
message= _ "You will not change our minds, Deoran. Go!"
[/message]
[message]
speaker=Deoran
message= _ "I... I understand. Minister Hylas, come ride with me to Westin. You must summon the city council while I prepare the defenses. Sir Gerrick, Afalas, we shall return as soon as we can and relieve you."
[/message]
[message]
speaker=Sir Gerrick
message= _ "You know what the outcome of our battle here will be. I trust you to protect our home from the undead and only ask you to remember those who fell defending our land. Farewell, Sir Deoran!"
[/message]
[message]
speaker=Minister Hylas
message= _ "The light shines upon your souls, brave warriors."
[/message]
{MOVE_UNIT id=Deoran 16 5}
[message]
speaker=Deoran
message= _ "We will never forget your sacrifice here. Thank you, my friend."
[/message]
{MOVE_UNIT id=Deoran 15 1}
[store_unit]
[filter]
id=Deoran
[/filter]
variable=stored_Deoran
[/store_unit]
[kill]
id=Deoran
[/kill]
{MOVE_UNIT id="Minister Hylas" 15 1}
[store_unit]
[filter]
id=Minister Hylas
[/filter]
variable=stored_Hylas
[/store_unit]
[kill]
id=Minister Hylas
[/kill]
{MODIFY_UNIT (id=Sir Gerrick) overlays ""}
{MODIFY_UNIT (id=Sir Gerrick) canrecruit yes}
{MODIFY_UNIT (id=Sir Gerrick) ellipse ""}
{MODIFY_UNIT (id=Urza Afalas) overlays "misc/loyal-icon.png"}
{MODIFY_UNIT (id=Urza Afalas) ellipse ""}
[message]
speaker=Illan
message= _ "We are yours to command, Sir Gerrick. We will hold back the undead until the bitter end!"
[/message]
[objectives]
side=1
[objective]
description= _ "Hold the line: keep Sir Gerrick alive as long as possible"
condition=win
[/objective]
[gold_carryover]
carryover_percentage=0
[/gold_carryover]
{HAS_NO_TURN_LIMIT}
[note]
description= _ "Starting with turn 6, each additional turn you survive strengthens the defenses of Westin."
[/note]
[/objectives]
[message]
speaker=narrator
message= _ "Hold off the undead hordes and keep Sir Gerrick alive as long as you can. Starting on turn 6, every turn that passes strengthens the defenses of Westin."
image=wesnoth-icon.png
[/message]
[/event]
[event]
name=die
first_time_only=no
[filter]
side=1
[/filter]
[gold]
side=2,3
#ifdef EASY
amount=9
#endif
#ifdef NORMAL
amount=12
#endif
#ifdef HARD
amount=15
#endif
[/gold]
[/event]
[event]
name=turn 3
[modify_side]
side=2
{INCOME 15 20 25}
[/modify_side]
[modify_side]
side=3
{INCOME 10 15 20}
[/modify_side]
[/event]
[event]
name=turn 6
[modify_side]
side=2
{INCOME 20 25 30}
[/modify_side]
[modify_side]
side=3
{INCOME 15 20 25}
[/modify_side]
[/event]
[event]
name=turn 9
[modify_side]
side=2
{INCOME 25 30 35}
[/modify_side]
[modify_side]
side=3
{INCOME 20 25 30}
[/modify_side]
[/event]
[event]
name=turn 12
[modify_side]
side=2
{INCOME 30 35 40}
[/modify_side]
[modify_side]
side=3
{INCOME 25 30 35}
[/modify_side]
[/event]
[event]
name=turn 15
[modify_side]
side=2
{INCOME 40 45 50}
[/modify_side]
[modify_side]
side=3
{INCOME 35 40 45}
[/modify_side]
[/event]
[event]
name=turn 18
[modify_side]
side=2
{INCOME 50 55 60}
[/modify_side]
[modify_side]
side=3
{INCOME 45 50 55}
[/modify_side]
[/event]
[event]
name=last breath
[filter]
id=Urza Afalas
[/filter]
[message]
speaker=Urza Afalas
message= _ "So this is how it ends... I am coming to you, my brothers..."
[/message]
[/event]
[event]
name=last breath
[filter]
id=Sir Gerrick
[/filter]
[message]
speaker=Sir Gerrick
message= _ "I only hope... we have bought enough time... for Deoran..."
[/message]
[kill]
x,y=$x1,$y1
animate=yes
[/kill]
[message]
speaker="Mal M'Brin"
message= _ "Pesky little humans! You have only delayed the inevitable. We will sweep through your cities and raze them to the ground! March onward, my skeletons! We go to destroy Westin!"
[/message]
[endlevel]
result=victory
bonus=no
{NEW_GOLD_CARRYOVER 100}
[/endlevel]
[/event]
[event]
name=victory
{VARIABLE pebbles_defense_length $turn_number}
[kill]
side=1
{NOT_ON_RECALL_LIST}
fire_event=no
animate=no
[/kill]
{VARIABLE stored_Deoran.x recall}
{VARIABLE stored_Deoran.y recall}
{VARIABLE stored_Hylas.x recall}
{VARIABLE stored_Hylas.y recall}
[unstore_unit]
variable=stored_Deoran
[/unstore_unit]
[unstore_unit]
variable=stored_Hylas
[/unstore_unit]
# Set the amount of gold that the player has to what it was before Pebbles.
[modify_side]
side=1
gold=$pebbles_starting_gold
[/modify_side]
{CLEAR_VARIABLE pebbles_starting_gold}
{CLEAR_VARIABLE stored_Deoran}
{CLEAR_VARIABLE stored_Hylas}
# In case that matters if played as MP Campaign, make him vulnerable again
[modify_unit]
[filter]
id="Mal M'Brin","Mal Tera"
[/filter]
[status]
invulnerable=no
[/status]
[/modify_unit]
[/event]
[/scenario]