#textdomain wesnoth-nr
[scenario]
    id=pursuit
    name= _ "The Pursuit"

    map_data="{campaigns/Northern_Rebirth/maps/the_pursuit.map}"

    turns=-1

    {UNDERGROUND}
    {PLACE_IMAGE scenery/dwarven-doors-closed.png 23 7}
    {PLACE_IMAGE scenery/dwarven-doors-closed.png 22 9}
    {PLACE_IMAGE scenery/dwarven-doors-closed.png 22 10}
    {PLACE_IMAGE scenery/dwarven-doors-closed.png 27 13}

    {PLACE_IMAGE scenery/dwarven-doors-closed.png 19 2}
    {PLACE_IMAGE scenery/dwarven-doors-closed.png 19 3}
    {PLACE_IMAGE scenery/dwarven-doors-closed.png 19 4}

    {PLACE_IMAGE scenery/dwarven-doors-closed.png 9 3}
    {PLACE_IMAGE scenery/dwarven-doors-closed.png 9 4}

    {PLACE_IMAGE scenery/dwarven-doors-closed.png 34 28}
    {PLACE_IMAGE scenery/dwarven-doors-closed.png 35 34}

    {PLACE_IMAGE units/human-magi/white-mage.png 9 40}
    {PLACE_IMAGE items/cage.png 9 40}

    {PLACE_IMAGE "units/human-magi/white-mage+female.png" 6 39}
    {PLACE_IMAGE items/cage.png 6 39}

    {PLACE_IMAGE units/elves-wood/druid.png 3 40}
    {PLACE_IMAGE items/cage.png 3 40}

    {PLACE_IMAGE units/drakes/burner.png 2 32}
    {PLACE_IMAGE items/cage.png 2 32}

    # Zombie corpses in the water.
    {PLACE_IMAGE units/undead/soulless-die-3.png 37 19}
    {PLACE_IMAGE units/undead/soulless-die-3.png 38 13}
    {PLACE_IMAGE units/undead/soulless-die-3.png 35 7}
    {PLACE_IMAGE units/undead/soulless-die-3.png 27 5}

    {PLACE_IMAGE scenery/signpost.png 15 34}
    {PLACE_IMAGE scenery/signpost.png 15 32}
    {PLACE_IMAGE scenery/signpost.png 25 32}
    {PLACE_IMAGE scenery/signpost.png 24 34}
    {PLACE_IMAGE scenery/signpost.png 24 28}
    {PLACE_IMAGE scenery/signpost.png 19 28}
    {PLACE_IMAGE scenery/signpost.png 15 29}
    {PLACE_IMAGE scenery/signpost.png 34 27}
    {PLACE_IMAGE scenery/signpost.png 32 36}

    {PLACE_IMAGE items/chest.png 6 22}
    {PLACE_IMAGE items/chest.png 17 22}
    {PLACE_IMAGE items/chest.png 17 20}
    {PLACE_IMAGE items/chest.png 5 20}
    {PLACE_IMAGE items/chest.png 6 16}
    {PLACE_IMAGE items/chest.png 9 15}

    {OBJ_POTION_HOLY 34 26 object7_holywater}
    {OBJ_POTION_HOLY 33 27 object7_holywater2}
    {OBJ_POTION_HOLY 33 28 object7_holywater3}
    {OBJ_POTION_HOLY 31 37 object7_holywater4}
    {OBJ_POTION_HOLY 32 37 object7_holywater5}
    {OBJ_POTION_HOLY 33 37 object7_holywater6}

    {PLACE_IMAGE items/staff.png 3 7}

    next_scenario=old_friend
    victory_when_enemies_defeated=no
    {SCENARIO_MUSIC "underground.ogg"}

    {campaigns/Northern_Rebirth/utils/herodeaths.cfg}

    [side]
        type=Peasant
        description=Tallin
        user_description=_ "Tallin"
        canrecruit=yes
        side=1
        controller=human
        {GOLD4 700 600 400 300}
        recruit=Peasant,Woodsman,Thug,Poacher,Footpad
        team_name=mob
        shroud=yes
    [/side]

    [side]
        type=Ancient Lich
        description=Malifor
        user_description= _ "Malifor"
        profile=portraits/Malifor.jpg
        canrecruit=yes
        side=2
        team_name=undead
        recruit=Deathblade,Revenant,Bone Shooter,Necromancer
        gold=0
    [/side]

    [side]
        type=Death Knight
        description=Hettel
        user_description=_ "Hettel"
        canrecruit=yes
        side=3
        team_name=undead

#ifdef NEWBIE
        recruit=Skeleton,Skeleton Archer
        gold=50
        income=4
#endif

#ifdef EASY
        recruit=Skeleton,Skeleton Archer,Revenant
        gold=100
        income=10
#endif

#ifdef NORMAL
        recruit=Skeleton,Skeleton Archer,Revenant,Bone Shooter
        gold=150
        income=16
#endif

#ifdef HARD
        recruit=Skeleton,Skeleton Archer,Revenant,Bone Shooter,Deathblade
        gold=250
        income=22
#endif
    [/side]

    [side]
        type=Death Knight
        description=Thor
        canrecruit=yes
        side=4
        team_name=undead

#ifdef NEWBIE
        recruit=Skeleton,Skeleton Archer
        gold=50
        income=4
#endif

#ifdef EASY
        recruit=Skeleton,Skeleton Archer,Revenant
        gold=100
        income=10
#endif

#ifdef NORMAL
        recruit=Skeleton,Skeleton Archer,Revenant,Bone Shooter
        gold=150
        income=16
#endif

#ifdef HARD
        recruit=Skeleton,Skeleton Archer,Revenant,Bone Shooter,Deathblade
        gold=250
        income=22
#endif
    [/side]

    [side]
        type=Death Knight
        description=Trevor
        user_description=_ "Trevor"
        canrecruit=yes
        side=5
        team_name=undead
        gold=0

#ifdef NEWBIE
        recruit=Skeleton,Skeleton Archer
#endif

#ifdef EASY
        recruit=Skeleton,Skeleton Archer,Revenant
#endif

#ifdef NORMAL
        recruit=Skeleton,Skeleton Archer,Revenant,Bone Shooter
#endif

#ifdef HARD
        recruit=Skeleton,Skeleton Archer,Revenant,Bone Shooter,Deathblade
#endif
    [/side]

    [side]
        type=Death Knight
        description=Author
        user_description=_ "Author"
        canrecruit=yes
        side=6
        team_name=undead
        gold=0

#ifdef NEWBIE

        recruit=Skeleton,Skeleton Archer
#endif

#ifdef EASY
        recruit=Skeleton,Skeleton Archer,Revenant
#endif

#ifdef NORMAL
        recruit=Skeleton,Skeleton Archer,Revenant,Bone Shooter
#endif

#ifdef HARD
        recruit=Skeleton,Skeleton Archer,Revenant,Bone Shooter,Deathblade
#endif
    [/side]

    [side]
        type=Death Knight
        description=Sam
        user_description=_ "Sam"
        canrecruit=yes
        side=7
        team_name=undead
        gold=0
#ifdef NEWBIE
        recruit=Skeleton,Skeleton Archer
#endif

#ifdef EASY
        recruit=Skeleton,Skeleton Archer,Revenant
#endif

#ifdef NORMAL
        recruit=Skeleton,Skeleton Archer,Revenant,Bone Shooter
#endif

#ifdef HARD
        recruit=Skeleton,Skeleton Archer,Revenant,Bone Shooter,Deathblade
#endif
    [/side]

    [side]
        type=Death Knight
        description=Boblin
        user_description=_ "Boblin"
        canrecruit=yes
        side=8
        team_name=undead
        gold=0

#ifdef NEWBIE
        recruit=Skeleton,Skeleton Archer
#endif

#ifdef EASY
        recruit=Skeleton,Skeleton Archer,Revenant
#endif

#ifdef NORMAL
        recruit=Skeleton,Skeleton Archer,Revenant,Bone Shooter
#endif

#ifdef HARD
        recruit=Skeleton,Skeleton Archer,Revenant,Bone Shooter,Deathblade
#endif
    [/side]

    [side]
        type=Death Knight
        description=Antrasis
        canrecruit=yes
        side=9
        team_name=undead
        gold=0

#ifdef NEWBIE
        recruit=Skeleton,Skeleton Archer
#endif

#ifdef EASY
        recruit=Skeleton,Skeleton Archer,Revenant
#endif

#ifdef NORMAL
        recruit=Skeleton,Skeleton Archer,Revenant,Bone Shooter
#endif

#ifdef HARD
        recruit=Skeleton,Skeleton Archer,Revenant,Bone Shooter,Deathblade
