-
-
Notifications
You must be signed in to change notification settings - Fork 991
/
10_Saving_Inarix.cfg
739 lines (625 loc) · 20.5 KB
/
10_Saving_Inarix.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
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
#textdomain wesnoth-sotbe
#define NOT_SAFE_LOCATIONS
y=12-43
[not]
x,y=19,12
[/not]
#enddef
[scenario]
id=10_Saving_Inarix
name= _ "Saving Inarix"
map_data="{campaigns/Son_Of_The_Black_Eye/maps/10_Saving_Inarix.map}"
turns=16
{DEFAULT_SCHEDULE_AFTERNOON}
victory_when_enemies_defeated=no
next_scenario=11_Clash_of_Armies
{SCENARIO_MUSIC "vengeful.ogg"}
{EXTRA_SCENARIO_MUSIC "breaking_the_chains.ogg"}
[event]
name=turn 1
[objectives]
side=1
[objective]
description= _ "Wait for Inarix’s arrival from the south on turn 4"
condition=win
[show_if]
[variable]
name=turn_number
less_than=4
[/variable]
[/show_if]
[/objective]
[objective]
description= _ "Destroy the southern part of the bridge"
condition=win
[/objective]
[objective]
description= _ "In order to recruit saurians later on, bring Inarix and at least four saurians to safety"
condition=win
[/objective]
[objective]
description= _ "Death of Kapou’e"
condition=lose
[/objective]
[objective]
description= _ "Death of Grüü"
condition=lose
[/objective]
{TURNS_RUN_OUT}
[gold_carryover]
bonus=yes
carryover_percentage=40
[/gold_carryover]
[note]
description= _ "Whoever detonates the bridge will die."
[/note]
[/objectives]
[/event]
[side]
side=1
id="Kapou'e"
type=Orcish Leader
controller=human
team_name=Kapoue
user_team_name=_ "Kapou’e"
gold=150
{BLACK_FLAG}
[/side]
{STARTING_VILLAGES 1 10}
{STARTING_VILLAGES_AREA 1 5 5 4}
{STARTING_VILLAGES_AREA 1 35 5 4}
[side]
type=Elvish Champion
id=Thelarion
name= _ "Thelarion"
side=2
canrecruit=yes
facing=sw
[ai]
aggression=1.0
villages_per_scout=10
village_value=0.1
[goal] # Target Inarix with same value as Kapou'e
name=target
[criteria]
id=Inarix
[/criteria]
value=3
[/goal]
[/ai]
recruit=Elvish Fighter, Elvish Archer, Elvish Shaman, Elvish Scout
team_name=villains
user_team_name=_"Villains"
{GOLD 600 700 800}
{FLAG_VARIANT wood-elvish}
[/side]
{STARTING_VILLAGES 2 13}
[side]
type=Dwarvish Steelclad
id=Darstang
name= _ "Darstang"
side=3
canrecruit=yes
[ai]
aggression=1.0
villages_per_scout=10
village_value=0.1
[goal] # Target Inarix with same value as Kapou'e
name=target
[criteria]
id=Inarix
[/criteria]
value=3
[/goal]
[/ai]
recruit=Dwarvish Fighter, Dwarvish Thunderer, Dwarvish Scout, Footpad, Bandit
team_name=villains
user_team_name=_"Villains"
{GOLD 600 700 800}
{FLAG_VARIANT knalgan}
[/side]
{STARTING_VILLAGES 3 13}
{SOTBE_TRACK {JOURNEY_10_NEW} }
[event]
name=prestart
{NAMED_LOYAL_UNIT 1 (Orcish Slayer) 20 4 Plonk (_ "Plonk")}
[+unit]
random_traits=no
[/unit]
{GENERIC_UNIT 2 "Elvish Fighter" 19 11} {GUARDIAN}
{GENERIC_UNIT 2 "Elvish Fighter" 19 12} {GUARDIAN}
{GENERIC_UNIT 2 "Elvish Archer" 20 11} {GUARDIAN}
{GENERIC_UNIT 2 "Elvish Archer" 18 11} {GUARDIAN}
[unit]
type=Dwarvish Guardsman
side=3
x=17
y=15
generate_name=yes
ai_special=guardian
[/unit]
[unit]
type=Dwarvish Guardsman
side=3
x=21
y=15
generate_name=yes
ai_special=guardian
facing=sw
[/unit]
[item]
x,y=21,13
image=items/barrel-floating.png
[/item]
[/event]
[event]
name=start
[recall]
id=Grüü
[/recall]
[recall]
id=Jetto
[/recall]
[message]
speaker="Plonk"
message= _ "Reinforcements, at last! Whoever you are, you are welcome in Prestim! The fortified bridge over the River Bork was taken this morning by a small commando of elves, we have already tried to assault it twice without success."
[/message]
[message]
speaker="Grüü"
message= _ "Ah! They are no match against my hammer."
[/message]
[message]
speaker="Plonk"
message= _ "There is worse; our scouts report that our saurian allies led by Inarix are still trapped on the other side of the river some miles away. They won’t be able to cross the river."
[/message]
[message]
speaker="Plonk"
message= _ "Elves and dwarves have joined humans against us and have set up camp nearby. Humans will arrive soon. We must destroy the southern bridge on the river."
[/message]
[message]
speaker="Kapou'e"
message= _ "If Inarix falls prey to those humans then we won’t be able to count on their help in this struggle. We must do something!"
image=portraits/kapoue-angry.png
[/message]
[message]
speaker="Grüü"
message= _ "I know what we must do. Kill elves and help Inarix cross."
[/message]
[message]
speaker="Plonk"
message= _ "It won’t be that easy! Our enemies are well entrenched."
[/message]
[message]
speaker="Plonk"
message= _ "We can sabotage the southern bridge to slow them down. When the bulk of the saurians have crossed, someone needs to go and light the barrel of oil we have set up beside the bridge to destroy it. Any warriors trapped on the bridge or on the other side of the river will perish!"
[/message]
{HIGHLIGHT_IMAGE 21 13 items/barrel-floating.png ()}
[message]
speaker=Thelarion
message= _ "Hey look, that tribe of orcs that destroyed my enclave in the Silent Forest have reinforced Prestim. It is time to avenge the death of our fallen kin my friends — get them!"
[/message]
[message]
speaker="Kapou'e"
message= _ "Ahhh, it’s ‘the Prince’ from the Silent Forest. Unfortunately, I don’t think we can deal with him now, we have to focus on saving Inarix."
[/message]
[/event]
[event]
name=turn 4
{NAMED_LOYAL_UNIT 1 (Saurian Ambusher) 8 42 Inarix (_ "Inarix")}
[+unit]
random_traits=no
profile=portraits/inarix.png
unrenamable=yes
[/unit]
{GENERIC_UNIT 1 "Saurian Skirmisher" 8 42}
{GENERIC_UNIT 1 "Saurian Skirmisher" 8 42}
{GENERIC_UNIT 1 "Saurian Skirmisher" 8 42}
{GENERIC_UNIT 1 "Saurian Augur" 8 42}
{GENERIC_UNIT 1 "Saurian Augur" 8 42}
{GENERIC_UNIT 1 "Saurian Augur" 8 42}
{GENERIC_UNIT 1 "Saurian Skirmisher" 8 42}
{GENERIC_UNIT 1 "Saurian Skirmisher" 8 42}
{GENERIC_UNIT 1 "Saurian Skirmisher" 8 42}
[message]
speaker="Inarix"
message= _ "Hurry-hurry, friends. Lanbec’h and his kind are right on our tails, we must reach Prestim quickly."
[/message]
[/event]
[event]
name=bridge explode
[store_locations]
y=12-14
terrain=*^B*
variable=exploding_hexes
[/store_locations]
[remove_item]
x,y=21,13
[/remove_item]
[item]
x,y=21,13
halo=projectiles/fire-burst-small-[1~8].png:50,misc/blank-hex.png:1000000
[/item]
[kill]
x,y=21,13
animate=yes
fire_event=yes
[/kill]
{FOREACH exploding_hexes i}
[sound]
name=explosion.ogg
[/sound]
[item]
x,y=$exploding_hexes[$i].x,$exploding_hexes[$i].y
halo=projectiles/fire-burst-small-[1~8].png:50,misc/blank-hex.png:1000000
[/item]
[kill]
x,y=$exploding_hexes[$i].x,$exploding_hexes[$i].y
animate=yes
fire_event=yes
[/kill]
[terrain]
x,y=$exploding_hexes[$i].x,$exploding_hexes[$i].y
terrain=Ww^Es
[/terrain]
[sound]
name=water-blast.wav
[/sound]
[redraw]
[/redraw]
{NEXT i}
[kill]
side=1
x=1-38
y=15-43
animate=no
fire_event=yes
[/kill]
{CLEAR_VARIABLE exploding_hexes}
[/event]
[event]
name=moveto
first_time_only=no
[filter]
x,y=21,13
id="Kapou'e"
[/filter]
[message]
speaker="Kapou'e"
message= _ "Bah! I’m not going to blow myself to bits!"
[/message]
[allow_undo]
[/allow_undo]
[/event]
[event]
name=moveto
first_time_only=no
[filter]
x,y=21,13
id=Grüü
[/filter]
[message]
speaker="Kapou'e"
message= _ "Grüü, stay away from that thing! I still have a use for you!"
image=portraits/kapoue-angry.png
[/message]
[message]
speaker="Grüü"
message= _ "Uh... Fine, Chief!"
[/message]
[allow_undo]
[/allow_undo]
[/event]
[event]
name=moveto
first_time_only=no
[filter]
x,y=21,13
id=Inarix
[/filter]
[message]
speaker="Inarix"
message= _ "I’m not going to do it!"
[/message]
[allow_undo]
[/allow_undo]
[/event]
[event]
name=moveto
first_time_only=no
[filter]
side=1
x,y=21,13
[not]
id="Kapou'e,Grüü,Inarix"
[/not]
[/filter]
[if]
[have_unit]
id="Kapou'e"
{NOT_SAFE_LOCATIONS}
[/have_unit]
[then]
[message]
speaker="Kapou'e"
message= _ "Get away from there you idiot, I’m still over here!"
image=portraits/kapoue-angry.png
[/message]
[/then]
[/if]
[if]
[have_unit]
id=Grüü
{NOT_SAFE_LOCATIONS}
[/have_unit]
[then]
[message]
speaker="Grüü"
message= _ "Hey, don’t light it up, I’m not safe!"
[/message]
[/then]
[/if]
[if]
[not]
[have_unit]
id="Kapou'e,Grüü"
{NOT_SAFE_LOCATIONS}
[/have_unit]
[/not]
[then]
[if]
[variable]
name=turn_number
less_than=4
[/variable]
[then]
[message]
speaker="Grüü"
message= _ "Chief, we can’t be blowing the bridge before Inarix is here, can we?"
[/message]
[/then]
[else]
[if]
[have_unit]
id=Inarix
{NOT_SAFE_LOCATIONS}
[/have_unit]
[then]
{VARIABLE unit_detonating_says _"Chief, Inarix hasn’t yet made it across! Are you really sure you want to do this?"}
[/then]
[else]
{VARIABLE unit_detonating_says _"I’m ready, Chief!"}
[/else]
[/if]
[message]
speaker=unit
message=$unit_detonating_says
[option]
message= _ "Let her blow!"
[command]
[message]
speaker="Grüü"
message= _ "Bye bye, $unit.name|!"
[/message]
[if]
[have_unit]
id=Inarix
{NOT_SAFE_LOCATIONS}
[/have_unit]
[then]
[message]
speaker=Inarix
message= _ "Damn you, Son of the Black-Eye! You’ll pay for this!"
[/message]
{VARIABLE inarix_abandoned yes}
{VARIABLE got_saurians no}
[/then]
[else]
[message]
side=1
{NOT_SAFE_LOCATIONS}
[not]
x,y=21,13
[/not]
message= _ "No, wait!"
[/message]
[/else]
[/if]
[message]
speaker=unit
message= _ "Aaaaaaaargh!"
[/message]
[fire_event]
name=bridge explode
[/fire_event]
[endlevel]
result=victory
bonus=yes
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/command]
[/option]
[option]
message= _ "Wait a moment."
[command]
[message]
speaker=unit
message= _ "<i>Phew!</i>"
[/message]
[/command]
[/option]
[/message]
{CLEAR_VARIABLE unit_detonating_says}
[/else]
[/if]
[/then]
[/if]
[allow_undo]
[/allow_undo]
[/event]
[event]
name=die
first_time_only=no
[filter]
side=1
race=lizard
[not]
id=Inarix
[/not]
[/filter]
[store_unit]
[filter]
side=1
race=lizard
[not]
id=Inarix
[/not]
[/filter]
kill=no
variable=stored_saurians
[/store_unit]
[if]
[variable]
name=stored_saurians.length
less_than=5
[/variable]
[variable]
name=got_saurians
not_equals=no
[/variable]
[then]
[message]
speaker="Kapou'e"
message= _ "Blast it! The saurians have had too many casualties in order for them to be of any real help to us. We won’t be able to recruit them in the future."
[/message]
{VARIABLE got_saurians no}
[/then]
[/if]
{CLEAR_VARIABLE stored_saurians}
[/event]
[event]
name=recruit
first_time_only=no
[filter]
side=2,3
[/filter]
[store_side]
side=$unit.side
[/store_side]
[if]
[variable]
name=side.gold
{QUANTITY less_than 350 400 450} # Starting gold is +100 per difficulty level, so this is correct in this order
[/variable]
[variable]
name=turn_number
less_than=8
[/variable]
[then]
[disallow_recruit]
side=$unit.side
type=$side.recruit
[/disallow_recruit]
[/then]
[/if]
{CLEAR_VARIABLE side}
[/event]
[event]
name=side 2 turn 8
[message]
speaker=Thelarion
message= _ "This isn’t working. Mobilize all our troops and send these creatures back to hell."
[/message]
[message]
speaker=Darstang
message= _ "It won’t be said that Elves were braver than us, everyone attack!"
[/message]
[allow_recruit]
side=2
type=Elvish Fighter, Elvish Archer, Elvish Shaman, Elvish Scout
[/allow_recruit]
[allow_recruit]
side=3
type=Dwarvish Fighter, Dwarvish Thunderer, Dwarvish Scout, Footpad, Bandit
[/allow_recruit]
[/event]
[event]
name=time over
[unit]
type="General"
id="Earl Lanbec'h"
name= _ "Earl Lanbec’h"
profile=portraits/lanbech.png
side=2
x=8
y=42
random_traits=no
[/unit]
{GENERIC_UNIT 2 "Heavy Infantryman" 8 42}
{GENERIC_UNIT 2 "Heavy Infantryman" 8 42}
{GENERIC_UNIT 2 "Heavy Infantryman" 8 42}
{GENERIC_UNIT 2 "Heavy Infantryman" 8 42}
{GENERIC_UNIT 2 "Heavy Infantryman" 8 42}
{GENERIC_UNIT 2 "Heavy Infantryman" 8 42}
{GENERIC_UNIT 2 "Heavy Infantryman" 8 42}
[message]
speaker="Earl Lanbec'h"
message= _ "At them! Rip them to the last!"
[/message]
[message]
speaker="Kapou'e"
message= _ "It is too late, we are defeated."
[/message]
[/event]
[event]
name=victory
# TODO: Make Lanbec'h appear and speak
[if]
[variable]
name=got_saurians
not_equals=no
[/variable]
[then]
[allow_recruit]
side=1
type=Saurian Skirmisher,Saurian Augur
[/allow_recruit]
[/then]
[/if]
[if]
[variable]
name=inarix_abandoned
equals=yes
[/variable]
[then]
[kill]
race=lizard
fire_event=no
animate=no
[/kill]
[/then]
[/if]
[/event]
[event]
name=last breath
[filter]
id=Thelarion
[/filter]
[message]
speaker=unit
message= _ "The green earth will curse you for this..."
[/message]
{VARIABLE thelarion_dead yes}
[/event]
[event]
name=last breath
[filter]
id=Darstang
[/filter]
[message]
speaker=unit
message= _ "Curse you, foul orc!"
[/message]
{VARIABLE darstang_dead yes}
[/event]
{HERO_DEATHS}
[/scenario]