#textdomain wesnoth-tb

[scenario]
    id=03_Guarded_Castle
    name= _ "Guarded Castle"
    map_data="{campaigns/Two_Brothers/maps/03_Guarded_Castle.map}"
#ifdef EASY
    turns=30
#else
    turns=24
#endif
    next_scenario=04_Return_to_the_Village
    victory_when_enemies_defeated=no

    {DEFAULT_SCHEDULE_DUSK}

    {INTRO_AND_SCENARIO_MUSIC sad.ogg knalgan_theme.ogg}{LET_INTRO_MUSIC_FINISH}
    {EXTRA_SCENARIO_MUSIC     suspense.ogg}
    {EXTRA_SCENARIO_MUSIC     siege_of_laurelmor.ogg}
    {EXTRA_SCENARIO_MUSIC     weight_of_revenge.ogg}

    [story]
        # Diary entries split into two parts until story screens allow vertical scrolling (FR #17492).
        [part]
            # wmllint: local spelling clanless
            story=_"19 V, 363 YW
Excerpt from the journal of Rotharik the Clanless

The last of Mordak’s servants arrived this morning bearing the news of his death, as well as a bundle so well-bound it was barely recognizable as a man. Mordak was always reckless. This whole desperate scheme was his, and I suppose I could blame him for everything that we have suffered through if it still mattered. It was he who brought the wrath of the orcs down on us, too. But all the same, he managed to accomplish what he set out to do. I still cannot believe the finality of what has happened; until now we had always managed to make it through somehow.

We had hoped to deliver the mage to Tairach in return for our lives. I do not know what the warlord wants with this man, but he matches the description. I suppose that Mordak’s plan would have worked perfectly if not for the appearance of the horse warriors. Now they are coming here, led by a man rumored to be this mage’s brother. If that is true, he will stop at nothing, no more than would I if they held Mordak."
        [/part]
        [part]
            story=_ "19 V, 363 YW
Excerpt from the journal of Rotharik the Clanless

I have done what I can to fortify this dilapidated castle. The orcs who came with us stand guard at the gates, and I am gathering all of my servants to me in the inner sanctum. But ill fate awaits. Whether I defeat this horse-warrior or no, the orcs will still come for me; they have been scouring the borderlands and raiding the northern farm country in search of us.

Yet for some reason I fear these brothers more. If Mordak were here it would be different, but we are broken... and these two men are whole. In each other, in the ties that bind them, they have strength."
        [/part]
    [/story]

    {TB_TRACK {JOURNEY_STAGE3}}

    # wmllint: validate-off
    [side]
        side=1
        controller=human
        recruit=Horseman,Bowman,Spearman,Footpad
#ifdef EASY
        gold=170
#else
        gold=120
#endif
        team_name=good
        user_team_name= _ "Humans"
        {FLAG_VARIANT loyalist}

        # wmllint: recognize Arvith
        {CHARACTER_STATS_ARVITH}

        facing=nw
        shroud=yes
    [/side]
    # wmllint: validate-on

    [side]
        side=2
        controller=ai
#ifdef EASY
        recruit=Skeleton,Skeleton Archer,Vampire Bat,Dark Adept,Ghoul,Walking Corpse
        gold=30
        income=-2
#else
        recruit=Skeleton,Skeleton Archer,Vampire Bat,Ghost,Dark Adept,Ghoul,Walking Corpse
        gold=50
        income=4
#endif

        team_name=evil
        user_team_name= _ "Enemies"
        {FLAG_VARIANT undead}

        type=Dark Sorcerer
        id=Rotharik
        name= _ "Rotharik"
        canrecruit=yes

        facing=sw

        [unit]
            role=Guard
            id=Guard_leader
            name= _ "Guard"
            type=Assassin
            x,y=28,26
            facing=se
        [/unit]

        [unit]
            role=Guard
            name= _ "Guard"
            type=Bandit
            x,y=30,25
            facing=se
        [/unit]

#ifndef EASY
        [unit]
            role=Guard
            name= _ "Guard"
            type=Bandit
            x,y=28,24
            facing=se
        [/unit]

        [unit]
            role=Guard
            name= _ "Guard"
            type=Bandit
            x,y=27,28
            facing=se
        [/unit]