#endif
    [/side]

    [event]
        name=prestart

        [set_variable]
            name=keep
            value=1
        [/set_variable]
        [set_variable]
            name=keep.x
            value=20
        [/set_variable]
        [set_variable]
            name=keep.y
            value=31
        [/set_variable]
    [/event]

    [event]
        name=start

        [hide_unit]
            x=20
            y=39
        [/hide_unit]

        [terrain]
            x=20
            y=39
            terrain=Rr
        [/terrain]

        [message]
            speaker=narrator
            message= _ "Leaving most of the dwarves behind, Tallin and the rest of his party set off to pursue the Sorcerer."
            image=wesnoth-icon.png
        [/message]

        [move_unit_fake]
            type=Ancient Lich
            side=2
            x=20,20,20,20,20,20,20
            y=39,38,37,36,35,34,33
        [/move_unit_fake]

        [unhide_unit]
        [/unhide_unit]

        {SUPPORTER}
        [recall]
            role=Supporter
        [/recall]

        [role]
            type=Dwarvish Dragonguard,Dwarvish Thunderguard,Dwarvish Steelclad,Dwarvish Fighter,Dwarvish Thunderer
            role=follower
        [/role]

        [recall]
            role=follower
        [/recall]

        [recall]
            description=Camerin
        [/recall]

        [unit]
            type=Draug
            side=6
            description=Treasury Guard
            ai_special=guardian
            x=10
            y=23
        [/unit]

        [unit]
            type=Draug
            side=2
            description=Study Guard
            ai_special=guardian
            x=26
            y=19
        [/unit]

        {DRAUG_GUARD 28 26}
        {DRAUG_GUARD 26 25}
        {DRAUG_GUARD 28 24}
        {DRAUG_GUARD 28 22}
        {DRAUG_GUARD 28 20}
        {DRAUG_GUARD 26 23}
        {DRAUG_GUARD 26 21}

        {DRAUG_GUARD 23 22}
        {DRAUG_GUARD 23 24}

        {DRAUG_GUARD 23 16}
        {DRAUG_GUARD 24 14}
        {DRAUG_GUARD 21 13}
        {DRAUG_GUARD 20 14}
        {DRAUG_GUARD 20 11}
        {DRAUG_GUARD 18 11}

        {REVENANT_GUARD 21 27}
        {REVENANT_GUARD 19 27}
        {REVENANT_GUARD 19 24}
        {REVENANT_GUARD 21 24}
        {REVENANT_GUARD 21 21}
        {REVENANT_GUARD 19 21}
        {REVENANT_GUARD 15 9}
        {REVENANT_GUARD 13 9}

        {DUNGEON_REVENANT 9 36}
        {DUNGEON_REVENANT 7 38}
        {DUNGEON_REVENANT 6 36}
        {DUNGEON_REVENANT 4 37}
        {DUNGEON_REVENANT 2 35}

        {TREASURY_REVENANT 12 23}
        {TREASURY_REVENANT 6 25}
        {TREASURY_REVENANT 6 26}
        {TREASURY_REVENANT 10 21}
        {TREASURY_REVENANT 10 19}
        {TREASURY_REVENANT 13 20}
        {TREASURY_REVENANT 14 18}
        {TREASURY_REVENANT 6 21}
        {TREASURY_REVENANT 12 17}
        {TREASURY_REVENANT 10 17}
        {TREASURY_REVENANT 4 19}
        {TREASURY_REVENANT 11 15}
        {TREASURY_REVENANT 7 15}

        {REVENANT_GUARD 33 30}
        {REVENANT_GUARD 34 30}
        {REVENANT_GUARD 34 32}
        {REVENANT_GUARD 33 33}
        {REVENANT_GUARD 6 30}
        {REVENANT_GUARD 6 32}

        [unit]
            type=Revenant
            side=2
            description=Revenant
            ai_special=guardian
            x=21
            y=35
        [/unit]

        [unit]
            type=Revenant
            side=2
            ai_special=guardian
            x=19
            y=35
        [/unit]

        [message]
            description=Tallin
            message= _ "There he goes! Quick, get him!"
        [/message]

        [message]
            description=Revenant
            message= _ "I don't think so, you living vermin."
        [/message]

        [message]
            description=Tallin
            message= _ "We'll have to kill these Revenants to get after him. There is only two of them, so they shouldn't last long."
        [/message]

        [objectives]
            side=1
            [objective]
                description= _ "Get past the revenants."
                condition=win
            [/objective]

            [objective]
                description= _ "Death of Tallin"
                condition=lose
            [/objective]
        [/objectives]
    [/event]

    [event]
        name=moveto

        [filter]
            side=1
            x=19-21
            y=30-32
        [/filter]

        [message]
            speaker=unit

            message= _ "Uh... Which way?"
        [/message]

        [message]
            description=Tallin
            message= _ "Blast it! We lost him."
        [/message]

        [message]
            description=Tallin
            message= _ "It makes no difference in the end, because we will hunt him down and crush him to powder. HEAR THAT, YOU OLD SKELETON?"
        [/message]

        [message]
            description=Malifor
            message= _ " *faint cackle of laughter in the distance*"
        [/message]

        [message]
            description=Camerin
            message= _ "Yeah! This is gonna be fun!"
        [/message]

        [message]
            description=Tallin
            message= _ "Let us proceed with caution. Nobody is to go off by himself. We don't know what could be lurking in these tunnels."
        [/message]

        [objectives]
            side=1
            [objective]
                description= _ "Find Malifor and Destroy Him"
                condition=win
            [/objective]

            [objective]
                description= _ "Death of Tallin"
                condition=lose
            [/objective]
        [/objectives]
    [/event]

    # wmllint: recognize Abhai

    [event]
        name=moveto
        [filter]
            description=Abhai
            x=3
            y=7
        [/filter]

        [music]
            name=nr-sad.ogg
            play_once=yes
        [/music]

        [object]
            id=justice_rod_alfred
            name=Rod of Justice
            image=attacks/staff-magic.png
            duration=forever
            description= _ "This is a magical staff of tremendous power and unknown origin. Although the full extent of its power has not been fathomed, there are a few features about it that will be obvious to any master of lore. The wielder of this staff gains a dramatic increase in strength, speed and intelligence, and is granted the ability to fire devastating lightning bolts at at his opponents. Only a person who is good at heart and who is willing to sacrifice his life on the path of justice can wield this staff."
        [/object]

        [message]
            description=Abhai
            message= _ "The Rod of Justice! What in the world is it doing all the way down here?"
        [/message]

        [message]
            description=Tallin
            message= _ "What do you have there, Abhai?"
        [/message]

        [message]
            description=Abhai
            message= _ "This is the Great Rod of Justice, my boy. It was an ancient artifact even when I was young. They say it was crafted by the Great Gods themselves, and given to the first true Ruler of Men to ensure peace, harmony and above all - justice. For hundreds of years it did just that, for during the time it was wielded by men, the ruling class never became corrupt, the people never lacked justice and neither evil nor wars troubled the land."
        [/message]

        [message]
            description=Tallin
            message= _ "Well, if you don't mind me saying - that certainly isn't the state of affairs now. Knalga lies in ruins, orcs ravish the surface, and these dark and evil creatures haunt the underground passages. In the meantime, Wesnoth is said to be ruled by the wicked and cruel queen Ashevire, while the rightful heir must have long since perished in his vain quest for the Scepter of Fire."
        [/message]

        [message]
            description=Abhai
            message= _ "Ahh, with the Rod of Justice down here it is to be expected. Come Tallin, either you or one of your trusted men must wield this staff and bring peace and justice back into this world."
        [/message]

        [message]
            description=Tallin
            message= _ "Why can't you wield it, Abhai?"
        [/message]

        [message]
            description=Abhai
            message= _ "I am a creature of the past, and thus my time to wield it is long gone. This is your era, Tallin, and thus it is your responsibility to see to it that your people receive peace, prosperity and justice. Quickly, come forth or send one of your men for time is waning."
        [/message]

        [message]
            description=Tallin
            message= _ "Very well."
        [/message]

        [set_variable]
            name=alfreds_blurb
            value=1
        [/set_variable]
    [/event]

    [event]
        name=moveto
        [filter]
            side=1
            [not]
                description=Abhai
            [/not]
            x=3
            y=7
        [/filter]

        [if]
            description=Tallin
            [then]
                [set_variable]
                    name=tallin_gotta_stick
                    value=1
                [/set_variable]
            [/then]
        [/if]

        [removeitem]
            x=3
            y=7
        [/removeitem]

        [object]
            id=justice_rod
            name= _ "Rod of Justice"
            image=attacks/staff-magic.png
            duration=forever
            description= _ "This is a magical staff of tremendous power and unknown origin. Although the full extent of its power has not been fathomed, there are a few features about it that will be obvious to any master of lore. The wielder of this staff gains a dramatic increase in strength, speed and intelligence, and is granted the ability to fire devastating lightning bolts at at his opponents. Only a person who is good at heart and who is willing to sacrifice his life on the path of justice can wield this staff."

            [effect]
                apply_to=new_attack
                name=rod of justice
                description= _ "rod of justice"
                type=fire
                range=ranged
                damage=16
                number=4
                icon=attacks/lightning.png
            [/effect]

            [effect]
                apply_to=new_animation
                [attack_anim]
                    [attack_filter]
                        name=rod of justice
                    [/attack_filter]

                    [missile_frame]
                        begin=-150
                        end=0
                        image=projectiles/lightning-n.png
                        image_diagonal=projectiles/lightning-ne.png
                    [/missile_frame]
                    [if]
                        hits=no
                        [frame]
                            begin=-200
                            end=0
                            sound=lightning-miss.ogg
                        [/frame]
                    [/if]
                    [else]
                        hits=yes
                        [frame]
                            begin=-200
                            end=0
                            sound=lightning.ogg
                        [/frame]
                    [/else]
                [/attack_anim]
            [/effect]

            [effect]
                apply_to=movement
                increase=2
            [/effect]
            [effect]
                apply_to=attack
                range=melee
                increase_damage=2
            [/effect]
            [effect]
                apply_to=hitpoints
                increase_total=10
                heal_full=yes
            [/effect]
            [effect]
                apply_to=max_experience
                increase=-20%
            [/effect]
        [/object]

        [message]
            speaker=unit
            message= _ "Wow! This thing is... incredible!"
        [/message]

        [if]
            [variable]
                name=alfreds_blurb
                numerical_equals=0
            [/variable]

            [then]
                [message]
                    speaker=unit
                    message= _ "I wonder what such a powerful artifact is doing hidden all the way back here..."
                [/message]

                [if]
                    [have_unit]
                        description=Camerin
                    [/have_unit]

                    [then]
                        [message]
                            description=Camerin
                            message= _ "That's.... that's the Rod of Justice!"
                        [/message]

                        [message]
                            description=Tallin
                            message= _ "Do you know anything about it, Camerin?"
                        [/message]

                        [message]
                            description=Camerin
                            message= _ "I don't think there is a person alive who knows anything more solid than rumors and legends. There are very few people who even knows it exists!"
                        [/message]

                        [message]
                            description=Tallin
                            message= _ "How did you come to know of it?"
                        [/message]

                        [message]
                            description=Camerin
                            message= _ "Some of the most ancient elvish legends make some vague mention of this artifact. But beyond that..."
                        [/message]

                        [message]
                            description=Tallin
                            message= _ "Interesting. I wonder who - or what - could have created such a powerful artifact. There must be one heck of a story behind this thing."
                        [/message]
                    [/then]
                [/if]
            [/then]
        [/if]
    [/event]

    [event]
        name=moveto
        [filter]
            side=1
            x=24
            y=34
        [/filter]

        [message]
            speaker=narrator
            message= _ "Caution! Tunnel flooded and infested with aquatic monsters. Enter at the risk of your life."
            image=scenery/signpost.png
        [/message]

        [message]
            speaker=unit
            message= _ "Interesting. It seems like someone really doesn't want us going down this tunnel."
        [/message]

        [allow_undo][/allow_undo]
    [/event]

    [event]
        name=moveto
        [filter]
            side=1
            x=34-36
            y=22-25
        [/filter]

        [message]
            speaker=unit
            message= _ "Hey, an underground lake."
        [/message]

