#textdomain wesnoth-sotbe
[scenario]
    id=01_End_of_Peace
    name= _ "End of Peace"
    map_file=01_End_of_Peace.map

    {TURNS 28 26 24}

    {DEFAULT_SCHEDULE}

    next_scenario=03_Toward_Mountains_of_Haag

    {SCENARIO_MUSIC "northerners.ogg"}
    {EXTRA_SCENARIO_MUSIC "knolls.ogg"}
    {EXTRA_SCENARIO_MUSIC "siege_of_laurelmor.ogg"}

    [event]
        name=prestart
        [objectives]
            side=1
            [objective]
                description= _ "Defeat Alber"
                condition=win
            [/objective]
            [objective]
                description= _ "Death of Kapou’e"
                condition=lose
            [/objective]

            {TURNS_RUN_OUT}

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

    # Give Kapou'e the northern tier of villages near his keep.
    {STARTING_VILLAGES 1 7}

    [item]
        x=17
        y=9
        image=items/orcish-flag.png
    [/item]
    [item]
        x=20
        y=7
        image=items/orcish-flag.png
    [/item]

    [side]
        type=Orcish Leader
        id="Kapou'e"
        name= _ "Kapou’e"
        unrenamable=yes
        profile=portraits/kapoue.webp
        side=1
        canrecruit=yes
        controller=human
        recruit= Wolf Rider, Orcish Grunt, Orcish Archer
        team_name=Kapoue
        user_team_name=_ "Kapou’e"
        {GOLD 120 110 100}
        {BLACK_FLAG}
    [/side]

    [side]
        type=Lieutenant
        id=Alber
        name= _ "Alber"
        side=2
        canrecruit=yes
#ifdef HARD
        recruit=Cavalryman, Fencer, Spearman, Bowman, Heavy Infantryman
#else
        recruit=Cavalryman, Fencer, Spearman, Bowman