#endif
    [/side]

    [side]
        side=3
        controller=ai
        team_name=evil
        user_team_name=_"Enemies"
        {FLAG_VARIANT6 ragged}
        no_leader=yes

        # Orcish guards
        [unit]
            id=Knago-Brek
            name= _ "Knago-Brek"
            type=Orcish Warrior
            x,y=19,17
            ai_special=guardian
            facing=se
        [/unit]

        [unit]
            name= _ "Castle Guard"
            type=Orcish Grunt
            x,y=18,16
            ai_special=guardian
            facing=se
        [/unit]

        [unit]
            name= _ "Castle Guard"
            type=Orcish Grunt
            x,y=20,16
            ai_special=guardian
            facing=se
        [/unit]

#ifndef EASY
        [unit]
            name= _ "Castle Guard"
            type=Orcish Warrior
            x,y=15,17
            ai_special=guardian
            facing=se
        [/unit]

        [unit]
            name= _ "Castle Guard"
            type=Orcish Warrior
            x,y=23,17
            ai_special=guardian
            facing=se
        [/unit]
#endif
    [/side]

    {STARTING_VILLAGES 2 100}

    # Placing prison gates
    {PLACE_IMAGE scenery/gate-rusty-se.png 5 5}
    {PLACE_IMAGE scenery/gate-rusty-sw.png 6 10}

    # Making it more like a real prison
    {PLACE_IMAGE items/bones.png 5 12}
    {PLACE_IMAGE items/bones.png 9 6}
    {PLACE_IMAGE items/bones.png 2 6}
    {PLACE_IMAGE items/bones.png 9 3}

    # Random evil-overlord furniture
    {PLACE_IMAGE "items/dragonstatue.png" 12 2}
    {PLACE_IMAGE "items/dragonstatue.png~FL(horiz)" 26 2}

    # The library
    #{PLACE_IMAGE items/book3.png 2 9}
    #{PLACE_IMAGE items/book4.png 3 9}

    # Treasure pile
    {PLACE_IMAGE items/chest-plain-closed.png 34 4}
    #{PLACE_IMAGE items/ball-blue.png 34 5}
    #{PLACE_IMAGE items/ball-green.png 33 4}
    #{PLACE_IMAGE items/ball-magenta.png 35 4}

    # Evil altar
    {PLACE_IMAGE items/altar-evil.png 29 3}
    {PLACE_IMAGE scenery/rune5.png 30 3}
    {PLACE_IMAGE scenery/rune6.png 28 3}

    # The armory
    #{PLACE_IMAGE items/brazier.png 10 10}
    #{PLACE_IMAGE items/brazier.png 12 11}
    #{PLACE_IMAGE items/axe.png 11 10}
    #{PLACE_IMAGE items/spear-fancy.png 10 11}
    #{PLACE_IMAGE items/buckler.png 10 11}
    #{PLACE_IMAGE items/buckler.png 11 11}
    #{PLACE_IMAGE "items/axe.png~FL(horiz)" 11 12}
    #{PLACE_IMAGE "items/bow.png~FL(horiz)" 10 12}
    #{PLACE_IMAGE items/bow-elven.png 12 10}
    #{PLACE_IMAGE "items/bow-crystal.png~FL(horiz)" 12 10}

    # The supply room
    #{PLACE_IMAGE items/barrel.png 28 11}
    #{PLACE_IMAGE items/chest.png 28 12}
    #{PLACE_IMAGE items/box.png 27 12}
    #{PLACE_IMAGE items/box.png 27 11}
    #{PLACE_IMAGE items/potion-green.png 26 10}

    [time_area]
        x=    0,  1-2,  3-4,  5-6,    7,    8, 9-10,11-12,   13,14-15,   16,   17,   18,   19,   20,   21,   22,23-24,   25,26-27,28-29,30-32,   33,34-35,36-37,   38
        y= 1-10, 1-11, 1-12, 1-13, 1-14, 1-15, 1-16, 1-17, 1-18, 1-15, 1-16, 1-15, 1-15, 1-16, 1-16, 1-16, 1-16, 1-15, 1-18, 1-17, 1-16, 1-12, 1-13, 1-12, 1-11, 1-10
        [time]
            id=indoors_dark_castle
            # po: similar string in the wesnoth-help textdomain
            name= _ "Indoors (dark castle)"
            image=misc/time-schedules/schedule-indoors.png~CS(-60,-45,-10)
            lawful_bonus=-25
            red=-60
            green=-45
            blue=-10
        [/time]
    [/time_area]

    # Make lit stone walls illuminate the hex south of them.
    [time_area]
        x= 2,  2,  3, 10, 13, 14, 15, 15, 18, 20, 23, 23, 25, 24, 28, 34, 34
        y= 9, 10, 10,  8, 13, 16,  9,  3,  3,  3,  3,  9, 13, 16,  7,  7, 10
        [time]
            id=indoors_dark_castle_lit
            # po: similar string in th4e wesnoth-help textdomain
            name= _ "Indoors (lit)"
            image=misc/time-schedules/schedule-indoors.png~BLIT(misc/tod-bright.png)
            lawful_bonus=0
            red=20
            green=-5
            blue=-10
        [/time]
    [/time_area]

    [event]
        name=prestart

        {STORE_BARAN}