#ifdef NEWBIE
        {LOYAL_UNIT 2 (Tentacle of the Deep) 35 23 (Tentacle) ( _ "Tentacle")}
        {LOYAL_UNIT 2 (Tentacle of the Deep) 33 25 (Tentacle) ( _ "Tentacle")}
        {LOYAL_UNIT 2 (Tentacle of the Deep) 33 23 (Tentacle) ( _ "Tentacle")}

#endif

#ifdef EASY
        {LOYAL_UNIT 2 (Tentacle of the Deep) 35 23 (Tentacle) ( _ "Tentacle")}
        {LOYAL_UNIT 2 (Tentacle of the Deep) 33 25 (Tentacle) ( _ "Tentacle")}
        {LOYAL_UNIT 2 (Tentacle of the Deep) 33 23 (Tentacle) ( _ "Tentacle")}
        {LOYAL_UNIT 2 (Tentacle of the Deep) 34 21 (Tentacle) ( _ "Tentacle")}
#endif

#ifdef NORMAL
        {LOYAL_UNIT 2 (Tentacle of the Deep) 35 23 (Tentacle) ( _ "Tentacle")}
        {LOYAL_UNIT 2 (Tentacle of the Deep) 33 25 (Tentacle) ( _ "Tentacle")}
        {LOYAL_UNIT 2 (Tentacle of the Deep) 33 23 (Tentacle) ( _ "Tentacle")}
        {LOYAL_UNIT 2 (Tentacle of the Deep) 34 21 (Tentacle) ( _ "Tentacle")}
        {LOYAL_UNIT 2 (Tentacle of the Deep) 31 23 (Tentacle) ( _ "Tentacle")}
#endif

#ifdef HARD
        {LOYAL_UNIT 2 (Tentacle of the Deep) 35 23 (Tentacle) ( _ "Tentacle")}
        {LOYAL_UNIT 2 (Tentacle of the Deep) 33 25 (Tentacle) ( _ "Tentacle")}
        {LOYAL_UNIT 2 (Tentacle of the Deep) 33 23 (Tentacle) ( _ "Tentacle")}
        {LOYAL_UNIT 2 (Tentacle of the Deep) 34 21 (Tentacle) ( _ "Tentacle")}
        {LOYAL_UNIT 2 (Tentacle of the Deep) 31 23 (Tentacle) ( _ "Tentacle")}
        {LOYAL_UNIT 2 (Tentacle of the Deep) 32 22 (Tentacle) ( _ "Tentacle")}

#endif
        [message]
            speaker=unit
            message= _ "Ack! What are those things!"
        [/message]

        [if]
            [have_unit]
                description=Camerin
            [/have_unit]

            [then]
                [message]
                    description=Camerin
                    message= _ "Oh yeah, those things. Watch out, they are the arms of some sort of underwater creature. They'll try to pummel you to death, then drag you under for dinner."
                [/message]

                [message]
                    description=Tallin
                    message= _ "Then how do we get past? I can see that the passage continues to both the north and south and we haven't found Malifor yet..."
                [/message]

                [message]
                    description=Camerin
                    message= _ "Creatures of that type regenerate over time; it's doubtful we can destroy it completely. But if we destroy its arms we'll be relatively safe until they regenerate."
                [/message]

                [message]
                    description=Tallin
                    message= _ "Let's get to it, then."
                [/message]
            [/then]
        [/if]
    [/event]

    [event]
        name=moveto
        [filter]
            side=1
            x=28
            y=28
        [/filter]

        [message]
            speaker=unit
            message= _ "Hmm, what is this thing?"
        [/message]

        [unit]
            type=Wraith
            side=1
            x=29
            y=29
            [modifications]
                {TRAIT_LOYAL}
                {TRAIT_INTELLIGENT}
            [/modifications]
            description=Abhai
            user_description= _ "Abhai"
            #profile=Abhai.jpg
        [/unit]

        [message]
            description=Abhai
            message= _ "EEEEEEEEEEEEEEEE!"
        [/message]

        [message]
            speaker=unit
            message= _ "AHHHHHHHHH!"
        [/message]

        [message]
            description=Abhai

            message= _ "... wait a second, who are you?"
        [/message]

        [message]
            speaker=unit
            message= _ "I.... I am one of Tallin's men..."
        [/message]

        [message]
            description=Abhai
            message= _ "Who is this Tallin?"
        [/message]

        [message]
            description=Tallin
            message= _ "I am."
        [/message]

        [message]
            description=Abhai
            message= _ "What is your purpose in coming here?"
        [/message]

        [message]
            description=Tallin
            message= _ "We seek the lich Malifor."
        [/message]

        [message]
            description=Abhai
            message= _ "Malifor!... *goes a bit paler (if possible)* What business do you have with him?"
        [/message]

        [message]
            description=Tallin
            message= _ "We seek to crush and destroy him."
        [/message]

        [message]
            description=Abhai
            message= _ "Oh, thank the Gods of Light! Finally there is someone here in force to deal with that menace. You must have been sent by the High Kalian of Hiera'Shirsha?"
        [/message]

        [message]
            description=Tallin
            message= _ "The what!?"
        [/message]

        [message]
            description=Camerin
            message= _ "Err, I think we might be in different... uh... time zones, here."
        [/message]

        [message]
            description=Abhai
            message= _ "I beg your pardon. Say, what year is it anyway?"
        [/message]

        [message]
            description=Tallin
            message= _ "Uh... 534 YW..."
        [/message]

        [message]
            description=Abhai
            message= _ "Huh!? Can't be, the last year I remember it was 14, 318 AD!"
        [/message]

        [message]
            description=Tallin
            message= _ "?????"
        [/message]

        [message]
            description=Camerin
            message= _ "Different calendars, folks."
        [/message]

        [message]
            description=Tallin
            message= _ "I see, but say, who are you?"
        [/message]

        [message]
            description=Abhai
            message= _ "What? How can you not know who I am?"
        [/message]

        [message]
            description=Tallin
            message= _ "The times have changed, my friend."
        [/message]

        [message]
            description=Abhai
            message= _ "Right... sorry about that. My name is Lord Abhai and I am... or was... the ruler of the great kingdom of Garet-Desh."
        [/message]

        [message]
            description=Tallin
            message= _ "What happened to you? Why are you a ghost?"
        [/message]

        [message]
            description=Abhai
            message= _ "I grew old and died as all men do and entered the land of the dead. I don't know how long I dwelled there, I was wrenched from my peace and forced into this ectoplasmic body by a terrible power."
        [/message]

        [message]
            description=Tallin
            message= _ "Let me guess. Malifor?"
        [/message]

        [message]
            description=Abhai
            message= _ "Indeed. He tried to break my spirit into mindless slavery, but I resisted his power and fled. I have been hiding in these flooded tunnels ever since. Some monster that Malifor's minions greatly fear lives in these waters; they do not molest me here."
        [/message]

        [message]
            description=Tallin
            message= _ "Would you join us to defeat this evil creature?"
        [/message]

        [message]
            description=Abhai
            message= _ "Wouldn't miss it. Maybe after he is destroyed me and my kind can live... err.... be dead peacefully."
        [/message]

        [message]
            description=Abhai
            message= _ "Keep following these flooded tunnels. I think they might lead you directly to Malifor."
        [/message]

        [message]
            description=Tallin
            message= _ "Great! Forward, men!"
        [/message]
    [/event]

    [event]
        name=moveto
        [filter]
            side=1
            x=38
            y=16
        [/filter]
        [message]
            speaker=unit
            message= _ "Just great, I am cold, wet, and tired and what have we here? Another dead end. This place is starting to get on my nerves!"
        [/message]
    [/event]

    [event]
        name=moveto
        [filter]
            side=1
            x=32-34
            y=4-6
        [/filter]
        [message]
            speaker=unit
            message= _ "Ssssh! I hear something."
        [/message]

        {LOYAL_UNIT 2 (Sea Serpent) 31 5 (Sea Serpent) ( _ "Sea Serpent")}
        # wmllint: recognize Sea Serpent

        [message]
            description=Sea Serpent
            message= _ "ROOOAAARRR!"
        [/message]

        [message]
            speaker=unit
            message= _ "Ahhhhh!"
        [/message]
    [/event]

    [event]
        name=moveto
        [filter]
            side=1
            x=28,29,30,30
            y=7,8,8,9
        [/filter]

        [message]
            speaker=seccond_unit
            message= _ "Hold it, people, there is something just ahead!"
        [/message]

        [unit]
            type=Naga Warrior
            side=2
            description=Naga Guard
            x=28
            y=11
            generate_description=yes
        [/unit]

        [unit]
            type=Naga Fighter
            side=2
            description=Naga Sidekick
            x=28
            y=11
            generate_description=yes
        [/unit]

#ifdef EASY
        {MALIFORS_NAGA 29 10}
#endif

#ifdef NORMAL
        {MALIFORS_NAGA 29 10}
        {MALIFORS_NAGA 29 11}
#endif

#ifdef HARD
        {MALIFORS_NAGA 29 10}
        {MALIFORS_NAGA 29 11}
        {MALIFORS_NAGA 29 12}