#endif
        facing=sw
        team_name=Humans
        user_team_name=_ "Humans"

        [ai]
            {AI_SAVE_GOLD_DEFAULT}
        [/ai]

        {GOLD 140 180 220}

        {FLAG_VARIANT loyalist}
    [/side]

    # Alber starts with all villages south of the river.
    {STARTING_VILLAGES 2 19}

    [story]
        [part]
            story= _ "Rahul I, Lord Protector of the Northern Alliance, concluded peace with enemy orcs during the fourteenth year of his leadership. He ended a 15-year war with Black-Eye Karun, ruler of the enemy orcs. A peace treaty between the Alliance and the orcs settled their territorial disputes."
            {SOTBE_BIGMAP}
        [/part]

        [part]
            story= _ "So impressed was Rahul with the intelligence, prowess and leadership of Black-Eye Karun that he invited him to become a Lord Companion of the Northern Alliance. After much deliberation Black-Eye Karun decided to accept the offer. However, on the way to the city of Dwarven Doors — the headquarters of the Northern Alliance — Karun and his small group of bodyguards were attacked and slain to the last man. There were no survivors to confirm the incident, but it soon became believed among the orcs that the Northern Alliance had deliberately set up this ambush in order to break the unity of the orcs by slaying their strongest leader."
            {SOTBE_BIGMAP}
        [/part]

        [part]
            story= _ "The peace treaty still held however, partially because the treaty — although arranged by the Northern Alliance — was between the local earls and the orcish tribes and didn’t have any direct connection with the Northern Alliance. The other — and perhaps the main — reason why the treaty held was that with the death of the Black-Eye, the unity of the orcs was shattered and they once again descended into inner squabbling. Thus the years that followed were relatively peaceful and prosperous — at least for the humans."
            {SOTBE_BIGMAP}
        [/part]

        [part]
            # wmllint: local spelling protectorship
            story= _ "In the thirteenth year of the Lord Protectorship of Howgarth III — the successor of Rahul I — tension began to rise between orcish tribes and human earldoms in the Northlands. Famine led humans to colonize some orcish lands and push orcs into desolated hill country. The few orcish tribes who had remained part of the Alliance, feeling the pressure, either left Alliance territory or revolted and were destroyed."
            {SOTBE_BIGMAP}
        [/part]

        [part]
            story= _ "Retaliating, the orcs systematically slaughtered human colonies and villages on their lands. Then, Earl Lanbec’h — the most powerful human warlord of the North — determined to abolish the orcish menace, raised an army and conferred leadership of it to his son-in-law Baron Alber."
            {SOTBE_BIGMAP}
        [/part]

        [part]
            story= _ "Baron Alber personally led a small vanguard with the mission to establish a base inside orcish lands."
            {SOTBE_BIGMAP}
        [/part]

        [part]
            story= _ "By nightfall his troops reached a mountainous region under the authority of orcish leader Kapou’e, the son of the Black-Eye."
            {SOTBE_BIGMAP}
        [/part]
    [/story]

    {SOTBE_TRACK {JOURNEY_01_NEW} }

    [event]
        name=start
        [message]
            speaker=Alber
            message= _ "Look, friends! Those orcs don’t imagine they are living their last day. Let’s slay them and claim this land back to our people!"
        [/message]
        [message]
            speaker="Kapou'e"
            message= _ "Who is this unlicked whelp? Grunts — kill him and bring me his head!"
        [/message]
    [/event]

    [event]
        name=last breath
        [filter]
            id=Alber
        [/filter]
        [message]
            speaker=unit
            message= _ "Argh! I die! But other humans will come to avenge me, filthy orcs!"
        [/message]
        [role]
            role=second
            type=Orcish Warlord, Orcish Slurbow, Direwolf Rider, Orcish Warrior, Orcish Crossbowman, Goblin Knight, Goblin Pillager, Orcish Grunt, Orcish Archer, Wolf Rider
        [/role]

        [message]
            role=second
            message= _ "Victory!"
        [/message]

        [message]
            speaker="Kapou'e"
            message= _ "Oh, just die, human-worm."
            image=portraits/kapoue-angry.webp
        [/message]

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

        [move_unit_fake]
            type=Wolf Rider
            side=1
            x=3,3,3,3,4,5,6,7,8,8
            y=38,37,36,35,34,34,33,33,32,31
        [/move_unit_fake]

        [unit]
            type=Wolf Rider
            id=Vrag
            name= _ "Vrag"
            side=1
            x=8
            y=31
            hitpoints=12
            experience=16
        [/unit]

        [message]
            speaker=Vrag
            message= _ "(<i>Pant</i>) Chief! Chief!"
        [/message]

        [message]
            speaker="Kapou'e"
            message= _ "Speak, rider."
        [/message]

        [message]
            speaker=Vrag
            message= _ "There is a huge human army marching on us! They can’t be more than one or two days march from here."
        [/message]

        [message]
            role=second
            message= _ "Uh oh! What should we do, Chief?"
        [/message]

        [message]
            speaker="Kapou'e"
            message= _ "Don’t be afraid. If any more of these pathetic humans come, we’ll deal with them the way we did with this trash!"
        [/message]

        [message]
            speaker=Vrag
            message= _ "Uh, Chief, with all respect that army is huge! Not only that, but most of them look like tough old soldiers. It would be foolish to confront them with the forces we have on hand."
        [/message]

        [message]
            speaker="Kapou'e"
            message= _ "Hmmm..."

            [option]
                label= _ "If what you say is true, then there is no way our tribe can face such an army alone."

                [command]
                    [message]
                        speaker=Vrag
                        message= _ "Wise decision, Kapou’e. By the size of that army, this is no mere raid — it seems to me that the humans have decided to declare war on us."
                    [/message]

                    [message]
                        speaker="Kapou'e"
                        message= _ "If they want war, then they shall get war!"
                    [/message]

                    [message]
                        speaker="Kapou'e"
                        message= _ "We’ll head for Barag Gór in the lands of the free tribes and demand assistance from the Great Council. With their help, we can raise troops from the free tribes and crush these humans."
                    [/message]

                    [message]
                        role=second
                        message= _ "But the free tribes are beyond the Mountains of Haag. These mountains are infested with dwarves and wild trolls."
                    [/message]

                    [message]
                        speaker="Kapou'e"
                        message= _ "Don’t be so cowardly. The trolls have been our allies in the past — maybe they will help us. And what true orc has ever feared dwarvish dirt-grubbers? Move it! We leave within the hour. If you’re not ready by then, stay and die."
                    [/message]

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

            [option]
                label= _ "Bah, humans? No better than goblins. We’ll break them!"

                [command]
                    [message]
                        speaker="Kapou'e"
                        message= _ "Prepare for battle, my grunts! We’ll show these humans what happens when you try to steal from Kapou’e, Son of the Black-Eye!"
                        image=portraits/kapoue-angry.webp
                    [/message]

                    [endlevel]
                        result=victory
                        bonus=yes
                        next_scenario=02_The_Human_Army
                        {NEW_GOLD_CARRYOVER 40}
                    [/endlevel]
                [/command]
            [/option]
        [/message]
    [/event]

    {KAPOUE_DEATH}
[/scenario]
