#textdomain wesnoth-nr

[scenario]
    id=01_Breaking_the_Chains
    name= _ "Breaking the Chains"
    map_data="{campaigns/Northern_Rebirth/maps/01_Breaking_the_Chains.map}"
    {TURNS 41 31 26}
    next_scenario=02_01_Infested_Caves

    {DEFAULT_SCHEDULE}

    {SCENARIO_MUSIC       breaking_the_chains.ogg}
    {EXTRA_SCENARIO_MUSIC northerners.ogg}
    {EXTRA_SCENARIO_MUSIC the_city_falls.ogg}

    [story]
        [part]
            story= _ "Far to the north of Wesnoth, and hard by the dwarven caves of Knalga, there was once a thriving mixed community known as Dwarven Doors. Food, wood, and cloth from all over Wesnoth and many elvish lands as well were brought here to be sold to the dwarves, while ores, metals and worked dwarven manufactures were bought here to be traded throughout the surface nations. Dwarves and humans worked and lived side by side; even the elves who came to trade mingled more with the other kindred races than was common elsewhere. Dwarven Doors grew populous and wealthy."
            {NR_BIGMAP}
            {PROLOGUE_STAGE1}
        [/part]
        [part]
            story= _ "The dwarves of Knalga, cannily reckoning the gains from trade, built strong fortifications around Dwarven Doors. The people who called it home, dwarven and human alike, knew that the wealth of their city might arouse envy from afar — hence they kept their weapons sharp, and reckoned themselves well able to fight off any bandit gang or petty warlord that could arise in the thinly-settled Northlands."
            {NR_BIGMAP}
            {PROLOGUE_STAGE1_END}
        [/part]
        [part]
            story= _ "For many years it was indeed so. Dwarven Doors was a peaceful and prosperous place. Until the orcs came..."
            {NR_BIGMAP}
            {PROLOGUE_STAGE1_END}
        [/part]
        [part]
            story= _ "The raids were mere probes, at first, and the orcs mere rabble. But they grew more numerous, and threatening, and the raiding parties became war-bands and then companies. Then there arose a great warlord among the Bloody Sword tribe, the chieftain called Khazg Black-Tusk; and he raised an army, and besieged Dwarven Doors."
            {NR_BIGMAP}
            {PROLOGUE_STAGE1_END}
        [/part]
        [part]
            # wmllint: local spelling unthreatened
            story= _ "It was a time of doom and great deeds, of fire and blood and slaughter. The men and dwarves of the city fought valiantly. But there were always, it seemed, more orcs to replace the slain, while the defenders could find no succor. Pleas for help went unheeded in other lands, for they were far away and felt unthreatened by the orcs, and were wrapped up in their own affairs and struggles."
            {NR_BIGMAP}
            {PROLOGUE_STAGE1_END}
        [/part]
        [part]
            story= _ "After a year and a day of grim battle the city fell. Its streets ran with gore. The dwarves were pushed back into the caverns of Knalga, while the humans of Dwarven Doors who survived the sack were enslaved by the orcs. Cut off from contact with the surface, the dwarves of Knalga fought on, but knew their utter subjugation could not be averted forever."
            {NR_BIGMAP}
            {PROLOGUE_STAGE1_END}
        [/part]
        [part]
            story= _ "Dark years passed; human generations grew up in slavery, and came near to forgetting that their ancestors had been free — and might have completely forgotten were it not for a fateful day in 518YW. That day that changed the lives of the people of Dwarven Doors — forever."
            {NR_BIGMAP}
            {PROLOGUE_STAGE1_END}
        [/part]
        [part]
            # wmllint: local spelling dispiritedly
            story= _ "It was an early spring day like any other; the humans — joyless beneath the orcish whip — were dispiritedly planting the yearly crop. All at once, the war-drums of the orcs began pounding; harsh war-cries sounded as orcs mustered to gather their weapons and man their posts. Startled, the peasants looked around in alarm, and that was when they saw him."
            {NR_BIGMAP}
            {PROLOGUE_STAGE1_END}
        [/part]
        [part]
            story= _ "He came charging out of the woods, his cape streaming in the breeze, his sword flashing quicker than thought, and all around him, the hated orcs fell. To his right fought an elderly mage whose deep voice boomed incantations over the clamor of the battle while the very earth shook with the power of his spells. To his left, glowing with faerie fire, was a great lord of the elves. They were followed closely and supported by a small but powerful elvish army."
            {NR_BIGMAP}
            {PROLOGUE_STAGE1_END}
        [/part]
        [part]
            # po: tyrant -> Queen Asheviere from Heir to the Throne.
            story= _ "Word quickly spread among the humans that this hero was none other than Prince Konrad of Wesnoth, faring to the ruins of Knalga to retrieve the Sceptre of Fire and use it to save his homeland from the rule of a tyrant, and they stood, rooted to their places in awe."
            {NR_BIGMAP}
            {PROLOGUE_STAGE1_END}
        [/part]
        [part]
            story= _ "As quickly as it had begun, it was over. Konrad reached the entrance to the tunnels and ushered his men through. Then he turned one last time to face the peasants. Raising his sword in salute and farewell, he called out to them: <i>“Hold fast your hope, for one day you shall be free!”</i> Then he was gone."
            {NR_BIGMAP}
            {PROLOGUE_STAGE1_END}
        [/part]
        [part]
            story= _ "After that day, nothing could be the same. Hope rose in their hearts like a flame long-smothered but rekindled. The brightest and boldest of them began to plan and to train in secret. And the orcish masters, grown stupid from their own arrogance, did not see."
            {NR_BIGMAP}
            {PROLOGUE_STAGE1_END}
        [/part]
        [part]
            # wmllint: local spelling weaponsmith
            story= _ "There was one among these peasants named Tallin. He had been a little child, barely out of his mother’s arms, when Konrad broke the Orcish host. But he never forgot that day. His father was a weaponsmith, his family used less brutally than most because the orcish masters put more value on that craft. In secret, his mother even taught him letters. As the boy grew to young manhood, he could touch blades, and dream. And he did."
            {NR_BIGMAP}
            {PROLOGUE_STAGE1_END}
        [/part]
        [part]
            story= _ "Then one day Al’Tar, the current ‘master’ of Dwarven Doors, was attacked by a neighboring tribe of orcs. Tallin seized his moment. Using knowledge born of years of watching, listening and planning, he managed to steal a few weapons and a small amount of Al’Tar’s gold. He fled to an abandoned ruin in the forest to rally his fellow peasants."
            {NR_BIGMAP}
            {REVOLT_STAGE1}
            show_title=yes
        [/part]
    [/story]

    # Define player’s side. Recruits only peasants and woodsmen.
    # wmllint: validate-off
    [side]
        side=1
        controller=human
        recruit=Peasant,Woodsman
        {GOLD 100 75 60}
        team_name=rebels
        user_team_name= _ "Rebels"
        {FLAG_VARIANT6 ragged}

        # wmllint: recognize Tallin
        {CHARACTER_STATS_TALLIN}

        [unit]
            type=Peasant
            id=Zlex
            name= _ "Zlex"
            x,y=6,24
            {IS_LOYAL}
            role=Supporter
            [modifications]
                {TRAIT_LOYAL}
                {TRAIT_RESILIENT}
            [/modifications]
        [/unit]
    [/side]
    # wmllint: validate-on

    # First of the orcish opponents, recruits simple L1 mix with no trolls
    [side]
        side=2
        controller=ai
        recruit=Orcish Grunt,Orcish Archer,Wolf Rider
        {GOLD 175 200 225}
        team_name=slavers
        user_team_name= _ "Al'Tar"
        {FLAG_VARIANT6 ragged}

        type=Orcish Warlord
        id="Al'Tar"
        name= _ "Al’Tar"
        canrecruit=yes

        [ai]
            village_value=0.75	# Weakened desire to capture villages
            caution=0.50	    # Wants to survive the duel
            [goal]
                name=target
                [criteria]
                    side=3
                [/criteria]
                value=3
            [/goal]
            [goal]
                name=target
                [criteria]
                    side=1
                [/criteria]
                value=1
            [/goal]
        [/ai]
    [/side]

    # Second orcish opponent
    [side]
        side=3
        controller=ai
        recruit=Orcish Grunt,Orcish Archer,Wolf Rider
        {GOLD 175 200 225}
        team_name=invaders
        user_team_name= _ "Garrugch"
        {FLAG_VARIANT6 ragged}

        type=Orcish Warrior
        id=Garrugch
        name= _ "Garrugch"
        canrecruit=yes

        [ai]
            leader_value=5	    # Strong desire to kill Al'Tar
            village_value=0.75	# Weakened desire to capture villages
            caution=0.50	    # Wants to survive the duel
            [goal]
                name=target
                [criteria]
                    side=2
                [/criteria]
                value=3
            [/goal]
            [goal]
                name=target
                [criteria]
                    side=1
                [/criteria]
                value=1
            [/goal]
        [/ai]
    [/side]

    # Empty side to accommodate cave trolls
    [side]
        side=4
        no_leader=yes
        hidden=yes
        color=brown
    [/side]

    {STARTING_VILLAGES 1 6}
    {STARTING_VILLAGES 2 7}
    {STARTING_VILLAGES 3 6}

    {PLACE_IMAGE scenery/dwarven-doors-closed.png 32 4}

    [event]
        name=prestart

        [objectives]
            side=1
            [objective]
                description= _ "Defeat enemy leaders"
                condition=win
            [/objective]
            [objective]
                description= _ "Death of Tallin"
                condition=lose
            [/objective]

            {TURNS_RUN_OUT}

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

    [event]
        name=start

        [message]
            speaker=Tallin
            message= _ "This challenger has made the orcs careless — I managed to sneak in and filch the key to the storerooms. Come with me lads, and grab some weapons! Let them hack at each other, we can use this as our chance to get rid of this scum once and for all. Who's with me?"
        [/message]

        [message]
            speaker=Zlex
            message= _ "Brave words, Tallin, but if I didn't know you better I'd say you were moon-touched. These are not weapons, just pitchforks and hunting bows. We have no armor, no training. Are we supposed to beat them with bad breath and colorful language?"
        [/message]

        [message]
            speaker=Tallin
            message= _ "Well, those things will certainly get their attention, and there’s nothing wrong with pitchforks. We easily outnumber the orcs, not to speak of the fact that they are killing each other."
        [/message]

        [message]
            speaker=Zlex
            message= _ "But their wolves run faster than we can walk, and their swords are sharper than these farm tools."
        [/message]

        [message]
            speaker=Tallin
            message= _ "Our numbers are our strength. Stay shoulder-to shoulder with the man next to you; never get isolated, especially not on open ground. Swarm them — surround them, five or six to one, and they will go down."
        [/message]

        [message]
            speaker=Zlex
            message= _ "But still, Tallin, this is going to be a slaughter."
        [/message]

        [message]
            speaker=Tallin
            message= _ "But, but, but... Are you full of nothing but doubts? (<i>Sigh</i>) Yes, it will be a massacre. But would you rather live as slaves to the orcs forever?"
        [/message]

        [message]
            speaker=Zlex
            message= _ "Never! I would rather die!"
        [/message]

        [message]
            speaker=Tallin
            message= _ "Then what choice do we have? This may be the only chance we ever get, it’s time to fight!"
        [/message]

        [message]
            speaker="Al'Tar"
            message= _ "You dare greatly, you miserable excuse for an orc! How dare you step onto my land!"
        [/message]

        [message]
            speaker=Garrugch
            # wmllint: local spelling slavemaster
            message= _ "Idle threats. Time as a slavemaster has made you weak. You have the strength of a goblin, and the brains to match. This land now belongs to my master. Surrender now and he might let you be (<i>his</i>) slave."
        [/message]

        [message]
            speaker="Al'Tar"
            # wmllint: local spelling Pah
            message= _ "Pah! Grunts, attack! Whoever brings me the head of Garrugch will be rewarded in gold!"
        [/message]
    [/event]

    # Flavor event. On first player attack against the wardens (side 2) perform a dialog.
    [event]
        name=attack
        [filter]
            side=1
        [/filter]
        [filter_second]
            side=2
        [/filter_second]

        [message]
            speaker=second_unit
            message= _ "Ack! These bloody slaves are always getting in the way. Cut them down!"
        [/message]

        [message]
            speaker=Garrugch
            message= _ "Look at that, the weakling Al’Tar can’t even keep his slaves under control. This will prove easier than I thought!"
        [/message]
    [/event]

    # Spawn trolls from the caves, 2 whelps
    [event]
        name=moveto
        [filter]
            side=1
            x,y=32,4
        [/filter]

        [message]
            speaker=unit
            message= _ "This is one of the entrances to the dwarven caves."
        [/message]

        [message]
            speaker=unit
            # wmllint: local spelling Aaaaah
            message= _ "Aaaaah! Trolls! The caves are infested with trolls!"
        [/message]

        {NOTRAIT_UNIT 4 "Troll Whelp" 31 4}
        {NOTRAIT_UNIT 4 "Troll Whelp" 33 4}
    [/event]

    # Victory event when both warlords died.
    [event]
        name=enemies defeated

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

    [event]
        name=victory

        [message]
            speaker=Tallin
            message= _ "<i>Yes</i>! We did it! We are free!"
        [/message]

        [move_unit_fake]
            type=Orcish Grunt
            side=3
            x=35,33
            y=16,16
        [/move_unit_fake]

        [unit]
            type=Orcish Grunt
            name= _ "Khrulg"
            id=Khrulg
            side=3
            x,y=33,16
        [/unit]

        [message]
            speaker=Khrulg
            message= _ "Garrugch failed in mission, but Al’tar dead by peasant slaves. Better tell the Master."
        [/message]

        [message]
            speaker=Khrulg
            message= _ "Master needs more meat for wolves. Peasants good meat."
        [/message]

        [kill]
            id=Khrulg
        [/kill]

        [move_unit_fake]
            type=Orcish Grunt
            side=3
            x=33,35
            y=16,16
        [/move_unit_fake]

        [redraw][/redraw]
    [/event]

    # Death events

    # Death of Tallin. Equals defeat.
    [event]
        name=last breath
        [filter]
            id=Tallin
        [/filter]

        [message]
            speaker=Tallin
            message= _ "I die now, you orcish scum, but I die free! More will come after me. We will rise again until our vengeance has wiped your stain from our land!"
        [/message]
    [/event]

    [event]
        name=die
        [filter]
            id=Tallin
        [/filter]

        [message]
            speaker="Al'Tar"
            message= _ "Pah! Grunts, put the rest of those peasant rabble back in chains."
        [/message]

        [endlevel]
            result=defeat
        [/endlevel]
    [/event]

    [event]
        name=last breath
        [filter]
            id="Al'Tar"
        [/filter]

        [message]
            speaker=unit
            message= _ "What the...? (<i>Gurgle</i>) Killed... by... slaves?"
        [/message]

        [message]
            speaker=second_unit
            message= _ "(<i>Stab</i>)"
        [/message]

        [message]
            speaker=unit
            message= _ "Ugh!"
        [/message]
    [/event]

    [event]
        name=die
        [filter]
            id="Al'Tar"
        [/filter]

        [message]
            speaker=second_unit
            message= _ "Not a very bright one, was he?"
        [/message]
    [/event]

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

        [message]
            speaker=unit
            message= _ "No! I have failed in my mission!"
        [/message]
    [/event]

    [event]
        name=die
        [filter]
            id=Garrugch
        [/filter]

        [message]
            speaker=second_unit
            message= _ "Mission? What mission?"
        [/message]
    [/event]

    {SUPPORTER_DEATH_HANDLER}
[/scenario]