#endif

        [remove_shroud]
            x=28-30
            y=8-12
        [/remove_shroud]

        [message]
            description=Naga Guard
            message= _ " *sniff* I smell humans."
        [/message]

        [message]
            description=Naga Sidekick
            message= _ "You are just plain deaf. I heard them coming from a mile off."
        [/message]

        [message]
            description=Naga Guard
            message= _ "Ahh, shut up. Let's go kill them."
        [/message]
    [/event]

    [event]
        name=moveto
        [filter]
            side=1
            x=34,35
            y=29,29
        [/filter]

        [message]
            speaker=unit
            message= _ "A door, and a big, big lock, hmmmmm..."
        [/message]

        [message]
            speaker=unit
            message= _ "Sorry folks, this is just too tempting."
        [/message]

        [message]
            speaker=unit
            message= _ " *SMASH*"
        [/message]

        [terrain]
            x=34
            y=28
            terrain=Uu
        [/terrain]
    [/event]

    [event]
        name=moveto
        [filter]
            side=1
            x=35,36
            y=33,33
        [/filter]

        [message]
            speaker=unit
            message= _ "Hmmmm, this door sure is locked up pretty tight. I wonder what's behind it."
        [/message]

        [message]
            speaker=unit
            message= _ " *SMASH*"
        [/message]

        [terrain]
            x=35
            y=34
            terrain=Uu
        [/terrain]
    [/event]

    [event]
        name=moveto
        [filter]
            side=1
            x=33,33,34
            y=28,27,26
        [/filter]

        [message]
            speaker=unit
            message= _ "Holy water! For a certainty, those skeletons won't like us getting our hands on this stuff. But that's probably why they kept them back here in the first place."
        [/message]
    [/event]

    [event]
        name=moveto
        [filter]
            side=1
            x=31,32,33
            y=37,37,37
        [/filter]

        [message]
            speaker=unit
            message= _ "Oh yeah, holy water!"
        [/message]
    [/event]

    [event]
        name=moveto
        [filter]
            side=1
            x=34
            y=27
        [/filter]

        [message]
            speaker=narrator
            message= _ "Warning! These bottles contain toxic waste. Causes disintegration on contact."
            image=scenery/signpost.png
        [/message]

        [message]
            speaker=unit
            message= _ "Ha ha, for skeletons anyway."
        [/message]

        [allow_undo][/allow_undo]
    [/event]

    [event]
        name=moveto
        [filter]
            side=1
            x=32
            y=36
        [/filter]

        [message]
            speaker=narrator
            message= _ "Warning! These bottles contain toxic waste. Causes disintegration on contact."
            image=scenery/signpost.png
        [/message]

        [message]
            speaker=unit
            message= _ " *rolls eyes* Oh the hazardous life of a skeleton."
        [/message]

        [allow_undo][/allow_undo]
    [/event]

    [event]
        name=moveto
        [filter]
            side=1
            x=15
            y=29
        [/filter]

        [message]
            speaker=narrator
            message= _ "The Treasury"
            image=scenery/signpost.png
        [/message]

        [message]
            speaker=unit
            message= _ "The Treasury! Cool, let's go loot some booty!"
        [/message]

        [allow_undo][/allow_undo]
    [/event]

    [event]
        name=moveto
        [filter]
            side=1
            x=15
            y=34
        [/filter]

        [message]
            speaker=narrator
            message= _ "The Dungeon"
            image=scenery/signpost.png
        [/message]

        [allow_undo][/allow_undo]
    [/event]

    [event]
        name=moveto
        [filter]
            side=1
            x=24
            y=28
        [/filter]

        [message]
            speaker=narrator
            message= _ "Malifor the Great's Study."
            image=scenery/signpost.png
        [/message]

        [message]
            speaker=unit
            message= _ "There we go! This way guys!"
        [/message]

        [allow_undo][/allow_undo]
    [/event]

    [event]
        name=moveto
        [filter]
            x=17
            y=22
            side=1
        [/filter]
        [message]
            speaker=unit
            message= _ "Wow! There is at least 1000 gold in here!"
        [/message]
        [gold]
            side=1
            amount=1025
        [/gold]
        [removeitem]
            x=17
            y=22
        [/removeitem]
    [/event]

    [event]
        name=moveto
        [filter]
            x=17
            y=20
            side=1
        [/filter]
        [message]
            speaker=unit
            message= _ "Holy Gods of Light! 500 gold!"
        [/message]
        [gold]
            side=1
            amount=505
        [/gold]
        [removeitem]
            x=17
            y=20
        [/removeitem]
    [/event]

    [event]
        name=moveto
        [filter]
            x=6
            y=22
            side=1
        [/filter]
        [message]
            speaker=unit
            message= _ "800 gold! We're rich!!!"
        [/message]
        [gold]
            side=1
            amount=800
        [/gold]
        [removeitem]
            x=6
            y=22
        [/removeitem]
    [/event]

    [event]
        name=moveto
        [filter]
            x=5
            y=20
            side=1
        [/filter]
        [message]
            speaker=unit
            message= _ "What a hoard! 2 000 gold!"
        [/message]
        [gold]
            side=1
            amount=2000
        [/gold]
        [removeitem]
            x=5
            y=20
        [/removeitem]
    [/event]

    [event]
        name=moveto
        [filter]
            x=6
            y=16
            side=1
        [/filter]
        [message]
            speaker=unit
            message= _ "500 gold! Not bad!"
        [/message]
        [gold]
            side=1
            amount=510
        [/gold]
        [removeitem]
            x=6
            y=16
        [/removeitem]
    [/event]

    [event]
        name=moveto
        [filter]
            x=9
            y=15
            side=1
        [/filter]
        [message]
            speaker=unit
            message= _ "10,000 gold! Wow! Where is that bag of bones getting all this?"
        [/message]
        [gold]
            side=1
            amount=10151
        [/gold]
        [removeitem]
            x=9
            y=15
        [/removeitem]
    [/event]

    [event]
        name=moveto
        [filter]
            side=1
            x=6
            y=39
        [/filter]

        [removeitem]
            x=6
            y=39
        [/removeitem]

        [unit]
            type=White Mage
            gender=female
            description=Sister Theta
            user_description= _ "Sister Theta"
            profile=portraits/Sister_Theta.jpg
            side=1
            x=6
            y=38
            [modifications]
                {TRAIT_LOYAL}
                {TRAIT_QUICK}
            [/modifications]
        [/unit]

        # wmllint: recognize Father Marcus

        [message]
            description=Sister Theta
            message= _ "Freedom at last. Thank you Lord Tallin."
        [/message]

        [message]
            description=Tallin
            message= _ "Just Tallin. I am no Lord, just a humble peasant trying to restore our people to freedom."
        [/message]

        [if]
            [variable]
                name=story_told
                numerical_equals=0
            [/variable]

            [then]
                [message]
                    description=Tallin
                    message= _ "Who are you? How did you end up down here?"
                [/message]
                [message]
                    description=Sister Theta
                    message= _ "I am called Sister Theta. My husband Marcus and I were advisers and healers for the dwarvish nobles of Knalga. We could not save them from Khazg Black-Tusk's troops, but we survived the orcs and trolls only to be captured when these skeletons appeared."
                [/message]

                [message]
                    description=Tallin
                    message= _ "Funny, why would the bonebag keep you as his prisoners? He didn't seem to be the merciful type."
                [/message]

                [message]
                    description=Sister Theta
                    message= _ "He didn't keep us alive out of mercy, he wanted to study us to see if there was a way to counteract our arcane attacks. His kind are very vulnerable to such attacks, as I am sure you know by now."
                [/message]

                [message]
                    description=Tallin
                    message= _ "Indeed, that is good to know. But you are now free to go wherever you like. May the Lords of Light guide your path."
                [/message]

                [message]
                    description=Sister Theta
                    message= _ "If you have no objection, Tallin, we would like to join you. These northlands are hardly safe these days for anyone to be traveling on their own, and we could lend valuable help to your cause."
                [/message]

                [message]
                    description=Tallin
                    message= _ "Very well, you are most welcome to join us."
                [/message]

                [message]
                    description=Sister Theta
                    message= _ "Thank you, Tallin."
                [/message]
            [/then]
        [/if]

        [if]
            [variable]
                name=story_told
                numerical_equals=1
            [/variable]
            [then]
                [message]
                    description=Sister Theta
                    message= _ "Marcus!"
                [/message]

                [message]
                    description=Father Marcus
                    message= _ "Theta!"
                [/message]

                [message]
                    speaker=unit
                    message= _ "Please folks, not now."
                [/message]

                [message]
                    description=Sister Theta
                    message= _ "Oh, sorry."
                [/message]
            [/then]
        [/if]

        [if]
            [variable]
                name=story_told
                numerical_equals=0
            [/variable]

            [then]
                [set_variable]
                    name=story_told
                    value=1
                [/set_variable]
            [/then]
        [/if]
    [/event]

    [event]
        name=moveto
        [filter]
            side=1
            x=9
            y=40
        [/filter]

        [removeitem]
            x=9
            y=40
        [/removeitem]

        [unit]
            type=White Mage
            side=1
            description=Father Marcus
            user_description= _ "Father Marcus"
            profile=portraits/Father_Marcus.jpg
            x=9
            y=39
            [modifications]
                {TRAIT_LOYAL}
                {TRAIT_RESILIENT}
            [/modifications]
        [/unit]

        [message]
            description=Father Marcus
            message= _ "Finally! I am free. Lord Tallin, I am forever in your debt! We will follow you to the end of the World if need be."
        [/message]

        [message]
            description=Tallin
            message= _ "It's just Tallin, no Lord. And no problem."
        [/message]

        [if]
            [variable]
                name=story_told
                numerical_equals=0
            [/variable]

            [then]
                [message]
                    description=Tallin
                    message= _ "Who are you? How did you end up down here?"
                [/message]
                [message]
                    description=Father Marcus
                    message= _ "I am called Father Marcus. My wife, Theta and I were advisers and healers for the dwarvish nobles. We could not shield them from the wrath of Khazg Black-Tusk, but we survived the orcs and trolls -- only to be captured by these skeletons."
                [/message]

                [message]
                    description=Tallin
                    message= _ "Funny, why would the bonebag keep you as his prisoners? He doesn't really seem to be the merciful type."
                [/message]

                [message]
                    description=Father Marcus
                    message= _ "He didn't keep us alive out of mercy, he wanted to study us to see if there was a way to counteract our arcane attacks. His kind are very vulnerable to such attacks."
                [/message]

                [message]
                    description=Tallin
                    message= _ "Indeed, that is good to know. But you are now free to go wherever you like. May the Lords of Light guide your path."
                [/message]

                [message]
                    description=Father Marcus
                    message= _ "As I have said, Tallin, I am eternally in your debt, and I take my debts seriously. If you have no objection, I will serve you until one of us departs this life."
                [/message]

                [message]
                    description=Tallin
                    message= _ "Oh, think nothing of it. Let no talk of debts come between us; rather let us join hands as allies in restoring these Northlands to sanity."
                [/message]

                [message]
                    description=Father Marcus
                    message= _ "Thank you, Tallin."
                [/message]
            [/then]
        [/if]

        [if]
            [variable]
                name=story_told
                numerical_equals=1
            [/variable]
            [then]
                [message]
                    description=Sister Theta
                    message= _ "Marcus!"
                [/message]

                [message]
                    description=Father Marcus
                    message= _ "Theta!"
                [/message]

                [message]
                    speaker=unit
                    message= _ "Please, folks, not now."
                [/message]

                [message]
                    description=Sister Theta
                    message= _ "Oh, sorry."
                [/message]
            [/then]
        [/if]

        [if]
            [variable]
                name=story_told
                numerical_equals=0
            [/variable]

            [then]
                [set_variable]
                    name=story_told
                    value=1
                [/set_variable]
            [/then]
        [/if]
    [/event]

    [event]
        name=die
        [filter]
            description=Father Marcus
        [/filter]

        [message]
            description=Tallin
            message= _ "Wow! That's incredible. Now I understand why the Bag of Bones kept you guys in jail; He just simply couldn't kill you!"
        [/message]

        [message]
            description=Sister Theta
            message= _ " *giggle*"
        [/message]
    [/event]

    [event]
        name=moveto
        [filter]
            side=1
            x=3
            y=40
        [/filter]

        [removeitem]
            x=3
            y=40
        [/removeitem]

        [unit]
            type=Elvish Druid
            side=1
            description=Elenia
            user_description= _ "Elenia"
            profile=portraits/Elenia.jpg
            x=3
            y=39
            hitpoints=1
            [modifications]
                {TRAIT_LOYAL}
                {TRAIT_HEALTHY}
            [/modifications]
        [/unit]

        [message]
            speaker=unit
            message= _ "Oh my, she is almost dead!"
        [/message]

        [if]
            [variable]
                name=story_told
                numerical_equals=1
            [/variable]

            [then]
                [message]
                    description=Sister Theta
                    message= _ "Here, let me see her."
                [/message]

                [teleport]
                    [filter]
                        description=Sister Theta
                    [/filter]
                    x=3
                    y=38
                [/teleport]

                {FLASH}

                [message]
                    description=Tallin
                    message= _ "Was that a teleport you just did? Wow, you guys are good!"
                [/message]

                [message]
                    description=Father Marcus
                    message= _ " *wink* *wink*"
                [/message]

                [message]
                    description=Sister Theta
                    message= _ "Here, this will help her."
                [/message]

                [sound]
                    name=heal.wav
                [/sound]

                [message]
                    description=Elenia
                    message= _ "Uh....... where..... am..... I...?"
                [/message]

                [message]
                    description=Sister Theta
                    message= _ "You are in the dungeons of Malifor. These brave people have just released you."
                [/message]

                [message]
                    description=Elenia
                    message= _ "....thanks."
                [/message]

                [message]
                    description=Tallin
                    message= _ "No problem. Sister Theta, you take care of her. If she wants to join us she would make a powerful ally."
                [/message]

                [message]
                    description=Elenia
                    message= _ "Yes, I would... like to join... you Lord Tallin."
                [/message]

                [message]
                    description=Tallin
                    message= _ "Just Tallin; I am no lord. But gee, that sure is some powerful spell you used on her, Sister. She is looking better already."
                [/message]

                [message]
                    description=Elenia
                    message= _ "And I feel better too. Now let's get back at that disgusting skeleton."
                [/message]

                [message]
                    description=Tallin
                    message= _ "Why did the bag of bones capture you in the first place?"
                [/message]

                [message]
                    description=Elenia
                    message= _ "Because he thought I was pretty."
                [/message]

                [message]
                    description=Tallin
                    message= _ "That old skeleton? Geez, what a nutcase."
                [/message]

                [message]
                    description=Elenia
                    message= _ "You're telling me."
                [/message]
            [/then]
        [/if]

        [if]
            [variable]
                name=story_told
                numerical_equals=0
            [/variable]

            [then]
                [message]
                    description=Tallin
                    message= _ "I wish we had some healers with us. Just try to help her the best you can."
                [/message]

                [message]
                    speaker=unit
                    message= _ "Here, I hope that helps."
                [/message]

                [message]
                    description=Elenia
                    message= _ "Uh....... where..... am..... I...?"
                [/message]

                [message]
                    speaker=unit
                    message= _ "You are in the dungeons of Malifor. We have just released you."
                [/message]

                [message]
                    description=Elenia
                    message= _ "....thanks."
                [/message]

                [message]
                    description=Tallin
                    message= _ "No problem. Just take it easy. If you would like to join us your help could mean life or death for a lot of us."
                [/message]

                [message]
                    description=Elenia
                    message= _ "Yes, I would... like to join... you Lord Tallin."
                [/message]

                [message]
                    description=Tallin
                    message= _ "Just Tallin, I am no lord. And you are looking better already."
                [/message]

                [sound]
                    name=heal.wav
                [/sound]

                [message]
                    description=Elenia
                    message= _ "Oh, just a few tricks I know, otherwise I probably would be dead by now. But let's get back at that disgusting skeleton."
                [/message]

                [message]
                    description=Tallin
                    message= _ "Why did the bag of bones capture you in the first place?"
                [/message]

                [message]
                    description=Elenia
                    message= _ "Because he thought I was pretty."
                [/message]

                [message]
                    description=Tallin
                    message= _ "That old skeleton? Geez, what a nutcase."
                [/message]

                [message]
                    description=Elenia
                    message= _ "You're telling me."
                [/message]
            [/then]
        [/if]
    [/event]

    [event]
        name=moveto
        [filter]
            side=1
            x=2
            y=32
        [/filter]

        [removeitem]
            x=2
            y=32
        [/removeitem]

        [unit]
            type=Drake Burner
            description=Krash
            user_description= _ "Krash"
            side=1
            x=2
            y=33
            [modifications]
                {TRAIT_LOYAL}
                {TRAIT_RESILIENT}
            [/modifications]
        [/unit]

        [message]
            speaker=unit
            message= _ "Holy cow! What did I just let out of that cage! Look out everyone."
        [/message]

        [message]
            description=Camerin
            message= _ "Oooooh, cool, it's a drake!"
        [/message]

        [message]
            description=Krash
            message= _ " *whimper*"
        [/message]

        [message]
            speaker=unit
            message= _ "My God, such a fierce creature whimpering! What the heck have they done to it?"
        [/message]

        [message]
            description=Camerin
            message= _ "The bastards!"
        [/message]

        [message]
            description=Father Marcus
            message= _ "Probably another one of Malifor's experiments."
        [/message]

        [message]
            description=Tallin
            message= _ "I don't know, see if it talks."
        [/message]

        [message]
            speaker=unit
            message= _ "Hey, big guy. We aren't gonna hurt you. We wanna be your friends."
        [/message]

        [message]
            description=Krash
            message= _ ".....not..... going..... to...... hurt.... me?"
        [/message]

        [message]
            description=Tallin
            message= _ "Hey, it talks!"
        [/message]

        [message]
            description=Camerin
            message= _ "It's a 'he', and yes, they're actually very intelligent creatures."
        [/message]

        [message]
            speaker=unit
            message= _ "Hush! I am trying to talk to him. Nope, we'll never hurt you. But if you want to you can hurt some skeletons."
        [/message]

        [message]
            description=Krash
            message= _ "Skeletons! GRRRRRRRR!!!"
        [/message]

        [message]
            speaker=unit
            message= _ "Look out! He is ready to go! Hey, is that smoke coming out of his ears?"
        [/message]

        [message]
            speaker=unit
            message= _ "And look at this, there is some sort of opening in the back of his cell..."
        [/message]

        [message]
            description=Krash
            message= _ "It's an escape tunnel. The hole wasn't big enough for me to go through but one you little guys you might fit."
        [/message]

        [message]
            speaker=unit
            message= _ "Hmmm, it is pretty small, let's see if we can make it bigger."
        [/message]

        [terrain]
            x=2
            y=31
            terrain=Uu
        [/terrain]

        [message]
            speaker=unit
            message= _ "There we go. Now let's see where this tunnel leads to."
        [/message]
    [/event]

    [event]
        name=attack
        [filter]
            description=Krash
        [/filter]

        [message]
            description=Krash
            message= _ "ROOOOOOAAAARRRR!"
        [/message]

        [message]
            role=Supporter
            message= _ "Whoa! Maybe he isn't so friendly after all... or at least to some things."
        [/message]
    [/event]

    [event]
        name=die
        first_time_only=no
        [filter]
            description=Malifor
        [/filter]

        [filter_second]
            type=Dwarvish Lord,Dwarvish Dragonguard,Dwarvish Thunderguard,Dwarvish Steelclad,Dwarvish Fighter,Dwarvish Thunderer
        [/filter_second]

        [message]
            description=Malifor
            message= _ "HAHAHAHAHA, FOOLS, YOU THINK YOU CAN KILL ME?"
        [/message]

        {FLASH}

        [unit]
            type=Ancient Lich
            description=Malifor
            user_description= _ "Malifor"
            profile=portraits/Malifor.jpg
            canrecruit=yes
            side=2
            recruit=Skeleton,Skeleton Archer
            x=23
            y=4
        [/unit]

        [gold]
            side=2
            amount=300
        [/gold]

        [if]
            [variable]
                name=ran_away
                numerical_equals=0
            [/variable]

            [then]
                [set_variable]
                    name=ran_away
                    value=1
                [/set_variable]

                [terrain]
                    x=13,14
                    y=14,14
                    terrain=Uu
                [/terrain]
            [/then]
        [/if]

        [message]
            description=Malifor
            message= _ "HAHAHAHAHAHAHA!"
        [/message]

        [message]
            description=Tallin
            message= _ "What the...!"
        [/message]

        [message]
            speaker=second_unit
            message= _ "How can it be?! Our axes and hammers are failing."
        [/message]

        [message]
            description=Tallin
            message= _ "Blast it! Now where did he go? Let's find him and try something else!"
        [/message]

        [message]
            description=Father Marcus
            message= _ "I see now. It is impossible to destroy him by ordinary means."
        [/message]

        [message]
            description=Tallin
            message= _ "Then how are we going to destroy him? Surely there must be a way."
        [/message]

        [message]
            description=Father Marcus
            message= _ "Yes, I think there is, but only myself or Theta have the means to do it. Come on Theta, let's destroy that old skeleton."
        [/message]

        [message]
            description=Sister Theta
            message= _ "Yeah, I can't wait to get my hands on that bastard!"
        [/message]

        [message]
            description=Father Marcus
            message= _ "That was very unladylike of you."
        [/message]

        [message]
            description=Sister Theta
            message= _ " *giggle* Sorry."
        [/message]
    [/event]

    [event]
        name=die
        first_time_only=no
        [filter]
            description=Malifor
        [/filter]

        [filter_second]
            type=Thug,Poacher,Bandit,Highwayman,Bowman,Master Bowman,Longbowman,Elvish Druid,Elvish Shyde,Footpad,Outlaw,Fugitive
        [/filter_second]

        [message]
            description=Malifor
            message= _ "HAHAHAHAHAHA, YOUR IDIOCY AMUSES ME GREATLY!"
        [/message]

        {FLASH}

        [unit]
            type=Ancient Lich
            description=Malifor
            profile=portraits/Malifor.jpg
            user_description= _ "Malifor"
            canrecruit=yes
            side=2
            recruit=Skeleton,Skeleton Archer
            x=5
            y=2
        [/unit]

        [gold]
            side=2
            amount=300
        [/gold]

        [message]
            description=Malifor
            message= _ "COME AND GET ME!"
        [/message]

        [message]
            description=Tallin
            message= _ "Geez, how are we going to kill him?"
        [/message]

        [message]
            speaker=second_unit
            message= _ "Well, obviously clubs and arrows won't work."
        [/message]

        [message]
            description=Tallin
            message= _ "Oh darn, he disappeared. Let's find him and try a different weapon."
        [/message]

        [if]
            [variable]
                name=ran_away
                numerical_equals=0
            [/variable]

            [then]
                [set_variable]
                    name=ran_away
                    value=1
                [/set_variable]

                [terrain]
                    x=13,14
                    y=14,14
                    terrain=Uu
                [/terrain]
            [/then]
        [/if]

        [message]
            description=Father Marcus
            message= _ "I see now. It is impossible to destroy him by ordinary means."
        [/message]

        [message]
            description=Tallin
            message= _ "Then how are we going to destroy him? Surely there must be a way."
        [/message]

        [message]
            description=Father Marcus
            message= _ "Yes, I think there is, but only myself or Theta have the means to do it. Come on Theta, let's destroy that old skeleton."
        [/message]

        [message]
            description=Sister Theta
            message= _ "Yeah, I can't wait to get my hands on that bastard!"
        [/message]

        [message]
            description=Father Marcus
            message= _ "That was very unladylike of you."
        [/message]

        [message]
            description=Sister Theta
            message= _ " *giggle* Sorry."
        [/message]
    [/event]

    [event]
        name=die
        first_time_only=no
        [filter]
            description=Malifor
        [/filter]

        [filter_second]
            type=Peasant,Woodsman,Spearman,Swordsman,Royal Guard,Pikeman,Javelineer,Halberdier,Trapper,Wraith,Spectre
        [/filter_second]

        [message]
            description=Malifor
            message= _ "HAHAHAHAHAHA, DEATH HAS NO EFFECT ON ME YOU FOOLS!"
        [/message]

        {FLASH}

        [unit]
            type=Ancient Lich
            description=Malifor
            profile=portraits/Malifor.jpg
            user_description= _ "Malifor"
            canrecruit=yes
            side=2
            recruit=Skeleton,Skeleton Archer
            x=14
            y=4
        [/unit]

        [gold]
            side=2
            amount=300
        [/gold]

        [message]
            description=Malifor
            message= _ "HAHAHAHAHA, I CAN NEVER BE DESTROYED!"
        [/message]

        [message]
            description=Tallin
            message= _ "Oh yes you will! But... how?"
        [/message]

        [message]
            speaker=second_unit
            message= _ "Well, it sure isn't gonna be done with a blade."
        [/message]

        [message]
            description=Tallin
            message= _ "And look, he's gone. Now we gotta find him all over again!"
        [/message]

        [if]
            [variable]
                name=ran_away
                numerical_equals=0
            [/variable]

            [then]
                [set_variable]
                    name=ran_away
                    value=1
                [/set_variable]

                [terrain]
                    x=13,14
                    y=14,14
                    terrain=Uu
                [/terrain]
            [/then]
        [/if]

        [message]
            description=Father Marcus
            message= _ "I see now. It is impossible to destroy him by ordinary means."
        [/message]

        [message]
            description=Tallin
            message= _ "Then how are we going to destroy him? Surely there must be a way."
        [/message]

        [message]
            description=Father Marcus
            message= _ "Yes, I think there is, but only myself or Theta have the means to do it. Come on Theta, let's destroy that old skeleton."
        [/message]

        [message]
            description=Sister Theta
            message= _ "Yeah, I can't wait to get my hands on that bastard!"
        [/message]

        [message]
            description=Father Marcus
            message= _ "That was very unladylike of you."
        [/message]

        [message]
            description=Sister Theta
            message= _ " *giggle* Sorry."
        [/message]
    [/event]

    [event]
        name=die
        first_time_only=no
        [filter]
            description=Malifor
        [/filter]

        [filter_second]
            type=Drake Burner,Fire Drake,Drake Flare,Drake Flameheart,Arch Mage,Great Mage
        [/filter_second]

        [message]
            description=Malifor
            message= _ "HAHAHAHAHAHA, I AM IMMORTAL!"
        [/message]

        {FLASH}

        [if]
            [variable]
                name=ran_away
                numerical_equals=0
            [/variable]

            [then]
                [set_variable]
                    name=ran_away
                    value=1
                [/set_variable]

                [terrain]
                    x=13,14
                    y=14,14
                    terrain=Uu
                [/terrain]
            [/then]
        [/if]

        [unit]
            type=Ancient Lich
            description=Malifor
            profile=portraits/Malifor.jpg
            user_description= _ "Malifor"
            canrecruit=yes
            side=2
            recruit=Skeleton,Skeleton Archer
            x=30
            y=11
        [/unit]

        [gold]
            side=2
            amount=300
        [/gold]

        [message]
            description=Malifor
            message= _ "YOU PUNY MORTALS SHALL SOON BE SERVING ME!"
        [/message]

        [message]
            description=Camerin
            message= _ "That blasted skeleton! Even fire has no affect on him!"
        [/message]

        [message]
            description=Tallin
            message= _ "Look, he disappeared again. Let's find him and try using a different weapon on him."
        [/message]

        [message]
            description=Father Marcus
            message= _ "I see now. It is impossible to destroy him by ordinary means."
        [/message]

        [message]
            description=Tallin
            message= _ "Then how are we going to destroy him? Surely there must be a way."
        [/message]

        [message]
            description=Father Marcus
            message= _ "Yes, I think there is, but only myself or Theta have the means to do it. Come on, Theta, let's destroy that old skeleton."
        [/message]

        [message]
            description=Sister Theta
            message= _ "Yeah, I can't wait to get my hands on that bastard!"
        [/message]

        [message]
            description=Father Marcus
            message= _ "That was very unladylike of you."
        [/message]

        [message]
            description=Sister Theta
            message= _ " *giggle* Sorry."
        [/message]
    [/event]

    [event]
        name=die
        [filter]
            description=Malifor
        [/filter]

        [filter_second]
            type=White Mage,Mage of Light
        [/filter_second]

        [message]
            description=Malifor
            message= _ "AHHHHHH! YOU BLASTED MAGE!"
        [/message]

        [message]
            description=Tallin
            message= _ "Good. We finally got him. He is just dissolving."
        [/message]

        [message]
            description=Malifor
            message= _ "Curses on you you blasted mages, curses on you you blasted dwarves, curses on you you blasted humans, and CURSES ON YOU YOU BLASTED TALLIN! MAY YOUR MISERABLE LIVES BE FULL OF TORTURE! MAY YOUR PEOPLE NEVER BE FREE! MAY ALL YOUR NEAR AND DEAR DESERT YOU! MAY A THUNDERBOLT HIT YOUR HEAD! MAY..."
        [/message]

        [message]
            description=Tallin
            message= _ "May you shut your ugly mouth and hurry up and die."
        [/message]

        [message]
            description=Malifor
            message= _ "MAY THE EARTH OPEN UP AND SWALLOW YOU! MAY ALL YOUR TEETH FALL OUT! MAY YOU BECOME A WEAK SKINNY OLD MAN! MAY............."
        [/message]

        [message]
            speaker=second_unit
            message= _ "Finally! He has been reduced to dust."
        [/message]

        [message]
            description=Tallin
            message= _ "At last! Victory is ours! Good work, men!"
        [/message]

        [message]
            description=Father Marcus
            message= _ "So, where to now, Tallin?"
        [/message]

        [message]
            description=Tallin
            message= _ "Now, let's get back to the dwarves and see what progress they have made in forging us weapons."
        [/message]

        [endlevel]
            result=victory
            bonus=yes
        [/endlevel]
    [/event]

    [event]
        name=moveto

        [filter]
            side=1
            x=10-12
            y=35-40
        [/filter]

        [message]
            description=Trevor
            message= _ "They are trying to free the prisoners! Stop them!"
        [/message]

        [message]
            description=Tallin
            message= _ "Good luck, my friend."
        [/message]

