This file is indexed.

/usr/share/games/wesnoth/1.10/data/campaigns/Northern_Rebirth/utils/herodeaths.cfg is in wesnoth-1.10-nr 1:1.10.2-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
#textdomain wesnoth-nr
## Common code for hero deaths.

# Krash death events
[event]
    name=last breath
    [filter]
        id=Krash
    [/filter]

    [message]
        speaker=Krash
        message= _ "(<i>Roars in pain</i>)"
    [/message]
    [message]
        speaker=Tallin
        message= _ "Krash!"
    [/message]
[/event]

[event]
    name=die
    [filter]
        id=Krash
    [/filter]
    [music]
        name=sad.ogg
        play_once=yes
    [/music]

    [message]
        speaker=Father Morvin
        message= _ "It’s no good, Tallin, he is gone."
    [/message]
    [message]
        speaker=Tallin
        message= _ "You wretched monsters! You are going to pay for this!"
    [/message]
    [message]
        speaker=Camerin
        message= _ "Awww, I liked that guy!"
    [/message]
    {VARIABLE Krash_alive no}
[/event]

# Death events for Stalrag and lich brothers, in ifdef to prevent them
# firing when you fight them in Settling Disputes
#ifdef ALLIED_LICH
[event]
    name=last breath
    [filter]
        id="Ro'Sothian"
    [/filter]

    [music]
        name=sad.ogg
        play_once=yes
    [/music]
    [message]
        speaker="Ro'Sothian"
        # wmllint: local spelling outta
        message= _ "I have had enough! Come on brother, let’s get outta here."
    [/message]
    {FLASH_WHITE ()}
    [message]
        speaker=Tallin
        message= _ "Dang it! They’re gone, and the creatures they control are leaving too. Without them, this is hopeless."
    [/message]
    [endlevel]
        result=defeat
    [/endlevel]
[/event]

[event]
    name=last breath
    [filter]
        id="Ro'Arthian"
    [/filter]

    [music]
        name=sad.ogg
        play_once=yes
    [/music]
    [message]
        speaker="Ro'Arthian"
        message= _ "I have had enough! Come on brother, let’s get outta here."
    [/message]
    {FLASH_WHITE ()}
    [message]
        speaker=Tallin
        message= _ "Dang it! They’re gone, and the creatures they control are leaving too. Without them, this is hopeless."
    [/message]
    [endlevel]
        result=defeat
    [/endlevel]
[/event]

[event]
    name=last breath
    [filter]
        id=Stalrag
    [/filter]

    [message]
        speaker=Stalrag
        message= _ "Farewell, my friends. I now go to join my fallen brothers."
    [/message]
[/event]

[event]
    name=last breath
    [filter]
        id=Stalrag
    [/filter]

    [music]
        name=sad.ogg
        play_once=yes
    [/music]
    [role]
        type=Dwarvish Berserker,Dwarvish Ulfsurker
        role=Shinsplitter
    [/role]
    [if]
        [not]
            [have_unit]
                role=Shinsplitter
            [/have_unit]
        [/not]
        [then]
            [recall]
                role=Shinsplitter
            [/recall]
        [/then]
    [/if]
    [message]
        role=Shinsplitter
        message= _ "No, Stalrag! Without you what will become of the Shinsplitters?"
    [/message]
    [message]
        speaker=Stalrag
        message= _ "Shinsplitters... join Tallin... He is your new... leader... trust... and... serve... him... as... you... have... served... me."
    [/message]
    [message]
        speaker=Tallin
        message= _ "Your death shall not go unavenged, brave Stalrag. DEATH TO THE ORCS!!"
    [/message]
    [message]
        role=Shinsplitter
        message= _ "DIE, YOU FOUL SCUM!!"
    [/message]
[/event]
#endif

# Tallin death
[event]
    name=last breath
    [filter]
        id=Tallin
    [/filter]

    [music]
        name=sad.ogg
        play_once=yes
    [/music]
    [message]
        speaker=Tallin
        message= _ "Argh! I am finished, but our campaign must... not end... crush... our... enemies... and... save... our... people..."
    [/message]
    [message]
        role=Supporter
        message= _ "No, Tallin, we can’t do it without you!"
    [/message]
    [endlevel]
        result=defeat
    [/endlevel]
