/
03_Guarded_Castle.cfg
836 lines (714 loc) · 22.3 KB
/
03_Guarded_Castle.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
#textdomain wesnoth-tb
[scenario]
id=03_Guarded_Castle
name= _ "Guarded Castle"
map_data="{campaigns/Two_Brothers/maps/03_Guarded_Castle.map}"
#ifdef EASY
turns=30
#endif
#ifdef HARD
turns=24
#endif
next_scenario=04_Return_to_the_Village
victory_when_enemies_defeated=no
{DEFAULT_SCHEDULE_DUSK}
{INTRO_AND_SCENARIO_MUSIC sad.ogg knalgan_theme.ogg}{LET_INTRO_MUSIC_FINISH}
{EXTRA_SCENARIO_MUSIC suspense.ogg}
{EXTRA_SCENARIO_MUSIC siege_of_laurelmor.ogg}
{EXTRA_SCENARIO_MUSIC weight_of_revenge.ogg}
[story]
# Diary entries split into two parts until story screens allow vertical scrolling (FR #17492).
[part]
# wmllint: local spelling clanless
story=_"19 V, 363 YW
Excerpt from the journal of Rotharik the Clanless
The last of Mordak’s servants arrived this morning bearing the news of his death, as well as a bundle so well-bound it was barely recognizable as a man. Mordak was always reckless. This whole desperate scheme was his, and I suppose I could blame him for everything that we have suffered through if it still mattered. It was he who brought the wrath of the orcs down on us, too. But all the same, he managed to accomplish what he set out to do. I still cannot believe the finality of what has happened; until now we had always managed to make it through somehow.
We had hoped to deliver the mage to Tairach in return for our lives. I do not know what the warlord wants with this man, but he matches the description. I suppose that Mordak’s plan would have worked perfectly if not for the appearance of the horse warriors. Now they are coming here, led by a man rumored to be this mage’s brother. If that is true, he will stop at nothing, no more than would I if they held Mordak."
[/part]
[part]
story=_ "19 V, 363 YW
Excerpt from the journal of Rotharik the Clanless
I have done what I can to fortify this dilapidated castle. The orcs who came with us stand guard at the gates, and I am gathering all of my servants to me in the inner sanctum. But ill fate awaits. Whether I defeat this horse-warrior or no, the orcs will still come for me; they have been scouring the borderlands and raiding the northern farm country in search of us.
Yet for some reason I fear these brothers more. If Mordak were here it would be different, but we are broken... and these two men are whole. In each other, in the ties that bind them, they have strength."
[/part]
[/story]
{TB_TRACK {JOURNEY_STAGE3}}
# wmllint: validate-off
[side]
side=1
controller=human
recruit=Horseman,Bowman,Spearman,Footpad
#ifdef EASY
gold=170
#endif
#ifdef HARD
gold=120
#endif
team_name=good
user_team_name= _ "Humans"
{FLAG_VARIANT loyalist}
# wmllint: recognize Arvith
{CHARACTER_STATS_ARVITH}
facing=nw
shroud=yes
[/side]
# wmllint: validate-on
[side]
side=2
controller=ai
#ifdef EASY
gold=40
income=7
#endif
#ifdef HARD
recruit=Skeleton,Skeleton Archer,Vampire Bat,Ghost,Dark Adept,Ghoul,Walking Corpse
gold=60
income=13
#else
recruit=Skeleton,Skeleton Archer,Vampire Bat,Dark Adept,Ghoul,Walking Corpse
#endif
team_name=evil
user_team_name= _ "Enemies"
{FLAG_VARIANT undead}
type=Dark Sorcerer
id=Rotharik
name= _ "Rotharik"
canrecruit=yes
unrenamable=yes
facing=sw
[unit]
id=Guard_leader
name= _ "Guard"
type=Assassin
x,y=28,26
facing=se
[/unit]
[unit]
role=Guard
name= _ "Guard"
type=Bandit
x,y=30,25
facing=se
[/unit]
#ifdef HARD
[unit]
role=Guard
name= _ "Guard"
type=Bandit
x,y=28,24
facing=se
[/unit]
[unit]
role=Guard
name= _ "Guard"
type=Bandit
x,y=27,28
facing=se
[/unit]
#endif
[/side]
[side]
side=3
controller=ai
team_name=evil
user_team_name=_"Enemies"
{FLAG_VARIANT6 ragged}
no_leader=yes
# Orcish guards
[unit]
id=Knago-Brek
name= _ "Knago-Brek"
type=Orcish Warrior
unrenamable=yes
x,y=19,17
ai_special=guardian
facing=se
[/unit]
[unit]
name= _ "Castle Guard"
type=Orcish Grunt
x,y=18,16
ai_special=guardian
facing=se
[/unit]
[unit]
name= _ "Castle Guard"
type=Orcish Grunt
x,y=20,16
ai_special=guardian
facing=se
[/unit]
#ifdef HARD
[unit]
name= _ "Castle Guard"
type=Orcish Warrior
x,y=15,17
ai_special=guardian
facing=se
[/unit]
[unit]
name= _ "Castle Guard"
type=Orcish Warrior
x,y=23,17
ai_special=guardian
facing=se
[/unit]
#endif
[/side]
# Placing prison gates
{PLACE_IMAGE scenery/gate-rusty-se.png 5 5}
{PLACE_IMAGE scenery/gate-rusty-sw.png 6 10}
# Making it more like a real prison
{PLACE_IMAGE items/bones.png 5 12}
{PLACE_IMAGE items/bones.png 9 6}
{PLACE_IMAGE items/bones.png 2 6}
{PLACE_IMAGE items/bones.png 9 3}
# Random evil-overlord furniture
{PLACE_IMAGE "items/dragonstatue.png" 12 2}
{PLACE_IMAGE "items/dragonstatue.png~FL(horiz)" 26 2}
# The library
#{PLACE_IMAGE items/book3.png 2 9}
#{PLACE_IMAGE items/book4.png 3 9}
# Treasure pile
{PLACE_IMAGE items/chest-plain-closed.png 34 4}
#{PLACE_IMAGE items/ball-blue.png 34 5}
#{PLACE_IMAGE items/ball-green.png 33 4}
#{PLACE_IMAGE items/ball-magenta.png 35 4}
# Evil altar
{PLACE_IMAGE items/altar-evil.png 29 3}
{PLACE_IMAGE scenery/rune5.png 30 3}
{PLACE_IMAGE scenery/rune6.png 28 3}
# The armory
#{PLACE_IMAGE items/brazier.png 10 10}
#{PLACE_IMAGE items/brazier.png 12 11}
#{PLACE_IMAGE items/axe.png 11 10}
#{PLACE_IMAGE items/spear-fancy.png 10 11}
#{PLACE_IMAGE items/buckler.png 10 11}
#{PLACE_IMAGE items/buckler.png 11 11}
#{PLACE_IMAGE "items/axe.png~FL(horiz)" 11 12}
#{PLACE_IMAGE "items/bow.png~FL(horiz)" 10 12}
#{PLACE_IMAGE items/bow-elven.png 12 10}
#{PLACE_IMAGE "items/bow-crystal.png~FL(horiz)" 12 10}
# The supply room
#{PLACE_IMAGE items/barrel.png 28 11}
#{PLACE_IMAGE items/chest.png 28 12}
#{PLACE_IMAGE items/box.png 27 12}
#{PLACE_IMAGE items/box.png 27 11}
#{PLACE_IMAGE items/potion-green.png 26 10}
[event]
name=prestart
[objectives]
side=1
[objective]
description= _ "Rescue Baran"
condition=win
[/objective]
[objective]
description= _ "Death of Arvith"
condition=lose
[/objective]
{TURNS_RUN_OUT}
[gold_carryover]
bonus=yes
carryover_percentage=40
[/gold_carryover]
[/objectives]
{VARIABLE Got_Key no}
{VARIABLE delay_guards false}
# Making the gates impassable
[terrain]
x=5,6
y=5,10
terrain=Uu^Xo
[/terrain]
#ifdef EASY
[recall]
id=Brena
[/recall]
#endif
[/event]
[event]
name=start
[message]
speaker=narrator
image="wesnoth-icon.png"
message= _ "Arvith and his men halt outside of the castle, gazing for a moment at the hulking mass of stone looming in the fog. There is movement in the mist."
[/message]
[message]
speaker=Guard_leader
message= _ "Halt! Friend or foe? Give the password."
[/message]
[message]
speaker=Arvith
message= _ "The password is"
[option]
message= _ "$first_password_1|!"
[command]
{VARIABLE first_password_picked "$first_password_1"}
[/command]
[/option]
[option]
message= _ "$first_password_2|!"
[command]
{VARIABLE first_password_picked "$first_password_2"}
[/command]
[/option]
[option]
message= _ "$first_password_3|!"
[command]
{VARIABLE first_password_picked "$first_password_3"}
[/command]
[/option]
[option]
message= _ "$first_password_4|!"
[command]
{VARIABLE first_password_picked "$first_password_4"}
[/command]
[/option]
[/message]
[if]
[variable]
name=first_password_picked
equals=$first_password_$first_password_number
[/variable]
[then]
[message]
speaker=Guard_leader
message= _ "Pass, friend."
[/message]
[kill]
role=Guard
[/kill]
[kill]
id=Guard_leader
[/kill]
[remove_shroud]
side=1
x=0-38
y=20-32
[/remove_shroud]
[message]
speaker=Arvith
message= _ "The adept didn’t lead us astray after all. I’ll keep my word, distasteful as it may be; cut him loose, and let’s be rid of him."
[/message]
# Perhaps the Adept is so grateful for Arvith's mercy that he
# offers to stay with the player's force. In this case the
# player could choose to keep him as a loyal unit but lose
# some other loyal unit who leaves in disgust, or dismiss him.
[/then]
[else]
[message]
speaker=Guard_leader
message= _ "Wrong! Die!"
[/message]
{VARIABLE delay_guards true}
[/else]
[/if]
[/event]
[event]
name=sighted
[filter]
side=3
[/filter]
[filter_second]
side=1
[/filter_second]
[message]
speaker=Knago-Brek
message= _ "Haha! We not kill people for long time. Weapon wants blood. We now kill humans!!"
[/message]
[message]
speaker=Arvith
message= _ "My sword-arm has a say in who will do the dying. Come on, men, let’s kill some orcs."
[/message]
[/event]
[event]
name=die
[filter]
id=Knago-Brek
[/filter]
[message]
speaker=Arvith
message= _ "One less braggart orc in the world."
[/message]
[message]
side=1
[not]
# wmllint: recognize Baran
id=Arvith,Baran
[/not]
message= _ "Captain, what are <i>orcs</i> doing this far south?"
[/message]
[message]
speaker=Arvith
message= _ "Good question. Perhaps my brother will have found out."
[/message]
[/event]
# Trigger 2nd guards at turn3 only if you did not attack the first
# ones in turn 1, if they are attacked in turn 1, trigger this
# event in turn 6
[event]
name=new turn
[filter_condition]
[variable]
name=delayed_guards
boolean_equals=false
[/variable]
[variable]
name=turn_number
numerical_equals=3
[/variable]
[or]
[variable]
name=delayed_guards
boolean_equals=true
[/variable]
[variable]
name=turn_number
numerical_equals=6
[/variable]
[/or]
[/filter_condition]
[unit]
side=2
id=Guard2_leader
name= _ "Guard"
type=Rogue
x,y=16,24
[/unit]
[unit]
side=2
role=Guard2
name= _ "Guard"
type=Bandit
x,y=17,24
[/unit]
[unit]
side=2
role=Guard2
name= _ "Guard"
type=Bandit
x,y=16,24
[/unit]
#ifdef HARD
[unit]
side=2
role=Guard2
name= _ "Guard"
type=Bandit
x,y=17,23
[/unit]
#endif
[message]
speaker=Guard2_leader
message= _ "Are you our relief arriving? Does this mean we get to leave here now?"
[/message]
[message]
speaker=Arvith
message= _ "Um, yes. Fine. You can go."
[/message]
[message]
speaker=Guard2_leader
message= _ "Um, you’re supposed to give the password."
[/message]
[message]
speaker=Arvith
message= _ "Oh, of course. I had nearly forgotten."
[option]
message= _ "$second_password_1|!"
[command]
{VARIABLE second_password_picked "$second_password_1"}
[/command]
[/option]
[option]
message= _ "$second_password_2|!"
[command]
{VARIABLE second_password_picked "$second_password_2"}
[/command]
[/option]
[option]
message= _ "$second_password_3|!"
[command]
{VARIABLE second_password_picked "$second_password_3"}
[/command]
[/option]
[option]
message= _ "$second_password_4|!"
[command]
{VARIABLE second_password_picked "$second_password_4"}
[/command]
[/option]
[/message]
[if]
[variable]
name=second_password_picked
equals=$second_password_$second_password_number
[/variable]
[then]
[message]
speaker=Guard2_leader
message= _ "Thanks! Irritating little formality, isn’t it?"
[/message]
[kill]
role=Guard2
[/kill]
[kill]
id=Guard2_leader
[/kill]
[/then]
[else]
[message]
speaker=Guard2_leader
message= _ "That’s the wrong password! These aren’t our relief! Get them!"
[/message]
[/else]
[/if]
[message]
speaker=Arvith
message= _ "I think I should better support my men at the front to make sure we can free my brother."
[/message]
[/event]
[event]
name=last breath
[filter]
id=Rotharik
[/filter]
[message]
speaker=unit
message= _ "Your hand or Tairach’s, death is still death... (argh)"
[/message]
[kill]
id=Rotharik
animate=yes
[/kill]
[message]
speaker=Arvith
message= _ "‘Tairach’? Who or what is Tairach?"
[/message]
[message]
speaker=second_unit
message= _ "There’s a key in his robes."
[/message]
[message]
speaker=Arvith
message= _ "That may well be the key to the cell they’re holding Baran in! I will take it."
[/message]
{VARIABLE Got_Key yes}
[modify_turns]
add=6
[/modify_turns]
[objectives]
side=1
[objective]
description= _ "Move Arvith to the cell with his brother to free him"
condition=win
[/objective]
[objective]
description= _ "Death of Arvith"
condition=lose
[/objective]
{TURNS_RUN_OUT}
[gold_carryover]
bonus=yes
carryover_percentage=40
[/gold_carryover]
[/objectives]
[/event]
[event]
name=moveto
[filter]
x,y=34,4
side=1
[/filter]
#ifdef EASY
[sound]
name=gold.ogg
[/sound]
[message]
speaker=unit
message= _ "Look what I have found in here! I can count a hundred pieces of gold."
[/message]
[gold]
side=1
amount=100
[/gold]
#endif
#ifdef HARD
[sound]
name=gold.ogg
[/sound]
[message]
speaker=unit
message= _ "Look what I have found in here! I can count fifty pieces of gold."
[/message]
[gold]
side=1
amount=50
[/gold]
#endif
{REMOVE_IMAGE 34 4}
{PLACE_IMAGE items/chest-plain-open.png 34 4}
[/event]
[event]
name=moveto
[filter_condition]
[have_location]
x,y=5,5
[filter_vision]
side=1
[/filter_vision]
[/have_location]
[/filter_condition]
[unit]
side=1
id=Baran
name= _ "Baran"
unrenamable=yes
type=Red Mage
profile=portraits/baran.png
{IS_HERO}
x,y=3,3
[modifications]
{TRAIT_LOYAL}
{TRAIT_INTELLIGENT}
[/modifications]
[/unit]
[redraw]
side=1
[/redraw]
[message]
speaker=unit
message= _"I found Baran. He is in this cell."
[/message]
[if]
[variable]
name=unit.id
equals="Arvith"
[/variable]
[then]
[message]
speaker=Baran
message= _ "It’s good to see you, Arvith."
[/message]
[message]
speaker=Arvith
message= _ "And you too, brother."
[/message]
[/then]
[else]
[message]
speaker=Baran
message= _ "You must be one of Arvith’s men. Please help me get out of this dungeon."
[/message]
[/else]
[/if]
[message]
speaker=Baran
message= _ "The accursed dark sorcerer Rotharik has imprisoned me behind this magically enhanced iron gate. It can only be opened with the correct key. You must get it from him to free me."
[/message]
[if]
[variable]
name=Got_Key
boolean_equals=no
[/variable]
[then]
[objectives]
side=1
[objective]
description= _ "Kill the dark sorcerer to get the cell key"
condition=win
[/objective]
[objective]
description= _ "Death of Arvith"
condition=lose
[/objective]
{TURNS_RUN_OUT}
[gold_carryover]
bonus=yes
carryover_percentage=40
[/gold_carryover]
[/objectives]
[/then]
[/if]
[/event]
[event]
name=moveto
first_time_only=no
[filter]
x=5,6
y=6,5
id=Arvith
[/filter]
[filter_condition]
[variable]
name=Got_Key
boolean_equals=yes
[/variable]
[/filter_condition]
[remove_item]
x,y=5,5
[/remove_item]
[terrain]
x,y=5,5
terrain=Uu
[/terrain]
[message]
speaker=Baran
message= _ "Thank you for saving me. I... was not certain you would come."
[/message]
[message]
speaker=Arvith
message= _ "Have you no faith in your brother, Baran?"
[/message]
[message]
speaker=Baran
message= _ "It’s not that. Perhaps I deserved to rot here. I failed you. I failed you again."
[/message]
[message]
speaker=Arvith
message= _ "That is as may be. But you are my brother still. And... I never doubted you would have come for me."
[/message]
[message]
speaker=Arvith
message= _ "It was no great trial, after all. A few elves, one or two dark sorcerers, a gang of orcs and some undead. Really just a day’s work for the company."
[/message]
[message]
speaker=Baran
message= _ "Thank you for coming to my aid. Let us return to the village."
[/message]
[endlevel]
result=victory
bonus=yes
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/event]
[event]
name=victory
{CLEAR_VARIABLE Got_Key}
[/event]
[event]
name=last breath
[filter]
id=Arvith
[/filter]
[message]
speaker=Arvith
message= _ "Everything is lost now that I am dead..."
[/message]
[endlevel]
result=defeat
[/endlevel]
[/event]
[event]
name=time over
[message]
# wmllint: local spelling Muahahaha
speaker=Rotharik
message= _ "You are too late! Your brother is already dead! Muahahaha...!"
[/message]
[message]
speaker=Arvith
message= _ "Argh!!"
[/message]
[/event]
[/scenario]