#ifdef NEWBIE
        [gold]
            side=5
            amount=100
        [/gold]

#endif

#ifdef EASY
        [gold]
            side=5
            amount=200
        [/gold]
#endif

#ifdef NORMAL
        [gold]
            side=5
            amount=350
        [/gold]
#endif

#ifdef HARD
        [gold]
            side=5
            amount=500
        [/gold]
#endif
    [/event]

    [event]
        name=sighted

        [filter]
            description=Treasury Guard
        [/filter]

        [if]
            [variable]
                name=treasury_alerted
                numerical_equals=0
            [/variable]
            [then]
                [message]
                    description=Treasury Guard
                    message= _ "Intruders! Get them!"
                [/message]

                [message]
                    role=Supporter
                    message= _ "Bring it on!"
                [/message]

#ifdef NEWBIE
                [gold]
                    side=6
                    amount=100
                [/gold]

                [gold]
                    side=7
                    amount=100
                [/gold]
#endif

#ifdef EASY
                [gold]
                    side=6
                    amount=200
                [/gold]

                [gold]
                    side=7
                    amount=200
                [/gold]
#endif

#ifdef NORMAL
                [gold]
                    side=6
                    amount=350
                [/gold]

                [gold]
                    side=7
                    amount=350
                [/gold]
#endif