#define ANSWER WHICH
    [if]
        [variable]
            name="{WHICH}_password"
            not_equals=1
        [/variable]
        [variable]
            name="{WHICH}_password"
            not_equals=2
        [/variable]
        [variable]
            name="{WHICH}_password"
            not_equals=3
        [/variable]
        [variable]
            name="{WHICH}_password"
            not_equals=4
        [/variable]
        [then]
            [set_variable]
                name="{WHICH}_password"
                value=1
            [/set_variable]
        [/then]
    [/if]
#enddef

        {ANSWER first}
        {ANSWER second}

#undef ANSWER

        [objectives]
            side=1
            [objective]
                [show_if]
                    [not]
                        [have_unit]
                            id=Baran
                        [/have_unit]
                    [/not]
                [/show_if]
                description= _ "Rescue Baran"
                condition=win
            [/objective]
            [objective]
                [show_if]
                    [have_unit]
                        id=Baran
                    [/have_unit]
                    [have_unit]
                        id=Rotharik
                    [/have_unit]
                [/show_if]
                description= _ "Kill the dark sorcerer to get the cell key"
                condition=win
            [/objective]
            [objective]
                [show_if]
                    [have_unit]
                        id=Baran
                    [/have_unit]
                    [not]
                        [have_unit]
                            id=Rotharik
                        [/have_unit]
                    [/not]
                [/show_if]
                description= _ "Move Arvith to the cell with his brother to free him"
                condition=win
            [/objective]
            [objective]
                description= _ "Death of Arvith"
                condition=lose
            [/objective]
            [objective]
                [show_if]
                    [have_unit]
                        id=Baran
                    [/have_unit]
                [/show_if]
                description= _ "Death of Baran"
                condition=lose
            [/objective]

            {TURNS_RUN_OUT}

            [gold_carryover]
                bonus=yes
                carryover_percentage=40
            [/gold_carryover]

#ifdef EASY
            {HINT ( _ "When facing an unknown situation, take into account details from story and dialog to inform your strategy.") (
                [show_if]
                    [not]
                        [have_unit]
                            id=Baran
                        [/have_unit]
                    [/not]
                [/show_if]
            )}
            {HINT ( _ "The dark sorcerer is a strong unit; attack him with multiple units at once and try to force him off his keep.") (
                [show_if]
                    [have_unit]
                        id=Baran
                    [/have_unit]
                    [have_unit]
                        id=Rotharik
                    [/have_unit]
                [/show_if]
            )}
            {HINT ( _ "Markings or decorations on hexes may indicate something to be found. If you can, it is usually a good idea to investigate.") (
                [show_if]
                    [have_unit]
                        id=Baran
                    [/have_unit]
                    [not]
                        [have_unit]
                            id=Rotharik
                        [/have_unit]
                    [/not]
                [/show_if]
            )}
#endif
        [/objectives]

        # Making the gates impassable
        [terrain]
            x=5,6
            y=5,10
            terrain=Uu^Xo
        [/terrain]

#ifdef EASY
        [recall]
            id=Brena
        [/recall]
