-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path08_the_temple.cfg
868 lines (734 loc) · 22.7 KB
/
08_the_temple.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
#textdomain wesnoth-Frost_Mage
[scenario]
id=08_the_temple
name= _ "The Temple"
next_scenario="09_pursuit"
map_data="{~add-ons/Frost_Mage/maps/08.map}"
turns=-1
victory_when_enemies_defeated=no
{DEFAULT_SCHEDULE}
[story]
[part]
background="story/landscape-mountains-04.jpg"
story= _ "Deciding they were running out of time, $portalmage.name decided to teleport Lorendor, $lightmage.name and the possessed Erinna, along with some veteran soldiers, to Northern Mountains at the cost of most of his magic energy. Their destination was an ancient temple there where $lightmage.name had previously made a visit."
[/part]
[/story]
[side]
side=1
controller=human
save_id=team1
recruit=Elvish Hero, Elvish Captain, Elvish Guardsman, Elvish Ranger, Elvish Marksman, Elvish Sorceress JoaFM, Elvish Druid JoaFM JoaFM
shroud=yes
team_name=erinna
user_team_name= _ "Lorendor"
{GOLD 300 250 200}
{INCOME 3 3 3}
[leader]
{CHARACTER_STATS:LORENDOR}
[/leader]
[/side]
[side]
side=2
controller=ai
save_id=temple
team_name=erinna
user_team_name= _ "The Temple"
type=Mage of Light
id=headpriest
gender=male
{GOLD 0 0 0}
{INCOME 0 0 0}
[/side]
[side]
side=3
controller=ai
save_id=dragon
team_name=villains
user_team_name= _ "Dragon"
no_leader=yes
{GOLD 300 400 600}
{INCOME 0 0 0}
[/side]
[side]
side=4
controller=ai
save_id=orcs
team_name=villains
user_team_name= _ "Orcs"
type=Orcish Slurbow
id=Slurbow
recruit=Orcish Warrior, Orcish Assassin, Orcish Crossbowman
{GOLD 200 300 350}
{INCOME 2 2 2}
[/side]
[side]
side=5
controller=ai
save_id=trolls
team_name=villains
user_team_name= _ "Trolls"
type=Troll Hero
id=trollhero
#ifdef Easy
recruit=Troll Whelp, Troll Shaman
#endif
#ifdef NORMAL
recruit=Troll, Troll Rocklobber, Troll Shaman
#endif
#ifdef HARD
recruit=Troll Warrior, Troll Rocklobber, Troll Shaman
#endif
{GOLD 200 300 350}
{INCOME 2 2 2}
[/side]
[side]
side=6
controller=ai
save_id=guardians
team_name=guardians
user_team_name= _ "Dungeon Guardian"
no_leader=yes
recruit=Dust Devil,Stone Golem,Ice Crab
{GOLD 100 200 250}
{INCOME 0 0 0}
[/side]
{JOAFM_TRACK {JOURNEY_08_NEW}}
#temple
[item]
x,y=16,15
image=scenery/temple1.png
[/item]
[item]
x,y=15,16
image=scenery/temple1.png
[/item]
[item]
x,y=16,17
image=scenery/temple1.png
[/item]
[item]
x,y=17,17
image=scenery/temple1.png
[/item]
[item]
x,y=17,16
image=scenery/temple1.png
[/item]
# Dungeon
[item]
x,y=26,1
image=scenery/rune2.png
[/item]
#Player 1 keep : Summoning circle
[item]
x,y=12,42
image=scenery/summoning-center.png
[/item]
[item]
x,y=11,42
image=scenery/summoning-circle1.png
[/item]
[item]
x,y=11,43
image=scenery/summoning-circle2.png
[/item]
[item]
x,y=12,43
image=scenery/summoning-circle3.png
[/item]
[item]
x,y=13,42
image=scenery/summoning-circle4.png
[/item]
[item]
x,y=13,43
image=scenery/summoning-circle5.png
[/item]
[item]
x,y=12,41
image=scenery/summoning-circle3.png
[/item]
[event]
name=prestart
[music]
name=suspense.ogg
[/music]
[disallow_recruit]
side=1
type=Elvish Fighter, Elvish Archer, Elvish Shaman, Merman Fighter
[/disallow_recruit]
[capture_village]
side=2
x,y=16,11
[/capture_village]
{WISH_ITEM_PICK_UP frost_sword 29 4 "This unit is not skilled enough!" items/sword-frost.png
(
[object]
id=frost_sword
name= _ "Strakos"
take_only_once=no
image=items/sword-frost.png
description= _ "Strakos, the legendary sword of ice, found in the hearts of the Northen Mountains."
[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=frost_strike
description=_"Frost Strike"
icon=attacks/frost-sword.png
type=cold
range=melee
damage=15
number=3
[specials]
{JOAFM_WEAPON_SPECIAL_FREEZES}
[/specials]
[/effect]
[effect]
apply_to=status
remove=poisoned
[/effect]
[effect]
apply_to=status
remove=slowed
[/effect]
[/object]
)
}
[unit]
{CHARACTER_STATS:RAIZR}
placement = leader
[/unit]
[unit]
{CHARACTER_STATS:ALYA}
placement = leader
[/unit]
[/event]
[event]
name=start
[message]
speaker=lorendor
message= _ "How far away is the temple?"
[/message]
[message]
speaker=lightmage
message= _ "On a mountain, where the path branches. It is close."
[/message]
[message]
speaker=lorendor
message= _ "Fine. Let's be prepared in case we run into trouble."
[/message]
[objectives]
[objective]
description= _ "Find the temple."
condition=win
[/objective]
[objective]
description= _ "Death of Lorendor or $lightmage.name."
condition=lose
[/objective]
{TURNS_RUN_OUT}
[gold_carryover]
carryover_percentage=40
[/gold_carryover]
[note]
description= _ "This is a long scenario with multiple quests."
[/note]
[/objectives]
[/event]
# Unit finds temple entrance
[event]
name=moveto
first_time_only=yes
[filter]
side=1
[filter_location]
x,y=13-15,20-21
[/filter_location]
[and]
[not]
id=lightmage
[/not]
[/and]
[/filter]
[message]
speaker=unit
message= _ "The Temple's entrance is here! But it is blocked somehow. I cannot go in."
[/message]
[message]
speaker=lightmage
message= _ "There is a magical barrier protecting the Temple. Let me go there."
[/message]
[objectives]
[objective]
description= _ "Move $lightmage.name to the Temple's entrance."
condition=win
[/objective]
[objective]
description= _ "Death of Lorendor or $lightmage.name."
condition=lose
[/objective]
{TURNS_RUN_OUT}
[gold_carryover]
carryover_percentage=40
[/gold_carryover]
[note]
description= _ "This is a long scenario with multiple quests."
[/note]
[/objectives]
[/event]
# Lightmage enters temple
[event]
name=moveto
first_time_only=yes
[filter]
id=lightmage
[filter_location]
x,y=13-15,20-21
[/filter_location]
[/filter]
[message]
speaker=lightmage
message= _ "High Priest! Please let us come in. It is me, $lightmage.name, your student!"
[/message]
[message]
speaker=headpriest
message= _ "$lightmage.name? Why are you here?"
[/message]
[move_unit]
id=lightmage
to_x=14
to_y=20
[/move_unit]
[move_unit]
id=highpriest
to_x=14
to_y=18
[/move_unit]
[message]
speaker=headpriest
message= _ "Wait! That girl is possessed!"
[/message]
[message]
speaker=lightmage
message= _ "That is why we are here, teacher. Nobody but the magi here could possibly help her."
[/message]
[message]
speaker=headpriest
message= _ "You do not understand the strength of this spirit. It is no ordinary Spectre. It has probably waited and schemed thousands of years just to get back. I cannot assure the girl's, and everyones safety once the girl wakes up. I am ashamed to say this as a White Mage, but chances of the girl surviving is very slim. You better get rid of her before she wakes up."
[/message]
[message]
speaker=lightmage
message= _ "No! Teacher, how can you say such harsh words!"
[/message]
[message]
speaker=lorendor
message= _ "Anything else you can suggest? I am afraid we cannot take that step."
[/message]
[unit]
side=3
type=Wyrm
profile="portraits/monsters/ice-dragon.png"
id=ice_dragon
canrecruit=yes
x,y=14,24
find_vacant=yes
[/unit]
[message]
speaker=ice_dragon
message= _ "(Roars)"
[/message]
[message]
speaker=headpriest
message= _ "Oh no! Do what you want, I am going."
[/message]
[move_unit]
id=highpriest
to_x=13
to_y=17
[/move_unit]
[music]
name=the_dangerous_symphony.ogg
[/music]
[message]
speaker=lorendor
message= _ "What was that?"
[/message]
[move_unit]
id=ice_dragon
to_x=13
to_y=23
[/move_unit]
[message]
id=ice_dragon
message= _ "That old fool! He runs faster than the sewer rats!"
[/message]
[message]
id=ice_dragon
message= _ "What's this? He also started abandoning people? Very well, suffer my wrath!"
[/message]
[message]
speaker=lorendor
message= _ "To Arms, everyone! En Garde!"
[/message]
[objectives]
[objective]
description= _ "Defeat the Dragon."
condition=win
[/objective]
[objective]
description= _ "Death of Lorendor or $lightmage.name."
condition=lose
[/objective]
{TURNS_RUN_OUT}
[gold_carryover]
carryover_percentage=40
[/gold_carryover]
[note]
description= _ "This is a long scenario with multiple quests."
[/note]
[/objectives]
[allow_recruit]
side=3
type=Great Icemonax, Wild Wyvern, Cave Wyrm
[/allow_recruit]
[/event]
# Switch event
[event]
name=moveto
first_time_only=yes
[filter]
side=1
[filter_location]
x,y=26,1
[/filter_location]
[/filter]
{REMOVE_IMAGE 26 1}
[item]
x,y=26,1
image=scenery/rune2-glow.png
[/item]
{MSG unit (_"Whoa! What's this?")}
[terrain]
terrain=Urb
x,y=24-26,3-4
[/terrain]
[terrain]
terrain=Urb
x,y=27,3
[/terrain]
[message]
speaker=lorendor
message= _ "Good job, $unit.name. You found the mechanism that opens the path. Now we can go forward."
[/message]
[/event]
# Drop sword near dragon
[event]
name=wish_item_drop
# Thanks to Refumee for mentioning that 'first_time_only' should be set to 'no' here
first_time_only=no
[if]
[variable]
name=drop_item
boolean_equals=yes
[/variable]
[then]
[message]
speaker=ice_dragon
message= _ "Well done. You have successfully completed your quest."
[/message]
[message]
speaker=ice_dragon
message= _ "Since you have done it so well, I shall give you something."
[/message]
[item]
x,y=5,5
image=items/book1.png
[/item]
[message]
speaker=ice_dragon
message= _ "Take this book. It has a spell that will allow you to remove the spirit from the girl's body. But beware, it will only work if the girl's spirit has enough strength left to fight."
[/message]
[message]
speaker=lorendor
message= _ "Thank you. $lightmage.name, are you ready?"
[/message]
[message]
speaker=lightmage
message= _ "As ready as ever. Give me the book, please."
[/message]
{STORE ice_dragon}
[message]
speaker=headpriest
message= _ "I can't believe it! Not only they stole the ice sword, they allied themselves with the dragon! This cannot go unpunished! Call the messengers. I have important messages to send."
[/message]
[modify_side]
side=2
team_name=temple
[/modify_side]
[endlevel]
result=victory
carryover_percentage=40
carryover_add=no
bonus=no
[/endlevel]
[/then]
[/if]
[/event]
# WISh item pickup event
[event]
name=wish_item_pickup
[message]
speaker=lorendor
message= _ "Excellent, $unit.name! Now that we have the item, let's go to the Dragon."
[/message]
[set_variable]
name=eq_unit_id
value=$unit.id
[/set_variable]
[set_variable]
name=sword_found
value=yes
[/set_variable]
[objectives]
side=1
[objective]
description= _ "Move the unit with Strakos to meet the dragon (7,6)."
condition=win
[/objective]
[objective]
description= _ "Death of Lorendor or $lightmage.name."
condition=lose
[/objective]
{TURNS_RUN_OUT}
[gold_carryover]
carryover_percentage=40
[/gold_carryover]
[note]
description= _ "Right click on the unit > Unequip to drop the item."
[/note]
[note]
description= _ "This is a long scenario with multiple quests."
[/note]
[/objectives]
{HIGHLIGHT_IMAGE 7 6 items/gohere.png ()}
[/event]
# Move to dragon after picking sword
[event]
name=moveto
first_time_only=no
[filter]
id=$eq_unit_id
[filter_location]
x,y=7,6
[/filter_location]
[/filter]
{REMOVE_IMAGE 7 6}
[message]
speaker=$eq_unit_id
message= _ "The Dragon should be somewhere around."
[/message]
[modify_side]
side=3
team_name=erinna
[/modify_side]
{UNSTORE ice_dragon 5 4}
[message]
speaker=ice_dragon
message= _ "You found it?"
[/message]
[message]
speaker=$eq_unit_id
message= _ "Yes, Great Dragon. Here it is."
[/message]
{CLEAR_VARIABLE sword_found}
{CLEAR_VARIABLE eq_unit_id}
{VARIABLE drop_item yes}
[objectives]
[objective]
description= _ "Drop the item."
condition=win
[/objective]
[objective]
description= _ "Death of Lorendor or $lightmage.name."
condition=lose
[/objective]
{TURNS_RUN_OUT}
[gold_carryover]
carryover_percentage=40
[/gold_carryover]
[note]
description= _ "Right click on the unit > Unequip to drop the item."
[/note]
[note]
description= _ "This is a long scenario with multiple quests."
[/note]
[/objectives]
[/event]
# Dragon defeated, he gives 3rd quest
[event]
name=last breath
first_time_only=yes
[filter]
id=ice_dragon
[/filter]
[music]
name=northern_mountains.ogg
[/music]
[message]
speaker=ice_dragon
message= _ "Well fought, warriors."
[/message]
{HEAL ice_dragon}
[message]
speaker=ice_dragon
message= _ "So I am willing to call a truce."
[/message]
[message]
speaker=lorendor
message= _ "We do not want to fight you, either, but we cannot let you harm the White Magi. What are your terms?"
[/message]
[message]
speaker=ice_dragon
message= _ "Bring me my property which the Priest has stolen. If you get it back, I can forgive the priest for now, but he dare not disturb me again."
[/message]
[message]
speaker=lorendor
message= _ "What is it? Where can we find it?"
[/message]
[message]
speaker=ice_dragon
message= _ "It is hidden somewhere in the northeast. Probably somewhere under the mountain where I cannot go. After you find it, come meet me at the northwestern mountains."
[/message]
[message]
speaker=lorendor
message= _ "Accepted."
[/message]
[objectives]
[objective]
description= _ "Find out the magic item in the northeast."
condition=win
[/objective]
[objective]
description= _ "Death of Lorendor or $lightmage.name."
condition=lose
[/objective]
{TURNS_RUN_OUT}
[gold_carryover]
carryover_percentage=40
[/gold_carryover]
[note]
description= _ "This is a long scenario with multiple quests."
[/note]
[note]
description= _ "Only level 3 units can pickup the item."
[/note]
[/objectives]
{STORE ice_dragon}
[/event]
# Unit finds tunnel to dungeons
[event]
name=moveto
first_time_only=yes
[filter]
side=1
[filter_location]
x,y=18,8
[/filter_location]
[or]
[filter_location]
x,y=29-30,11-12
[/filter_location]
[/or]
[/filter]
[terrain]
terrain=Urb
x,y=19,8
[/terrain]
[terrain]
terrain=Wwt
x,y=30,10
[/terrain]
[if]
[variable]
name=unit.type
not_equals=Gryphon
[/variable]
[then]
[message]
speaker=unit
message= _ "There's something here! Looks like a tunnel entrance."
[/message]
[message]
speaker=lorendor
message= _ "Explore inside, but be careful. Dungeons usually have various protection mechanisms."
[/message]
[if]
[variable]
name=unit.race
equals=human
[/variable]
[then]
[message]
speaker=unit
message= _ "Yes, sir!"
[/message]
[/then]
[elseif]
[variable]
name=unit.race
equals=elf
[/variable]
[then]
[message]
speaker=unit
message= _ "Yes, my lord!"
[/message]
[/then]
[/elseif]
[elseif]
[variable]
name=unit.race
equals=drake
[/variable]
[then]
[message]
speaker=unit
message= _ "Yes, warchief!"
[/message]
[/then]
[/elseif]
[/if]
[/then]
[else]
[message]
speaker=unit
message= _ "Screeee!"
[/message]
[message]
speaker=lorendor
message= _ "Looks like he found something. We have to go and check it."
[/message]
[/else]
[/if]
[unit]
side=6
random_name=yes
type=Jinn
canrecruit=yes
x,y=26,3
[/unit]
[/event]
{DEATH_EVENT (lorendor,lightmage,highpriest,raizr)}
{TIMEOUT_EVENT}
[/scenario]