#textdomain wesnoth-aoi

# Warning: If you are not a native and literate English speaker, do
# not try to modify the storyline text.  It is deliberately written
# in a somewhat archaic and poetic form of English, and some previous
# attempts to "fix" it inflicted damage that was difficult to undo.

[scenario]
    name=_"A Detour through the Swamp"
    id=06_A_Detour_through_the_Swamp
    map_data="{campaigns/An_Orcish_Incursion/maps/06_A_Detour_through_the_Swamp.map}"

    {DEFAULT_SCHEDULE}

    {INTRO_AND_SCENARIO_MUSIC the_deep_path.ogg underground.ogg}
    {EXTRA_SCENARIO_MUSIC vengeful.ogg}
    {EXTRA_SCENARIO_MUSIC revelation.ogg}

    [side]
        type="Elvish Lord"
        id="Erlornas"
        profile=portraits/erlornas.png
        side="1"
        canrecruit=yes
        controller="human"
        recruit="Elvish Scout,Elvish Fighter,Elvish Archer,Elvish Shaman"
        team_name="goodies"
        user_team_name=_"Elves"
        {FLAG_VARIANT long}
    [/side]
    [side]
        type="Lich"
        id="Keremal"
        side="2"
        canrecruit=yes
        {GOLD 150 200 250}
        team_name="baddies"
        user_team_name=_"Orcs"
        controller="ai"
        fog="no"
        share_view="no"
        shroud="no"
        share_maps="no"
        name=_"Keremal"
        income="0"
        recruit="Ghoul, Revenant, Skeleton, Skeleton Archer, Ghost, Walking Corpse"
        [ai]
            villages_per_scout="4"
            leader_value="3"
            village_value="1"
            grouping="offensive"
            attack_depth="5"
        [/ai]
        {FLAG_VARIANT undead}
    [/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]

            {TURNS_RUN_OUT}

            [gold_carryover]
                bonus=yes
                carryover_percentage=40
            [/gold_carryover]
        [/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]
            id="Linaera"
        [/recall]
        [role]
            type="Red Mage,White Mage,Mage,Arch Mage,Mage of Light,Great Mage"
            role="mage"
        [/role]
        [recall]
            role="mage"
        [/recall]
        [message]
            speaker="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."
        [/message]
    [/event]
    [event]
        name="last breath"
        [filter]
            side="1"
            id="Linaera"
        [/filter]
        [message]
            id="Linaera"
            message=_"Alas, Erlornas, I have failed us..."
        [/message]
    [/event]
    [event]
        name="die"
        [filter]
            side="1"
            id="Linaera"
        [/filter]
        [message]
            id="Erlornas"
            message=_"All is lost! Without Linaera’s help, I cannot hope to defeat these horrifying apparitions!"
        [/message]
        [endlevel]
            result="defeat"
        [/endlevel]
    [/event]
    {campaigns/An_Orcish_Incursion/utils/deaths.cfg}
    [event]
        name="enemies defeated"
        [role]
            type="Red Mage,White Mage,Mage,Arch Mage,Mage of Light,Great Mage"
            role="mage"
        [/role]
        [message]
            speaker="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 pursuit of the orcs."
        [/message]
        [message]
            role="mage"
            message=_"I have always wished to see elves, and now I have fought alongside them! May I please travel with you?"
        [/message]
        [message]
            id="Erlornas"
            message=_"Certainly... I shall be glad of your help."
        [/message]

        [endlevel]
            result=victory
            bonus=yes
            {NEW_GOLD_CARRYOVER 40}
        [/endlevel]
    [/event]
    [story]
        [part]
            show_title="yes"
            {TO_A_DETOUR_THROUGH_THE_SWAMP}
        [/part]
    [/story]
    turns="24"
    next_scenario=07_Showdown
[/scenario]
