This file is indexed.

/usr/share/games/wesnoth/1.10/data/campaigns/Northern_Rebirth/scenarios/10a_Stolen_Gold.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
 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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
#textdomain wesnoth-nr
[scenario]
    # Basic scenario data, music, length, default time schedule
    id=10a_Stolen_Gold
    name= _ "Stolen Gold"
    map_data="{campaigns/Northern_Rebirth/maps/10a_Stolen_Gold.map}"
    {DEFAULT_SCHEDULE}
    turns=36
    victory_when_enemies_defeated=yes
    next_scenario=11a_The_Eastern_Flank

    {INTRO_AND_SCENARIO_MUSIC "the_king_is_dead.ogg" "northerners.ogg"}
    {EXTRA_SCENARIO_MUSIC "frantic.ogg"}
    {EXTRA_SCENARIO_MUSIC "casualties_of_war.ogg"}
    {EXTRA_SCENARIO_MUSIC "knolls.ogg"}

    # Story with few branches depending on whether Eryssa is alive and hostile
    # towards the Alliance.
    # wmllint: recognize Eryssa
    # wmllint: local spelling priss
    [story]
        [part]
            story= _ "Puzzled by the presence of trolls so close to the dwarvish defenses, the party quickly made their way back to Knalga."
            music=sad.ogg
        [/part]
        [part]
            story= _ "Upon arriving there something seemed to be wrong. Instead of being hailed boisterously by the Dwarves as they usually were, they were met by silent guards with downcast eyes."
        [/part]
        [part]
            story= _ "Fearing the worst, Tallin rushed to find Hamel who also couldn’t bear to meet his eyes."
        [/part]
        [part]
            story= _ "Hamel, what is wrong?! Why is everyone acting so strangely?"
            background=portraits/Tallin.png
        [/part]
        [part]
            story= _ "We are deeply ashamed of ourselves, Tallin. We ha’ failed the trust that ye gave us."
            background=portraits/Hamel.png
        [/part]
        [part]
            story= _ "What do you mean?"
            background=portraits/Tallin.png
        [/part]
        [part]
            story= _ "Yer gold, Tallin, we ha’ failed to protect it."
            background=portraits/Hamel.png
        [/part]
        [part]
            story= _ "My gold!? Why, what happened? Start from the beginning."
            background=portraits/Tallin.png
        [/part]
        [part]
            story= _ "No sooner had ye left then the orcs once again launched a massive assault."
            background=portraits/Hamel.png
        [/part]
        [part]
            story= _ "Such a massive and fierce assault it was that we had to call upon all our reserves. When that proved insufficient, we had nae other choice then to call some men off the other defenses."
            background=portraits/Hamel.png
        [/part]
        [part]
            story= _ "It was a ploy. Nae sooner ha’ we thinned the ranks of the northern defenders then a small, hardened group of trolls smashed through the defenses and made their way straight for your gold."
            background=portraits/Hamel.png
        [/part]
        [part]
            story= _ "We beat them back, but not before they made off with your entire stock of gold."
            background=portraits/Hamel.png
        [/part]
        [part]
            story= _ "I am sorry, Tallin, we did all that we could. I would we could ha’ done more."
            background=portraits/Hamel.png
        [/part]
        [part]
            story= _ "Oh no! Rakshas will raise many troops with that gold!"
            background=portraits/Tallin.png
        [/part]
        [part]
            story= _ "Aye. Well I ken it, Tallin."
            background=portraits/Hamel.png
        [/part]
        # Eryssa alive and friendly
        [if]
            [variable]
                name=eryssa_hostile
                equals=no
            [/variable]
            [then]
                [part]
                    story= _ "Were you able to pursue them?"
                    background=portraits/Tallin.png
                [/part]
                [part]
                    story= _ "Och, we tried, Tallin, but with the orcs still pressing our southern defenses and other groups of trolls trying to break through everywhere, we simply ha’ not the manpower."
                    background=portraits/Hamel.png
                [/part]
                [part]
                    story= _ "How long ago did the trolls make off with the gold?"
                    background=portraits/Tallin.png
                [/part]
                [part]
                    story= _ "It couldna’ been more then a day now."
                    background=portraits/Hamel.png
                [/part]
                [part]
                    story= _ "Then we shall pursue them. Even if we don’t catch them, we might be able to hit Rakshas before he has had a chance to put all that gold to good use."
                    background=portraits/Tallin.png
                [/part]
                [part]
                    story= _ "Hamel, rally the dwarves and prepare to mount an all-out offensive against the orcs. It’s time to give them some of their own."
                    background=portraits/Tallin.png
                [/part]
                [part]
                    story= _ "We will follow the trail of the trolls; it should lead us back to Rakshas."
                    background=portraits/Tallin.png
                [/part]
                [part]
                    story= _ "Eryssa, what news of the elves?"
                    background=portraits/Tallin.png
                [/part]
                [part]
                    story= _ "Our gryphons have reached them. They are no more then a few days march from us."
                    background=portraits/Eryssa.png
                [/part]
                [part]
                    story= _ "I will send another message to them asking them to send out scouts to locate the trolls who took your gold. Mayhap the elves will be able to get between the trolls and their allies."
                    background=portraits/Eryssa.png
                [/part]
                [part]
                    story= _ "So it shall be. Hamel, when I make contact with the orcs I’ll send you a message. When you get it, come at all speed. It is near time for the battle that will decide all."
                    background=portraits/Tallin.png
                [/part]
                [part]
                    story= _ "The axes and hammers o’ every dwarf thirst for the blood of the orcs!"
                    background=portraits/Hamel.png
                [/part]
                [part]
                    story= _ "All right, let’s move out, people!"
                    background=portraits/Tallin.png
                [/part]
                [part]
                    story= _ "Thus the party set off to the northern tunnels to pursue the trolls."
                [/part]
                [part]
                    story= _ "They met but light resistance all along the trail of the trolls, which they quickly overcame."
                [/part]
                [part]
                    story= _ "Soon, the trail began to lead east, and then south. A few hours later the party emerged from the tunnels into dawn’s early light."
                [/part]
            [/then]
            # Eryssa dead or hostile
            [else]
                [if]
                    [variable]
                        name=eryssa_hostile
                        equals=yes
                    [/variable]
                    # Eryssa is dead
                    [else]
                        [part]
                            story= _ "This isn’t looking good. Not only do we fail to get the princess but now we lost all of our gold! Seriously Hamel, I don’t know if we’re gonna make it."
                            background=portraits/Tallin.png
                        [/part]
                        [part]
                            story= _ "Don’t give in to despair, Tallin. At least you prevented the orcs from getting the ransom money."
                            background=portraits/Hamel.png
                        [/part]
                        [part]
                            story= _ "Yeah, they ran off with all the rest of our gold instead."
                            background=portraits/Tallin.png
                        [/part]
                        [part]
                            story= _ "Snap out of it Tallin! We are not in control of fate. We will do all we can to the best of our ability and leave the results to the gods."
                            background=portraits/Hamel.png
                        [/part]
                        [part]
                            story= _ "You’re right, Hamel, sorry. Were you able to pursue the trolls?"
                            background=portraits/Tallin.png
                        [/part]
                        [part]
                            story= _ "We tried, Tallin, but with the orcs still pressing our southern defenses and other groups of trolls trying to break through everywhere, we simply didna’ ha’ the manpower."
                            background=portraits/Hamel.png
                        [/part]
                        [part]
                            story= _ "How long ago did the trolls make off with the gold?"
                            background=portraits/Tallin.png
                        [/part]
                        [part]
                            story= _ "It couldna’ ha’ been more then a day now."
                            background=portraits/Hamel.png
                        [/part]
                        [part]
                            story= _ "Then we shall pursue them. Even if we don’t catch them then we might be able to hit Rakshas before he has had a chance to put all that gold to good use."
                            background=portraits/Tallin.png
                        [/part]
                        [part]
                            story= _ "Hamel, rally the dwarves and prepare to mount an all-out offensive against the orcs. It’s time to give them some of their own."
                            background=portraits/Tallin.png
                        [/part]
                        [part]
                            story= _ "We will follow the trail of the trolls; that should lead us to Rakshas."
                            background=portraits/Tallin.png
                        [/part]
                        [part]
                            story= _ "It is well thought. May the Bright Gods be with you."
                            background=portraits/Hamel.png
                        [/part]
                        [part]
                            story= _ "All right people, let’s move out!"
                            background=portraits/Tallin.png
                        [/part]
                        [part]
                            story= _ "Thus the party set off to the northern tunnels to pursue the trolls."
                        [/part]
                        [part]
                            story= _ "They met but light resistance all along the trail of the trolls, which they quickly overcame."
                        [/part]
                        [part]
                            story= _ "Soon, the trail began to lead east, and then south. A few hours later the party emerged from the tunnels into dawn’s early light."
                        [/part]
                    [/else]
                    # Hostile
                    [then]
                        [part]
                            story= _ "See, you wretched human! At least now you will appreciate the generosity of the elves."
                            background=portraits/Eryssa.png
                        [/part]
                        [part]
                            story= _ "Shut up, you little snot! If it wasn’t for you we wouldn’t have lost our gold in the first place!"
                            background=portraits/Arthian.png
                        [/part]
                        [part]
                            story= _ "I wasn’t talking to you, lich! Learn to keep your mouth shut."
                            background=portraits/Eryssa.png
                        [/part]
                        [part]
                            story= _ "Who is this annoying chit?"
                            background=portraits/Hamel.png
                        [/part]
                        [part]
                            story= _ "This is the famous and benevolent princess Eryssa, in whose rescue we sacrificed many lives and <i>much</i> gold."
                            background=portraits/Tallin.png
                        [/part]
                        [part]
                            story= _ "That’s it! I have had enough from you worthless rabble. I will soon send a rider with the promised gold, and in the meantime, I’m leaving!"
                            background=portraits/Eryssa.png
                        [/part]
                        [part]
                            story= _ "Begone and good riddance, brat!"
                            background=portraits/Arthian.png
                        [/part]
                        [part]
                            story= _ "Back to the issue of the stolen gold, were you able to pursue the trolls?"
                            background=portraits/Tallin.png
                        [/part]
                        [part]
                            story= _ "We tried, Tallin, but with the orcs still pressing our southern defenses and other groups of trolls trying to break through everywhere, we simply didna’ ha’ the manpower."
                            background=portraits/Hamel.png
                        [/part]
                        [part]
                            story= _ "How long ago did the trolls make off with the gold?"
                            background=portraits/Tallin.png
                        [/part]
                        [part]
                            story= _ "It couldna’ ha’ been more then a day now."
                            background=portraits/Hamel.png
                        [/part]
                        [part]
                            story= _ "Then we shall pursue them. Even if we don’t catch them then we might be able to hit Rakshas before he has had a chance to put all that gold to good use."
                            background=portraits/Tallin.png
                        [/part]
                        [part]
                            story= _ "Hamel, rally the dwarves and prepare to make an all-out offensive against the orcs. It’s time to give them some of their own."
                            background=portraits/Tallin.png
                        [/part]
                        [part]
                            story= _ "We will follow the trail of the trolls, which, lead us back to Rakshas..."
                            background=portraits/Tallin.png
                        [/part]
                        [part]
                            story= _ "It is well thought. The axes and hammers of every dwarf thirst for the blood of the orcs!"
                            background=portraits/Hamel.png
                        [/part]
                        [part]
                            story= _ "All right, let’s move out people!"
                            background=portraits/Tallin.png
                        [/part]
                        [part]
                            story= _ "Thus the party set off to the northern tunnels to pursue the trolls."
                        [/part]
                        [part]
                            story= _ "They met but light resistance all along the trail of the trolls, which they quickly overcame."
                        [/part]
                        [part]
                            story= _ "Soon, the trail began to lead east, and then south. A few hours later the party emerged from the tunnels into dawn’s early light."
                        [/part]
                    [/then]
                [/if]
            [/else]
        [/if]
        [part]
            show_title=yes
            {TO_STOLEN_GOLD}
        [/part]
    [/story]

    # Players side
    [side]
        type=Lieutenant
        id=Tallin
        name=_ "Tallin"
        canrecruit=yes
        side=1
        controller=human
        recruit=Peasant,Woodsman,Thug,Poacher,Spearman,Bowman,Gryphon,Dwarvish Fighter,Dwarvish Thunderer,Dwarvish Ulfserker,Dwarvish Scout,Footpad
        team_name=alliance
        user_team_name=_"Alliance"
        gold=200
    [/side]

    # Opposing AIs, pretty developed [ai] tag causes them to act stupid,
    # aggressive, ignore villages, and target Tallin
    [side]
        type=Troll Warrior
        id=Tor
        name= _ "Tor"
        canrecruit=yes
        side=2
        {GOLD4 500 600 700 800}
        {INCOME4 5 10 20 25}
        recruit=Troll Whelp,Troll,Troll Rocklobber
        team_name=trolls
        user_team_name=_"Trolls"

        [ai]
            simple_targeting=yes
            recruitment_ignore_bad_combat=yes
            recruitment_ignore_bad_movement=yes
            aggression=1.0
            caution=-5.0
            attack_depth=5
            village_value=0.0
            leader_value=50.0
            villages_per_scout=0.0
            recruitment_pattern=fighter,fighter,mixed fighter

            [target]
                id=Tallin
                value=500
            [/target]
        [/ai]
    [/side]

    [side]
        type=Troll Warrior
        id=Bor
        name= _ "Bor"
        canrecruit=yes
        side=3
        {GOLD4 500 600 700 800}
        {INCOME4 5 10 20 25}
        recruit=Troll Whelp,Troll,Troll Rocklobber
        team_name=trolls
        user_team_name=_"Trolls"
        [ai]
            simple_targeting=yes
            recruitment_ignore_bad_combat=yes
            recruitment_ignore_bad_movement=yes
            aggression=1.0
            caution=-5.0
            attack_depth=5
            village_value=0.0
            leader_value=50.0
            villages_per_scout=0.0
            recruitment_pattern=fighter,fighter,mixed fighter

            [target]
                id=Tallin
                value=500
            [/target]
        [/ai]
    [/side]

    [side]
        type=Troll Warrior
        id=Oof
        name= _ "Oof"
        canrecruit=yes
        side=4
        {GOLD4 500 600 700 800}
        {INCOME4 5 10 20 25}
        recruit=Troll Whelp,Troll,Troll Rocklobber
        team_name=trolls
        user_team_name=_"Trolls"
        [ai]
            simple_targeting=yes
            recruitment_ignore_bad_combat=yes
            recruitment_ignore_bad_movement=yes
            aggression=1.0
            caution=-5.0
            attack_depth=5
            village_value=0.0
            leader_value=50.0
            villages_per_scout=0.0
            recruitment_pattern=fighter,fighter,mixed fighter

            [target]
                id=Tallin
                value=500
            [/target]
        [/ai]
    [/side]

    [side]
        type=Troll Warrior
        id=Glu
        name= _ "Glu"
        canrecruit=yes
        side=5

        {GOLD4 500 600 700 800}
        {INCOME4 5 10 20 25}
        recruit=Troll Whelp,Troll,Troll Rocklobber
        team_name=trolls
        user_team_name=_"Trolls"
        [ai]
            simple_targeting=yes
            recruitment_ignore_bad_combat=yes
            recruitment_ignore_bad_movement=yes
            aggression=1.0
            caution=-5.0
            attack_depth=5
            village_value=0.0
            leader_value=50.0
            villages_per_scout=0.0
            recruitment_pattern=fighter,fighter,mixed fighter

            [target]
                id=Tallin
                value=500
            [/target]
        [/ai]
    [/side]

    # Side for arriving elves, no leader, but gold and recruit list since Hindel can recruit
    [side]
        side=6
        no_leader=yes
        {GOLD4 300 250 200 150}
        recruit=Elvish Fighter,Elvish Archer,Elvish Shaman,Elvish Scout
        team_name=alliance
        user_team_name=_"Alliance"
    [/side]

    # Side for Krash, no leader but gold and recruit lits since Krash will be able to recruit
    [side]
        side=7
        no_leader=yes
        {GOLD4 300 250 200 150}
        recruit=Drake Fighter,Drake Glider,Drake Burner,Drake Clasher
        team_name=alliance
        user_team_name=_"Alliance"
        controller=human
        save_id=Krash
    [/side]

    # Prestart event - map setup
    [event]
        name=prestart

        [if]
            [variable]
                name=eryssa_hostile
                equals=yes
            [/variable]

            [then]
                [kill]
                    id=Eryssa
                    fire_event=no
                [/kill]
            [/then]
        [/if]

        {PLACE_IMAGE scenery/dwarven-doors-closed.png 18 12}
    [/event]

    # Start event - recall heroes, set objectives, do the talk
    [event]
        name=start

        {RECALL_SUPPORTER}
        [recall]
            id=Abhai
        [/recall]
        [recall]
            id=Camerin
        [/recall]
        [recall]
            id=Father Morvin
        [/recall]
        [recall]
            id=Sister Thera
        [/recall]
        [recall]
            id=Krash
        [/recall]
        [recall]
            id=Elenia
        [/recall]
        [recall]
            id=Eryssa
        [/recall]
        [recall]
            id=Stalrag
        [/recall]
        [recall]
            id="Ro'Arthian"
        [/recall]
        [recall]
            id="Ro'Sothian"
        [/recall]

        [message]
            speaker=narrator
            message= _ "Upon emerging from the tunnels, the party found themselves surrounded."
            image=wesnoth-icon.png
        [/message]
        [message]
            speaker=Tor
            message= _ "Haha, suckers! We got you now!"
        [/message]
        [message]
            speaker=Bor
            message= _ "Hahaha! They walked right into our trap."
        [/message]
        [message]
            speaker=Glu
            message= _ "And we have already sent the gold ahead to the Master!"
        [/message]
        [message]
            speaker=Oof
            message= _ "Now let’s make mush out of these puny creatures!"
        [/message]
        [message]
            role=Supporter
            message= _ "Oh no, we are surrounded!"
        [/message]
        [message]
            speaker=Tallin
            # This is an approximate quote from an Anglo-Saxon heroic poem
            # the Lay of Beorthnoth.  Tranlate appropriately.
            message= _ "Courage shall be the harder, heart the keener, and our spirit greater as our strength lessens. Kill them all!"
        [/message]
        [message]
            speaker=Camerin
            # wmllint: local spelling Yeeahhh
            message= _ "Yeeahhh! I like it!"
        [/message]
        [objectives]
            side=1
            [objective]
                description= _ "Defeat the enemy leaders or"
                condition=win
            [/objective]
            [objective]
                description= _ "Resist for as long as you can"
                condition=win
                show_turn_counter=yes
            [/objective]
            [objective]
                description= _ "Death of Tallin"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Ro’Arthian"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Ro’Sothian"
                condition=lose
            [/objective]

            [gold_carryover]
                carryover_percentage=80
            [/gold_carryover]
        [/objectives]
    [/event]

    # Turn 2 - Krash smells other drakes and leaves. If he's allive at this point.
    [event]
        name=turn 2

        [if]
            [have_unit]
                id=Krash
            [/have_unit]

            [then]
                [message]
                    speaker=Krash
                    message= _ "(<i>Sniff sniff</i>)"
                [/message]
                [message]
                    speaker=Camerin
                    message= _ "What’s up big guy?"
                [/message]
                [message]
                    speaker=Krash
                    message= _ "(<i>Flap flap flap</i>)"
                [/message]
                [store_unit]
                    [filter]
                        id=Krash
                    [/filter]
                    variable=krash_flies_away
                    kill=yes
                    fire_event=no
                [/store_unit]
                {VARIABLE krash_flies_away.side 7}
                {VARIABLE krash_flies_away.x 3}
                {VARIABLE krash_flies_away.y 15}
                {VARIABLE krash_flies_away.canrecruit yes}
                [move_unit_fake]
                    type=$krash_flies_away.type
                    side=7
                    x=13,12,11,10,9,8,7,6,5,4,3,2,1
                    y=15,15,15,15,15,15,15,15,15,15,15,15,15
                [/move_unit_fake]
                [message]
                    role=Supporter
                    message= _ "Hey! Where is he going?"
                [/message]
                [message]
                    speaker=Camerin
                    message= _ "Krash man, you are gonna miss all the fun!"
                [/message]
                [message]
                    speaker=Father Morvin
                    message= _ "I think he has decided that it is time for him to part ways with us."
                [/message]
                [message]
                    speaker=Tallin
                    message= _ "Such a fierce yet gentle creature. He will be sorely missed."
                [/message]
                [message]
                    speaker=Sister Thera
                    message= _ "Farewell, Krash, may the Lords of Light guide your path."
                [/message]
            [/then]
        [/if]
    [/event]

    # Turn 7 - Krash gets back. With friends. If he was alive earlier that is.
    [event]
        name=turn 7

        [if]
            [variable]
                name=krash_flies_away.length
                equals=1
            [/variable]
            [then]
                [move_unit_fake]
                    type=$krash_flies_away.type
                    side=7
                    x=1,2
                    y=15,14
                [/move_unit_fake]
                [unstore_unit]
                    variable=krash_flies_away
                    find_vacant=yes
                [/unstore_unit]
                # remove loyalty overlay
                [remove_unit_overlay]
                    id=Krash
                    image=misc/loyal-icon.png
                [/remove_unit_overlay]
                # give expendable overlay
                [unit_overlay]
                    id=Krash
                    image=misc/leader-expendable.png
                [/unit_overlay]
                [move_unit_fake]
                    type=Drake Burner
                    side=7
                    x=1,2
                    y=14,13
                [/move_unit_fake]
                [unit]
                    type=Drake Burner
                    side=7
                    id=Singe
                    name= _ "Singe"
                    x=3
                    y=14
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_RESILIENT}
                    [/modifications]
                    {IS_LOYAL}
                [/unit]
                [move_unit_fake]
                    type=Drake Fighter
                    side=7
                    x=1,2
                    y=16,15
                [/move_unit_fake]
                [unit]
                    type=Drake Fighter
                    id="Bak'man"
                    name= _ "Bak’man"
                    side=7
                    x=3
                    y=15
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_STRONG}
                    [/modifications]
                    {IS_LOYAL}
                [/unit]
                {CLEAR_VARIABLE krash_flies_away}
                [message]
                    speaker=Sister Thera
                    message= _ "Hey! Look who’s back!"
                [/message]
                [message]
                    role=Supporter
                    message= _ "And look, he brought his friends too!"
                [/message]
                [message]
                    speaker="Bak'man"
                    message= _ "GRRRR!" # wmllint: no spellcheck
                [/message]
                [message]
                    speaker=Singe
                    message= _ "ROOAARRR!!" # wmllint: no spellcheck
                [/message]
                [message]
                    speaker=Krash
                    message= _ "Hurry, friends, let’s set up camp!"
                [/message]
                [message]
                    speaker=Camerin
                    message= _ "Yeah, man! I knew we could count on you!"
                [/message]
                [message]
                    speaker=Father Morvin
                    message= _ "Hmmm, he must have smelled the scent of other drakes and gone to them to convince them to help us."
                [/message]
                [message]
                    speaker=Sister Thera
                    message= _ "Awww, what a darling!"
                [/message]
                [message]
                    role=Supporter
                    message= _ "Tell that to the trolls."
                [/message]
                [message]
                    speaker=Oof
                    message= _ "What?! Drakes?! Fire! Aagghh!"
                [/message]
                [message]
                    speaker=Glu
                    message= _ "Shut your mouth, you coward!"
                [/message]
                [terrain]
                    x=3
                    y=15
                    terrain=Ke
                [/terrain]
                [terrain]
                    x=3,3,2,4,4
                    y=14,16,15,15,14
                    terrain=Ce
                [/terrain]
                [objectives]
                    side=7
                    [objective]
                        description= _ "Help Tallin defeat the enemy leaders or"
                        condition=win
                    [/objective]
                    [objective]
                        description= _ "Resist for as long as you can"
                        condition=win
                        show_turn_counter=yes
                    [/objective]
                    [objective]
                        description= _ "Death of Tallin"
                        condition=lose
                    [/objective]
                    [objective]
                        description= _ "Death of Ro’Arthian"
                        condition=lose
                    [/objective]
                    [objective]
                        description= _ "Death of Ro’Sothian"
                        condition=lose
                    [/objective]

                    [gold_carryover]
                        carryover_percentage=80
                    [/gold_carryover]
                [/objectives]
            [/then]
        [/if]
    [/event]

    # Elven reinforcements or gold arrive.
    [event]
        name=turn 18

        [if]
            [have_unit]
                id=Eryssa
            [/have_unit]
            [then]
                [move_unit_fake]
                    type=Elvish Marshal
                    side=6
                    x=30,29,28
                    y=15,15,15
                [/move_unit_fake]
                [unit]
                    id=Hidel
                    type=Elvish Marshal
                    name= _ "Hidel"
                    profile=portraits/Hidel.png
                    canrecruit=yes
                    x=28
                    y=15
                    side=6
                [/unit]
                [move_unit_fake]
                    type=Elvish Fighter
                    side=6
                    x=30,29,28
                    y=14,14,14
                [/move_unit_fake]
                {GENERIC_UNIT 6 "Elvish Fighter" 28 14}
                [move_unit_fake]
                    type=Elvish Fighter
                    side=6
                    x=30,29,28
                    y=13,13,13
                [/move_unit_fake]
                {GENERIC_UNIT 6 "Elvish Fighter" 28 13}
                [move_unit_fake]
                    type=Elvish Archer
                    side=6
                    x=30,29,28
                    y=16,16,16
                [/move_unit_fake]
                {GENERIC_UNIT 6 "Elvish Archer" 28 16}
                [move_unit_fake]
                    type=Elvish Shaman
                    side=6
                    x=30,29
                    y=15,16
                [/move_unit_fake]
                {GENERIC_UNIT 6 "Elvish Shaman" 29 16}
                [message]
                    speaker=Hidel
                    message= _ "Princess! We have finally found you!"
                [/message]
                [message]
                    speaker=Eryssa
                    message= _ "Good work, Hidel! How do your forces march?"
                [/message]
                [message]
                    speaker=Hidel
                    message= _ "They are all here, princess! Hand picked by your father — the finest and bravest elvish troops in the entire Northlands. We will follow you to the end of the world if need be."
                [/message]
                [message]
                    speaker=Eryssa
                    message= _ "Very good. Our first task is to give brave Tallin here full support in defeating these trolls."
                [/message]
                [message]
                    speaker=Hidel
                    message= _ "With pleasure, Princess! Quickly men, set up a base!"
                [/message]
                [terrain]
                    x=28
                    y=15
                    terrain=Ke
                [/terrain]
                [terrain]
                    x=28,28,29,27,27
                    y=14,16,16,16,15
                    terrain=Ce
                [/terrain]
                [message]
                    speaker=Oof
                    message= _ "Oh no! Those blasted elves have just joined forces with the humans! This is hopeless! Flee! Flee!"
                [/message]
                [message]
                    speaker=Tallin
                    message= _ "Hmmm, should we let the trolls run away or should we finish them now?"
                    [option]
                        message= _ "Hey! Stand your ground, you cowards!"
                        [command]
                            [message]
                                speaker=Bor
                                message= _ "You are a fool, human! We shall crush and destroy you!"
                            [/message]
                            [objectives]
                                side=6
                                [objective]
                                    description= _ "Help Tallin defeat the enemy leaders"
                                    condition=win
                                [/objective]
                                [objective]
                                    description= _ "Death of Tallin"
                                    condition=lose
                                [/objective]
                                [objective]
                                    description= _ "Death of Ro’Arthian"
                                    condition=lose
                                [/objective]
                                [objective]
                                    description= _ "Death of Ro’Sothian"
                                    condition=lose
                                [/objective]

                                {TURNS_RUN_OUT}

                                [gold_carryover]
                                    carryover_percentage=80
                                [/gold_carryover]
                            [/objectives]
                        [/command]
                    [/option]
                    [option]
                        message= _ "Haha! Look at them run!"
                        [command]
                            [endlevel]
                                result=victory
                                bonus=yes
                            [/endlevel]
                        [/command]
                    [/option]
                [/message]
            [/then]
            [else]
                [if]
                    [variable]
                        name=eryssa_hostile
                        equals=yes
                    [/variable]
                    [then]
                        [move_unit_fake]
                            type=Elvish Outrider
                            side=6
                            x=30,29,28
                            y=15,15,15
                        [/move_unit_fake]
                        [unit]
                            id=Himadrin
                            type=Elvish Outrider
                            name= _ "Himadrin"
                            x=28
                            y=15
                            side=6
                        [/unit]
                        [message]
                            speaker=Himadrin
                            message= _ "Which one of you rabble is Tallin?"
                        [/message]
                        [message]
                            speaker=Tallin
                            message= _ "I am."
                        [/message]
                        [message]
                            speaker=Himadrin
                            message= _ "Princess Eryssa sends you this gold along with the order to stay clear of any Northern Elf if you know what’s good for you."
                        [/message]
                        [message]
                            speaker=Tallin
                            message= _ "Why? What did I ever do to the Northern Elves?"
                        [/message]
                        [message]
                            speaker=Himadrin
                            message= _ "The ill treatment that she received while in your care is an insult to every Northern Elf. Consequently if you, or any of your henchmen show your face around us ever again, you will be shot on sight."
                        [/message]
                        [gold]
                            amount=1500
                            side=1
                        [/gold]
                        [message]
                            speaker=Tallin
                            message= _ "Tell the princess to get off her high horse and stop acting like such a priss!"
                        [/message]
                        [message]
                            speaker=Himadrin
                            message= _ "You dare insult our princess!"
                        [/message]
                        [message]
                            speaker="Ro'Arthian"
                            message= _ "You better get lost, elf, before we kill you."
                        [/message]
                        [message]
                            speaker=Himadrin
                            message= _ "This insult will forever be remembered by the Northern Elves! The day will soon come when your race shall regret your folly!"
                        [/message]
                        [kill]
                            id=Himadrin
                        [/kill]
                        [move_unit_fake]
                            type=Elvish Outrider
                            side=6
                            x=28,29,30
                            y=15,15,15
                        [/move_unit_fake]
                        [message]
                            speaker=Camerin
                            # wmllint: local spelling Pff,
                            message= _ "Pff, elves. What a bunch of stuck-up snots!"
                        [/message]
                        [message]
                            speaker=Oof
                            message= _ "Oh no! The elves have just given the humans a hoard of gold! This is hopeless! Flee! Flee!"
                        [/message]
                        [message]
                            speaker=Tallin
                            message= _ "Hmmm, should we let the trolls run away or should we finish them now?"
                            [option]
                                message= _ "Hey! Stand your ground, you cowards!"
                                [command]
                                    [message]
                                        speaker=Bor
                                        message= _ "You are a fool, human! Watch how we will crush and destroy you!"
                                    [/message]
                                    [objectives]
                                        side=1
                                        [objective]
                                            description= _ "Defeat the enemy leaders"
                                            condition=win
                                        [/objective]
                                        [objective]
                                            description= _ "Death of Tallin"
                                            condition=lose
                                        [/objective]
                                        [objective]
                                            description= _ "Death of Ro’Arthian"
                                            condition=lose
                                        [/objective]
                                        [objective]
                                            description= _ "Death of Ro’Sothian"
                                            condition=lose
                                        [/objective]

                                        {TURNS_RUN_OUT}

                                        [gold_carryover]
                                            bonus=yes
                                            carryover_percentage=80
                                        [/gold_carryover]
                                    [/objectives]
                                [/command]
                            [/option]
                            [option]
                                message= _ "Haha! Look at them run!"
                                [command]
                                    [endlevel]
                                        result=victory
                                        bonus=yes
                                    [/endlevel]
                                [/command]
                            [/option]
                        [/message]
                    [/then]
                [/if]
            [/else]
        [/if]
    [/event]

    # Victory - if we managed to finish before turn 18 elves arrive, otherwise we just talk a bit.
    [event]
        name=victory

        [if]
            [have_unit]
                id=Eryssa
            [/have_unit]
            [then]
                [if]
                    [variable]
                        name=turn_number
                        greater_than=17
                    [/variable]
                    [then]
                        [message]
                            speaker=Tallin
                            message= _ "Phew, they are defeated at last."
                        [/message]
                        [message]
                            speaker=Eryssa
                            message= _ "Hidel, let me introduce to you my savior: Tallin."
                        [/message]
                        [message]
                            speaker=Hidel
                            message= _ "It is an honor to meet you, Tallin."
                        [/message]
                        [message]
                            speaker=Tallin
                            message= _ "The honor is mine, sir."
                        [/message]
                        [message]
                            speaker=Hidel
                            message= _ "We have heard much of your intelligence and courage. The number of humans over the centuries who have earned the respect and admiration of the Northern Elves are extremely few, but let it be known that you are one of them."
                        [/message]
                        [message]
                            speaker=Tallin
                            message= _ "I am honored, sir, and I hope that I will live up to the trust that the Northern Elves have bestowed upon me."
                        [/message]
                        [message]
                            speaker=Hidel
                            message= _ "I am sure you will, Tallin. The trust of the elves is seldom misplaced."
                        [/message]
                        [message]
                            speaker="Ro'Arthian"
                            message= _ "If you guys are quite finished exchanging pleasantries..."
                        [/message]
                        [message]
                            speaker="Ro'Sothian"
                            message= _ "(<i>Snicker</i>)"
                        [/message]
                        [message]
                            speaker="Ro'Arthian"
                            message= _ "... the road ahead is clear and I am eager to blast some more orcs. Shall we proceed?"
                        [/message]
                        [message]
                            speaker=Tallin
                            message= _ "Right. Onward men!"
                        [/message]
                    [/then]
                    [else]
                        [move_unit_fake]
                            type=Elvish Marshal
                            side=6
                            x=30,29,28
                            y=15,15,15
                        [/move_unit_fake]
                        [unit]
                            id=Hidel
                            type=Elvish Marshal
                            profile=portraits/Hidel.png
                            name= _ "Hidel"
                            x=28
                            y=15
                            side=6
                            canrecruit=yes
                        [/unit]
                        [move_unit_fake]
                            type=Elvish Avenger
                            side=6
                            x=30,29,28
                            y=14,14,14
                        [/move_unit_fake]
                        [unit]
                            type=Elvish Avenger
                            x=28
                            y=14
                            side=6
                            id=Sisal
                            name= _ "Sisal"
                        [/unit]
                        [move_unit_fake]
                            type=Elvish Fighter
                            side=6
                            x=30,29,28
                            y=13,13,13
                        [/move_unit_fake]
                        {GENERIC_UNIT 6 "Elvish Fighter" 28 13}
                        [move_unit_fake]
                            type=Elvish Archer
                            side=6
                            x=30,29,28
                            y=16,16,16
                        [/move_unit_fake]
                        {GENERIC_UNIT 6 "Elvish Archer" 28 16}
                        [move_unit_fake]
                            type=Elvish Shaman
                            side=6
                            x=30,29
                            y=15,16
                        [/move_unit_fake]
                        {GENERIC_UNIT 6 "Elvish Shaman" 29 16}
                        [message]
                            speaker=Hidel
                            message= _ "Princess! We have finally found you! Thank the Bright Gods you are free! Your father had originally sent us to rescue you."
                        [/message]
                        [message]
                            speaker=Eryssa
                            message= _ "Yes, or so I have heard. You honor me, but this brave man reached the mark before you."
                        [/message]
                        [message]
                            speaker=Hidel
                            message= _ "You must be the famous Tallin."
                        [/message]
                        [message]
                            speaker=Tallin
                            message= _ "At your service."
                        [/message]
                        [message]
                            speaker=Hidel
                            message= _ "We have heard much of your intelligence and courage. The number of humans over the centuries who have earned the respect and admiration of the Northern Elves are extremely few, but you are one of them."
                        [/message]
                        [message]
                            speaker=Tallin
                            message= _ "I am honored, sir, and I hope that I will live up to the trust that the Northern Elves have bestowed upon me."
                        [/message]
                        [message]
                            speaker=Hidel
                            message= _ "I am sure you will, Tallin. The trust of the elves is seldom misplaced. Also know that the Northern Enclaves will always be open to you."
                        [/message]
                        [message]
                            speaker=Tallin
                            message= _ "Thank you, sir."
                        [/message]
                        [message]
                            speaker=Eryssa
                            message= _ "What is the status of our troops, Hidel?"
                        [/message]
                        [message]
                            speaker=Hidel
                            message= _ "They are all here, princess! Hand picked by your father — the finest and bravest elvish troops in the entire Northlands."
                        [/message]
                        [message]
                            speaker=Eryssa
                            message= _ "Excellent! We shall assist Tallin to the fullest in crushing the orcish host. Not only are we in debt to him but by doing so we will be serving our cause as well as we serve his."
                        [/message]
                        [message]
                            speaker=Hidel
                            message= _ "As you wish, princess."
                        [/message]
                        [message]
                            speaker=Tallin
                            message= _ "Very well, people. The road ahead is clear, onward to victory!"
                        [/message]
                    [/else]
                [/if]
            [/then]
        [/if]
        [if]
            [variable]
                name=eryssa_hostile
                equals=yes
            [/variable]
            [variable]
                name=turn_number
                less_than=18
            [/variable]
            [then]
                [move_unit_fake]
                    type=Elvish Outrider
                    side=6
                    x=30,29,28
                    y=15,15,15
                [/move_unit_fake]
                [unit]
                    id=Himadrin
                    type=Elvish Outrider
                    name= _ "Himadrin"
                    x=28
                    y=15
                    side=6
                [/unit]
                [message]
                    speaker=Himadrin
                    message= _ "Which one of you rabble is Tallin?"
                [/message]
                [message]
                    speaker=Tallin
                    message= _ "I am."
                [/message]
                [message]
                    speaker=Himadrin
                    message= _ "Princess Eryssa sends you this gold along with the order to stay clear of any Northern Elf if you know what’s good for you."
                [/message]
                [message]
                    speaker=Tallin
                    message= _ "Why? What did I ever do to the Northern Elves?"
                [/message]
                [message]
                    speaker=Himadrin
                    message= _ "The ill treatment that she received while in your care is an insult to every Northern Elf. Consequently if you, or any of your henchmen show your face around us ever again, you will be shot on sight."
                [/message]
                [gold]
                    amount=1500
                    side=1
                [/gold]
                [message]
                    speaker=Tallin
                    message= _ "Tell the princess to get off her high horse and stop acting like such a priss!"
                [/message]
                [message]
                    speaker=Himadrin
                    message= _ "You dare insult our princess!"
                [/message]
                [message]
                    speaker="Ro'Arthian"
                    message= _ "You better get lost, elf, before we kill you."
                [/message]
                [message]
                    speaker=Himadrin
                    message= _ "This insult will forever be remembered by the Northern Elves! The day will soon come when your race shall regret your folly!"
                [/message]
                [kill]
                    id=Himadrin
                [/kill]
                [move_unit_fake]
                    type=Elvish Outrider
                    side=6
                    x=28,29,30
                    y=15,15,15
                [/move_unit_fake]
                [message]
                    speaker=Camerin
                    message= _ "Pff, elves. What a bunch of stuck-up snots!"
                [/message]
            [/then]
        [/if]
    [/event]

    # Load death events
    {campaigns/Northern_Rebirth/utils/herodeaths.cfg}
[/scenario]