#textdomain wesnoth-thot
[scenario]
    name=_"At The East Gate"
    id="01_At_The_East_Gate"
    next_scenario="02_Reclaiming_The_Past"

    map_data="{@campaigns/The_Hammer_of_Thursagan/maps/at_the_east_gate.map}"

    # This battle should be a relatively small-scale meeting engagement
    # in country that is wooded and mountainous, but scattered with
    # small human and dwarvish farms.  Aiglondur and his guards should
    # start from an underground keep on the west edge of the map, set
    # into the east edge of impassable mountains and marked "East Gate".

    {DEFAULT_SCHEDULE}

    {DEFAULT_MUSIC_PLAYLIST}
    {VICTORY_AND_DEFEAT_MUSIC}

    {TURNS 32 30 28}			# BALANCE

    [label]
        x,y=2,15
        text=_"East Gate"
    [/label]

    [side]
        type="Dwarvish Fighter"
        description="Aiglondur"
        profile=portraits/aiglondur.png
        side="1"
        canrecruit="1"
        [modifications]
            {TRAIT_RESILIENT}
            {TRAIT_INTELLIGENT}
        [/modifications]
        controller="human"
        {GOLD 175 150 125}			# BALANCE
        team_name="goodies"
        fog="no"
        share_view="no"
        shroud="no"
        share_maps="no"
        user_description=_"Aiglondur"
        villages_per_scout="0"
        leader_value="3"
        village_value="1"
        income="0"
        recruit="Dwarvish Fighter, Dwarvish Thunderer, Dwarvish Guardsman"
    [/side]

    [side]
        type="Orcish Warrior"
        description="Bashnark"
        side="2"
        canrecruit="1"
        {GOLD 140 165 190}	# BALANCE
        team_name="baddies"
        controller="ai"
        fog="no"
        share_view="no"
        shroud="no"
        share_maps="no"
        user_description=_"Bashnark"
        income="0"
        recruit="Orcish Archer, Orcish Grunt, Wolf Rider"
        [ai]
            grouping="offensive"
            attack_depth="5"
        [/ai]
    [/side]

    [event]
        name="prestart"

        # {SCATTER_IMAGE (terrain=Gg) 20 scenery/pine1.png}
        {SCATTER_IMAGE (terrain=Gs^Fp) 12 scenery/oak-leaning.png}

        [unit]
            type=Gryphon Rider
            description=Pelmathidrol
            user_description=_ "Pelmathidrol"
            side=1
            [modifications]
                {TRAIT_LOYAL}
            [/modifications]
            x,y=1,15
        [/unit]

        [objectives]
            side="1"
            silent="no"
            [objective]
                description=_"Defeat Bashnark"
                condition="win"
            [/objective]
            [objective]
                description=_"Death of Aiglondur"
                condition="lose"
            [/objective]
            [objective]
                description=_"Time runs out"
                condition="lose"
            [/objective]
        [/objectives]
    [/event]

    [story]
        [part]
            background=maps/wesnoth.png
            music=northerners.ogg
            story= _ "In the first few years after the founding of the Northern Alliance, the dwarves of Knalga and the human population of Dwarven Doors were fully preoccupied with rebuilding what had been broken by the long orcish occupation.  But soon enough they prospered once again. The dwarves begin mining their past for inspiration in ways to rebuild Knalga so it would be even greater than before, and began also reaching out for contact with their scattered kinfolk."
        [/part]
        [part]
            background=maps/wesnoth.png
            music=northerners.ogg
            story= _ "But the threat from hostile orcs, wild men, and remnant undead was not yet ended. The dwarves kept strong guards on the approaches to Knalga. In the year 550 after the founding of Wesnoth, the captain of the East Gate received a warning that a small band of rogue orcs had been sighted."
        [/part]
    [/story]

    [event]
        name="start"

        [message]
            description="Aiglondur"
            message=_"Up axes! We will be the Northern Alliance's arm today,
and kill or scatter these invaders."
        [/message]
        [message]
            description="Bashnark"
            message=_"We are the true orcs, not the weaklings who ally with human-worms and stinky-midgets like you. You will be meat for our wolves."
        [/message]
    [/event]

    [event]
        name="die"
        [filter]
            description="Bashnark"
        [/filter]
        [message]
            speaker="second_unit"
            message=_"What is this? Their vanquished leader wears a cloak-pin of dwarvish make.  And it bears a loremaster's emblem."
        [/message]
        [message]
            description="Aiglondur"
            message=_"The maker's mark is strange to me. We had best consult the lord Hamel."
        [/message]
        [endlevel]
            result=victory
        [/endlevel]
    [/event]
[/scenario]
