#textdomain wesnoth-sotbe
[scenario]
    id="Coward"
    name= _ "The Coward"
    map_data="{campaigns/Son_Of_The_Black_Eye/maps/Coward.map}"

    {TURNS 34 32 28}

    victory_when_enemies_defeated="yes"

    {SCENARIO_MUSIC "vengeful.ogg"}
    {EXTRA_SCENARIO_MUSIC "breaking_the_chains.ogg"}

    {MORNING}
    {AFTERNOON}
    {DUSK}
    {FIRST_WATCH}
    {SECOND_WATCH}
    {DAWN}

    next_scenario="Human_Horde"

    [event]
        name=prestart
        [objectives]
            side=1
            [objective]
                description=_ "Defeat all enemy leaders"
                condition=win
            [/objective]
            [objective]
                description=_ "Death of Kapou'e"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Grüü"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Al'Brock"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Flar'Tar"
                condition=lose
            [/objective]
            [objective]
                description=_ "Turns run out"
                condition=lose
            [/objective]

            note= _ "The Great Horde: upkeep cost of every unit decreased by one." + "
"+{EARLY_FINISH_BONUS_NOTE}+{NEW_GOLD_CARRYOVER_NOTE_40}
        [/objectives]
    [/event]

    [side]
        type=Orcish Leader
        id="Kapou'e"
        name= _ "Kapou'e"
        side=1
        canrecruit=yes
        controller=human
        recruit= Wolf Rider, Orcish Grunt, Troll Whelp, Orcish Archer
        team_name=Kapoue
        user_team_name=_ "Kapou'e"
        gold=400
        {BLACK_FLAG}
    [/side]

    [side]
        type=Orcish Warlord
        id=Orga
        name= _ "Orga"
        side=2
        canrecruit=yes
        recruit=Goblin Knight, Orcish Warrior, Orcish Crossbowman, Wolf Rider, Orcish Grunt, Orcish Archer, Orcish Slayer, Ogre
        {GOLD 600 700 800}
        user_team_name=_"Rebels"
        team_name=rebels
        [ai]
            turns=5-FOREVER
            aggression=0.25
            caution=0.5
            village_value=0.25
            villages_per_scout=0
        [/ai]

        # this is to make him split his troops and attack from the flanks
        # instead of a simple charge in the middle
        [ai]
            turns=1,2,3,4
            aggression=1.0
            caution=0.0
            village_value=0
            villages_per_scout=0
            grouping=no

            [avoid]
                x=24-32
                y=13-19
            [/avoid]
        [/ai]
    [/side]

    {STARTING_VILLAGES 2 31}

    [side]
        type=Orcish Grunt
        id=Knorgh
        name= _ "Knorgh"
        side=3
        canrecruit=yes
        recruit=Wolf Rider, Orcish Grunt, Orcish Archer, Young Ogre
        gold=100
        user_team_name=_"Rebels"
        team_name=rebels
    [/side]

    {STARTING_VILLAGES 3 6}

    [side]
        type=Orcish Grunt
        id=Nofhug
        name= _ "Nofhug"
        side=4
        canrecruit=yes
        recruit=Wolf Rider, Orcish Grunt, Orcish Archer, Young Ogre
        gold=100
        user_team_name=_"Rebels"
        team_name=rebels
    [/side]

    {STARTING_VILLAGES 4 6}

    [story]
        [part]
            story= _ "Kapou'e and his followers made a grueling march across the frozen Northlands. For the orcs it was a constant nightmare of freezing, marching and fighting. Food was scarce, and the stores that they managed to seize from rebellious tribes had to be strictly rationed. Many of the weaker orcs who weren't killed in combat died from exhaustion, or fell behind and froze to death."
            background=farnorth.png
        [/part]

        [part]
            story= _ "Throughout this nightmare Kapou'e drove himself and his men ruthlessly. The spring thaw would soon be upon them and with it, the human army that Earl Lanbec'h was no doubt rallying. By that time the orcs had to be united one way or another, since if they were separated and scattered, they would surely be exterminated."
            background=farnorth.png
        [/part]

        [part]
            story= _ "And so they marched on, persevering in weather that would kill even the most hardened human, and through fierce bloody battles with belligerent tribes."
            background=farnorth.png
        [/part]

        [part]
            story= _ "Finally, after over three months, Kapou'e and his exhausted but hardened army arrived at Bitok, just before the spring thaw."
            background=farnorth.png
        [/part]

        [part]
            show_title=yes
            {TO_COWARD}
        [/part]
    [/story]

    {GOT_THE_GREAT_HORDE 1}

    [event]
        name=prestart

        [unit]
            side=2
            type=Orcish Warlord
            id=Shan Taum
            name= _ "Shan Taum"
            profile=portraits/shan_taum.png
            x=12
            y=19
            random_traits=no
        [/unit]
    [/event]

    [event]
        name=start

        [recall]
            id=Grüü
            x,y=40,13
        [/recall]

        [recall]
            id=Inarix
            x,y=42,12
        [/recall]

        [recall]
            id=Jetto
            x,y=41,12
        [/recall]

        [if]
            [have_unit]
                id=Jetto
            [/have_unit]

            [else]
                [role]
                    side=1
                    type=Orcish Warlord,,Direwolf Rider,Orcish Slurbow,Saurian Flanker,Troll Warrior,Goblin Pillager,Goblin Knight,Orcish Warrior,Orcish Crossbowman,Saurian Oracle,Saurian Soothsayer,Saurian Ambusher,Troll,Troll Rocklobber,Orcish Slayer
                    role=initial_backup
                [/role]

                [recall]
                    role=initial_backup
                    x,y=41,12
                [/recall]
            [/else]
        [/if]

        [if]
            [have_unit]
                id=Inarix
            [/have_unit]

            [else]
                [role]
                    side=1
                    type=Orcish Warlord,Direwolf Rider,Orcish Slurbow,Saurian Flanker,Troll Warrior,Goblin Pillager,Goblin Knight,Orcish Warrior,Orcish Crossbowman,Saurian Oracle,Saurian Soothsayer,Saurian Ambusher,Troll,Troll Rocklobber,Orcish Slayer
                    role=initial_backup2
                [/role]

                [recall]
                    role=initial_backup2
                    x,y=42,12
                [/recall]
            [/else]
        [/if]

        [message]
            speaker="Kapou'e"
            message= _ "Good morning, Shan Taum!"
            image=portraits/kapoue-angry.png
        [/message]

        [message]
            speaker="Shan Taum"
            message= _ "What... Kapou'e! What in the frozen northlands are you doing here."
        [/message]

        [message]
            speaker="Kapou'e"
            message= _ "Oh, I just thought I would take a bracing winter stroll and visit my father's old friend. How could I not, given his impressive list of recent accomplishments."
        [/message]

        [message]
            speaker="Shan Taum"
            message= _ "Accomplishments?"
        [/message]

        [message]
            speaker="Kapou'e"
            message= _ "Well let's see, first he betrays the trust of his sworn sovereign and becomes no less then a boot-licking spy for the humans. Then goes on to engineer the death of half of the Great Council and in doing so makes himself directly responsible for the deaths of hundreds of orcs. And best of all, he is directly responsible for a bloody civil war right at the time when his people are on the edge of total extermination!"
        [/message]

        [message]
            speaker="Shan Taum"
            message= _ "........"
        [/message]

        [message]
            speaker="Kapou'e"
            message= _ "Tell you what, you ungrateful backstabbing traitor, if you surrender right now I will just cut off your head instead of torturing you to death."
        [/message]

        [message]
            speaker="Shan Taum"
            message= _ "LIES! THESE ARE ALL LIES!"
        [/message]

        [message]
            speaker="Kapou'e"
            message= _ "Right..... So what will it be, beheading or torture?"
        [/message]

        [message]
            speaker="Shan Taum"
            # wmllint: local spelling turdlicker
            message= _ "How dare you accuse me of being a traitor, you turdlicker! Orga, kill this kid for me. I'll be in my keep."
        [/message]

        [message]
            speaker=Orga
            message= _ "Yes sir!"
        [/message]

        [kill]
            id=Shan Taum
        [/kill]

        [move_unit_fake]
            type=Orcish Warlord
            side=2
            x=12,10
            y=19,20
        [/move_unit_fake]

        [message]
            speaker="Kapou'e"
            message= _ "What! Fight like an orc, you gutless coward!"
            image=portraits/kapoue-angry.png
        [/message]
    [/event]

    [event]
        name=turn 4

        [role]
            side=1
            type=Orcish Warlord, Orcish Slurbow, Direwolf Rider, Orcish Warrior, Orcish Crossbowman, Orcish Slayer, Goblin Knight, Goblin Pillager, Orcish Grunt, Orcish Archer, Orcish Assassin, Goblin Wolfrider, Saurian Flanker, Saurian Soothsayer, Saurian Oracle, Saurian Ambusher, Saurian Augur, Saurian Skirmisher
            role=Helper
        [/role]

        [message]
            role=Helper
            message= _ "Hey Chief, it's pretty odd. Shan Taum doesn't seem to have too many of his men around. He was given control of half the Great Horde. Do you think they left him?"
        [/message]

        [message]
            speaker="Kapou'e"
            message= _ "I doubt it. Shan Taum knows how to dissemble. I'll bet he sent them out like we did to clobber the other tribes to his rule. In any case, it will be convenient for us."
        [/message]
    [/event]

    [event]
        name=enemies defeated

        [message]
            speaker="Kapou'e"
            message= _ "Good, we crushed this pocket of resistance too. Now where in the world did that coward Shan Taum run off to?"
        [/message]

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

    {campaigns/Son_Of_The_Black_Eye/utils/deaths.cfg}
[/scenario]