#endif

        {MODIFY_UNIT (side=1) facing nw}
    [/event]

    [event]
        name=start

        [message]
            speaker=narrator
            image="wesnoth-icon.png"
            message= _ "Arvith and his men halt outside of the castle, gazing for a moment at the hulking mass of stone looming in the fog. There is movement in the mist."
        [/message]

        [message]
            speaker=Guard_leader
            message= _ "Halt! Friend or foe? Give the password."
        [/message]

        [message]
            speaker=Arvith
            message= _ "The password is"
            variable=password_picked
            [option]
                label= _ "Sithrak!"
            [/option]
            [option]
                label= _ "Eleben!"
            [/option]
            [option]
                label= _ "Jarlom!"
            [/option]
            [option]
                label= _ "Hamik!"
            [/option]
        [/message]

        [if]
            [variable]
                name=password_picked
                equals=$first_password
            [/variable]

            [then]
                [message]
                    speaker=Guard_leader
                    message= _ "Pass, friend."
                [/message]

                [kill]
                    role=Guard
                [/kill]

                [remove_shroud]
                    side=1
                    x=    0,  1-2,  3-4,  5-6,    7,    8, 9-10,11-12,   13,14-15,   16,   17,   18,   19,   20,   21,   22,23-24,   25,26-27,28-29,30-32,   33,34-35,36-37,   38
                    y=11-32,12-32,13-32,14-32,15-32,16-32,17-32,18-32,19-32,18-32,17-32,18-32,17-32,18-32,17-32,18-32,17-32,18-32,19-32,18-32,17-32,13-32,14-32,13-32,12-32,11-32
                [/remove_shroud]

                [message]
                    speaker=Arvith
                    message= _ "The adept didn’t lead us astray after all. I’ll keep my word, distasteful as it may be; cut him loose, and let’s be rid of him."
                [/message]
                # Perhaps the Adept is so grateful for Arvith's mercy that he
                # offers to stay with the player's force. In this case the
                # player could choose to keep him as a loyal unit but lose
                # some other loyal unit who leaves in disgust, or dismiss him.
            [/then]

            [else]
                [message]
                    speaker=Guard_leader
                    message= _ "Wrong! Die!"
                [/message]
            [/else]
        [/if]
        {CLEAR_VARIABLE password_picked}
    [/event]

    [event]
        name=sighted
        [filter]
            side=3
        [/filter]
        [filter_second]
            side=1
        [/filter_second]

        [message]
            speaker=Knago-Brek
            message= _ "Haha! We not kill people for long time. Weapon wants blood. We now kill humans!"
        [/message]

        [message]
            speaker=Arvith
            message= _ "My sword-arm shall have a say in who will do the dying. Come on, men, let’s kill some orcs."
        [/message]
    [/event]

    [event]
        name=die
        [filter]
            id=Knago-Brek
        [/filter]

        [message]
            speaker=Arvith
            message= _ "One less braggart orc in the world."
        [/message]

        [message]
            side=1
            [not]
                # wmllint: recognize Baran
                id=Arvith,Baran
            [/not]
            message= _ "Captain, what are <i>orcs</i> doing this far south?"
        [/message]

        [message]
            speaker=Arvith
            message= _ "Good question. Perhaps my brother will have found out."
        [/message]
    [/event]

    [event]
        name=turn 3

        [if]
            [have_unit]
                side=2
                role=Guard
            [/have_unit]
            [then]
                [event]
                    name=turn 6

                    [fire_event]
                        name=second wave
                    [/fire_event]
                    [if]
                        [not]
                            [have_unit]
                                side=2
                                role=Guard
                            [/have_unit]
                        [/not]
                        [then]
                            [fire_event]
                                name=second challenge
                            [/fire_event]
                        [/then]
                    [/if]
                [/event]
            [/then]
            [else]
                [fire_event]
                    name=second wave
                [/fire_event]
                [fire_event]
                    name=second challenge
                [/fire_event]
            [/else]
        [/if]
    [/event]

    [event]
        name=second wave

        [move_unit_fake]
            side=2
            type=Rogue
            x= 7,10,16
            y=23,21,24
        [/move_unit_fake]
        [unit]
            side=2
            role=Guard2
            id=Guard2_leader
            name= _ "Guard"
            type=Rogue
            x,y=16,24
            facing=se
            animate=no
        [/unit]

        [unit]
            side=2
            role=Guard2
            name= _ "Guard"
            type=Thug
            x,y=17,24
            facing=se
        [/unit]

        [unit]
            side=2
            role=Guard2
            name= _ "Guard"
            type=Bandit
            x,y=16,24
            facing=se
        [/unit]

#ifndef EASY
        [unit]
            side=2
            role=Guard2
            name= _ "Guard"
            type=Bandit
            x,y=17,23
            facing=se
        [/unit]
