#textdomain wesnoth-sotbe
[scenario]
    id=End_Of_Peace
    name= _ "End Of Peace"
    map_data="{campaigns/Son_Of_The_Black_Eye/maps/End_Of_Peace.map}"

    {TURNS 34 30 26}

    {DEFAULT_SCHEDULE}

    next_scenario="Toward_Mountains_of_Haag"

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

    [event]
        name=prestart
        [objectives]
            side=1
            [objective]
                description= _ "Defeat Albert"
                condition=win
            [/objective]
            [objective]
                description= _ "Death of Kapou'e"
                condition=lose
            [/objective]
            [objective]
                description= _ "Turns run out"
                condition=lose
            [/objective]

            note={EARLY_FINISH_BONUS_NOTE}+{NEW_GOLD_CARRYOVER_NOTE_40}
        [/objectives]
    [/event]

    # Give Kapou'e the northern tier of villages near his keep.
    {STARTING_VILLAGES 1 7}
    {STARTING_VILLAGES_AREA 1 28 3 3}
    {STARTING_VILLAGES_AREA 1 6 9 3}

    [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"
        profile=portraits/kapoue.png
        side=1
        canrecruit=yes
        controller=human
        recruit= Wolf Rider, Orcish Grunt, Orcish Archer
        team_name=Kapoue
        user_team_name=_ "Kapou'e"
        gold=100
        {BLACK_FLAG}
    [/side]

    [side]
        type=Lieutenant
        id=Albert
        name= _ "Albert"
        side=2
        canrecruit=yes
        facing=sw
        recruit=Cavalryman, Fencer, Spearman
        team_name=Humans
        user_team_name=_ "Humans"
        [ai]
            recruitment_pattern=scout,fighter
        [/ai]
#ifdef EASY
        gold=100
#endif

#ifdef NORMAL
        gold=150
#endif

#ifdef HARD
        gold=210
#endif
    [/side]

    # Albert 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 4th 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."
            background=farnorth.png
        [/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."
            background=farnorth.png
        [/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."
            background=farnorth.png
        [/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."
            background=farnorth.png
        [/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 Albert."
            background=farnorth.png
        [/part]

        [part]
            story= _ "Baron Albert personally led a small vanguard with the mission to establish a base inside orcish lands."
            background=farnorth.png
        [/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."
            background=farnorth.png
        [/part]

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

    [event]
        name=start
        [message]
            speaker=Albert
            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=Albert
        [/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 Warrior, 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.png
        [/message]

        [kill]
            id=Albert
            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= _ " *pant* 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 then 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 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]
                message= _ "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]
                message= _ "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.png
                    [/message]

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

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