[/event]
# Eryssa death
[event]
    name=last breath
    [filter]
        id=Eryssa
    [/filter]

    [music]
        name=sad.ogg
        play_once=yes
    [/music]
    [message]
        speaker=Eryssa
        message= _ "Alas, you must continue your mission without me!"
    [/message]
    [if]
        [have_unit]
            id=Elenia
        [/have_unit]
        [then]
            [message]
                speaker=Elenia
                message= _ "Eryssa, no! Please don’t die!"
            [/message]
            [message]
                speaker=Tallin
                message= _ "I am sorry, Elenia, we tried our best. (<i>Sigh</i>) I will never forget you, Eryssa."
            [/message]
        [/then]
        [else]
            [message]
                speaker=Tallin
                message= _ "You wretches are going to pay for this! FORWARD, MEN!"
            [/message]
        [/else]
    [/if]
    {VARIABLE Eryssa_alive no}
[/event]

# Sister Thera death, seven randomly chosen dialogues
[event]
    name=last breath
    first_time_only=no
    [filter]
        id=Sister Thera
    [/filter]
    {RANDOM 1..7}

    [switch]
        variable=random
        [case]
            value=1
            [message]
                speaker=Sister Thera
                message= _ "Ahhhh! Save me, my husband!"
            [/message]
            [message]
                speaker=Father Morvin
                message= _ "(<i>Rolls eyes</i>) Dramatic as always."
            [/message]
        [/case]
        [case]
            value=2
            [message]
                speaker=Sister Thera
                message= _ "Ahhhhhhh!"
            [/message]
            [message]
                speaker=Father Morvin
                message= _ "You monsters think you are so tough don’t you? Well check this out."
            [/message]
        [/case]
        [case]
            value=3
            [message]
                speaker=Sister Thera
                message= _ "Ahhhhhhh!"
            [/message]
            [message]
                speaker=Father Morvin
                message= _ "You incompetent fools, you think you can kill us? Good luck!"
            [/message]
        [/case]
        [case]
            value=4
            [message]
                speaker=Sister Thera
                # wmllint: local spelling Ack!
                message= _ "Ack! Stupid slobbering beast!"
            [/message]
            [message]
                speaker=Father Morvin
                message= _ "Your efforts to destroy us are in vain, you foul creature."
            [/message]
        [/case]
        [case]
            value=5
            [if]
                [have_unit]
                    id=Father Morvin
                [/have_unit]
                [then]
                    [message]
                        speaker=Sister Thera
                        message= _ "Oh no, Morvin! We have failed in our mission to help Tallin!"
                    [/message]
                    [message]
                        speaker=Father Morvin
                        message= _ "Failed? Never! The word failure is not in our dictionary."
                    [/message]
                [/then]
            [/if]
        [/case]
        [case]
            value=6
            [message]
                speaker=Sister Thera
                message= _ "Alas! I am dying! Morvin darling, I wish you were beside me so that I may die in your arms! So that I may feel the kiss of your lips on mine one last time!"
            [/message]
            [if]
                [have_unit]
                    id=Father Morvin
                [/have_unit]
                [then]
                    [message]
                        speaker=Father Morvin
                        message= _ "(<i>Rolls eyes</i>) Thera, do you always have to be so dramatic?"
                    [/message]
                    [message]
                        role=Supporter
                        message= _ "Um... Father? Your wife just got killed..."
                    [/message]
                    [message]
                        speaker=Father Morvin
                        message= _ "Oh right. I CALL UPON THE LORDS OF LIGHT TO GRANT YOU LIFE!"
                    [/message]
                [/then]
            [/if]
        [/case]
        [else]
            [message]
                speaker=Sister Thera
                message= _ "You cruel creature! How dare you use your brute strength against such a frail creature as me."
            [/message]
            [message]
                speaker=Father Morvin
                message= _ "Don’t worry, Thera, you will have plenty of opportunities to set him straight."
            [/message]
        [/else]
    [/switch]
    {FLASH_WHITE ()}
    # Find a respawn point, start within 1 hex of Father Morvin, increase range if nothing suitable
    # Search around Tallin if Morvin is still jailed
    {VARIABLE current_radius 1}
    [if]
        [have_unit]
            id=Father Morvin
        [/have_unit]
        [then]
            {VARIABLE respawn_hub "Father Morvin"}
        [/then]
        [else]
            {VARIABLE respawn_hub "Tallin"}
        [/else]
    [/if]
    [while]
        [variable]
            name=respawn_point.length
            equals=0
        [/variable]
        [do]
            [store_locations]
                variable=respawn_point
                [and]
                    [filter]
                        id=$respawn_hub
                    [/filter]
                    radius=$current_radius
                [/and]
                # Exclude hexes with units on them and impassable terrain
                [and]
                    [not]
                        [filter]
                        [/filter]
                    [/not]
                    [not]
                        terrain=Wo,*^Xm,X*,Q*
                    [/not]
                [/and]
            [/store_locations]
            {VARIABLE_OP current_radius add 1}
        [/do]
    [/while]
    # Store unit to check if it advanced to mage of light
    [store_unit]
        [filter]
            id=Sister Thera
        [/filter]
        variable=type_check
        kill=yes
        fire_event=no
    [/store_unit]
    [unit]
        type=$type_check.type
        gender=female
        id=Sister Thera
        name= _ "Sister Thera"
        profile=portraits/Sister_Thera.png
        side=1
        x=$respawn_point.x
        y=$respawn_point.y
        [modifications]
            {TRAIT_LOYAL}
            {TRAIT_QUICK}
        [/modifications]
        {IS_LOYAL}
    [/unit]
    {CLEAR_VARIABLE respawn_point}
    {CLEAR_VARIABLE type_check}
    {CLEAR_VARIABLE current_radius}
    [switch]
        variable=random
        [case]
            value=1
            [if]
                [have_unit]
                    id=Father Morvin
                [/have_unit]
                [then]
                    [message]
                        speaker=Father Morvin
                        message= _ "Thera, when this is all over, you should paint your face and join a theater."
                    [/message]
                    [message]
                        speaker=Sister Thera
                        message= _ "Hey, don’t you always say that life is nothing but a drama?"
                    [/message]
                    [message]
                        speaker=Father Morvin
                        message= _ "Yes, it may be a drama, but that’s no excuse for overacting!"
                    [/message]
                    [message]
                        speaker=Sister Thera
                        message= _ "(<i>Giggle</i>) Who needs an excuse for overacting?"
                    [/message]
                [/then]
            [/if]
        [/case]
        [case]
            value=2
            [message]
                speaker=Sister Thera
                message= _ "Whoa! That trick is a bit hard on the constitution."
            [/message]
            [if]
                [have_unit]
                    id=Father Morvin
                [/have_unit]
                [then]
                    [message]
                        speaker=Father Morvin
                        message= _ "Well, be grateful that you are alive."
                    [/message]
                    [message]
                        speaker=Sister Thera
                        message= _ "(<i>Giggle</i>) Thank you, honey."
                    [/message]
                    [message]
                        speaker=Father Morvin
                        message= _ "Thank the Lords of Light, not me!"
                    [/message]
                [/then]
            [/if]
        [/case]
        [case]
            value=3
            [message]
                speaker=Sister Thera
                message= _ "Ouch! That hurts. Let’s try not to do that again, shall we?"
            [/message]
        [/case]
        [case]
            value=4
            [message]
                speaker=Sister Thera
                message= _ "There we go, payback time!"
            [/message]
        [/case]
        [case]
            value=5
            [message]
                speaker=Sister Thera
                message= _ "There we go, let’s give this one more shot!"
            [/message]
            [message]
                speaker=Father Morvin
                message= _ "Just try not to kill yourself again."
            [/message]
        [/case]
        [case]
            value=6
            [if]
                [have_unit]
                    id=Father Morvin
                [/have_unit]
                [then]
                    # wmllint: local spelling unclerical
                    [message]
                        speaker=Father Morvin
                        message= _ "Thera, you should know by now that it is very unclerical to make such a spectacle of yourself."
                    [/message]
                    [message]
                        speaker=Sister Thera
                        message= _ "Come on, honey! Those were my dying words, after all!"
                    [/message]
                    [message]
                        speaker=Father Morvin
                        message= _ "(<i>Rolls eyes</i>) Women!"
                    [/message]
                [/then]
            [/if]
        [/case]
        [else]
            [if]
                [have_unit]
                    id=Father Morvin
                [/have_unit]
                [then]
                    [message]
                        speaker=Sister Thera
                        message= _ "That’s darned right!"
                    [/message]
                    [message]
                        speaker=Father Morvin
                        message= _ "Thera! Language like that coming from you! You should really stop hanging around the dwarves so much."
                    [/message]
                    [message]
                        speaker=Sister Thera
                        message= _ "(<i>Giggle</i>) Sorry."
                    [/message]
                [/then]
            [/if]
        [/else]
    [/switch]

    [clear_variable]
        name=random
    [/clear_variable]
