#textdomain wesnoth-aoi
[scenario]
    name=_"Valley of Trolls"
    id="4_Valley_of_Trolls"
    map_data="{campaigns/An_Orcish_Incursion/maps/valley_of_trolls.map}"

    {DEFAULT_SCHEDULE}

#define AVOID_CAVEDOORS
    # The edges of the cave passages and mountains on both troll lairs.
    # Keep the trolls from landing these, so they have to come
    # out one at a time through the center hex.  Players
    # can use these to get in, solving what would otherwise
    # be an imbalance heavily favoring the trolls.
    [avoid]
        x=15,15,16,16,17,17,  4, 4, 5, 5, 6, 6
        y=3, 4, 3,  5, 5, 6, 12,13,13,15,14,15
    [/avoid]
#enddef

    [side]
        type="Elvish Lord"
        description="Erlornas"
        side="1"
        canrecruit="1"
        controller="human"
        shroud="yes"
        recruit="Elvish Scout,Elvish Fighter,Elvish Archer,Elvish Shaman"
    [/side]
    [side]
        type="Troll Warrior"
        description="Gurk"
        side="2"
        canrecruit="1"
#ifdef HARD
        gold="50"
        recruit="Troll, Troll Rocklobber"
#endif
#ifdef NORMAL
        gold="40"
        recruit="Troll Whelp,Troll"
#endif
#ifdef EASY
        gold="30"
        recruit="Troll Whelp,"
#endif
        team_name="baddies"
        controller="ai"
        fog="no"
        share_view="no"
        shroud="no"
        share_maps="no"
        villages_per_scout="4"
        leader_value="3"
        village_value="1"
        user_description=_"Gurk"
        income="7"
        [ai]
            aggression="0.8"
            turns="4,5,6,10,11,12,16,17,18,22,23,24"
            grouping="offensive"
            attack_depth="5"
            {AVOID_CAVEDOORS}
        [/ai]
        [ai]
            aggression="-0.1"
            turns="1,2,3,7,8,9,13,14,15,19,20,21"
            grouping="offensive"
            attack_depth="5"
            {AVOID_CAVEDOORS}
        [/ai]
    [/side]
    [side]
        type="Troll Warrior"
        description="Hrugu"
        side="3"
        canrecruit="1"
#ifdef HARD
        gold="50"
        recruit="Troll, Troll Rocklobber"
#endif
#ifdef NORMAL
        gold="40"
        recruit="Troll Whelp, Troll"
#endif
#ifdef EASY
        gold="30"
        recruit="Troll Whelp"
#endif
        team_name="baddies"
        controller="ai"
        fog="no"
        share_view="no"
        shroud="no"
        share_maps="no"
        user_description=_"Hrugu"
        income="7"
        [ai]
            aggression="0.8"
            turns="4,5,6,10,11,12,16,17,18,22,23,24"
            grouping="offensive"
            attack_depth="5"
            {AVOID_CAVEDOORS}
        [/ai]
        [ai]
            aggression="-0.1"
            turns="1,2,3,7,8,9,13,14,15,19,20,21"
            grouping="offensive"
            attack_depth="5"
            {AVOID_CAVEDOORS}
        [/ai]
    [/side]
    [event]
        name="prestart"
        [remove_shroud]
            x="1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,14,14,15,15,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,16,16,16,16,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,4,4,4,5,5,5,6,6,6,7,7,7,8,8,8,9,9,9,10,10,10,11,11,11,12,12,12,13,13,13,14,14,14,15,15,16,16,17,17,18,18,20,20,20,2,2,2,3,3,3,4,4,4,3,16,4,4,7,7,7,7,8,8,8,8,9,9,9,9,10,10,10,10,11,11,11,11,12,12,12,12,4,16,6,6"
            y="1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,3,4,5,6,7,8,9,10,11,12,13,3,4,5,6,7,8,9,10,11,12,13,3,4,5,6,7,8,9,10,11,12,13,3,4,5,6,7,8,9,10,11,12,13,3,4,5,6,7,8,9,10,11,12,13,3,4,5,6,7,8,9,10,11,12,13,3,4,5,6,7,8,9,10,11,12,13,3,4,5,6,7,8,9,10,11,12,13,3,4,5,6,7,8,9,10,11,12,13,3,4,5,6,7,8,9,10,11,12,13,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,7,8,9,10,11,12,13,14,15,16,17,18,7,8,9,10,11,12,13,14,15,16,17,18,7,8,9,10,11,12,13,14,15,16,17,18,12,13,14,15,16,17,18,19,20,18,19,20,18,19,20,18,19,20,18,19,20,18,19,20,18,19,20,18,19,20,18,19,20,18,19,20,18,19,20,18,19,20,19,20,19,20,19,20,19,20,18,19,20,9,10,11,9,10,11,9,10,11,3,6,7,8,14,15,16,17,14,15,16,17,14,15,16,17,14,15,16,17,14,15,16,17,14,15,16,17,3,5,17,14"
        [/remove_shroud]
        [objectives]
            side="1"
            note=_"Hint:
