#textdomain wesnoth-sotbe
[scenario]
    id=09_Shan_Taum_the_Smug
    name= _ "Shan Taum the Smug"
    map_data="{campaigns/Son_Of_The_Black_Eye/maps/09_Shan_Taum_the_Smug.map}"
    turns=20

    {DEFAULT_SCHEDULE}

    next_scenario=10_Saving_Inarix

    {SCENARIO_MUSIC "the_city_falls.ogg"}
    {EXTRA_SCENARIO_MUSIC "battle.ogg"}

    [event]
        name=prestart
        [objectives]
            side=1
            [objective]
                description= _ "Survive the Shan Taum menace for 20 turns"
                condition=win
                show_turn_counter=yes
            [/objective]
            {ALTERNATIVE_OBJECTIVE_BONUS ( _ "Defeat Shan Taum")}
            [objective]
                description= _ "Death of Kapou’e"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Grüü"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of a Shaman"
                condition=lose
            [/objective]

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

    [side]
        side=1
        id="Kapou'e"
        type=Orcish Leader
        controller=human
        team_name=Kapoue
        user_team_name=_ "Kapou’e"
        gold=200
        {BLACK_FLAG}
    [/side]

    {STARTING_VILLAGES 1 4}

    [side]
        type=Orcish Warlord
        id=Shan Taum
        name= _ "Shan Taum"
        profile=portraits/shan_taum.png
        side=2
        canrecruit=yes
        facing=sw
        [ai]
            aggression=1.0
        [/ai]
        recruit=Ogre, Orcish Grunt, Orcish Warrior, Orcish Crossbowman, Orcish Assassin, Wolf Rider
        {GOLD 400 500 600}
    [/side]

    {STARTING_VILLAGES 2 28}

    [story]
        [part]
            story= _ "After clearing out the elves from the Silent Forest, Kapou’e and his party set out on the last leg of their journey. Within a few days they finally reached the city of Lmarig in the Mourned Hills, which was then ruled by Shan Taum the Smug."
            {SOTBE_BIGMAP}
            {JOURNEY_08_OLD}
        [/part]
    [/story]

    {SOTBE_TRACK {JOURNEY_09_NEW} }

    [event]
        name=start
        [recall]
            id=Grüü
        [/recall]
        [recall]
            id=Jetto
        [/recall]
        [recall]
            id=Pirk
        [/recall]
        [recall]
            id=Gork
        [/recall]
        [recall]
            id=Vraurk
        [/recall]

        [message]
            speaker="Kapou'e"
            image=portraits/kapoue.png~FL()~RIGHT()
            message= _ "At last, here are the Mourned Hills! We can only hope for the best."
        [/message]
        [message]
            speaker="Grüü"
            image=portraits/gruu.png~FL()~RIGHT()
            message= _ "Why?"
        [/message]
        [message]
            speaker="Gork"
            image=portraits/old_orcish_shaman.png~FL()~RIGHT()
            message= _ "You are a troll, so you don’t know. These lands are ruled by Shan Taum the Smug, who was a rival of Black-Eye Karun."
        [/message]
        [message]
            speaker="Pirk"
            image=portraits/orcish_shaman.png~FL()~RIGHT()
            message= _ "I doubt he would welcome the son of the Black-Eye."
        [/message]
        [message]
            speaker="Shan Taum"
            message= _ "Who is that? Kapou’e! What are you doing in my lands, you weakling runt?"
        [/message]
        [message]
            speaker="Kapou'e"
            image=portraits/kapoue.png~FL()~RIGHT()
            message= _ "Hold on, Shan Taum. We seek the Great Council, not a quarrel with you."
        [/message]
        [message]
            speaker="Shan Taum"
            # wmllint: local spelling Bwahaha
            message= _ "Bwahaha! You are nothing! Where is your land? You became a beggar. You are as pathetic as your father!"
        [/message]
        [message]
            speaker="Kapou'e"
            image=portraits/kapoue-angry.png~FL()~RIGHT()
            message= _ "How can you talk that way about my father, you miserable coward?! I’ll make a mug from your skull!"
        [/message]
        [message]
            speaker="Shan Taum"
            message= _ "Really? What would you drink with it? Mint cordial?"
        [/message]
        [message]
            speaker="narrator"
            image=wesnoth-icon.png
            message= _ "Exasperated, Kapou’e launched an attack on his fellow orc Shan Taum the Smug."
        [/message]
    [/event]

    [event]
        name=victory cutscene

        {OLD_ORCISH_SHAMAN 1 32 30 Fabstep _"Fabstep"}
        {OLD_ORCISH_SHAMAN 1 32 30 Klebar _"Klebar"}
        {OLD_ORCISH_SHAMAN 1 32 30 Echarp _"Echarp"}
        [message]
            speaker="Echarp"
            message= _ "What is this? Are you mad?! Humans are to besiege our fortress at Prestim and you are fighting each other?!"
        [/message]
        [message]
            speaker="Kapou'e"
            #wmllint: local spelling ermmm
            message= _ "Well, ermmm..."
        [/message]
        [message]
            speaker="Echarp"
            message= _ "Kapou’e, rumors tell of you making a long trip to seek assistance from us, and escorting Pirk, Gork and Vraurk. The council is grateful for that."
        [/message]
        [message]
            speaker="Fabstep"
            message= _ "I know what you want from us but I’m afraid we can’t help you."
        [/message]
        [message]
            speaker="Kapou'e"
            message= _ "But my people..."
        [/message]
        [message]
            speaker="Echarp"
            message= _ "You don’t understand. Orcs have been divided for ages. The only one who gave us some unity was your father, Black-Eye Karun. Hearing rumors of your exploits, we understood you are a worthy son of your father."
        [/message]
        [message]
            speaker="Vraurk"
            message= _ "This is true. Now we are pressed from all sides by humans and elves; we need a leader that can unite all banners. This one is <i>you</i>!"
        [/message]
        [message]
            speaker="Kapou'e"
            message= _ "Thank you."
        [/message]
        [message]
            speaker="Grüü"
            message= _ "Did you hear? There is a battle waiting for us at Prestim!"
        [/message]
        [message]
            speaker="Echarp"
            message= _ "Kapou’e, if Prestim falls, humans will have a strong bridgehead on this side of the river and your people won’t be safe. You are the only one that can help us defend Prestim!"
        [/message]
        [message]
            speaker="Pirk"
            message= _ "Leave your people here Kapou’e — they are safe for the moment — and go defend Prestim. In the meantime, now that the council is complete again, we will decide. We may have to form the Great Horde again, and give you the leadership of it."
        [/message]
        [kill]
            id="Pirk"
        [/kill]
        [kill]
            id="Gork"
        [/kill]
        [kill]
            id="Vraurk"
        [/kill]
        [kill]
            id="Fabstep"
        [/kill]
        [kill]
            id="Klebar"
        [/kill]
        [kill]
            id="Echarp"
        [/kill]
    [/event]

    [event]
        name=time over

        [fire_event]
            name=victory cutscene
        [/fire_event]

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

    [event]
        name=last breath

        [filter]
            id="Shan Taum"
        [/filter]

        [message]
            speaker="Shan Taum"
            message= _ "Nooo! Don’t kill me, I surrender to you little earthworm."
        [/message]

        {VARIABLE unit.hitpoints 1}

        [unstore_unit]
            variable=unit
            find_vacant=no
        [/unstore_unit]

        [fire_event]
            name=victory cutscene
        [/fire_event]

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

    {HERO_DEATHS}
[/scenario]