#endif
    [/event]

    [event]
        name=second challenge

        [message]
            speaker=Guard2_leader
            message= _ "Are you our relief arriving? Does this mean we get to leave here now?"
        [/message]

        [message]
            speaker=Arvith
            message= _ "Um, yes. Fine. You can go."
        [/message]

        [message]
            speaker=Guard2_leader
            message= _ "Um, you’re supposed to give the password."
        [/message]

        [message]
            speaker=Arvith
            message= _ "Oh, of course. I had nearly forgotten."
            variable=password_picked
            [option]
                label= _ "Akranbral!"
            [/option]
            [option]
                label= _ "Drakanal!"
            [/option]
            [option]
                label= _ "Xaskanat!"
            [/option]
            [option]
                label= _ "Katklagad!"
            [/option]
        [/message]

        [if]
            [variable]
                name=password_picked
                equals=$second_password
            [/variable]

            [then]
                [message]
                    speaker=Guard2_leader
                    message= _ "Thanks! Irritating little formality, isn’t it?"
                [/message]
                [kill]
                    role=Guard2
                [/kill]
            [/then]

            [else]
                [message]
                    speaker=Guard2_leader
                    message= _ "That’s the wrong password! These aren’t our relief! Get them!"
                [/message]
            [/else]
        [/if]
        {CLEAR_VARIABLE password_picked}

        [message]
            speaker=Arvith
            message= _ "I think I should better support my men at the front to make sure we can free my brother."
        [/message]
    [/event]

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

        [message]
            speaker=unit
            message= _ "Your hand or Tairach’s, death is still death... (argh)"
        [/message]

        [kill]
            id=Rotharik
            animate=yes
        [/kill]

        [message]
            speaker=Arvith
            message= _ "‘Tairach’? Who or what is Tairach?"
        [/message]

        [message]
            speaker=second_unit
            message= _ "There’s a key in his robes."
        [/message]

        [if]
            [have_unit]
                id=Baran
            [/have_unit]
            [then]
                [message]
                    speaker=Arvith
                    message= _ "That may well be the key to the cell they’re holding Baran in! I will take it."
                [/message]

                [store_turns]
                    variable=turns_remaining
                [/store_turns]
                [set_variable]
                    name=turns_remaining
                    sub=$($turn_number| - 1)
                [/set_variable]
                [if]
                    [variable]
                        name=turns_remaining
                        less_than=7
                    [/variable]
                    [then]
                        [modify_turns]
                            add=$(7 - $turns_remaining|)
                        [/modify_turns]
                    [/then]
                [/if]
                {CLEAR_VARIABLE turns_remaining}

                [show_objectives][/show_objectives]
            [/then]
            [else]
                [message]
                    speaker=Arvith
                    message= _ "It may be important, I best take it."
                [/message]
            [/else]
        [/if]
    [/event]

    # When the player can see most of the castle entryway (40 or more castle
    # hexes are unshrouded), comment about the lighting in the castle.
    [event]
        name=moveto
        [filter]
            side=1
            x=    0,  1-2,  3-4,  5-6,    7,    8, 9-10,11-12,   13,14-15,   16,   17,   18,   19,   20,   21,   22,23-24,   25,26-27,28-29,30-32,   33,34-35,36-37,   38
            y= 1-10, 1-11, 1-12, 1-13, 1-14, 1-15, 1-16, 1-17, 1-18, 1-15, 1-16, 1-15, 1-15, 1-16, 1-16, 1-16, 1-16, 1-15, 1-18, 1-17, 1-16, 1-12, 1-13, 1-12, 1-11, 1-10
        [/filter]

        [message]
            speaker=unit
            message= _ "This castle seems as dark as a cave!"
        [/message]

#ifdef EASY
        [message]
            speaker=narrator
            message= _ "This castle is under a constant, <i>chaotic</i> time of day (equivalent to permanent night), except for illuminated hexes adjacent to lit stone walls (neutral time of day). Place your units carefully, as your troops will be weaker and enemy units stronger."
            image=wesnoth-icon.png
        [/message]
#endif
    [/event]

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

#ifdef EASY
        [sound]
            name=gold.ogg
        [/sound]

        [message]
            speaker=unit
            message= _ "Look what I have found in here! I can count a hundred pieces of gold."
        [/message]

        [gold]
            side=1
            amount=100
        [/gold]
#else
        [sound]
            name=gold.ogg
        [/sound]

        [message]
            speaker=unit
            message= _ "Look what I have found in here! I can count fifty pieces of gold."
        [/message]

        [gold]
            side=1
            amount=50
        [/gold]