Trolls are very dangerous if they can attack as a group. Use the cave-mouths as bottlenecks to fight them one at a time."
            silent="no"
            [objective]
                description=_"Defeat all enemy leaders"
                condition="win"
            [/objective]
            [objective]
                description=_"Death of Erlornas"
                condition="lose"
            [/objective]
            [objective]
                description=_"Time runs out"
                condition="lose"
            [/objective]
        [/objectives]
#ifdef EASY
        [set_variable]
            name="difficulty"
            value="0"
        [/set_variable]
#endif
#ifdef NORMAL
        [set_variable]
            name="difficulty"
            value="1"
        [/set_variable]
#endif
#ifdef HARD
        [set_variable]
            name="difficulty"
            value="2"
        [/set_variable]
#endif
    [/event]
    [event]
        name="start"
        [role]
            type="Elvish Sharpshooter,Elvish Marksman,Elvish Champion,Elvish Marshal,Elvish Captain,Elvish Hero,Elvish Avenger,Elvish Ranger,Elvish Shyde,Elvish Druid,Elvish Outrider,Elvish Rider,Elvish Archer,Elvish Fighter,Elvish Shaman,Elvish Scout"
            role="Advisor"
        [/role]
        [recall]
            role="Advisor"
        [/recall]
        [message]
            role="Advisor"
            message=_"We are far from our lands, now, Erlornas, and we have driven the orcs from the forest. Why do we not return home?"
        [/message]
        [message]
            description="Erlornas"
            message=_"You heard what the orcs said - this Rualsha is more than a mere marauding warlord in search of pillage. He is planning an invasion, I'm sure of it. We must gather more information about his plans before we go back."
        [/message]
        [message]
            description="Erlornas"
            message=_"And there is more, as well. The earth currents are perturbed here. I think there is a mage dwelling somewhere nearby. Or perhaps more than one; the traces are mixed, and some of them have an unwholesome flavor."
        [/message]
        [message]
            role="Advisor"
            message=_"It would be dire indeed for us if these orcs have magic to add to their battle-might."
        [/message]
        [message]
            description="Erlornas"
            message=_"We must discover if this is so."
        [/message]
        [message]
            role="Advisor"
            message=_"Information will do us no good if we are killed before we return with it! These mountains look like troll territory."
        [/message]
        [music]
            name="battle.ogg"
            ms_after="0"
        [/music]
    [/event]
    [story]
        [part]
            [image]
                x="142"
                y="268"
                file="misc/dot.png"
                delay="250"
            [/image]
            [image]
                x="148"
                y="257"
                file="misc/dot.png"
                delay="250"
            [/image]
            [image]
                x="147"
                y="241"
                file="misc/dot.png"
                delay="250"
            [/image]
            [image]
                x="139"
                y="229"
                file="misc/dot.png"
                delay="250"
            [/image]
            [image]
                x="102"
                y="166"
                file="units/elves-wood/lord.png~TC(1,magenta)"
                delay="500"
            [/image]
            [image]
                x="53"
                y="133"
                file="units/trolls/warrior.png~TC(2,magenta)"
                delay="500"
            [/image]
            [image]
                x="134"
                y="112"
                file="units/trolls/warrior.png~TC(3,magenta)"
                delay="500"
            [/image]
            [image]
                x="100"
                y="200"
                file="misc/cross.png"
                delay="500"
            [/image]
            [image]
                x="114"
                y="169"
                file="misc/cross.png"
                delay="500"
            [/image]
            [image]
                x="151"
                y="178"
                file="misc/cross.png"
                delay="500"
            [/image]
            background="map.jpg"
            show_title="yes"
        [/part]
    [/story]
    turns="24"
    next_scenario="5_Linaera_the_Quick"
[/scenario]
