-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path09_pursuit.cfg
1081 lines (928 loc) · 24.4 KB
/
09_pursuit.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
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#textdomain wesnoth-Frost_Mage
[scenario]
current_time=0
id="09_pursuit"
map_data="{~add-ons/Frost_Mage/maps/09_pursuit.map}"
name= _ "Pursuit"
turns=-1
random_start_time=no
victory_when_enemies_defeated=no
next_scenario="10_the_city"
{DEFAULT_SCHEDULE}
[item]
image="scenery/mine-abandoned.png"
visible_in_fog=yes
x=4
y=12
[/item]
[side]
controller="human"
fog=yes
gold=360
hidden=no
shroud=yes
side=1
save_id=team1
team_name=erinna
user_team_name="Erinna and Friends"
{INCOME 3 3 3}
[leader]
{CHARACTER_STATS:LORENDOR}
[/leader]
[/side]
[side]
controller="human"
fog=yes
gold=600
hidden=no
no_leader=yes
shroud=yes
side=2
recruit=Mounted Bowman,Heavy Cavalry,White Mage,Red Mage
save_id=knights
team_name=knights
user_team_name="Knights"
{INCOME 4 4 4}
[/side]
[side]
controller="human"
fog=no
gold=0
hidden=no
no_leader=yes
share_vision="all"
shroud=yes
side=3
team_name=pilgrims
user_team_name="Pilgrims"
{INCOME 0 0 0}
[/side]
[side]
controller="ai"
fog=no
gold=600
hidden=no
share_vision="all"
shroud=no
side=4
team_name=bandits
user_team_name="Orc Pillagers"
{INCOME 4 4 4}
type=Orcish Warlord
recruit=Orcish Warrior, Orcish Assassin, Orcish Crossbowman, Orcish Slayer, Goblin Knight
[/side]
[side]
controller="ai"
fog=no
gold=600
hidden=no
share_vision="all"
shroud=no
side=5
team_name=bandits
user_team_name="Bandits"
{INCOME 4 4 4}
type=Highwayman
recruit=Outlaw,Arcane Enforcer,Rogue Cutthroat,Axeman
[/side]
[side]
controller="ai"
gold=1200
side=6
team_name=dark_creatures
user_team_name="Dark Creatures"
no_leader=yes
recruit=Draug,Banebow,Lich,Spectre,Apparition,Shadowback,Dark Invader
{INCOME 0 0 0}
[/side]
[side]
controller="ai"
fog=no
gold=400
hidden=no
share_vision="all"
shroud=no
side=7
team_name=bandits
user_team_name="Saurians"
{INCOME 4 4 4}
type=Saurian Flanker
recruit=Saurian Ambusher,Saurian Soothsayer
[/side]
{JOAFM_TRACK {JOURNEY_09_NEW}}
[event]
name=prestart
[clear_menu_item]
id=unequip
[/clear_menu_item]
[music]
name=frantic.ogg
[/music]
{WISH_ITEM_PICK_UP arzenth 30 16 "This unit is not skilled enough!" items/staff-2.png
(
[object]
id=arzenth
name= _ "Arzenth"
take_only_once=no
image=items/staff-2.png
description= _ "The Staff of Lightning, Arzenth."
[filter]
level=3
[/filter]
[effect]
apply_to=hitpoints
increase_total=6
heal_full=yes
[/effect]
[effect]
apply_to=max_experience
increase=10%
[/effect]
[effect]
apply_to=new_attack
name=lightning_strike
description=_"Lighting Strike"
icon=attacks/lightning.png
type=electric
range=ranged
damage=9
number=6
[specials]
{WEAPON_SPECIAL_MAGICAL}
[/specials]
[/effect]
[effect]
apply_to=status
remove=poisoned
[/effect]
[effect]
apply_to=status
remove=slowed
[/effect]
[/object]
)
}
{WISH_ITEM_PICK_UP eth_luril 2 13 "This unit is not skilled enough!" items/bow-elven-2.png
(
[object]
id=eth_luril
name= _ "Eth-Luril"
take_only_once=no
image=items/bow-elven-2.png
description= _ "The Faerie Bow, Eth-Luril."
[filter]
level=3
[/filter]
[effect]
apply_to=hitpoints
increase_total=6
heal_full=yes
[/effect]
[effect]
apply_to=max_experience
increase=10%
[/effect]
[effect]
apply_to=new_attack
name=faerie_arrow
description=_"Faerie Arrow"
icon=attacks/bow-magic.png
type=natural
range=ranged
damage=10
number=5
[specials]
{WEAPON_SPECIAL_MAGICAL}
{WEAPON_SPECIAL_SLOW}
[/specials]
[/effect]
[effect]
apply_to=status
remove=poisoned
[/effect]
[effect]
apply_to=status
remove=slowed
[/effect]
[/object]
)
}
{WISH_ITEM_PICK_UP lightspear 35 41 "This unit is not skilled enough!" items/staff-2.png
(
[object]
id=lightspear
name= _ "Spear of Light"
take_only_once=no
image=items/staff-2.png
description= _ "The Spear of Light."
[filter]
level=3
[/filter]
[effect]
apply_to=hitpoints
heal_full=yes
[/effect]
[effect]
apply_to=max_experience
increase=15%
[/effect]
[effect]
apply_to=new_attack
name=light_slash
description=_"Slash of Light"
icon=attacks/lightning.png
type=arcane
range=melee
damage=13
number=4
[specials]
{WEAPON_SPECIAL_MAGICAL}
[/specials]
[/effect]
[effect]
apply_to=new_ability
[abilities]
{ABILITY_ILLUMINATES}
[/abilities]
[/effect]
[effect]
apply_to=loyal
set=yes
[/effect]
[effect]
apply_to=status
remove=poisoned
[/effect]
[effect]
apply_to=status
remove=slowed
[/effect]
[/object]
)
}
[set_variable]
name=erinna.canrecruit
value=no
[/set_variable]
[set_variable]
name=erinna.side
value=1
[/set_variable]
[set_variable]
name=erinna.name
value= _ "Erinna"
[/set_variable]
# TODO Erinna might have 7+ mp due to AMLA
[set_variable]
name=erinna.max_moves
value=7
[/set_variable]
#
[set_variable]
name=dark_creature_spawn
value=true
[/set_variable]
[unit]
{CHARACTER_STATS:RAIZR}
placement = leader
[/unit]
[unit]
{CHARACTER_STATS:ALYA}
placement = leader
[/unit]
[/event]
[event]
name = start
[message]
speaker=lorendor
message= _ "$lightmage.name, did you manage to understand the expulsion spell yet? $erinna.name's condition is getting worse."
[/message]
[message]
speaker=lightmage
message= _ "I did understand the spell, but I believe it can only be cast at a specific time. Thankfully, this book has another spell which can keep the spirit inside $erinna.name dormant for at least one more day. But take care, once I cast the expulsion spell, neither me nor $erinna.name will be able to move for a couple of hours from the place of the incantation."
[/message]
[message]
speaker=lorendor
message= _ "That is fine, we do have our veteran soldiers with us. They would be able to protect $erinna.name and you for a while. But we might not be able to get any new recruits here."
[/message]
[message]
speaker=lorendor
message= _ "Let us look around. Maybe we can find a safer place."
[/message]
[message]
speaker=lightmage
message= _ "I will cast the dormancy spell on $erinna.name first. This will allow her to wake up and behave normally, until the time to cast the expulsion spell is met."
[/message]
[disallow_recruit]
side=1
[/disallow_recruit]
{UNSTORE erinna 13 4}
[message]
speaker=erinna
message= _ "Wh..where am I?"
[/message]
[message]
speaker=lorendor
message= _ "Northern mountains."
[/message]
[message]
speaker=erinna
message= _ "When did we come here? I have ... no memories since the time $lightmage.name tested me. I ... don't feel right. Did something happen?"
[/message]
[message]
speaker=erinna
message= _ "(Notices the black aura) What is this!"
[/message]
[message]
speaker=lightmage
message= _ "You were possessed by a dangerous spirit. It shows the spirit is still inside, but is dormant. I'll heal you. Then we can start moving, and you can get the details from $lorendor.name."
[/message]
[message]
speaker=lorendor
message= _ "$erinna.name, I think that aura may also call something bad at night. We must be careful. It also nullifies $lightmage.name's holy illumination when you are close to her."
[/message]
{HEAL erinna}
[objectives]
side=1
[objective]
description= _ "Recall units, then explore around. You can recall around $lorendor.name's starting position (14,3)."
condition=win
[/objective]
[note]
description= _ "Keep is temporary and will be removed on turn 3."
[/note]
[note]
description= _ "The dark aura around $erinna.name calls ghosts and other creatures at night. Careful!"
[/note]
[note]
description= _ "$lightmage.name will cast the spell at turn 7. She and $erinna.name will not be able to move for 3 turns."
[/note]
[gold_carryover]
carryover_percentage=40
[/gold_carryover]
{TURNS_RUN_OUT}
[/objectives]
[unit]
{CHARACTER_STATS:AETHYRA}
side=3
canrecruit=no
x,y=15,10
[/unit]
[unit]
{CHARACTER_STATS:LUMIS}
side=3
canrecruit=no
x,y=14,10
[/unit]
{MAKE_HERO aethyra}
{MAKE_HERO lumis}
[/event]
[event]
name=sighted
first_time_only=yes
# FIXME
[filter]
side=3
[filter_vision]
side=1
[/filter_vision]
[/filter]
[message]
speaker=second_unit
message= _ "Who are they?"
[/message]
[message]
speaker=lorendor
message= _ "Looks like pilgrims who are returning from a visit to the temple."
[/message]
{NAMED_LOYAL_UNIT 4 (Orcish Warrior) 15 13 (kruk) (_ "Kruk")}
[message]
speaker=kruk
message= _ "Rich humans! Lads, get rid of them and their money is ours!"
[/message]
{GENERIC_UNIT 4 (Orcish Grunt) 12 12}
{GENERIC_UNIT 4 (Orcish Archer) 14 13}
{GENERIC_UNIT 4 (Orcish Grunt) 17 13}
{GENERIC_UNIT 4 (Orcish Archer) 18 11}
[scroll_to_unit]
id=aethyra
[/scroll_to_unit]
[scroll_to_unit]
id=lumis
[/scroll_to_unit]
[harm_unit]
[filter]
id=aethyra,lumis
[/filter]
amount=4
[/harm_unit]
[message]
speaker=erinna
message= _ "They are being attacked! Hurry."
[/message]
[modify_unit]
[filter]
id=aethyra,lumis
[/filter]
side=1
[/modify_unit]
[objectives]
side=1
[objective]
description= _ "Defeat the orcs and rescue the humans."
condition=win
[/objective]
[note]
description= _ "Keep is temporary and will be removed on turn 3."
[/note]
[note]
description= _ "The dark aura around $erinna.name calls ghosts and other creatures at night. Careful!"
[/note]
[note]
description= _ "$lightmage.name will cast the spell at turn 7. She and $erinna.name will not be able to move for 5 turns."
[/note]
[gold_carryover]
carryover_percentage=40
[/gold_carryover]
{TURNS_RUN_OUT}
[/objectives]
[/event]
[event]
name=last breath
[filter]
id=kruk
[/filter]
{STORE aethyra KILL=no}
{STORE lumis KILL=no}
[message]
speaker=aethyra
message= _ "Elvenfolk, we are eternally grateful for your timely assistance. Otherwise we might not have seen the next sunrise."
[/message]
[message]
speaker=aethyra
message= _ "My name is $aethyra.name, and this is my younger brother, $lumis.name."
[/message]
[message]
speaker=erinna
message= _ "(Introduces others) and I am $erinna.name."
[/message]
[message]
speaker=erinna
message= _ "Please, don't mention it. You are not in our debt."
[/message]
[message]
speaker=lorendor
message= _ "I agree. Why are you travelling alone? This path is full of perils."
[/message]
[message]
speaker=lumis
message= _ "We had escorts, but they perished on the way back from the temple. We survived somehow."
[/message]
[message]
speaker=erinna
message= _ "Let them come with us, at least until the next settlement."
[/message]
[message]
speaker=lightmage
message= _ "I wholeheartedly support this. I will tend to their wounds."
[/message]
[message]
speaker=lorendor
message= _ "Certainly. We cannot leave them here."
[/message]
[message]
speaker=aethyra
message= _ "Thank you! You are a gift from God."
[/message]
[message]
speaker=lorendor
message= _ "I think these orcs were just lackeys. We need to defeat the leader. Otherwise they will just keep harming innocent strangers."
[/message]
[objectives]
side=1
[objective]
description= _ "Defeat the enemies."
condition=win
[/objective]
[note]
description= _ "The dark aura around $erinna.name calls ghosts and other creatures at night. Careful!"
[/note]
[note]
description= _ "$lightmage.name will cast the spell at turn 7. She and $erinna.name will not be able to move for 3 turns."
[/note]
[gold_carryover]
carryover_percentage=40
[/gold_carryover]
{TURNS_RUN_OUT}
[/objectives]
[/event]
# Expulsion spell starts
[event]
name=side 1 turn 7
first_time_only=yes
{MSG lightmage (_"The spell needs to be cast now. We will need to be protected for half a day.")}
{MSG lorendor (_"We will form a defensive perimeter so that no harm will come to you.")}
{MSG lightmage (_"Thank you. $erinna.name, are you prepared?")}
{MSG erinna (_"Yes, cast the spell.")}
# TODO add flashing animation or something similar here.
# FIXME move the two units close
[set_variable]
name=dark_creature_spawn
value=no
[/set_variable]
{STORE erinna KILL=no}
[move_unit]
id=lightmage
to_x=$erinna.x
to_y=$erinna.y
[/move_unit]
{MODIFY_UNIT (id=lightmage) moves 0}
{MODIFY_UNIT (id=lightmage) max_moves 0}
{MODIFY_UNIT (id=erinna) moves 0}
{MODIFY_UNIT (id=erinna) max_moves 0}
{MODIFY_UNIT (id=erinna) halo "halo/holy/light-beam-4.png:[30*6,130,70*6]"}
[objectives]
side=1
[objective]
description= _ "Protect $erinna.name and $lightmage.name for 3 turns."
condition=win
[/objective]
[objective]
description= _ "Death of Lorendor, $lightmage.name or $erinna.name."
condition=lose
[/objective]
[gold_carryover]
carryover_percentage=40
[/gold_carryover]
{TURNS_RUN_OUT}
[/objectives]
[/event]
# Expulsion spell ends
[event]
name=side 1 turn 10
{FLASH_WHITE ()}
# add flashing animation or something similar here.
{MODIFY_UNIT (id=lightmage) moves $lightmage.max_moves}
{MODIFY_UNIT (id=lightmage) max_moves $lightmage.max_moves}
{MODIFY_UNIT (id=erinna) moves $erinna.max_moves}
{MODIFY_UNIT (id=erinna) max_moves $erinna.max_moves}
{MODIFY_UNIT (id=erinna) halo ""}
# Remove obscures
{THUNDER
(
{STORE erinna KILL=no}
[set_variables]
name=erinna.abilities.illuminates
mode=merge
[value]
__remove=yes
[/value]
[/set_variables]
{UNSTORE_SAME erinna})
}
{MSG erinna (_"Thank heavens! I am finally free of that miasma.")}
[music]
name=vengeful.ogg
[/music]
{STORE erinna KILL=no}
[unit]
side=6
id=spirit_lord
random_name=yes
type=Spectre Lord
canrecruit=yes
halo=halo/darkens-aura.png~BLIT(halo/undead/idle-flash-[1~21].png, 60, 75)
x,y=$erinna.x,$erinna.y
find_vacant=yes
max_moves=3
[/unit]
{MSG evil_spirit_lord (_"(Unearthly scream)")}
[terrain]
terrain=Qxua^Kov
x,y=14,3
[/terrain]
[move_unit]
id=spirit_lord
to_x=14
to_y=3
[/move_unit]
[terrain]
terrain=Qxua^Cov
x,y=13,3
[/terrain]
[terrain]
terrain=Qxua^Cov
x,y=13,4
[/terrain]
[terrain]
terrain=Qxua^Cov
x,y=15,4
[/terrain]
[terrain]
terrain=Qxua^Cov
x,y=14,4
[/terrain]
[terrain]
terrain=Qxua^Cov
x,y=15,3
[/terrain]
[terrain]
terrain=Qxua^Cov
x,y=14,2
[/terrain]
{MSG lorendor (_"So that was the spirit possessing $erinna.name!")}
{MSG lightmage (_"That spirit... we need to stop it... otherwise it will destroy everything!")}
[harm_unit]
[filter]
id=lightmage
[/filter]
amount=$lightmage.hitpoints/2
kill=no
[/harm_unit]
{STORE lightmage}
[harm_unit]
[filter]
id=erinna
[/filter]
amount=$erinna.hitpoints/2
kill=no
[/harm_unit]
{MSG lorendor (_"No... $lightmage.name fainted! The great spell has taken its toll.")}
{MSG erinna (_"Why did everything has to go awry like this? I can't believe it!")}
{MSG erinna (_"(teary) I am sorry, everyone. You have to suffer because of me.")}
{MSG lorendor (_"Don't blame yourself. $lightmage.name did it because she wanted to. She will recover. But you must not break down now. We have a hard battle in front of us.")}
{MSG aethyra (_"Yes, he is right. Please don't blame yourself, $erinna.name. You must stay strong, for her sake at least.")}
{MSG erinna (_"Thank ... you!")}
{MSG erinna (_"I will stop this spirit myself!")}
{MSG lumis (_"The Spirit seems to be extremely dangerous... and angry! Can we really stop it?")}
{MSG lorendor (_"The spell must have weakened it somehow. We need to exploit that.")}
{MSG lorendor (_"I had suspicions about it, but I think this place has hidden magical objects that might help us. When $lightmage.name cast that powerful spell, they responded to the magic. I felt the echo.")}
{MSG lorendor (_"I can not tell their exact location, but I feel three of them, towards north-east, north-west and south-west.")}
{MSG aethyra (_"Those magic items might be of great help. We need to find them immediately.")}
[objectives]
side=1
[objective]
description= _ "Defeat the Spirit and any remaining enemy leaders (except Knights)."
condition=win
[/objective]
[objective]
description= _ "Death of $erinna.name, $lorendor.name, $aethyra.name or $lumis.name."
condition=lose
[/objective]
[note]
description= _ "Search around the map. You might be able to find something to help you."
[/note]
[gold_carryover]
carryover_percentage=40
[/gold_carryover]
{TURNS_RUN_OUT}
[/objectives]
[if]
[variable]
name=side1_found
boolean_equals=false
[/variable]
[then]
{MSG gknight (_"What was that?")}
{MSG uncle (_"Doesn't feel good. We should investigate this.")}
{MSG gknight (_"Agreed. You go scout what's causing this, I'll deal with the situation here.")}
[objectives]
side=2
[objective]
description= _ "Find out what happened and who caused it."
condition=win
[/objective]
[objective]
description= _ "Death of $gknight.name and $uncle.name"
condition=lose
[/objective]
[gold_carryover]
carryover_percentage=40
[/gold_carryover]
{TURNS_RUN_OUT}
[/objectives]
[/then]
[/if]
[/event]
# Win event
[event]
name=last breath
[filter]
id=spirit_lord
[/filter]
{MSG erinna (_"Finally, we are free of that pestilence!")}
{MSG narrator (_"(Everyone shouts in triumph.)")}
{CLEAR_VARIABLE side1_found}
{MSG gknight (_"Now that we are free of that Spirit, let us talk, my lords and ladies.")}
{MSG lorendor (_"Definitely. What is it that bothers you? Perhaps the necromancer you were talking about?")}
{MSG gknight (_"I don't think there was a necromancer. Our report was wrong. But you do have an ancient book of white magic in your posession, correct? We have been informed that it was stolen. Now that Lady $erinna.name is purified, would you like to return it to the Head Priest of the temple in the Northern Mountains?")}
{MSG lorendor (_"I am afraid that book wasn't originally his to begin with. It was the Ice Dragon's property.")}
{MSG gknight (_"So you did ally yourself with a vile beast! Not only that, you also stole the Magic Sword from its secure vault and the book of White Magic.")}
{MSG lorendor (_"You have been misinformed. I advise you investigate the truth of the situation before actually accusing us.")}
{MSG uncle (_"Sir $gknight.name, it's best to settle the matter peacefully. My lord $lorendor.name, may I ask all of you to come to Glamdrol and have the matter settled before the city council? I think the matter has been reported to Weldyn by now.")}
{MSG aethyra (_"$uncle.name, Do you recognize me and my brother?")}
{MSG gknight (_"Lord Arvon's son and daughter? What is your position in this, my lord and lady?")}
{MSG lumis (_"We will support $erinna.name. You can count on that.")}
{MSG lorendor (_"Sir $gknight.name, we will come with you, if only to settle the matter without bloodshed. However, you have already seen our might. Know that it is but a small fraction of the forces I can muster. I do not fear Weldyn, but I wish for justice to be withheld.")}
{MSG gknight (_"Thank you, my lord. I apologize for my earlier behaviour. Let us leave this wicked place now.")}
{STORE gknight}
{STORE uncle}
{STORE aethyra}
{STORE lumis}
{STORE lightmage} # TODO : temporary
# TODO : Store all units
[endlevel]
result=victory
carryover_percentage=40
carryover_add=yes
bonus=no
[/endlevel]
[/event]
# Dark creature spawn
[event]
name=side 6 turn
first_time_only=no
[filter_condition]
[lua]
code = << return (wml.variables["turn_number"] % 6 > 3) >>
[/lua]
[/filter_condition]
[if]
[variable]
name=dark_creature_spawn
boolean_equals=true
[/variable]
[then]
{MSG narrator (_"A dark creature appears ...")}
{STORE erinna KILL=no}
[set_variable]
name=ru_x1
value=$erinna.x
[/set_variable]
[set_variable]
name=ru_x1
add=2
[/set_variable]
#ifdef HARD
[set_variable]
name=ru_x2
value=$erinna.x
[/set_variable]
[set_variable]
name=ru_x2
sub=2
[/set_variable]
#endif
[set_variable]
name=ru_y
value=$erinna.y
[/set_variable]
{RANDOM_UNIT $ru_x1 $ru_y 6}
#ifdef HARD
{RANDOM_UNIT $ru_x2 $ru_y 6}
#endif
{CLEAR_VARIABLE ru_x1}
#ifdef HARD
{CLEAR_VARIABLE ru_x2}
#endif
{CLEAR_VARIABLE ru_y}
[/then]
[/if]
[/event]
# Remove keep
[event]
name=side 1 turn 4
{MSG lorendor (_"Remove the encampment. We cannot delay here any longer.")}
[terrain]
terrain=Rra
x,y=14,3
[/terrain]
[terrain]
terrain=Rra
x,y=13,3
[/terrain]
[terrain]
terrain=Rra
x,y=13,4
[/terrain]
[terrain]
terrain=Rra
x,y=15,4
[/terrain]
[terrain]
terrain=Aa
x,y=14,4
[/terrain]
[/event]
#### Side 2 events
[event]
name=side 2 turn 5
[unit]
side=2
id=gknight
type=Black Knight
x,y=7,44
random_name=yes
canrecruit=yes
[modifications]
{TRAIT_LOYAL}
{TRAIT_FEARLESS}
[/modifications]
[/unit]
[unit]
side=2
type=Cataphract
id=uncle
x,y=7,44
find_vacant=yes
[modifications]
{TRAIT_LOYAL}
{TRAIT_AGED}
[/modifications]
[/unit]
{MAKE_HERO uncle}
{GENERIC_UNIT 2 "Heavy Cavalry" 7 44}
{GENERIC_UNIT 2 "Paladin" 7 44}
{GENERIC_UNIT 2 "Mounted Bowman" 7 44}
{GENERIC_UNIT 2 "Cataphract" 7 44}
{GENERIC_UNIT 2 "Heavy Cavalry" 7 44}
{GENERIC_UNIT 2 "Mounted Bowman" 7 44}
{MSG gknight (_"Are you sure of the news?")}
{MSG uncle (_"Yes, the high priest claimed that a group of humans and elves stole a magic book from him, and it is very dangerous to leave it in their hands. One of them might be a necromancer.")}
{MSG gknight (_"Fancy tales. Why do we have to find his magic book for him?")}
{MSG uncle (_"Best not to offend him, he's powerful. Besides, we cannot let necromancers run around free.")}
{MSG gknight (_"Let's look around and try to find a keep for now.")}
{MSG uncle (_"Sources also mentioned that this area is infested with saurians, bandits and orcs.")}
{MSG gknight (_"Then we will get rid of them as well.")}
{STORE gknight KILL=no}
{STORE uncle KILL=no}
[objectives]
side=2
[objective]
description= _ "Find a keep, then defeat enemy leaders."
condition=win
[/objective]