#ifdef HARD
                [gold]
                    side=6
                    amount=500
                [/gold]

                [gold]
                    side=7
                    amount=500
                [/gold]
#endif

                [set_variable]
                    name=treasury_alerted
                    value=1
                [/set_variable]
            [/then]
        [/if]
    [/event]

    [event]
        name=sighted

        [filter]
            description=Study Guard
        [/filter]

        [message]
            description=Study Guard
            message= _ "They are attacking the master's study! We must stop them! Call the reserves!"
        [/message]

        [message]
            speaker=second_unit
            message= _ " 'The master's study' eh? I bet we'll find Malifor there!"
        [/message]

#ifdef NEWBIE
        [gold]
            side=8
            amount=100
        [/gold]

        [gold]
            side=9
            amount=100
        [/gold]
#endif

#ifdef EASY
        [gold]
            side=8
            amount=200
        [/gold]

        [gold]
            side=9
            amount=200
        [/gold]
#endif

#ifdef NORMAL
        [gold]
            side=8
            amount=350
        [/gold]

        [gold]
            side=9
            amount=350
        [/gold]

#endif

#ifdef HARD
        [gold]
            side=8
            amount=500
        [/gold]

        [gold]
            side=9
            amount=500
        [/gold]
#endif
    [/event]

    [event]
        name=moveto

        [filter]
            side=1
            x=37
            y=19
        [/filter]

        [message]
            speaker=unit
            message= _ "Ugh, a dead body!"
        [/message]

        [allow_undo][/allow_undo]
    [/event]

    [event]
        name=moveto

        [filter]
            side=1
            x=38
            y=13
        [/filter]

        [message]
            speaker=unit
            message= _ "Here's another body."
        [/message]

        [allow_undo][/allow_undo]
    [/event]

    [event]
        name=moveto

        [filter]
            side=1
            x=35
            y=7
        [/filter]

        [message]
            speaker=unit
            message= _ "And another..."
        [/message]

        [allow_undo][/allow_undo]
    [/event]

    [event]
        name=moveto

        [filter]
            side=1
            x=27
            y=5
        [/filter]

        [message]
            speaker=unit
            message= _ "Gee, what's with all these bodies floating around? Is this river some sort of body disposal?"
        [/message]

        [allow_undo][/allow_undo]
    [/event]

    [event]
        name=moveto

        [filter]
            side=1
            x=19
            y=28
        [/filter]

        [message]
            speaker=narrator
            message= _ "The Great Chamber"
            image=scenery/signpost.png
        [/message]

        [message]
            speaker=unit
            message= _ " 'The Great Chamber'? Hmmm, wonder what that could be."
        [/message]

        [allow_undo][/allow_undo]
    [/event]

    [event]
        name=moveto

        [filter]
            side=1
            x=10-18
            y=1-5
        [/filter]

        [message]
            speaker=unit
            message= _ "So this is the Great Chamber eh? Doesn't look like there is much to see here."
        [/message]

        {TREMOR}

        [message]
            speaker=narrator
            message= _ " *rumble*"
            image=misc/empty.png	# Stop wmllint from inserting the Wesnoth logo here
        [/message]

        [message]
            speaker=unit
            message= _ "Perhaps I spoke too soon..."
        [/message]

        {TREMOR}
        {TREMOR}

        [message]
            speaker=narrator
            message= _ " *CRASH*"
            image=misc/empty.png	# Stop wmllint from inserting the Wesnoth logo here
        [/message]

        [message]
            speaker=unit
            message= _ "What was that? Oh, woe - two big slabs of rock cutting off our retreat!"
        [/message]

        [terrain]
            x=13,15
            y=14,14
            terrain=Xu
        [/terrain]

        [unit]
            type=Giant Spider
            side=2
            description=Giant Spider
            x=23
            y=4
        [/unit]

