-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path06_dark_hour.cfg
897 lines (791 loc) · 24.6 KB
/
06_dark_hour.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
#textdomain wesnoth-Frost_Mage
[scenario]
id=06_dark_hour
name= _ "Dark Hour"
next_scenario=07_meeting_the_council
map_data="{~add-ons/Frost_Mage/maps/06_dark_hour.map}"
{TURNS 30 25 20}
victory_when_enemies_defeated=no
{DEFAULT_SCHEDULE}
[label]
x,y=4,7
text=Wisdom Falls
[/label]
[side]
side=1
controller=human
no_leader=yes
save_id=team1
team_name=side1
user_team_name= _ "Erinna and friends"
recruit=Elvish Archer, Elvish Fighter, Elvish Shaman, Merman Fighter
{GOLD 200 160 120}
{INCOME 3 3 3}
[/side]
[side]
side=2
#TODO allow user to choose between ai or human controller
controller=ai
team_name=side1
save_id=merfolk
user_team_name= _ "Merfolk"
recruit=Mermaid Initiate, Merman Fighter, Merman Hunter, Mermaid Enchantress, Mermaid Priestess
{GOLD 250 200 150}
{INCOME 3 3 3}
[leader]
{CHARACTER_STATS:MARA}
[/leader]
[/side]
[side]
side=3
controller=ai
id=orc2
random_name=yes
type=Orcish Slurbow
team_name=enemies
canrecruit=yes
user_team_name= _ "Undead and Orcs"
#ifndef HARD
recruit=Orcish Grunt, Orcish Assassin, Orcish Archer
#endif
#ifdef HARD
recruit=Orcish Warrior, Orcish Slayer, Orcish Archer
#endif
{GOLD 300 400 500}
{INCOME 4 4 4}
[/side]
[side]
side=4
controller=ai
id=lich1
random_name=yes
type=Lich
team_name=enemies
canrecruit=yes
user_team_name= _ "Undead and Orcs"
#ifdef EASY
recruit=Skeleton, Skeleton Archer, Ghost, Dark Rider
#endif
#ifdef NORMAL
recruit=Skeleton, Skeleton Archer, Ghost, Revenant, Dark Invader, Wraith, Shadow, Bone Shooter
#endif
#ifdef HARD
recruit=Draug, Wraith, Shadow, Banebow, Necrophage, Dark Invader
#endif
{GOLD 400 500 600}
{INCOME 4 4 4}
[/side]
[side]
side=5
controller=ai
no_leader=yes
team_name=enemies
user_team_name= _ "Undead and Orcs"
recruit=Revenant, Dark Invader, Wraith, Shadow, Draug, Shadowback, Bone Shooter, Banebow
{GOLD 300 400 500}
{INCOME 4 4 4}
[/side]
[side]
side=6
controller=human
no_leader=yes
team_name=side1
user_team_name= _ "The Council"
save_id=highmage_team
#ifndef HARD
recruit=Chevalier, Elvish Hero, Elvish Ranger, Elvish Druid JoaFM, Elvish Sorceress JoaFM, Red Mage, White Mage, Swordsman, Sentry
#endif
#ifdef HARD
recruit=Mage, Spearman, Bowman, Infantryman, Elvish Archer, Elvish Fighter, Elvish Sorceress JoaFM, Chevalier, Elvish Shaman
#endif
{GOLD 400 350 300}
{INCOME 6 6 6}
[/side]
{JOAFM_TRACK {JOURNEY_06_NEW}}
[event]
name=prestart
first_time_only=yes
[music]
name=legends_of_the_north.ogg
[/music]
[set_variable]
name=lorendor.side
value=1
[/set_variable]
[set_variable]
name=sirenelder.side
value=2
[/set_variable]
[set_variable]
name=irizna.side
value=5
[/set_variable]
[set_variable]
name=irizna.canrecruit
value=yes
[/set_variable]
[unit]
{CHARACTER_STATS:ERINNA}
canrecruit=yes
x,y=3,11
[/unit]
[/event]
[event]
name=start
[message]
speaker=narrator
message= _ "Erinna tried her best to learn all that the Mermaids could teach her. Years passed, and soon the time came when she had learned all of their lore by heart."
[/message]
[message]
speaker=erinna
message= _ "Good morning, my lady. What is my schedule for today? The teachers told me to talk to you first. Has anyting happened?"
[/message]
[message]
speaker=sirenelder
message= _ "I am afraid there are no more classes after this, Erinna. We have taught you all that we can. Your training with us is complete."
[/message]
[message]
speaker=erinna
message= _ "(Shocked) Complete? But I feel like ..."
[/message]
[message]
speaker=sirenelder
message= _ "You feel like there is more to learn? That is true. You have potential, Erinna. Now it is upto you to learn and grow. We have given you the foundation. Now you have to forge your own path, that of an Aqua Magus. No longer are you the apprentice."
[/message]
[message]
speaker=narrator
message="Thanks to the Merfolk training, Erinna now can directly advance to Aqua Mage."
[option]
label="Advance"
[command]
[modify_unit]
[filter]
id=erinna
[/filter]
type=Aqua Mage
profile="portraits/humans/mage-aqua+female.png"
[/modify_unit]
[/command]
[/option]
[option]
label="Decline"
[command]
[allow_undo]
[/allow_undo]
[/command]
[/option]
[/message]
[unit]
{CHARACTER_STATS:IRIZNA}
side=5
x,y=34,34
canrecruit=yes
[/unit]
[message]
speaker=irizna
message= _ "It seems I should really thank the Merfolk. They did a very good job with the training. Now I can feel your cold aura from tens of miles away, dearie!"
[/message]
[message]
speaker=erinna
message= _ "Who ... who are you? And what do you want?"
[/message]
[message]
speaker=sirenelder
message= _ "Beware, Erinna. This is a Necromancer of the highest calibre."
[/message]
[message]
speaker=irizna
message= _ "Ah, I feel flattered! But not just your everyday Necromancer. Allow me the introduction. You are talking to Irizna, the Lady of Shadows."
[/message]
[message]
speaker=sirenelder
message= _ "No time for pleasantries, then. What do you want?"
[/message]
[message]
speaker=irizna
message= _ "I am really in a good mood today. Not only the preparations are done, but our dearie here is much, much stronger. So I give you an offer. Give her to me, and I might just spare you."
[/message]
[message]
speaker=sirenelder
message= _ "No."
[/message]
[message]
speaker=irizna
message= _ "Reconsider. I have enough forces to devastate your dear Academy, but I haven't done so yet."
[/message]
[message]
speaker=sirenelder
message= _ "I do not care. You will not have the girl."
[/message]
[message]
speaker=erinna
message= _ "(Privately) Lady $sirenelder.name, please just let me go. I don't want to see you in danger."
[/message]
[message]
speaker=sirenelder
message= _ "No, Erinna. Do not ever beg for your freedom and life. The solution is never as simple as just surrender. Especially with these kind of people. What will she do, once she gets her hands on you? Remember what happened to Rennor?"
[/message]
[message]
speaker=erinna
message= _ "But they do have lots of forces."
[/message]
[message]
speaker=sirenelder
message= _ "I have sent a messenger to Lorendor. Hopefully we will get the Council's support. But we must resist until then. Go to the Elves, Erinna. They will need a leader, since Lorendor isn't here."
[/message]
[message]
speaker=erinna
message= _ "(Shocked) Me?"
[/message]
[message]
speaker=sirenelder
message= _ "Obviously. The elves report to Lorendor, and in their absense, to you. I am sure your war strategy lessons will come in handy. And there are veterans to advise you in the camp. Now go."
[/message]
[objectives]
side=1,2
[objective]
description= _ "Move Erinna to the empty Keep."
condition=win
[/objective]
[gold_carryover]
carryover_percentage=40
[/gold_carryover]
{TURNS_RUN_OUT}
[/objectives]
[/event]
[event]
name=moveto
first_time_only=yes
[filter]
id=erinna
[filter_location]
x,y=12,16
[/filter_location]
[/filter]
[unit]
side=1
random_name=yes
type=Elvish Captain
id=captain
canrecruit=no
x,y=12,16
placement=map
[modifications]
{TRAIT_LOYAL}
{TRAIT_STRONG}
[/modifications]
[/unit]
[unit]
{CHARACTER_STATS:RAIZR}
placement = leader
[/unit]
[message]
speaker=erinna
message= _ "We need to organize everyone. An attack is coming. We need to hold until reinforcements arrive. They must not be allowed to destroy the Academy."
[/message]
[message]
speaker=raizr
message= _ "I'm with you, as always, little girl."
[/message]
[message]
speaker=captain
message= _ "So are the Elves, $erinna.name. The Scholar entrusted your safety to us. We will fight until the end."
[/message]
[message]
speaker=erinna
message= _ "Thank you, everyone."
[/message]
[objectives]
side=1,2
[objective]
description= _ "Stall the enemies until help arrives. (Turn 7)"
condition=win
[/objective]
[objective]
description= _ "Death of Erinna"
condition=lose
[/objective]
[objective]
description= _ "Death of Raizr"
condition=lose
[/objective]
[objective]
description= _ "Death of $sirenelder.name"
condition=lose
[/objective]
[gold_carryover]
carryover_percentage=40
[/gold_carryover]
{TURNS_RUN_OUT}
[/objectives]
[/event]
[event]
name=turn 7
[unit]
side=1
type=Gryphon
id=gryphon
x,y=35,3
[/unit]
[move_unit]
id=gryphon
to_x=16
to_y=13
[/move_unit]
[unit]
{CHARACTER_STATS:LORENDOR}
x,y=16,13
[/unit]
[message]
speaker=lorendor
message= _ "Erinna! Are you okay?"
[/message]
[message]
speaker=erinna
message= _ "Yes, so far. Reinforcements?"
[/message]
[message]
speaker=lorendor
message= _ "The main force will take some more time, but some of the force is already here. Meet Firelord $firelord.name!"
[/message]
[unstore_unit]
variable=firelord
x,y=16,13
find_vacant=yes
[/unstore_unit]
#ifdef EASY
[unit]
side=1
random_name=yes
type=Elvish Hero
canrecruit=no
x,y=16,14
placement=map
find_vacant=yes
[/unit]
[unit]
side=1
random_name=yes
type=Red Mage
canrecruit=no
x,y=16,13
placement=map
find_vacant=yes
[/unit]
#endif
#ifdef NORMAL
[unit]
side=1
random_name=yes
type=Red Mage
canrecruit=no
x,y=16,13
placement=map
find_vacant=yes
[/unit]
#endif
[unit]
side=1
random_name=yes
type=White Mage
canrecruit=no
x,y=16,13
placement=map
find_vacant=yes
[/unit]
#ifdef EASY
[unit]
side=1
random_name=yes
type=Sky Drake
canrecruit=no
x,y=16,13
placement=map
find_vacant=yes
[/unit]
[unit]
side=1
random_name=yes
type=Drake Flare
canrecruit=no
x,y=16,13
placement=map
find_vacant=yes
[/unit]
#endif
#ifdef NORMAL
[unit]
side=1
random_name=yes
type=Drake Flare
canrecruit=no
x,y=16,13
placement=map
find_vacant=yes
[/unit]
#endif
[unit]
side=1
random_name=yes
type=Drake Burner
canrecruit=no
x,y=16,13
placement=map
find_vacant=yes
[/unit]
#ifndef HARD
[unit]
side=1
random_name=yes
type=Swordsman
canrecruit=no
x,y=16,13
placement=map
find_vacant=yes
[/unit]
#endif
[unit]
side=1
random_name=yes
type=Elvish Marksman
canrecruit=no
x,y=16,13
placement=map
find_vacant=yes
[/unit]
[message]
speaker=sirenelder
message= _ "We can't express our gratitude enough, Firelord."
[/message]
[message]
speaker=firelord
message= _ "Bah, Forget that! Finally, I get my share of burnt skeleton today!"
[/message]
[objectives]
side=1
[objective]
description= _ "Defeat enemy forces or hold them at bay."
condition=win
[/objective]
[objective]
description= _ "Death of Erinna"
condition=lose
[/objective]
[objective]
description= _ "Death of Raizr"
condition=lose
[/objective]
[objective]
description= _ "Death of $sirenelder.name"
condition=lose
[/objective]
[objective]
description= _ "Death of Lorendor"
condition=lose
[/objective]
[objective]
description= _ "Death of $firelord.name"
condition=lose
[/objective]
[gold_carryover]
carryover_percentage=40
[/gold_carryover]
{TURNS_RUN_OUT}
[/objectives]
[/event]
[event]
name=turn 10
[music]
name=vengeful.ogg
[/music]
[message]
speaker=irizna
message= _ "It is time to end this farce."
[/message]
{FADE_TO_BLACK_HOLD 200}
{FADE_IN}
[gold]
#ifndef HARD
amount=500
#else
amount=700
#endif
side=5
[/gold]
[terrain]
terrain=Qxua
x,y=31,34
[/terrain]
[set_variable]
name=autogen
value=true
[/set_variable]
{RANDOM_UNIT 30 33 5}
{RANDOM_UNIT 30 34 5}
{RANDOM_UNIT 31 33 5}
[message]
speaker=lorendor
message= _ "This is bad, very bad. She has opened a direct portal to the Land of the Dead."
[/message]
[message]
speaker=erinna
message= _ "What should we do now?"
[/message]
[message]
speaker=lorendor
message= _ "Same as before. We have to play defensive until the Council's forces arrive. I have a friend there who might know what to do."
[/message]
{SCROLL_TO 31 34}
[objectives]
side=1
[objective]
description= _ "Stall enemies until the Council's main force arrives. (Turn 12)"
condition=win
[/objective]
[objective]
description= _ "Death of Erinna"
condition=lose
[/objective]
[objective]
description= _ "Death of Raizr"
condition=lose
[/objective]
[objective]
description= _ "Death of $sirenelder.name"
condition=lose
[/objective]
[objective]
description= _ "Death of Lorendor"
condition=lose
[/objective]
[objective]
description= _ "Death of $firelord.name"
condition=lose
[/objective]
[gold_carryover]
carryover_percentage=40
[/gold_carryover]
{TURNS_RUN_OUT}
[/objectives]
[/event]
[event]
name=side 5 turn
first_time_only=no
[if]
[variable]
name=autogen
boolean_equals=true
[/variable]
[then]
{RANDOM_UNIT 30 33 5}
{RANDOM_UNIT 30 33 5}
#ifdef HARD
{RANDOM_UNIT 31 33 5}
{RANDOM_UNIT 31 33 5}
#endif
[/then]
[/if]
[/event]
[event]
name=turn 12
{UNSTORE portalmage 12 16}
{UNSTORE lumenstriker 12 16}
[modify_unit]
[filter]
id=lumenstriker
[/filter]
canrecruit=yes
side=6
[/modify_unit]
[message]
speaker=narrator
message= _ "After holding out for quite some days, finally the Council's main force arrived."
[/message]
[message]
speaker=portalmage
message= _ "Are you all right, Lorendor?"
[/message]
[message]
speaker=lorendor
message= _ "We were stalling them somehow. But with the supoort of the main force, hopefully we will be able to stop this undead horde. $portalmage.name, Can you close the portal to the Land of the Dead?"
[/message]
[message]
speaker=portalmage
message= _ "I think I can, but I have move close to it first. And we'll also need to keep the Undead busy."
[/message]
[message]
speaker=erinna
message= _ "Fine. We will backup the main force."
[/message]
[message]
speaker=sirenelder
message= _ "Our forces will support Erinna's."
[/message]
{HIGHLIGHT_IMAGE 31 33 scenery/signpost.png ()}
[objectives]
side=1,2,6
[objective]
description= _ "Move $portalmage.name to the portal."
condition=win
[/objective]
[objective]
description= _ "Death of Heros (Erinna, Raizr, Lorendor)"
condition=lose
[/objective]
[objective]
description= _ "Death of $sirenelder.name"
condition=lose
[/objective]
[objective]
description= _ "Death of Council members ($lumenstriker.name, $portalmage.name)"
condition=lose
[/objective]
[gold_carryover]
carryover_percentage=40
[/gold_carryover]
{TURNS_RUN_OUT}
[/objectives]
[/event]
[event]
name=enemies defeated
[if]
[variable]
name=portal_closed
boolean_equals=true
[/variable]
[then]
{CLEAR_VARIABLE irizna}
[message]
speaker=erinna
message= _ "Finally!"
[/message]
[modify_unit]
[filter]
id=portalmage
[/filter]
canrecruit=no
side=1
[/modify_unit]
{STORE lumenstriker}
{STORE firelord}
{STORE sirenelder}
[store_unit]
[filter]
side=1
[/filter]
variable=army1
kill=yes
[/store_unit]
[endlevel]
result=victory
carryover_percentage=40
carryover_add=no
bonus=no
[/endlevel]
[/then]
[else]
[set_variable]
name=enemies_defeated
value=true
[/set_variable]
[message]
speaker=lorendor
message= _ "We only have to close the Portal now. $portalmage.name!"
[/message]
[message]
speaker=portalmage
message= _ "Working on it."
[/message]
[/else]
[/if]
[/event]
[event]
name=moveto
first_time_only=yes
[filter]
id=portalmage
[filter_location]
x,y=30-32,33-35
[/filter_location]
[/filter]
[set_variable]
name=autogen
value=false
[/set_variable]
[terrain]
terrain=Rb
x,y=31,33
[/terrain]
[message]
speaker=narrator
message= _ "With a loud sound of winds and the feel of static on air, the portal disappeared to nowhere, in the same way that it appeared."
[/message]
[set_variable]
name=portal_closed
value=true
[/set_variable]
[if]
[variable]
name=enemies_defeated
boolean_equals=true
[/variable]
[then]
{CLEAR_VARIABLE irizna}
[message]
speaker=erinna
message= _ "Finally!"
[/message]
[modify_unit]
[filter]
id=portalmage
[/filter]
canrecruit=no
side=1
[/modify_unit]
{STORE lumenstriker}
{STORE firelord}
{STORE sirenelder}
[store_unit]
[filter]
side=1
[/filter]
variable=army1
kill=yes
[/store_unit]
[endlevel]
result=victory
carryover_percentage=40
carryover_add=no
bonus=no
[/endlevel]
[/then]
[else]
[objectives]
side=1,2,6
[objective]
description= _ "Defeat the enemies."
condition=win
[/objective]
[objective]
description= _ "Death of Heros (Erinna, Raizr, Lorendor)"
condition=lose
[/objective]
[objective]
description= _ "Death of $sirenelder.name"
condition=lose
[/objective]
[objective]
description= _ "Death of Council members ($portalmage.name, $firelord.name, $lumenstriker.name)"
condition=lose
[/objective]
[gold_carryover]
carryover_percentage=40
[/gold_carryover]
{TURNS_RUN_OUT}
[/objectives]
[/else]
[/if]
[/event]
{DEATH_EVENT (lorendor,erinna,raizr,sirenelder,firelord,portalmage,lumenstriker)}
{TIMEOUT_EVENT}
[/scenario]