#textdomain wesnoth-aoi
[scenario]
    name=_"A Detour through the Swamp"
    id="6_A_Detour_through_the_Swamp"
    map_data="{campaigns/An_Orcish_Incursion/maps/a_detour_through_the_swamp.map}"

    {DEFAULT_SCHEDULE}

    [side]
        type="Elvish Lord"
        description="Erlornas"
        side="1"
        canrecruit="1"
        controller="human"
        recruit="Elvish Scout,Elvish Fighter,Elvish Archer,Elvish Shaman"
        team_name="goodies"
    [/side]
    [side]
        type="Lich"
        description="Keremal"
        side="2"
        canrecruit="1"
        {GOLD 150 200 250}
        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=_"Keremal"
        income="0"
        recruit="Ghoul, Revenant, Skeleton, Skeleton Archer, Ghost, Walking Corpse"
        [ai]
            grouping="offensive"
            attack_depth="5"
        [/ai]
    [/side]
    [event]
        name="prestart"
        [objectives]
            side="1"
            note=_"Hint:
Undead are resistant to physical attack. Use mages to attack the undead, and elves to protect and support the mages."
            silent="no"
            [objective]
                description=_"Defeat Keremal"
                condition="win"
            [/objective]
            [objective]
                description=_"Death of Erlornas"
                condition="lose"
            [/objective]
            [objective]
                description=_"Death of Linaera"
                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"
        # {SCATTER_IMAGE (terrain=Gg) 6 scenery/pine1.png}
        [recall]
            description="Linaera"
        [/recall]
        [role]
            type="Red Mage,White Mage,Mage,Arch Mage,Mage of Light,Great Mage"
            role="mage"
        [/role]
        [recall]
            role="mage"
        [/recall]
        [message]
            description="Linaera"
            message=_"The evil spirits who have settled in this wetland have turned it into a vile bog. My apprentices and I have the power to dispel them, but you must protect us from their weapons."
            sound=""
            image=""
        [/message]
        [music]
            name="battle.ogg"
            ms_after="0"
        [/music]
    [/event]
    [event]
        name="die"
        [filter]
            side="1"
            description="Linaera"
        [/filter]
        [message]
            description="Erlornas"
            message=_"All is lost! Without Linaera's help, I cannot hope to defeat these horrifying apparitions!"
            sound=""
        [/message]
        [endlevel]
            result="defeat"
        [/endlevel]
    [/event]
    [event]
        name="victory"
        [role]
            type="Red Mage,White Mage,Mage,Arch Mage,Mage of Light,Great Mage"
            role="mage"
        [/role]
        [message]
            description="Linaera"
            message=_"Thank you, Erlornas... now I can return to my tower in peace. But I think some of my apprentices wish to follow you north in persuit of the orcs."
            sound=""
        [/message]
        [message]
            role="mage"
            message=_"I have always wished to see elves, and now I have fought alongside them! May I please come with you?"
            sound=""
        [/message]
        [message]
            description="Erlornas"
            message=_"Certainly... I shall be glad of your help."
            sound=""
        [/message]
    [/event]
    [story]
        [part]
            [image]
                x="126"
                y="62"
                file="misc/dot.png"
                delay="250"
            [/image]
            [image]
                x="143"
                y="59"
                file="misc/dot.png"
                delay="250"
            [/image]
            [image]
                x="157"
                y="53"
                file="misc/dot.png"
                delay="250"
            [/image]
            [image]
                x="175"
                y="50"
                file="misc/dot.png"
                delay="250"
            [/image]
            [image]
                x="193"
                y="47"
                file="misc/dot.png"
                delay="250"
            [/image]
            [image]
                x="210"
                y="45"
                file="misc/dot.png"
                delay="250"
            [/image]
            [image]
                x="230"
                y="47"
                file="misc/dot.png"
                delay="250"
            [/image]
            [image]
                x="252"
                y="51"
                file="misc/dot.png"
                delay="250"
            [/image]
            [image]
                x="274"
                y="58"
                file="misc/dot.png"
                delay="250"
            [/image]
            [image]
                x="260"
                y="15"
                file="units/elves-wood/lord.png~TC(1,magenta)"
                delay="500"
            [/image]
            [image]
                x="293"
                y="68"
                file="units/undead-necromancers/lich.png~TC(2,magenta)"
                delay="500"
            [/image]
            [image]
                x="275"
                y="94"
                file="misc/cross.png"
                delay="500"
            [/image]
            [image]
                x="295"
                y="80"
                file="misc/cross.png"
                delay="500"
            [/image]
            [image]
                x="313"
                y="70"
                file="misc/cross.png"
                delay="500"
            [/image]
            background="map.jpg"
            show_title="yes"
        [/part]
    [/story]
    turns="24"
    next_scenario="7_Showdown"
[/scenario]