[/event]

# Father Morvin - See above
[event]
    name=last breath
    first_time_only=no
    [filter]
        id=Father Morvin
    [/filter]

    {RANDOM 1..7}
    [switch]
        variable=random
        [case]
            value=1
            [message]
                speaker=Father Morvin
                message= _ "Alas! So... close."
            [/message]
            [message]
                speaker=Sister Thera
                message= _ "Hey, that’s not right. The good guys aren’t supposed to die. Oh well, I’ll fix that."
            [/message]
        [/case]
        [case]
            value=2
            [message]
                speaker=Father Morvin
                message= _ "Argh!"
            [/message]
            [message]
                speaker=Sister Thera
                message= _ "You incompetent fools, you think you can kill us? Good luck!"
            [/message]
        [/case]
        [case]
            value=3
            [message]
                speaker=Father Morvin
                message= _ "Argh!"
            [/message]
            [message]
                speaker=Sister Thera
                message= _ "Oh dear. Did you just go and get yourself killed again, Morvin? Well, I’ll fix that."
            [/message]
        [/case]
        [case]
            value=4
            [message]
                speaker=Father Morvin
                message= _ "The forces of good can never be defeated by the likes of you!"
            [/message]
            [message]
                speaker=Sister Thera
                message= _ "Yeah, try taking a bath and you <i>might</i> be able to kill him for good (<i>Wink wink</i>). But for the time being, abracadabra!"
            [/message]
        [/case]
        [case]
            value=5
            [message]
                speaker=Father Morvin
                message= _ "Argh!"
            [/message]
            [message]
                speaker=Sister Thera
                message= _ "Stupid troll, maybe next time you should try killing someone who can be killed."
            [/message]
        [/case]
        [case]
            value=6
            [message]
                speaker=Father Morvin
                message= _ "Argh! I’ll just come back and finish you in my next life."
            [/message]
            [message]
                speaker=Sister Thera
                message= _ "Which might be sooner than you think."
            [/message]
        [/case]
        [else]
            [message]
                speaker=Father Morvin
                message= _ "Ack! I have been brained!"
            [/message]
            [message]
                speaker=Sister Thera
                # wmllint: local spelling Eew
                message= _ "Eew! Gross! Ahh never mind, I’ll get you cleaned up good."
            [/message]
        [/else]
    [/switch]

    {VARIABLE current_radius 1}
    [if]
        [have_unit]
            id=Sister Thera
        [/have_unit]
        [then]
            {VARIABLE respawn_hub "Sister Thera"}
        [/then]
        [else]
            {VARIABLE respawn_hub "Tallin"}
        [/else]
    [/if]
    [while]
        [variable]
            name=respawn_point.length
            equals=0
        [/variable]
        [do]
            [store_locations]
                variable=respawn_point
                [and]
                    [filter]
                        id=$respawn_hub
                    [/filter]
                    radius=$current_radius
                [/and]
                # Exclude hexes with units on them and impassable terrain
                [and]
                    [not]
                        [filter]
                        [/filter]
                    [/not]
                    [not]
                        terrain=Wo,*^Xm,X*,Q*
                    [/not]
                [/and]
            [/store_locations]
            {VARIABLE_OP current_radius add 1}
        [/do]
    [/while]
    [store_unit]
        [filter]
            id=Father Morvin
        [/filter]
        variable=type_check
        kill=yes
        fire_event=no
    [/store_unit]
    {FLASH_WHITE ()}
    [unit]
        type=$type_check.type
        id=Father Morvin
        name= _ "Father Morvin"
        profile=portraits/Father_Morvin.png
        side=1
        x=$respawn_point.x
        y=$respawn_point.y
        [modifications]
            {TRAIT_LOYAL}
            {TRAIT_RESILIENT}
        [/modifications]
        {IS_LOYAL}
    [/unit]
    {CLEAR_VARIABLE type_check}
    {CLEAR_VARIABLE respawn_point}
    {CLEAR_VARIABLE current_radius}

    [switch]
        variable=random
        [case]
            value=1
            [message]
                speaker=Sister Thera
                message= _ "There we go."
            [/message]
            [message]
                speaker=Father Morvin
                message= _ "Ahh yes, that’s better."
            [/message]
        [/case]
        [case]
            value=2
            [message]
                speaker=Father Morvin
                message= _ "Ouch! That hurts. Let’s try not to do that again, shall we?"
            [/message]
        [/case]
        [case]
            value=3
            [if]
                [have_unit]
                    id=Sister Thera
                [/have_unit]
                [then]
                    [message]
                        speaker=Sister Thera
                        message= _ "Morvin! You bad boy, always getting into trouble."
                    [/message]
                    [message]
                        speaker=Father Morvin
                        message= _ "Sorry, won’t do it again. Promise!"
                    [/message]
                [/then]
            [/if]
        [/case]
        [case]
            value=4
            [if]
                [have_unit]
                    id=Sister Thera
                [/have_unit]
                [then]
                    [message]
                        speaker=Father Morvin
                        message= _ "I heard that, Thera."
                    [/message]
                    [message]
                        speaker=Sister Thera
                        message= _ "Hey, just trying to give him an incentive to drown himself."
                    [/message]
                [/then]
            [/if]
        [/case]
        [case]
            value=5
            # no message for this case
        [/case]
        [case]
            value=6
            [message]
                speaker=Sister Thera
                message= _ "See?"
            [/message]
            [message]
                speaker=Father Morvin
                message= _ "Now where did he go?!"
            [/message]
        [/case]
        [else]
            [if]
                [have_unit]
                    id=Sister Thera
                [/have_unit]
                [then]
                    [message]
                        speaker=Father Morvin
                        message= _ "Ahhh, Thera, you would make such a good housewife!"
                    [/message]
                    [message]
                        speaker=Sister Thera
                        # wmllint: local spelling pouty
                        message= _ "Yes, if you would ever buy me a house! (<i>Pouty face</i>)"
                    [/message]
                    [message]
                        speaker=Father Morvin
                        message= _ "Thera, don’t you think that this isn’t really a good time to talk about that?"
                    [/message]
                    [message]
                        speaker=Sister Thera
                        message= _ "(<i>Giggle</i>) Sorry!"
                    [/message]
                [/then]
            [/if]
        [/else]
    [/switch]

    [clear_variable]
        name=random
    [/clear_variable]