#ifdef NEWBIE
        {GIANT_SPIDER 22 3}
        {GIANT_SPIDER 22 4}
        {GIANT_SPIDER 20 3}
        {GIANT_SPIDER 21 5}

        {GIANT_SPIDER 6 2}
        {GIANT_SPIDER 6 4}
        {GIANT_SPIDER 6 3}
        {GIANT_SPIDER 5 5}
#endif

#ifdef EASY
        {GIANT_SPIDER 22 3}
        {GIANT_SPIDER 22 4}
        {GIANT_SPIDER 20 3}
        {GIANT_SPIDER 21 5}
        {GIANT_SPIDER 23 3}
        {GIANT_SPIDER 24 3}

        {GIANT_SPIDER 6 2}
        {GIANT_SPIDER 6 4}
        {GIANT_SPIDER 6 3}
        {GIANT_SPIDER 5 5}
        {GIANT_SPIDER 5 3}
        {GIANT_SPIDER 5 2}

#endif

#ifdef NORMAL
        {GIANT_SPIDER 22 3}
        {GIANT_SPIDER 22 4}
        {GIANT_SPIDER 20 3}
        {GIANT_SPIDER 21 5}
        {GIANT_SPIDER 23 3}
        {GIANT_SPIDER 24 3}
        {GIANT_SPIDER 20 2}
        {GIANT_SPIDER 21 3}

        {GIANT_SPIDER 6 2}
        {GIANT_SPIDER 6 4}
        {GIANT_SPIDER 6 3}
        {GIANT_SPIDER 5 5}
        {GIANT_SPIDER 5 3}
        {GIANT_SPIDER 5 2}
        {GIANT_SPIDER 8 2}
        {GIANT_SPIDER 8 3}

#endif

#ifdef HARD
        {GIANT_SPIDER 22 3}
        {GIANT_SPIDER 22 4}
        {GIANT_SPIDER 20 3}
        {GIANT_SPIDER 21 5}
        {GIANT_SPIDER 23 3}
        {GIANT_SPIDER 24 3}
        {GIANT_SPIDER 20 2}
        {GIANT_SPIDER 21 3}
        {GIANT_SPIDER 21 4}
        {GIANT_SPIDER 25 4}

        {GIANT_SPIDER 6 2}
        {GIANT_SPIDER 6 4}
        {GIANT_SPIDER 6 3}
        {GIANT_SPIDER 5 5}
        {GIANT_SPIDER 5 3}
        {GIANT_SPIDER 5 2}
        {GIANT_SPIDER 8 2}
        {GIANT_SPIDER 8 3}
        {GIANT_SPIDER 4 2}
        {GIANT_SPIDER 3 3}
#endif

        {TREMOR}
        {TREMOR}

        [message]
            speaker=narrator
            message= _ " *CRASH*"
            image=misc/empty.png	# Stop wmllint from inserting a Wesnoth logo here
        [/message]

        [terrain]
            x=19,19,19,9,9
            y=2,3,4,3,4
            terrain=Uu
        [/terrain]

        [message]
            description=Giant Spider
            message= _ "Hsssssssss"
        [/message]

        [message]
            speaker=unit
            message= _ "This doesn't look good."
        [/message]

        [message]
            role=Supporter

            message= _ "Great Chamber my foot! This is a Death Chamber!"
        [/message]

        [set_variable]
            name=chamber_of_death
            value=1
        [/set_variable]
    [/event]

    [event]
        name=moveto

        [filter]
            side=1
            x=8
            y=13
        [/filter]

        [message]
            speaker=unit
            message= _ "Here we go."
        [/message]

        [terrain]
            x=7
            y=14
            terrain=Uu
        [/terrain]

        [if]
            [variable]
                name=treasury_alerted
                numerical_equals=0
            [/variable]
            [then]
                [message]
                    description=Treasury Guard
                    message= _ "Intruders! Get them!"
                [/message]

                [message]
                    role=Supporter
                    message= _ "Bring it on!"
                [/message]

#ifdef NEWBIE
                [gold]
                    side=6
                    amount=100
                [/gold]

                [gold]
                    side=7
                    amount=100
                [/gold]

#endif

#ifdef EASY
                [gold]
                    side=6
                    amount=200
                [/gold]

                [gold]
                    side=7
                    amount=200
                [/gold]
#endif

#ifdef NORMAL
                [gold]
                    side=6
                    amount=350
                [/gold]

                [gold]
                    side=7
                    amount=350
                [/gold]

#endif

#ifdef HARD
                [gold]
                    side=6
                    amount=500
                [/gold]

                [gold]
                    side=7
                    amount=500
                [/gold]
#endif

                [set_variable]
                    name=treasury_alerted
                    value=1
                [/set_variable]
            [/then]
        [/if]
    [/event]

    [event]
        name=moveto

        [filter]
            side=1
            x=9,7-10
            y=8-11,10-12
        [/filter]

        [remove_shroud]
            x=9,7-10
            y=8-11,10-12
        [/remove_shroud]

        [unit]
            type=Dwarvish Steelclad
            description=Dulcatas
            user_description= _ "Dulcatas"
            side=1
            x=6
            y=11
            [modifications]
                {TRAIT_LOYAL}
                {TRAIT_HEALTHY}
            [/modifications]
        [/unit]

        [unit]
            type=Dwarvish Thunderguard
            description=Antolos
            user_description= _ "Antolos"
            side=1
            x=8
            y=11
            [modifications]
                {TRAIT_LOYAL}
                {TRAIT_STRONG}
            [/modifications]
        [/unit]

        [unit]
            type=Dwarvish Fighter
            description=Varem
            user_description= _ "Varem"
            side=1
            x=9
            y=12
            [modifications]
                {TRAIT_LOYAL}
                {TRAIT_RESILIENT}
            [/modifications]
        [/unit]

        [message]
            description=Dulcatas
            message= _ "Halt! Who goes there? Friend or foe?"
        [/message]

        [message]
            speaker=unit
            message= _ "Depends. Are you loyal to Malifor?"
        [/message]

        [message]
            description=Dulcatas
            message= _ "Never! If you ha' been sent by Malifor, then know that we will never yield! Come and meet your death!"
        [/message]

        [message]
            speaker=unit
            message= _ "Hold! We aren't friends of Malifor in the least. Rather, we have come to destroy him."
        [/message]

        [message]
            description=Dulcatas
            message= _ "Finally! You don't know how long we have been waiting for this day."
        [/message]

        [message]
            speaker=unit
            message= _ "How did you get here and how long have you been here?"
        [/message]

        [message]
            description=Dulcatas
            message= _ "We were originally prisoners of Malifor, but we tunnelled out and escaped. Since then, we have eked out a precarious survival on what we have been able to steal or raid from Malifor."
        [/message]

        [message]
            speaker=unit
            message= _ "By now you have tunnels all through this place."
        [/message]

        [message]
            description=Dulcatas
            message= _ "Aye. That seemingly blank wall to the south there is actually a hidden entrance to the treasury."
        [/message]

        [message]
            speaker=unit
            message= _ "Awesome, let's go!"
        [/message]
    [/event]

    [event]
        name=moveto

        [filter]
            side=1
            x=3,4,5,5,4
            y=13,13,14,15,15
        [/filter]

        [message]
            speaker=unit
            message= _ " *sigh* Great. More water. And there doesn't seem to be anything down this tunnel, either friend or foe."
        [/message]

        [allow_undo][/allow_undo]
    [/event]

    [event]
        name=moveto
        first_time_only=no

        [filter]
            side=1
            x=23
            y=6
        [/filter]

        [if]
            [variable]
                name=spider_doors_open
                numerical_equals=0
            [/variable]

            [then]
                [message]
                    speaker=unit
                    message= _ "Hmmm, another door. Boy, is this one sure locked up."
                [/message]

                [message]
                    description=Tallin
                    message= _ "Anything you can't handle?"
                [/message]

                [message]
                    speaker=unit
                    message= _ "Nope. Should I open it?"

                    [option]
                        message= _ "Go for it!"
                        [command]
                            [message]
                                speaker=narrator
                                message= _ " *CRASH*"
                                image=misc/empty.png	# Stop wmllint from inserting Wesnoth logo
                            [/message]
                            [terrain]
                                x=23
                                y=7
                                terrain=Uu
                            [/terrain]
                            [set_variable]
                                name=spider_doors_open
                                value=1
                            [/set_variable]

                            [message]
                                speaker=unit
                                message= _ "There we go."
                            [/message]

                            [remove_shroud]
                                x=23-26
                                y=8-13
                            [/remove_shroud]

                            [if]
                                [variable]
                                    name=doors_open
                                    numerical_equals=0
                                [/variable]

                                [then]
                                    [if]
                                        [variable]
                                            name=back_doors_open
                                            numerical_equals=0
                                        [/variable]

                                        [then]
                                            [message]
                                                description=Malifor
                                                message= _ "You wretched vermin, I have had it with you! Guards!"
                                            [/message]

