#textdomain wesnoth-nr
[scenario]
    id=Showdown
    name= _ "Showdown"
    {SCENARIO_MUSIC "legends_of_the_north.ogg"}

    [story]
        [part]
            story= _ "The party once again took up Raksha's trail. They soon received a report from a scouting gryphon that in an enormous fortress a few leagues west from them, Rakshas was assembling a massive orcish force, clearly intending to crush their revolt once and for all."
        [/part]

        [part]
            story= _ "The gryphon further reported that a few more leagues west was a large force of dwarvish veterans, advancing steadily on the orcish fortress."
        [/part]

        [part]
            story= _ "Battle plans were quickly made; the party split into three groups. Two of the groups immediately set off northwest and southwest respectively while the third group rested for an hour and then set off directly west."
        [/part]

        [part]
            story= _ "The idea was to completely surround Rakshas on all sides, cutting off any chance of escape or reinforcements."
        [/part]
    [/story]

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

    {DEFAULT_SCHEDULE}

    turns=-1

    victory_when_enemies_defeated=yes
    next_scenario=epilogue

    {STARTING_VILLAGES 1 5}
    {STARTING_VILLAGES 2 3}
    {STARTING_VILLAGES 3 4}
    {STARTING_VILLAGES 4 4}
    {STARTING_VILLAGES 5 4}
    {STARTING_VILLAGES 6 4}
    {STARTING_VILLAGES 7 10}
    {STARTING_VILLAGES 8 10}
    {STARTING_VILLAGES 9 10}

    [side]
        type=Lieutenant
        description=Tallin
        user_description=_ "Tallin"
        canrecruit=yes
        side=1
        controller=human
        recruit=Peasant,Woodsman,Thug,Poacher,Spearman,Bowman,,Dwarvish Ulfserker,Gryphon,Footpad
        team_name=mob
        gold=100
    [/side]

    [side]
        type=Orcish Sovereign
        description=Rakshas
        user_description= _ "Rakshas"
        profile=portraits/Rakshas.jpg
        canrecruit=yes
        side=2
        recruit=Orcish Warrior,Orcish Slayer,Troll,Troll Rocklobber,Orcish Crossbowman
        {GOLD4 1000 1500 2000 2500}
        {INCOME4 2 10 30 50}
        team_name=orcs

        [ai]
            [target]
                x=30
                y=30
                value=400
            [/target]
            [target]
                side=1
                value=300
            [/target]
            [target]
                side=7
                value=150
            [/target]
            [target]
                side=8
                value=50
            [/target]
            [target]
                side=9
                value=250
            [/target]
        [/ai]
    [/side]

    [side]
        type=Orcish Warlord
        description="Ha'Tuil"
        user_description= _ "Ha'Tuil"
        canrecruit=yes
        side=3
        recruit=Orcish Warrior,Orcish Slayer,Troll,Troll Rocklobber,Orcish Crossbowman
        {GOLD4 1000 1500 2000 2500}
        {INCOME4 2 10 30 50}
        team_name=orcs
        [ai]
            [target]
                side=1
                value=400
            [/target]
            [target]
                side=7
                value=300
            [/target]
            [target]
                side=8
                value=200
            [/target]
            [target]
                side=9
                value=350
            [/target]
        [/ai]
    [/side]

    [side]
        type=Orcish Warlord
        description="Ar'Muff"
        user_description= _ "Ar'Muff"
        canrecruit=yes
        side=4
        recruit=Orcish Warrior,Orcish Slayer,Troll,Troll Rocklobber,Orcish Crossbowman
        {GOLD4 1000 1500 2000 2500}
        {INCOME4 2 10 30 50}
        team_name=orcs
        [ai]
            [target]
                side=1
                value=400
            [/target]
            [target]
                side=7
                value=300
            [/target]
            [target]
                side=8
                value=200
            [/target]
            [target]
                side=9
                value=350
            [/target]
        [/ai]
    [/side]

    [side]
        type=Orcish Warlord
        description=Calter
        user_description= _ "Calter"
        canrecruit=yes
        side=5
        recruit=Orcish Warrior,Orcish Slayer,Troll,Troll Rocklobber,Orcish Crossbowman
        {GOLD4 1000 1500 2000 2500}
        {INCOME4 2 10 30 50}
        team_name=orcs
        [ai]
            [target]
                side=1
                value=400
            [/target]
            [target]
                side=7
                value=300
            [/target]
            [target]
                side=8
                value=200
            [/target]
            [target]
                side=9
                value=350
            [/target]
        [/ai]
    [/side]

    [side]
        type=Orcish Warlord
        description=Halter
        user_description= _ "Halter"
        canrecruit=yes
        side=6
        recruit=Orcish Warrior,Orcish Slayer,Troll,Troll Rocklobber,Orcish Crossbowman
        {GOLD4 1000 1500 2000 2500}
        {INCOME4 2 10 30 50}
        team_name=orcs
        [ai]
            [target]
                side=1
                value=400
            [/target]
            [target]
                side=7
                value=300
            [/target]
            [target]
                side=8
                value=200
            [/target]
            [target]
                side=9
                value=350
            [/target]
        [/ai]
    [/side]

    [side]
        type=Drake Flare
        description=Krash
        user_description=_ "Krash"
        canrecruit=yes
        side=7
        gold=100
        recruit=Drake Fighter,Drake Glider,Drake Burner,Drake Clasher
        team_name=mob
        controller=human
    [/side]

    [side]
        type=Dwarvish Lord
        description=Hamel
        user_description= _ "Hamel"
        profile=portraits/Hamel.jpg
        canrecruit=yes
        side=8
        {GOLD4 2500 2500 2000 1500}
        {INCOME4 40 30 20 10}
        recruit=Dwarvish Steelclad,Dwarvish Thunderguard,Dwarvish Stalwart
        team_name=mob
        [ai]
            simple_targetting=yes
            recruitment_ignore_bad_combat=yes
            recruitment_ignore_bad_movement=yes
            aggression=1.0
            caution=-5.0
            attack_depth=5
            village_value=0.0
            leader_value=50.0
            villages_per_scout=0.0
            recruitment_pattern=fighter

            [target]
                description=Rakshas
                value=500
            [/target]
        [/ai]
    [/side]

    [side]
        type=Elvish Shaman
        description=Teri
        user_description=_ "Teri"
        canrecruit=yes
        side=9
        gold=100
        recruit=Elvish Fighter,Elvish Archer,Elvish Shaman,Elvish Scout,Elvish Captain,Elvish Hero,Elvish Ranger,Elvish Marksman,Elvish Rider,Elvish Druid,Elvish Sorceress
        team_name=mob
        controller=human
    [/side]

    # wmllint: recognize Ro'Arthian
    # wmllint: recognize Ro'Sothian
    # wmllint: recognize Anita

    [event]
        name=prestart

        # {SCATTER_IMAGE (terrain=Gg,Gs^Fp) 12 scenery/pine1.png}

        [set_variable]
            name=keep
            value=1
        [/set_variable]
        [set_variable]
            name=keep.x
            value=56
        [/set_variable]
        [set_variable]
            name=keep.y
            value=30
        [/set_variable]

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

            [then]
                [kill]
                    side=7
                [/kill]

                [store_unit]
                    [filter]
                        description="Ro'Arthian"
                    [/filter]

                    variable=Arthian_in_command
                    kill=yes
                [/store_unit]

                [unit]
                    type=Ancient Lich
                    side=7
                    description="Ro'Arthian"
                    user_description= _ "Ro'Arthian"
                    x=30
                    y=11
                    canrecruit=yes
                    experience=$Arthian_in_command.experience
                    hitpoints=$Arthian_in_command.hitpoints
                [/unit]

                {CLEAR_VARIABLE Arthian_in_command}

                [disallow_recruit]
                    side=7
                    type=Drake Fighter,Drake Glider,Drake Burner,Drake Clasher
                [/disallow_recruit]

                [allow_recruit]
                    side=7
                    type=Troll,Troll Whelp,Ogre,Young Ogre,Mage,Red Mage,Gryphon
                [/allow_recruit]
            [/then]
        [/if]

        [if]
            [variable]
                name=all_is_well
                numerical_equals=0
            [/variable]
            [then]
                [kill]
                    description=Teri
                [/kill]

                [store_unit]
                    [filter]
                        description="Ro'Sothian"
                    [/filter]

                    variable=Sothian_in_command
                    kill=yes
                [/store_unit]

                [unit]
                    type=$Sothian_in_command.type
                    side=9
                    description="Ro'Sothian"
                    profile=portraits/Ro_Sothian.png
                    user_description= _ "Ro'Sothian"
                    x=31
                    y=54
                    canrecruit=yes
                    experience=$Sothian_in_command.experience
                    hitpoints=$Sothian_in_command.hitpoints
                [/unit]

                [disallow_recruit]
                    side=9
                    type=Elvish Fighter,Elvish Archer,Elvish Shaman,Elvish Scout,Elvish Captain,Elvish Hero,Elvish Ranger,Elvish Marksman,Elvish Rider,Elvish Druid,Elvish Sorceress
                [/disallow_recruit]
                [allow_recruit]
                    side=9
                    type=Troll,Troll Whelp,Ogre,Young Ogre,Mage,Red Mage,Gryphon
                [/allow_recruit]

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

                {CLEAR_VARIABLE Sothian_in_command}
            [/then]
        [/if]

        [store_unit]
            [filter]
                description=Tallin
            [/filter]
            variable=Tallinstore
            kill=yes
        [/store_unit]

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

            [then]
                [store_unit]
                    [filter]
                        description="Ro'Arthian"
                    [/filter]
                    variable=Arthianstore
                    kill=yes
                [/store_unit]
            [/then]
        [/if]

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

            [then]
                [store_unit]
                    [filter]
                        description="Ro'Sothian"
                    [/filter]
                    variable=Sothianstore
                    kill=yes
                [/store_unit]
            [/then]
        [/if]

        [store_unit]
            [filter]
                description=Hamel
            [/filter]
            variable=Hamelstore
            kill=yes
        [/store_unit]

        [store_unit]
            [filter]
                description=Anita
            [/filter]
            variable=Anitastore
            kill=yes
        [/store_unit]

        [store_unit]
            [filter]
                description=Krash
            [/filter]
            variable=Krashstore
            kill=yes
        [/store_unit]

        {WARLORD_GUARD 28 22}
        {WARLORD_GUARD 29 23}
        {WARLORD_GUARD 31 23}
        {WARLORD_GUARD 32 22}
        {WARLORD_GUARD 34 22}
        {WARLORD_GUARD 36 23}
        {WARLORD_GUARD 38 24}
        {WARLORD_GUARD 40 25}
        {WARLORD_GUARD 40 27}
        {WARLORD_GUARD 40 29}
        {WARLORD_GUARD 40 31}
        {WARLORD_GUARD 40 33}
        {WARLORD_GUARD 40 35}
        {WARLORD_GUARD 38 36}
        {WARLORD_GUARD 36 37}
        {WARLORD_GUARD 34 38}

        {WARLORD_GUARD 33 39}
        {WARLORD_GUARD 31 39}
        {WARLORD_GUARD 29 39}
        {WARLORD_GUARD 27 39}
        {WARLORD_GUARD 25 38}
        {WARLORD_GUARD 23 37}
        {WARLORD_GUARD 21 36}
        {WARLORD_GUARD 20 35}
        {WARLORD_GUARD 20 33}
        {WARLORD_GUARD 20 31}
        {WARLORD_GUARD 20 29}
        {WARLORD_GUARD 20 27}
        {WARLORD_GUARD 20 25}
        {WARLORD_GUARD 22 24}
        {WARLORD_GUARD 24 23}
        {WARLORD_GUARD 26 22}

        {SLURBOW_GUARD 33 23}
        {SLURBOW_GUARD 35 23}
        {SLURBOW_GUARD 37 24}
        {SLURBOW_GUARD 39 36}

        {SLURBOW_GUARD 39 25}
        {SLURBOW_GUARD 40 26}
        {SLURBOW_GUARD 40 28}

        {SLURBOW_GUARD 40 32}
        {SLURBOW_GUARD 40 34}

        {SLURBOW_GUARD 37 37}
        {SLURBOW_GUARD 35 38}
        {SLURBOW_GUARD 32 38}

        {SLURBOW_GUARD 28 38}
        {SLURBOW_GUARD 26 38}
        {SLURBOW_GUARD 24 37}

        {SLURBOW_GUARD 22 36}
        {SLURBOW_GUARD 20 32}
        {SLURBOW_GUARD 20 28}

        {SLURBOW_GUARD 20 26}
        {SLURBOW_GUARD 21 25}
        {SLURBOW_GUARD 23 24}

        {SLURBOW_GUARD 25 23}
        {SLURBOW_GUARD 20 34}
        {SLURBOW_GUARD 27 23}
    [/event]

    [event]
        name=start

        {VARIABLE_OP stored_gold multiply 0.33}

        [store_gold]
            side=1
            variable=gold_returned
        [/store_gold]
        {VARIABLE_OP gold_returned multiply -1}
        [gold]
            side=1
            amount=$gold_returned
        [/gold]
        [gold]
            side=1
            amount=$stored_gold
        [/gold]
        {VARIABLE_OP gold_returned multiply -1}
        {CLEAR_VARIABLE gold_returned}

        [store_gold]
            side=7
            variable=gold_returned
        [/store_gold]
        {VARIABLE_OP gold_returned multiply -1}
        [gold]
            side=7
            amount=$gold_returned
        [/gold]
        [gold]
            side=7
            amount=$stored_gold
        [/gold]
        {VARIABLE_OP gold_returned multiply -1}
        {CLEAR_VARIABLE gold_returned}

        [store_gold]
            side=9
            variable=gold_returned
        [/store_gold]
        {VARIABLE_OP gold_returned multiply -1}
        [gold]
            side=9
            amount=$gold_returned
        [/gold]
        [gold]
            side=9
            amount=$stored_gold
        [/gold]
        {VARIABLE_OP gold_returned multiply -1}
        {CLEAR_VARIABLE gold_returned}

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

            [then]
                [message]
                    speaker=narrator
                    message= _ "The group that went to the north was led by Ro'Arthian and was composed of trolls, orges and some selected mages."
                    image=wesnoth-icon.png
                [/message]
            [/then]

            [else]
                [message]
                    speaker=narrator
                    message= _ "The group that went to the north was led by Krash and his drake friends."
                    image=wesnoth-icon.png
                [/message]
            [/else]
        [/if]

        [if]
            [variable]
                name=all_is_well
                numerical_equals=1
            [/variable]
            [then]
                [message]
                    speaker=narrator
                    message= _ "Anita and the remaining elves, eager to avenge Hidel, went south, while Tallin himself led the western group."
                    image=wesnoth-icon.png
                [/message]
            [/then]

            [else]
                [message]
                    speaker=narrator
                    message= _ "Ro'Arthian's brother, Ro'Sothian went south with another crew of trolls, ogres and mages. Tallin himself led the western group."
                    image=wesnoth-icon.png
                [/message]
            [/else]
        [/if]

        [message]
            speaker=narrator
            message= _ "A few short hours later all the groups converged on the fortress."
            image=wesnoth-icon.png
        [/message]

        [move_unit_fake]
            type=$Tallinstore.type
            side=1
            x=60,59,58,57,56
            y=30,30,30,30,30
        [/move_unit_fake]

        [unstore_unit]
            variable=Tallinstore
        [/unstore_unit]

        [if]
            [variable]
                name=bye_Krash
                numerical_equals=1
            [/variable]
            [then]
                [move_unit_fake]
                    type=$Arthianstore.type
                    side=1
                    x=30,30,30,30,30,30,30,30,30,30,30
                    y=1,2,3,4,5,6,7,8,9,10,11
                [/move_unit_fake]

                [unstore_unit]
                    variable=Arthianstore
                [/unstore_unit]
            [/then]

            [else]
                [move_unit_fake]
                    type=$Krashstore.type
                    side=7
                    x=30,30,30,30,30,30,30,30,30,30,30
                    y=1,2,3,4,5,6,7,8,9,10,11
                [/move_unit_fake]

                [unstore_unit]
                    variable=Krashstore
                [/unstore_unit]
            [/else]
        [/if]

        [if]
            [variable]
                name=all_is_well
                numerical_equals=1
            [/variable]
            [then]
                [move_unit_fake]
                    type=$Anitastore.type
                    side=1
                    x=31,31,31,31,31,31,31
                    y=60,59,58,57,56,55,54
                [/move_unit_fake]

                [unstore_unit]
                    variable=Anitastore
                [/unstore_unit]
            [/then]

            [else]
                [move_unit_fake]
                    type=$Sothianstore.type
                    side=1
                    x=31,31,31,31,31,31,31
                    y=60,59,58,57,56,55,54
                [/move_unit_fake]

                [unstore_unit]
                    variable=Sothianstore
                [/unstore_unit]
            [/else]
        [/if]

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

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

            [then]
                [unit]
                    type=Elvish Avenger
                    user_description= _ "Sisal"
                    gender=female
                    side=9
                    description=Sisal
                    x=32
                    y=53
                [/unit]
            [/then]
        [/if]

        [recall]
            description=Camerin
        [/recall]
        [recall]
            description=Abhai
        [/recall]

        [recall]
            description=Father Marcus
        [/recall]

        [recall]
            description=Sister Theta
        [/recall]

        [recall]
            description=Krash
        [/recall]

        [recall]
            description=Elenia
        [/recall]

        [recall]
            description=Anita
        [/recall]

        [recall]
            description=Stalrag
        [/recall]

        [recall]
            description="Ro'Sothian"
        [/recall]

        [recall]
            description="Ro'Arthian"
        [/recall]

        [message]
            description=Tallin
            message= _ "Rakshas! You have evaded me for the last time. Now come out and die like a man!"
        [/message]

        [message]
            description=Rakshas
            message= _ "What the...? How did he get here?"
        [/message]

        [if]
            [variable]
                name=all_is_well
                numerical_equals=1
            [/variable]
            [then]
                [message]
                    description=Anita
                    message= _ "We have crushed and scattered your entire eastern flank, and now it's your turn!"
                [/message]

                [message]
                    description=Rakshas
                    message= _ "You slimy little elf! So you have joined hands with these humans, have you? Very well, both of you shall soon be dead!"
                [/message]

                [message]
                    description=Anita
                    message= _ "Good luck, you monster. You are cut off and surrounded. We shall kill you and feed your carcass to the vultures and wild beasts."
                [/message]

                [message]
                    description=Rakshas
                    message= _ "Hahahahah! You fools, do you not see that you are right in the heart of orcish territory, surrounded yourselves! Why, at this very moment my entire western army is marching this way. They will soon be here and will scatter your forces like straw!"
                [/message]
            [/then]

            [else]
                [message]
                    description="Ro'Arthian"
                    message= _ "We have crushed and scattered your entire eastern flank, buddy, and now it's your turn!"
                [/message]

                [message]
                    description=Rakshas
                    message= _ "Argh, you frustrating little vermin! I am going to pluck your eyeballs out and..."
                [/message]

                [message]
                    description="Ro'Arthian"
                    message= _ "We don't have any eyeballs, you idiot!"
                [/message]

                [message]
                    description=Rakshas
                    message= _ "PAH! You fools, know that you shall soon be outnumbered and surrounded. At this very moment my entire western army is marching this way. They will soon be here and will scatter your puny forces like straw!"
                [/message]
            [/else]
        [/if]

        [move_unit_fake]
            type=$Hamelstore.type
            side=8
            x=1,2,3,4,5,6,7,8,9,10,11
            y=31,31,31,31,31,31,31,31,32,32,32
        [/move_unit_fake]

        [unstore_unit]
            variable=Hamelstore
        [/unstore_unit]

        [move_unit_fake]
            type=Dwarvish Steelclad
            side=8
            x=1,2,3,4,5,6,7,8,9,10,11
            y=31,31,31,31,31,31,31,31,32,32,33
        [/move_unit_fake]

        [unit]
            type=Dwarvish Steelclad
            side=8
            x=11
            y=33
        [/unit]

        [move_unit_fake]
            type=Dwarvish Steelclad
            side=8
            x=1,2,3,4,5,6,7,8,9,10,11
            y=31,31,31,31,31,31,31,31,32,31,31
        [/move_unit_fake]

        [unit]
            type=Dwarvish Steelclad
            side=8
            x=11
            y=31
        [/unit]

        [move_unit_fake]
            type=Dwarvish Thunderguard
            side=8
            x=1,2,3,4,5,6,7,8,9,10
            y=31,31,31,31,31,31,31,31,32,32
        [/move_unit_fake]

        [unit]
            type=Dwarvish Thunderguard
            side=8
            x=10
            y=32
        [/unit]

        [move_unit_fake]
            type=Dwarvish Thunderguard
            side=8
            x=1,2,3,4,5,6,7,8,9,10
            y=31,31,31,31,31,31,31,31,32,31
        [/move_unit_fake]

        [unit]
            type=Dwarvish Thunderguard
            side=8
            x=10
            y=31
        [/unit]

        [message]
            description=Hamel
            message= _ "Will they, now?"
        [/message]

        [message]
            description=Rakshas
            message= _ "WHAT!?!?!"
        [/message]

        [message]
            description=Hamel
            message= _ "Your western army has been slaughtered, Rakshas, and YOU will soon join them!"
        [/message]

        [message]
            description=Rakshas
            message= _ "But... but... how can this be?"
        [/message]

        [message]
            description=Hamel
            message= _ "It's called 'The End', foul orc. Forward! FOR KNALGA!!!"
        [/message]

        [message]
            description=Krash
            message= _ "FOR FRIENDSHIP!!!"
        [/message]

        [message]
            description="Ro'Arthian"
            message= _ "FOR PEACE!!!"
        [/message]

        [message]
            description=Camerin
            message= _ "FOR FUN!"
        [/message]

        [message]
            description=Anita
            message= _ "FOR HIDEL!!!"
        [/message]

        [message]
            role=Supporter

            message= _ "FOR DWARVEN DOORS!!!"
        [/message]

        [message]
            description=Tallin
            message= _ "FOR THE NORTH! FALL ON THEM, MEN!!!"
        [/message]

        [objectives]
            side=1
            [objective]
                description= _ "Defeat the enemy leaders"
                condition=win
            [/objective]

            [objective]
                description= _ "Death of Tallin"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Ro'Arthian"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Ro'Sothian"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Hamel"
                condition=lose
            [/objective]
        [/objectives]

        [objectives]
            side=7
            [objective]
                description= _ "Defeat the enemy leaders"
                condition=win
            [/objective]

            [objective]
                description= _ "Death of Tallin"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Ro'Arthian"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Ro'Sothian"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Hamel"
                condition=lose
            [/objective]
        [/objectives]

        [objectives]
            side=9
            [objective]
                description= _ "Defeat the enemy leaders"
                condition=win
            [/objective]

            [objective]
                description= _ "Death of Tallin"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Ro'Arthian"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Ro'Sothian"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Hamel"
                condition=lose
            [/objective]
        [/objectives]
    [/event]

    {campaigns/Northern_Rebirth/utils/herodeaths.cfg}

    [event]
        name=victory

        [message]
            description=Tallin
            message= _ "At last! Rakshas has been slain, and the orcish host has been crushed. Peace and prosperity will come to the Northlands once again!"
        [/message]

        [message]
            speaker=narrator
            message= _ "At these words all the allied forces gave out a combined and thunderous cheer. Their long ordeal was finally over."
            image=wesnoth-icon.png
        [/message]

        [message]
            description=Camerin
            message= _ " *small voice lost in the uproar* Awww, is it over already?"
        [/message]

        {CLEAR_VARIABLE keep}
		[if]
			[have_unit]
				description=Hamel
			[/have_unit]
			[then]
				[store_unit]
					variable=temp_var
					[filter]
						description=Hamel
					[/filter]
					kill=yes
					fire_event=no
				[/store_unit]
				{VARIABLE temp_var.side 1}
				[unstore_unit]
					variable=some_var
				[/unstore_unit]
				{CLEAR_VARIABLE some_var}
			[/then]
		[/if]

    [/event]

    [event]
        name=die

        [filter]
            description=Rakshas
        [/filter]

        [message]
            description=Tallin
            message= _ "Die, you murderous beast! No longer shall you terrorize the people of the North."
        [/message]

        [message]
            description=Hamel
            message= _ "Learn the fate of one who offends the Dwarves of Knalga."
        [/message]

        [message]
            description=Anita
            message= _ "Or the elves of the Northern Forests."
        [/message]

        [role]
            type=Highwayman,Royal Guard,Halberdier,Master Bowman,Bandit,Trapper,Swordsman,Pikeman,Longbowman,Javelineer,Bowman,Thug,Poacher,Peasant,Woodsman
            role=Supporter
        [/role]

        [message]
            role=Supporter

            message= _ "Or the humans of Dwarven Doors."
        [/message]

        [message]
            description=Rakshas
            message= _ " *gurggle* No!... this.... cannot.... be... happening.... to.... me....."
        [/message]

        [message]
            description=Sister Theta
            message= _ "Such were the last words of of Rakshas the great!"
        [/message]

        [message]
            description="Ro'Sothian"
            message= _ " *snicker*"
        [/message]
    [/event]

    [event]
        name=die

        [filter]
            description=Hamel
        [/filter]

        [message]
            description=Hamel
            message= _ "Argh!"
        [/message]

        [message]
            description=Tallin
            message= _ "Hamel! Blast it, without the dwarves to hold the western flank we are as good as defeated."
        [/message]
    [/event]

    [event]
        name=turn 5

        [message]
            description=Tallin
            message= _ "Sweet gods, look at all those orcs pouring out of that fortress."
        [/message]

        [message]
            description=Hamel
            message= _ "Aye, and not just any orcs either, those are all hardened veterans!"
        [/message]

        [message]
            description=Tallin
            message= _ "Yeah. Obviously this is going to take some time. If necessary we can sit tight in our fortifications and siege them until they starve!"
        [/message]
    [/event]

    [event]
        name=die

        [filter]
            description=Sisal
        [/filter]

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

        [message]
            description=Sisal
            message= _ "Ahhhh! Farewell friends. I now go to join Hidel."
        [/message]

        [message]
            description=Anita
            message= _ "Sisal! Noooo! Not you too!"
        [/message]
    [/event]
[/scenario]