[/event]

# Elenia death
[event]
    name=last breath
    [filter]
        id=Elenia
    [/filter]

    [music]
        name=sad.ogg
        play_once=yes
    [/music]
    {VARIABLE Elenia_alive no}
    [message]
        speaker=Elenia
        message= _ "Alas! My wanderings have come to an end."
    [/message]
    [message]
        speaker=Tallin
        message= _ "Blast it, we have lost a valuable ally."
    [/message]
    [message]
        speaker=Sister Thera
        message= _ "Farewell Elenia. May you find peace in your final journey."
    [/message]
[/event]

# Camerin death
[event]
    name=last breath
    [filter]
        id=Camerin
    [/filter]

    [music]
        name=sad.ogg
        play_once=yes
    [/music]
    [message]
        speaker=Camerin
        message= _ "What... how can this happen?"
    [/message]
    [message]
        speaker=Tallin
        message= _ "He was stark raving mad, but I am sure going to miss him."
    [/message]
[/event]

# Hamel death in scenario 2,3 and 4
#ifdef DEFEAT_WHEN_HAMEL_DEAD
[event]
    name=die
    [filter]
        id=Hamel
    [/filter]

    [message]
        speaker=Tallin
        message= _ "No! Without the dwarvish weapons we have no hope!"
    [/message]
    [endlevel]
        result=defeat
    [/endlevel]
[/event]
#endif

# This death event makes sure there is allways a supporter around
[event]
    name=die
    [filter]
        [filter_wml]
            [variables]
                role=Supporter
            [/variables]
        [/filter_wml]
    [/filter]

    [store_unit]
        [filter]
            race=human
            alignment=lawful
            [not]
                id=Camerin
            [/not]
            [not]
                id=Tallin
            [/not]
            [not]
                usage=healer
            [/not]
            [not]
                role=Supporter
            [/not]
        [/filter]
        kill=no
        variable=new_supporter
    [/store_unit]
    {VARIABLE new_supporter.variables.role Supporter}
    [unstore_unit]
        variable=new_supporter
    [/unstore_unit]
    [role]
        id=$new_supporter.id
        role=Supporter
    [/role]
    {CLEAR_VARIABLE new_supporter}
[/event]