#ifdef NEWBIE
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEMILICH 25 11}
                                            {MALIFORS_DEMILICH 25 11}

                                            [gold]
                                                side=2
                                                amount=150
                                            [/gold]

#endif

#ifdef EASY
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEMILICH 25 11}
                                            {MALIFORS_DEMILICH 25 11}
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEMILICH 25 11}

                                            [gold]
                                                side=2
                                                amount=200
                                            [/gold]

#endif

#ifdef NORMAL
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEMILICH 25 11}
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEMILICH 25 11}
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEMILICH 25 11}
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEMILICH 25 11}

                                            [gold]
                                                side=2
                                                amount=300
                                            [/gold]

#endif

#ifdef HARD
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEMILICH 25 11}
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEMILICH 25 11}
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEMILICH 25 11}
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEMILICH 25 11}
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEMILICH 25 11}

                                            [gold]
                                                side=2
                                                amount=400
                                            [/gold]

#endif
                                            {CONFRONTATION}

                                            [if]
                                                [variable]
                                                    name=chamber_of_death
                                                    numerical_equals=1
                                                [/variable]

                                                [then]
                                                    [terrain]
                                                        x=19,19,19,9,9
                                                        y=2,3,4,3,4
                                                        terrain=Rr
                                                    [/terrain]
                                                [/then]
                                            [/if]
                                        [/then]
                                    [/if]
                                [/then]
                            [/if]
                        [/command]
                    [/option]

                    [option]
                        message= _ "Just wait a sec."
                        [command]
                            [message]
                                speaker=unit
                                message= _ "Very well."
                            [/message]
                        [/command]
                    [/option]
                [/message]
            [/then]
        [/if]
    [/event]

    [event]
        name=moveto
        first_time_only=no
        [filter]
            side=1
            x=21,21,21
            y=9,10,11
        [/filter]

        [if]
            [variable]
                name=doors_open
                numerical_equals=0
            [/variable]
            [then]
                [message]
                    speaker=unit
                    message= _ "It looks like this is it. Here is the door to Malifor's study. Are we all ready for this?"

                    [option]
                        message= _ "Yeah, open those doors!"
                        [command]
                            [message]
                                speaker=narrator
                                message= _ " *CRASH*"
                                image=misc/empty.png	# Stop wmllint from inserting a logo here
                            [/message]
                            [terrain]
                                x=22,22
                                y=9,10
                                terrain=Uu
                            [/terrain]
                            [set_variable]
                                name=doors_open
                                value=1
                            [/set_variable]

                            [message]
                                speaker=unit
                                message= _ "There we go."
                            [/message]

                            [remove_shroud]
                                x=23-26
                                y=8-13
                            [/remove_shroud]

                            [if]
                                [variable]
                                    name=spider_doors_open
                                    numerical_equals=0
                                [/variable]
                                [then]
                                    [if]
                                        [variable]
                                            name=back_doors_open
                                            numerical_equals=0
                                        [/variable]
                                        [then]
                                            [message]
                                                description=Malifor
                                                message= _ "You wretched vermin, I have had it with you! Guards!"
                                            [/message]

#ifdef NEWBIE
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEMILICH 25 11}
                                            {MALIFORS_DEMILICH 25 11}

                                            [gold]
                                                side=2
                                                amount=150
                                            [/gold]

#endif

#ifdef EASY
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEMILICH 25 11}
                                            {MALIFORS_DEMILICH 25 11}
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEMILICH 25 11}

                                            [gold]
                                                side=2
                                                amount=200
                                            [/gold]

#endif

#ifdef NORMAL
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEMILICH 25 11}
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEMILICH 25 11}
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEMILICH 25 11}
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEMILICH 25 11}

                                            [gold]
                                                side=2
                                                amount=300
                                            [/gold]
#endif

#ifdef HARD
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEMILICH 25 11}
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEMILICH 25 11}
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEMILICH 25 11}
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEMILICH 25 11}
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEMILICH 25 11}

                                            [gold]
                                                side=2
                                                amount=400
                                            [/gold]
#endif

                                            {CONFRONTATION}

                                            [if]
                                                [variable]
                                                    name=chamber_of_death
                                                    numerical_equals=1
                                                [/variable]
                                                [then]
                                                    [terrain]
                                                        x=19,19,19,9,9
                                                        y=2,3,4,3,4
                                                        terrain=Rr
                                                    [/terrain]
                                                [/then]
                                            [/if]
                                        [/then]
                                    [/if]
                                [/then]
                            [/if]
                        [/command]
                    [/option]

                    [option]
                        message= _ "Just wait a sec."
                        [command]
                            [message]
                                speaker=unit
                                message= _ "Very well."
                            [/message]
                        [/command]
                    [/option]
                [/message]
            [/then]
        [/if]
    [/event]

    [event]
        name=moveto
        first_time_only=no
        [filter]
            side=1
            x=28
            y=12
        [/filter]

        [if]
            [variable]
                name=back_doors_open
                numerical_equals=0
            [/variable]

            [then]
                [message]
                    speaker=unit
                    message= _ "Hey, check this out, it looks like some sort of lever."
                [/message]

                [message]
                    description=Tallin
                    message= _ "Probably for that door right there."
                [/message]

                [message]
                    speaker=unit
                    message= _ "Should I throw it?"

                    [option]
                        message= _ "Go for it!"

                        [command]
                            [message]
                                speaker=unit
                                message= _ "Ok, here we go!"
                            [/message]

                            [message]
                                speaker=unit
                                message= _ " *creak*....."
                            [/message]

                            [message]
                                speaker=unit
                                message= _ "Nothing. That door is not moving."
                            [/message]

                            [message]
                                description=Tallin
                                message= _ "Why don't you try 'knocking'."
                            [/message]

                            [message]
                                speaker=unit
                                message= _ "Ok."
                            [/message]

                            [message]
                                speaker=unit
                                message= _ " *BANG*"
                            [/message]

                            [message]
                                speaker=unit
                                message= _ "Anybody home?"
                            [/message]

                            [message]
                                speaker=unit
                                message= _ " *BOOM*"
                            [/message]

                            [message]
                                speaker=unit
                                message= _ " *CRASH!!!*"
                            [/message]

                            [terrain]
                                x=27
                                y=13
                                terrain=Uu
                            [/terrain]

                            [set_variable]
                                name=back_doors_open
                                value=1
                            [/set_variable]

                            [message]
                                speaker=unit
                                message= _ "There we go."
                            [/message]

                            [remove_shroud]
                                x=23-26
                                y=8-13
                            [/remove_shroud]

                            [if]
                                [variable]
                                    name=doors_open
                                    numerical_equals=0
                                [/variable]
                                [then]
                                    [if]
                                        [variable]
                                            name=spider_doors_open
                                            numerical_equals=0
                                        [/variable]

                                        [then]
                                            [message]
                                                description=Malifor
                                                message= _ "You wretched vermin, I have had it with you! Guards!"
                                            [/message]

#ifdef NEWBIE
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEMILICH 25 11}
                                            {MALIFORS_DEMILICH 25 11}

                                            [gold]
                                                side=2
                                                amount=150
                                            [/gold]

#endif

#ifdef EASY
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEMILICH 25 11}
                                            {MALIFORS_DEMILICH 25 11}
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEMILICH 25 11}

                                            [gold]
                                                side=2
                                                amount=200
                                            [/gold]

#endif

#ifdef NORMAL
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEMILICH 25 11}
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEMILICH 25 11}
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEMILICH 25 11}
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEMILICH 25 11}

                                            [gold]
                                                side=2
                                                amount=300
                                            [/gold]

#endif

#ifdef HARD
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEMILICH 25 11}
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEMILICH 25 11}
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEMILICH 25 11}
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEMILICH 25 11}
                                            {MALIFORS_DEATHBLADE 25 11}
                                            {MALIFORS_DEMILICH 25 11}

                                            [gold]
                                                side=2
                                                amount=400
                                            [/gold]

#endif

                                            {CONFRONTATION}

                                            [if]
                                                [variable]
                                                    name=chamber_of_death
                                                    numerical_equals=1
                                                [/variable]

                                                [then]
                                                    [terrain]
                                                        x=19,19,19,9,9
                                                        y=2,3,4,3,4
                                                        terrain=Rr
                                                    [/terrain]
                                                [/then]
                                            [/if]
                                        [/then]
                                    [/if]
                                [/then]
                            [/if]
                        [/command]
                    [/option]

                    [option]
                        message= _ "Just wait a sec."
                        [command]
                            [message]
                                speaker=unit
                                message= _ "Very well."
                            [/message]
                        [/command]
                    [/option]
                [/message]
            [/then]
        [/if]
    [/event]

    [event]
        name=victory
        {CLEAR_VARIABLE back_doors_open}
        {CLEAR_VARIABLE chamber_of_death}
        {CLEAR_VARIABLE doors_open}
        {CLEAR_VARIABLE spider_doors_open}
        {CLEAR_VARIABLE treasury_alerted}
        {CLEAR_VARIABLE tried_hammer}
        {CLEAR_VARIABLE story_told}
        {CLEAR_VARIABLE alfreds_blurb}
        {CLEAR_VARIABLE rod_picked_up}
    [/event]
[/scenario]
