/
14_Human_Alliance.cfg
985 lines (895 loc) · 26.3 KB
/
14_Human_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
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
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
#textdomain wesnoth-low
[scenario]
name= _ "Human Alliance"
id=14_Human_Alliance
random_start_time=no
allow_new_game=no
force_lock_settings=yes
experience_modifier=100
next_scenario=15_The_Treaty
{LOW_MAP 14_Human_Alliance.map}
#shortens the map on the left border for the later reenforcements
# {LOW_PRESTART}
#define LOAD_SUBMAP X_SPAN Y_SPAN OFFSET_X OFFSET_Y
[store_unit]
[filter]
[/filter]
variable=MOVE_UNIT_store
kill=yes
[/store_unit]
[store_villages]
variable=villages
[/store_villages]
{FOREACH MOVE_UNIT_store unit}
{VARIABLE_OP MOVE_UNIT_store[$unit].x add {OFFSET_X}}
{VARIABLE_OP MOVE_UNIT_store[$unit].y add {OFFSET_Y}}
{VARIABLE_OP MOVE_UNIT_store[$unit].goto_x add {OFFSET_X}}
{VARIABLE_OP MOVE_UNIT_store[$unit].goto_y add {OFFSET_Y}}
{NEXT unit}
{FOREACH villages village}
#Make the villages on the old map neutral
[capture_village]
x=$villages[$village].x
y=$villages[$village].y
[/capture_village]
{VARIABLE_OP villages[$village].x add {OFFSET_X}}
{VARIABLE_OP villages[$village].y add {OFFSET_Y}}
{NEXT village}
[replace_map]
x={X_SPAN}
y={Y_SPAN}
{LOW_MAP 14_Human_Alliance.map}
[/replace_map]
{FOREACH MOVE_UNIT_store unit}
[unstore_unit]
variable=MOVE_UNIT_store[$unit]
find_vacant=no
[/unstore_unit]
{NEXT unit}
{CLEAR_VARIABLE unit}
{CLEAR_VARIABLE MOVE_UNIT_store}
{FOREACH villages village}
[capture_village]
x=$villages[$village].x
y=$villages[$village].y
side=$villages[$village].owner_side
[/capture_village]
{NEXT village}
{CLEAR_VARIABLE village}
{CLEAR_VARIABLE villages}
#enddef
[event]
name=prestart
{LOAD_SUBMAP 9-99 1-99 -8 0}
[/event]
#out of turns leads to victory
{TURNS 18 20 22}
victory_when_enemies_defeated=no
#TODO at what time does the battle begin?
{DEFAULT_SCHEDULE}
#TODO split the villages instead of leaving them unassigned in MP?
#ifndef MULTIPLAYER
{STARTING_VILLAGES_ELF 1}
#endif
{STARTING_VILLAGES_HUMAN 2}
{STARTING_VILLAGES_TROLL 5}
{INTRO_AND_SCENARIO_MUSIC revelation.ogg loyalists.ogg}
{EXTRA_SCENARIO_MUSIC the_city_falls.ogg}
{EXTRA_SCENARIO_MUSIC knolls.ogg}
{EXTRA_SCENARIO_MUSIC heroes_rite.ogg}
{EXTRA_SCENARIO_MUSIC breaking_the_chains.ogg}
{EXTRA_SCENARIO_MUSIC northerners.ogg}
{EXTRA_SCENARIO_MUSIC siege_of_laurelmor.ogg}
{EXTRA_SCENARIO_MUSIC elvish-theme.ogg}
{EXTRA_SCENARIO_MUSIC casualties_of_war.ogg}
[story]
#ifdef MULTIPLAYER
[part]
delay=4000
title= _ "<i>The Legend of Wesmere</i>
Chapter Four"
[/part]
#endif
[part]
title= _ "Chapter Four
<i>The Alliance</i>"
#delay=4000
#show_title=yes
[/part]
[part]
story= _ "With the human-elf alliance revived, our heroes hurried to the battlefield..."
delay=4000
{LOW_BIGMAP}
{TREASURY_COMPLETE}
{BOOK_COMPLETE}
{ALLIANCE_STAGE2}
[/part]
[/story]
#define PLAYER_GOLD
{GOLD 250 200 150}
#enddef
#define MULTIPLAYER_GOLD
{GOLD 65 50 40}
#enddef
[side]
side=1
{PLAYABLE}
no_leader=yes
save_id=Kalenz
extra_recruit=Elvish Fighter, Elvish Archer, Elvish Scout
#TODO clean up
# [unit]
# # wmllint: recognize Kalenz
# {KALENZ}
# x=25
# y=11
# [/unit]
fog=no
shroud=no
#ifndef MULTIPLAYER
{PLAYER_GOLD}
[unit]
{LANDAR}
extra_recruit=Elvish Fighter, Elvish Archer, Elvish Scout
x=25
y=13
[/unit]
[unit]
{CLEODIL}
extra_recruit=Elvish Shaman, Elvish Scout, Wose
x=27
y=12
[/unit]
[unit]
{OLURF}
extra_recruit=Dwarvish Fighter, Dwarvish Thunderer, Dwarvish Scout, Dwarvish Guardsman
x=36
y=10
[/unit]
#else
{MULTIPLAYER_GOLD}
#endif
[/side]
[event]
name=prestart
{RECALL_LOYALS}
[/event]
[side]
side=2
allow_player=no
type=General
id=Aldar
name= _ "Aldar"
profile="portraits/aldar.png"
controller=ai
canrecruit=yes
{GOLD 550 500 450}
recruit=Heavy Infantryman,Dragoon,Longbowman,Duelist,Halberdier,Horseman,Cavalier,Cavalryman, Royal Guard, Mage, Swordsman, Bowman
team_name=player
user_team_name= _ "Player"
{LOYALIST_SETUP}
#{FLAG_VARIANT loyalist}
[ai]
passive_leader=yes
[avoid]
x=1-47
y=1-14
[/avoid]
[/ai]
[/side]
[side]
side=3
allow_player=no
type=Orcish Warlord
id=Pirror
name=_ "Pirror"
canrecruit=yes
#ifdef EASY
recruit=Orcish Grunt, Orcish Assassin, Orcish Crossbowman, Goblin Pillager, Goblin Knight
#endif
#ifdef NORMAL
recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Goblin Pillager, Goblin Knight, Orcish Slayer, Orcish Warrior, Goblin Spearman
#endif
#ifdef HARD
recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Orcish Warrior, Goblin Knight, Goblin Pillager, Orcish Slayer, Goblin Spearman, Goblin Impaler, Goblin Rouser, Direwolf Rider
#endif
{GOLD 320 400 430}
team_name=orcs
user_team_name= _ "Enemies"
[ai]
{NO_SCOUTS}
recruitment_ignore_bad_movement=yes
recruitment_pattern=scout,fighter,fighter,archer,mixed fighter
{ATTACK_DEPTH 4 5 6}
[/ai]
[ai]
time_of_day=dusk,first_watch,second_watch
aggression=0.75
caution=0.0
grouping=no
[/ai]
{INCOME 12 20 26}
[/side]
[side]
side=4
{ORC_SETUP}
allow_player=no
type=Orcish Warlord
id=Tan-Grub
name=_ "Tan-Grub"
profile="portraits/orcs/transparent/warlord.png"
canrecruit=yes
#ifdef EASY
recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Goblin Pillager, Goblin Knight, Goblin Spearman
#endif
#ifdef NORMAL
recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Goblin Pillager, Goblin Knight, Goblin Spearman, Orcish Slayer, Orcish Warrior
#endif
#ifdef HARD
recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Goblin Pillager, Goblin Knight, Goblin Spearman, Orcish Slayer, Orcish Warrior, Goblin Impaler
#endif
{GOLD 220 300 360}
team_name=orcs
user_team_name= _ "Enemies"
[ai]
{NO_SCOUTS}
recruitment_ignore_bad_movement=yes
recruitment_pattern=scout,fighter,fighter,archer,mixed fighter
{ATTACK_DEPTH 4 5 6}
[/ai]
[ai]
time_of_day=dusk,first_watch,second_watch
aggression=0.75
caution=0.0
grouping=no
[/ai]
{INCOME 12 20 26}
# {INCOME 4 8 12}
[/side]
[side]
side=5
{TROLL_SETUP}
allow_player=no
controller=ai
type=Great Troll
id=Grol
name=_ "Grol"
canrecruit=yes
#TODO think about adding troll shamans
#ifdef EASY
recruit=Troll Whelp, Troll
#endif
#ifdef NORMAL
recruit=Troll Whelp, Troll, Troll Rocklobber
#endif
#ifdef HARD
recruit=Troll Whelp, Troll, Troll Rocklobber, Troll Warrior
#endif
{GOLD 220 260 300}
team_name=orcs
user_team_name= _ "Enemies"
[ai]
{NO_SCOUTS}
recruitment_ignore_bad_movement=yes
#ifdef EASY
recruitment_pattern=fighter
#else
recruitment_pattern=fighter,fighter,mixed fighter
#endif
grouping=no
{ATTACK_DEPTH 4 5 6}
[/ai]
{INCOME 12 20 26}
[/side]
[side]
side=6
{ORC_SETUP}
allow_player=no
controller=ai
type=Orcish Warlord
id=Khafa-Urg
name=_ "Khafa-Urg"
canrecruit=yes
#ifdef EASY
recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Goblin Pillager, Goblin Knight, Goblin Spearman
#endif
#ifdef NORMAL
recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Goblin Pillager, Goblin Knight, Goblin Spearman, Orcish Slayer, Orcish Warrior
#endif
#ifdef HARD
recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Goblin Pillager, Goblin Knight, Goblin Spearman, Orcish Slayer, Orcish Warrior, Goblin Impaler
#endif
{GOLD 320 400 450}
team_name=orcs
user_team_name= _ "Enemies"
[ai]
{NO_SCOUTS}
recruitment_ignore_bad_movement=yes
recruitment_pattern=scout,fighter,fighter,archer,mixed fighter
{ATTACK_DEPTH 4 5 6}
[/ai]
[ai]
time_of_day=dusk,first_watch,second_watch
aggression=0.75
caution=0.0
grouping=no
[/ai]
{INCOME 12 20 26}
[/side]
[event]
name=start
#ifdef MULTIPLAYER
{GET_PERSISTENT_RECALLS_FROM4 1 5 6 7 LoW_Chapter_Three kalenz}
{GET_PERSISTENT_RECALLS_FROM4 5 1 6 7 LoW_Chapter_Three landar}
{GET_PERSISTENT_RECALLS_FROM4 6 1 5 7 LoW_Chapter_Three olurf}
{GET_PERSISTENT_RECALLS_FROM4 7 1 5 6 LoW_Chapter_Three cleodil}
#endif
[recall]
side=1
id=Kalenz
x=17
y=11
[/recall]
[recall]
side=
id=Landar
x=21
y=13
[/recall]
[recall]
side=
id=Cleodil
x=23
y=12
[/recall]
[recall]
side=
id=Olurf
x=32
y=10
[/recall]
[/event]
[event]
name=prestart
[objectives]
side=0
[objective]
description= _ "Last for the end of turns"
condition=win
show_turn_counter=yes
[/objective]
[objective]
description= _ "Death of Kalenz"
condition=lose
[/objective]
[objective]
description= _ "Death of Landar"
condition=lose
[/objective]
[objective]
description= _ "Death of Olurf"
condition=lose
[/objective]
[objective]
description= _ "Death of Cleodil"
condition=lose
[/objective]
[objective]
description= _ "Death of Aldar"
condition=lose
[/objective]
[gold_carryover]
bonus=no
carryover_percentage=80
[/gold_carryover]
[/objectives]
[/event]
[event]
name=side 1 turn 1
[message]
id=Kalenz
message= _ "Tremble, orcs! The vengeance of the Elves is upon you!!"
[/message]
[message]
id=Aldar
message= _ "So it is true! The elves have come to our aid!"
[/message]
[message]
id=Olurf
message= _ "Hey! Do I look like an elf?"
[/message]
[message]
id=Landar
message= _ "I can scarce believe I am fighting besides these betrayers."
[/message]
[message]
id=Cleodil
message= _ "We cannot be choosy about our allies when our need is dire."
[/message]
[message]
id=Kalenz
message= _ "Indeed not. Save your anger for our enemies, Landar."
[/message]
[message]
id=Landar
message= _ "I shall. But when our need is not so dire, there must be a reckoning..."
[/message]
[message]
id=Tan-Grub
#canrecruit=yes
#race=orc
message= _ "An elven army to the north? And they have dwarves with them? We must defeat them in detail before they combine, which means attacking before our reinforcements arrive. Maybe we can beat the humans before the elves can intervene. Overrun city and castle!"
[/message]
[message]
speaker=narrator
message= _ "The brazen cry of a war-horn is heard in the distance."
sound=horn-signals/horn-2.ogg
image="portraits/goblins/transparent/rouser-2.png"
[/message]
[unit]
id=Aldun
name= _ "Aldun"
type=Horseman
random_traits=yes
side=2
x=33
y=24
facing=sw
[/unit]
{MOVE_UNIT id=Aldun 21 16}
[message]
id=Aldun
message= _ "General Aldar has received your message. He asks that you engage the orcish reinforcements from the north, preventing them from joining with their fellows here. Those fresh troops must not be allowed to enter the battle! Our reinforcements should arrive in a few days."
[/message]
[message]
id=Kalenz
message= _ "Very well... But have you any word of the elvish troops marching to join us? We are too few to defeat the enemy without them."
[/message]
[message]
id=Aldun
message=_"We have no news from the Ka’lian."
[/message]
[/event]
#### reenforcements for the orcs ####
#define ORCS
#ifdef EASY
recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Goblin Pillager, Goblin Knight, Goblin Spearman
#endif
#ifdef NORMAL
recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Goblin Pillager, Goblin Knight, Goblin Spearman, Orcish Slayer, Orcish Warrior
#endif
#ifdef HARD
recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Goblin Pillager, Goblin Knight, Goblin Spearman, Orcish Slayer, Orcish Warrior, Goblin Impaler
#endif
#enddef
[side]
side=7
allow_player=no
controller=ai
no_leader=yes
{GOLD 320 400 450}
{INCOME 12 20 26}
team_name=orcs
user_team_name= _ "Enemies"
{ORCS}
{ORC_SETUP}
[/side]
[side]
side=8
allow_player=no
controller=ai
no_leader=yes
{GOLD 320 400 450}
{INCOME 12 20 26}
team_name=orcs
user_team_name= _ "Enemies"
{ORCS}
{ORC_SETUP}
[/side]
[side]
side=9
allow_player=no
controller=ai
no_leader=yes
{GOLD 320 400 450}
{INCOME 12 20 26}
team_name=orcs
user_team_name= _ "Enemies"
{ORCS}
{ORC_SETUP}
[/side]
[event]
#ifndef DEBUG_MODE
name=side 3 turn 5
#else
name=side 3 turn 2
#endif
[message]
speaker=narrator
message= _ "The brazen cry of a war-horn is heard in the distance."
sound=horn-signals/horn-2.ogg
image="portraits/goblins/transparent/rouser-2.png"
[/message]
{LOAD_SUBMAP 5-99 1-99 4 0}
[unit]
role=reenforce1
type=Orcish Warlord
generate_name=yes
random_traits=yes
profile="portraits/orcs/transparent/warlord.png"
side=7
x=1
y=5
canrecruit=yes
[/unit]
[unit]
role=reenforce2
type=Orcish Warlord
generate_name=yes
random_traits=yes
profile="portraits/orcs/transparent/warlord.png"
side=8
x=1
y=28
canrecruit=yes
[/unit]
[unit]
role=reenforce3
type=Orcish Warlord
generate_name=yes
random_traits=yes
profile="portraits/orcs/transparent/grunt-2.png"
side=9
x=1
y=32
canrecruit=yes
[/unit]
[redraw]
[/redraw]
[message]
id=Aldar
message= _ "More of them arrive."
[/message]
[message]
role=reenforce1
message= _ "Our wolves’ teeth will crack their bones! Attack!"
[/message]
[scroll_to_unit]
role=reenforce3
[/scroll_to_unit]
[delay]
time=2000
[/delay]
[message]
role=reenforce2
message= _ "Blood and steel! Hunt the worms down and crush them!"
[/message]
[/event]
[side]
side=10
allow_player=no
controller=ai
no_leader=yes
{GOLD 320 400 450}
{INCOME 12 20 26}
team_name=orcs
user_team_name= _ "Enemies"
{ORCS}
{ORC_SETUP}
[/side]
[side]
side=11
allow_player=no
controller=ai
no_leader=yes
{GOLD 320 400 450}
{INCOME 12 20 26}
team_name=orcs
user_team_name= _ "Enemies"
{ORCS}
{ORC_SETUP}
[/side]
[side]
side=12
allow_player=no
controller=ai
no_leader=yes
{GOLD 320 400 450}
{INCOME 12 20 26}
team_name=orcs
user_team_name= _ "Enemies"
{ORCS}
{ORC_SETUP}
[/side]
#ifdef MULTIPLAYER
[side]
#Landar's side
side=13
team_name=player
user_team_name= _ "Player"
fog=no
shroud=no
{PLAYABLE}
{LANDAR}
{MULTIPLAYER_GOLD}
x=28
y=11
recruit=Elvish Fighter, Elvish Archer, Elvish Scout
[/side]
[side]
#Olurf's side
side=14
fog=no
shroud=no
{PLAYABLE}
{OLURF}
{MULTIPLAYER_GOLD}
x=36
y=10
team_name=player
user_team_name= _ "Player"
extra_recruit=Dwarvish Fighter, Dwarvish Scout, Dwarvish Guardsman, Dwarvish Thunderer
[/side]
[side]
#Cleodil's side
side=15
fog=no
shroud=no
{PLAYABLE}
{CLEODIL}
{MULTIPLAYER_GOLD}
x=36
y=10
team_name=player
user_team_name= _ "Player"
extra_recruit=Elvish Shaman, Wose, Elvish Scout
[/side]
#endif
[event]
#ifndef DEBUG_MODE
name=side 3 turn 12
#else
name=side 3 turn 3
#endif
[message]
speaker=narrator
message= _ "The brazen cry of a war-horn is heard in the distance."
sound=horn-signals/horn-2.ogg
image="portraits/goblins/transparent/rouser-2.png"
[/message]
{LOAD_SUBMAP 1-99 1-99 4 0}
[unit]
role=reenforce4
type=Orcish Warlord
generate_name=yes
random_traits=yes
profile="portraits/orcs/transparent/grunt-2.png"
side=10
x=2
y=7
canrecruit=yes
[/unit]
[unit]
role=reenforce5
type=Orcish Warlord
generate_name=yes
random_traits=yes
profile="portraits/orcs/transparent/grunt-2.png"
side=11
x=1
y=40
canrecruit=yes
[/unit]
[unit]
role=reenforce6
type=Orcish Warlord
generate_name=yes
random_traits=yes
profile="portraits/orcs/transparent/grunt-3.png"
side=12
x=1
y=45
canrecruit=yes
[/unit]
[redraw]
[/redraw]
[message]
role=reenforce5
message=_ "Har har har!"
[/message]
[/event]
#### /reenforcements for the orcs ####
#### reenforcements for the player ####
[event]
#ifndef DEBUG_MODE
name=turn 9
#else
name=turn 2
#endif
{FOREACH l3_store_kalenz i}
[unstore_unit]
find_vacant=yes
variable=l3_store_kalenz[$i]
x=9
y=15
[/unstore_unit]
[role]
role=l3_store
id=$l3_store_kalenz[$i].id
[/role]
{MODIFY_UNIT (id=$l3_store_kalenz[$i].id) facing ne}
{NEXT i}
{CLEAR_VARIABLE i}
#ifdef MULTIPLAYER
{FOREACH l3_store_landar i}
[unstore_unit]
find_vacant=yes
variable=l3_store_landar[$i]
x=9
y=15
[/unstore_unit]
[role]
role=l3_store
id=$l3_store_landar[$i].id
[/role]
{MODIFY_UNIT (id=$l3_store_landar[$i].id) facing ne}
{MODIFY_UNIT (id=$l3_store_landar[$i].id) side 13}
{NEXT i}
{CLEAR_VARIABLE i}
#endif
[if]
[not]
[variable]
name=l3_store_kalenz.length
numerical_equals=0
[/variable]
[/not]
#ifdef MULTIPLAYER
[or]
[not]
[variable]
name=l3_store_landar.length
numerical_equals=0
[/variable]
[/not]
[/or]
#endif
[then]
[message]
role=l3_store
message= _ "Kalenz! We come to fight beside you!"
[/message]
[message]
id=Kalenz
message= _ "Where is the rest of the elvish army? They were promised and should be here!"
[/message]
[message]
role=l3_store
message= _ "The Great Council has decided it was too risky to send troops here. But some of us dissented and have come to fight beside you."
[/message]
[message]
id=Landar
message= _ "That is well! If the Ka’lian is too fearful or blind to see what is needed, we must do it ourselves."
[/message]
[message]
id=Cleodil
message= _ "It is not well that we have become so divided as this."
[/message]
[message]
id=Kalenz
message= _ "No, it is not. But if we do not defeat these orcs here and now our divisions will all be moot. I will take every sword-arm I can get and be glad of them."
[/message]
[/then]
[/if]
#TODO else -- the player has to know that the kalian refused help.
{CLEAR_VARIABLE l3_store_kalenz}
#ifdef MULTIPLAYER
{CLEAR_VARIABLE l3_store_landar}
#endif
[/event]
[event]
name=time over
[unit]
type=Paladin
id=Kulrad
name=_ "Kulrad"
side=2
x=38
y=30
[/unit]
{GENERIC_UNIT 2 Knight 43 33}
{GENERIC_UNIT 2 Knight 43 36}
{GENERIC_UNIT 2 Horseman 38 34}
{GENERIC_UNIT 2 Horseman 42 35}
{GENERIC_UNIT 2 Horseman 39 34}
{GENERIC_UNIT 2 Horseman 43 37}
{GENERIC_UNIT 2 Horseman 41 37}
{GENERIC_UNIT 2 Horseman 41 39}
[message]
id=Kulrad
message= _ "I see foul orcs to be ridden down! Charge!"
[/message]
[message]
race=orc
canrecruit=yes
message= _ "More of the cursed horse-pokers!! Run, let’s get out of here!"
[/message]
#TODO move the message in a macro
[message]
speaker=narrator
message= _ "The not-at-all-brazen cry of a war-horn is heard in the distance."
#TODO rethink about which signal to use here
sound=horn-signals/horn-8.ogg
image="portraits/goblins/transparent/rouser-2.png"
[/message]
[endlevel]
result=victory
bonus=no
save=no
[/endlevel]
[/event]
[event]
name=enemies defeated
[message]
id=Aldar
message= _ "This is only a pause in their onslaught. Reform, men, and bind your wounds as you may. They’ll be back."
[/message]
#TODO CRAB
#[modify_ai]
#
#[/modify_ai]
[/event]
[event]
name=victory
[message]
id=Kalenz
message= _ "We have thwarted the Orcs once again!"
[/message]
[message]
id=Cleodil
message= _ "And we revived the alliance with the Humans, which is no small thing."
[/message]
[message]
id=Kalenz
message= _ "Indeed it is not. As always, Cleodil, you speak with the wisdom and care that befits a healer. That is a good reminder for those who must walk the path of steel and warfare, and touches my heart."
[/message]
[message]
id=Olurf
message= _ "A good fight against foul enemies. These orcs make a dwarf’s hackles rise; I might even fight them for free, next time."
[/message]
[message]
id=Aldar
message= _ "The King is here! Hail Haldric II, King of Wesnoth!"
[/message]
#TODO Landar is quiet?
[kill]
id=Aldun
[/kill]
[/event]
[event]
name=last breath
[filter]
id=Aldar
[/filter]
[message]
speaker=unit
message= _ "Tath will fall! We have failed!"
[/message]
[endlevel]
result=defeat
[/endlevel]
[/event]
[event]
name=last breath
[filter]
id=Grol
[/filter]
[message]
speaker=unit
message= _ "I die? Great Chief never said anything about fighting elves and dwarves!"
[/message]
[/event]
{campaigns/Legend_of_Wesmere/utils/deaths.cfg}
[/scenario]
#undef PLAYER_GOLD
#undef MULTIPLAYER_GOLD