#textdomain wesnoth-nr
[scenario]
    id=dwarven_mines
    name= _ "To the Mines"

    {INTRO_AND_SCENARIO_MUSIC "traveling_minstrels.ogg" "wanderer.ogg"}
    {EXTRA_SCENARIO_MUSIC "nunc_dimittis.ogg"}
    {EXTRA_SCENARIO_MUSIC "loyalists.ogg"}

    [story]
        [part]
            story= _ "After reaching the dwarvish keep and tending to their wounded the humans led by Tallin and the dwarves led by Lord Hamel made council."
        [/part]
        [part]
            story={CAPTION ( _ "Hamel")} + _ "Be welcome to the Southern Tunnels, friends... or at least, what's left o' them."
            background=portraits/Hamel.png
            scale_background=no
        [/part]
        [part]
            story={CAPTION ( _ "Tallin")} + _ "Thank you, Lord Hamel. Though Knalga lies in chaos, it is a great relief to see that at least some dwarves have survived."
            background=portraits/Tallin.png
            scale_background=no
        [/part]
        [part]
            story={CAPTION ( _ "Hamel")} + _ "Thank you, human. It is likewise a great relief to see that our allies of old have managed to break their bonds, and live as free men once again."
            background=portraits/Hamel.png
            scale_background=no
        [/part]
        [part]
            story={CAPTION ( _ "Tallin")} + _ "Yes, that touches on the main reason for our visit. We have broken free, but to stay free we need better weapons and armor. Clubs and pitchforks will not carry us through the long run."
            background=portraits/Tallin.png
            scale_background=no
        [/part]
        [part]
            story={CAPTION ( _ "Tallin")} + _ "Dwarves are known to be the finest metalworkers and weapon-smiths. We were hoping that you would be able to help us."
            background=portraits/Tallin.png
            scale_background=no
        [/part]
        [part]
            story={CAPTION ( _ "Hamel")} + _ "Aye, our craft is great...but we dinna' ha' much of weapons and armor ourselves. We're but a remnant that survived the orcs' in-taking of these caves. There may be other remnants; but if there are, we dinna' yet ken of them."
            background=portraits/Hamel.png
            scale_background=no
        [/part]
        [part]
            story={CAPTION ( _ "Tallin")} + _ "If you don't mind me asking, Lord Hamel, how exactly did you manage to survive the orcish invasion? And since it was the orcs who reduced Knalga to this sorry state - where are they now? From what I have seen, it is mostly trolls and skeletons who lately haunt these caves."
            background=portraits/Tallin.png
            scale_background=no
        [/part]
        [part]
            story={CAPTION ( _ "Hamel")} + _ "Oh, there are orcs enough down here, but ye'll not likely see them; they hide from us like vermin. You see, lad, in these caves there is no more fearsome a foe then a dwarf. Not only do we move through the caves swiftly, but we know them like the backs of our hands. The orcs did indeed manage to swamp our defenses with their sheer numbers all those long years ago, but not before we surprised and slew their leader - the cursed Khazg Black-Tusk. Since then, although the orcs still foul these caves with their stench, their attacks have been uncoordinated and erratic, wi' the orcs as likely to attack each other as they are to attack us."
            background=portraits/Hamel.png
            scale_background=no
        [/part]
        [part]
            story={CAPTION ( _ "Hamel")} + _ "In more recent years, however, I ha' noticed that there have been fewer orcs and more skeletons around. The orcs seem to fear them and shy away from them whenever possible, but their troll allies are another matter. Yon trolls actually seem to take great pleasure out of crushing the skeletons to the dust and sucking any marrow that remains in their bones..."
            background=portraits/Hamel.png
            scale_background=no
        [/part]
        [part]
            story={CAPTION ( _ "Tallin")} +  _ "What is the story with those skeletons anyway? They look like they were dwarves when they lived, but now they just seem to be mindless killers, attacking anyone and anything."
            background=portraits/Tallin.png
            scale_background=no
        [/part]
        [part]
            story={CAPTION ( _ "Hamel")} + _ "In truth, we ha' no idea. They just started appearing one day some years after we were trapped here - by ones and twos in the beginning, and now by the hordes. We were fair frightened when we first encountered them, but we soon discovered they fell to our hammers just as readily as the orcs fell to our axes. So, it is not their existence I fear - for we have faced far worse trials - but their rising numbers gives cause for worry..."
            background=portraits/Hamel.png
            scale_background=no
        [/part]
        [part]
            story={CAPTION ( _ "Tallin")} + _ "Well, we are here with you now Lord Hamel, and in exchange for proper weapons, we will gladly assist you in clearing these caves of monsters."
            background=portraits/Tallin.png
            scale_background=no
        [/part]
        [part]
            story={CAPTION ( _ "Hamel")} + _ "That is the problem lad, we ha' been stranded in these tunnels for years now, almost completely cut off from sources of food or metals or tools. It ha' been as much as we could do to survive. We'll get more food again now that we can reach the surface, and tools aplenty there are in the stores where we couldna' reach while the orcs and trolls held them. But metal will be scarce for a while yet; ore will have to be brought in for smelting, first."
            background=portraits/Hamel.png
            scale_background=no
        [/part]
        [part]
            story={CAPTION ( _ "Tallin")} + _ "So, is there not any source of good ores nearby?"
            background=portraits/Tallin.png
            scale_background=no
        [/part]
        [part]
            story={CAPTION ( _ "Hamel")} + _ "Aye, there is. A few miles north of here is the place where we mined many of our raw metals. However, that place also seems to be where all those skeletons are coming from. For all that we have managed to hold the skeletons off in our own keep, I dare not venture right into their lair. To go there would mean certain death."
            background=portraits/Hamel.png
            scale_background=no
        [/part]
        [part]
            story={CAPTION ( _ "Tallin")} + _ "With all respect, my Lord Hamel, we the people from Dwarven Doors have faced certain death many times now. Rising up against the orcs was said to be certain death. Plunging headfirst into these bleak caves was said to be certain death. If our fate is death then so be it. Until that time comes, my people will fight and I will lead them to fight!"
            background=portraits/Tallin.png
            scale_background=no
        [/part]
        [part]
            story={CAPTION ( _ "Hamel")} + _ "Och, human though ye be, ye speak very like a dwarf, lad. Form, up men! To the mines! Let the guardsmen stay behind along with the noncombatants - for their safety and to hold the keep."
            background=portraits/Hamel.png
            scale_background=no
        [/part]
        [part]
            show_title=yes
            {TO_TO_THE_MINES}
        [/part]
    [/story]

    map_data="{campaigns/Northern_Rebirth/maps/to_the_mines.map}"
    {TURNS4 40 36 30 24}
    {DEFAULT_SCHEDULE}
    next_scenario=clearing_the_mines

    [side]
        type=Peasant
        id=Tallin
        name=_ "Tallin"
        canrecruit=yes
        side=1
        controller=human
        {GOLD4 250 200 150 100}
        recruit=Peasant,Woodsman,Thug,Poacher,Dwarvish Fighter,Dwarvish Thunderer,Dwarvish Scout,Footpad
    [/side]

    [side]
        type=Direwolf Rider
        id=Pruol
        name= _ "Pruol"
        canrecruit=yes
        side=2
        {GOLD4 300 350 400 500}
        recruit=Wolf Rider,Goblin Knight,Goblin Pillager
    [/side]

    [event]
        name=prestart

        {PLACE_IMAGE scenery/dwarven-doors-closed.png 18 3}

        # Since in last scenario Hamel was AI controled we need to place him again to have him in this and future scenarios
        [unit]
            type=Dwarvish Lord
            id=Hamel
            name= _ "Hamel"
            side=1
            profile=portraits/Hamel.png
            # This nice macro gives the unit silver crown.
            {IS_HERO}
            x=6
            y=23
            [modifications]
                {TRAIT_LOYAL}
                {TRAIT_STRONG}
            [/modifications]
            {IS_LOYAL}
        [/unit]

        [objectives]
            side=1
            [objective]
                description= _ "Get into the mines or..."
                condition=win
            [/objective]
            [objective]
                description= _ "Just kill the annoying little puppies"
                condition=win
            [/objective]
            [objective]
                description= _ "Death of Tallin"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Hamel"
                condition=lose
            [/objective]
            [objective]
                description= _ "Turns run out"
                condition=lose
            [/objective]
            note={NO_EARLY_FINISH_BONUS_NOTE}
        [/objectives]

        {RECALL_SUPPORTER}
        [recall]
            id=Camerin
        [/recall]
    [/event]

    [event]
        name=start
        [message]
            speaker=narrator
            message= _ "Hoping to bypass the monsters which seemed to lurk at every corner in the caves, the humans and the dwarves returned to the surface hoping to speedily reach the mines. However, once they left the caves they found that they faced a new threat."
            image=wesnoth-icon.png
        [/message]
        [message]
            speaker=Pruol
            message= _ "Hey look, there is our meat! Come on, boys, lunchtime!"
        [/message]
        [message]
            role=Supporter
            message= _ "I don't think so, buddy."
        [/message]
    [/event]

    # Two events ending the scenario, there is no chance of both of
    # them occuring in the same game. You can either kill the
    # opponent...
    [event]
        name=last breath
        [filter]
            id=Pruol
        [/filter]
        [message]
            speaker=Pruol
            message= _ "Argh! They are stronger then we thought. Someone go tell the Master..."
        [/message]
        [message]
            role=Supporter
            message= _ "What's with this 'Master' business? It's starting to make me nervous."
        [/message]
    [/event]

    # ...or get to the mines with him still alive. But without bonus in that case.
    [event]
        name=moveto
        [filter]
            x=18
            y=3
            id=Tallin
        [/filter]

        [message]
            speaker=Tallin
            message= _ "Here is the entrance to the dwarven mines. In we go!"
        [/message]
        [message]
            speaker=Pruol
            message= _ "Hey, there goes our lunch! Hmmm, they are stronger then we thought, let's go tell Master."
        [/message]
        [message]
            role=Supporter
            message= _ "What's with this whole 'Master' business? It's starting to make me nervous."
        [/message]
        [endlevel]
            result=victory
            bonus=no
        [/endlevel]
    [/event]

    # And include some death events.
#define DEFEAT_WHEN_HAMEL_DEAD
#enddef
    {campaigns/Northern_Rebirth/utils/herodeaths.cfg}
#undef DEFEAT_WHEN_HAMEL_DEAD
[/scenario]