#endif

        {REMOVE_IMAGE 34 4}
        {PLACE_IMAGE items/chest-plain-open.png 34 4}
    [/event]

    [event]
        name=moveto

        [filter_condition]
            [have_location]
                x,y=5,5

                [filter_vision]
                    side=1
                [/filter_vision]
            [/have_location]
        [/filter_condition]

        [scroll_to]
            x,y=3,3
        [/scroll_to]

        {RESTORE_BARAN}
        {NEED_BARAN (x,y=3,3)}

        [redraw]
            side=1
        [/redraw]

        [message]
            speaker=unit
            message= _"I found Baran. He is in this cell."
        [/message]

        [if]
            [variable]
                name=unit.id
                equals="Arvith"
            [/variable]
            [then]
                [message]
                    speaker=Baran
                    message= _ "It’s good to see you, Arvith."
                [/message]

                [message]
                    speaker=Arvith
                    message= _ "And you too, brother."
                [/message]
            [/then]
            [else]
                [message]
                    speaker=Baran
                    message= _ "You must be one of Arvith’s men. Please help me get out of this dungeon."
                [/message]
            [/else]
        [/if]

        [message]
            speaker=Baran
            message= _ "The accursed dark sorcerer Rotharik has imprisoned me behind this magically enhanced iron gate. It can only be opened with the correct key. You must get it from him to free me."
        [/message]

        [if]
            [not]
                [have_unit]
                    id=Rotharik
                [/have_unit]
            [/not]
            [then]
                [message]
                    speaker=Arvith
                    message= _ "I have already met, and killed, the sorcerer. Is this the key to which you referred?"
                [/message]
                [message]
                    speaker=Baran
                    message= _ "Yes, it is. Come, unlock this cell door, and let us depart this place, brother!"
                [/message]

                [store_turns]
                    variable=turns_remaining
                [/store_turns]
                [set_variable]
                    name=turns_remaining
                    sub=$($turn_number| - 1)
                [/set_variable]
                [if]
                    [variable]
                        name=turns_remaining
                        less_than=7
                    [/variable]
                    [then]
                        [modify_turns]
                            add=$(7 - $turns_remaining|)
                        [/modify_turns]
                    [/then]
                [/if]
                {CLEAR_VARIABLE turns_remaining}
            [/then]
        [/if]
        [show_objectives][/show_objectives]
    [/event]

    [event]
        name=moveto
        first_time_only=no
        [filter]
            x=5,6
            y=6,5
            id=Arvith
        [/filter]
        [filter_condition]
            [not]
                [have_unit]
                    id=Rotharik
                [/have_unit]
            [/not]
        [/filter_condition]

        [remove_item]
            x,y=5,5
        [/remove_item]

        [terrain]
            x,y=5,5
            terrain=Uu
        [/terrain]

        [message]
            speaker=Baran
            message= _ "Thank you for saving me. I... was not certain you would come."
        [/message]

        [message]
            speaker=Arvith
            message= _ "Have you no faith in your brother, Baran?"
        [/message]

        [message]
            speaker=Baran
            message= _ "It’s not that. Perhaps I deserved to rot here. I failed you. I failed you again."
        [/message]

        [message]
            speaker=Arvith
            message= _ "That is as may be. But you are my brother still. And... I never doubted you would have come for me."
        [/message]

        [message]
            speaker=Arvith
            message= _ "It was no great trial, after all. A few elves, one or two dark sorcerers, a gang of orcs and some undead. Really just a day’s work for the company."
        [/message]

        [message]
            speaker=Baran
            message= _ "Thank you for coming to my aid. Let us return to the village."
        [/message]

        [endlevel]
            result=victory
            bonus=yes
            {NEW_GOLD_CARRYOVER 40}
        [/endlevel]
    [/event]

    [event]
        name=victory

        {RESTORE_BARAN}
    [/event]

    {BARAN_LAST_BREATH}

    {ARVITH_LAST_BREATH}

    [event]
        name=time over

        [if]
            [not]
                [have_unit]
                    id=Rotharik
                [/have_unit]
            [/not]
            [then]
                [unit]
                    id=Rotharik
                    side=2
                    type=Orcish Assassin
                    name= _ "Minion of Tairach"
                    x,y=2,2
                [/unit]
                [kill]
                    id=Baran
                [/kill]
            [/then]
        [/if]
        [message]
            # wmllint: local spelling Muahahaha
            speaker=Rotharik
            scroll=no
            message= _ "You are too late! Your brother is already dead! Muahahaha...!"
        [/message]

        [message]
            speaker=Arvith
            message= _ "Argh!!"
        [/message]
    [/event]
[/scenario]
