#textdomain wesnoth-dm
[scenario]
    name=_ "Night in the Swamp"
    id=07_night_in_the_swamp
    next_scenario=08_ur_thorodor
    {MEMOIRS_MAP swamp2.map}
    turns=13

    {DUSK}
    {FIRST_WATCH}
    {FIRST_WATCH}
    {FIRST_WATCH}
    {FIRST_WATCH}
    {FIRST_WATCH}
    {SECOND_WATCH}
    {SECOND_WATCH}
    {SECOND_WATCH}
    {SECOND_WATCH}
    {SECOND_WATCH}
    {DAWN}
    {MORNING}

    {SCENARIO_MUSIC underground.ogg}	# No story part, so no intro music
    {EXTRA_SCENARIO_MUSIC frantic.ogg}
    {EXTRA_SCENARIO_MUSIC vengeful.ogg}
    {EXTRA_SCENARIO_MUSIC siege_of_laurelmor.ogg}

    [story]
        [part]
            delay=4000
            show_title=yes
            {TO_SWAMP_FORTRESS}
        [/part]
    [/story]

    [side]
        {YOUNG_DELFADOR}
        type=Journeyman Mage
        canrecruit=yes
        recruit=Mage,Spearman,Horseman,Bowman,Cavalryman,Heavy Infantryman
        team_name=player
    [/side]

    [side]
        side=2
        no_leader=yes
        team_name=foe
    [/side]

    victory_when_enemies_defeated=no

    {MEMOIRS_DEATHS}

#ifdef EASY
    {MEMOIRS_GENERATOR_SKELETON 18 3 12}
#endif

#ifdef NORMAL
    {MEMOIRS_GENERATOR_SKELETON 7 5 12}
    {MEMOIRS_GENERATOR_SKELETON 11 19 12}
#endif

#ifdef HARD
    {MEMOIRS_GENERATOR_SKELETON 18 3 12}
    {MEMOIRS_GENERATOR_SKELETON 11 19 12}
#endif HARD

    {MEMOIRS_GENERATOR}

    # if the player manages to destroy all generators...
    # an unlikely outcome unless we are on EASY
    [event]
        name=new turn
        first_time_only=no
        [if]
            [have_unit]
                side=2
            [/have_unit]
            [else]
                [message]
                    speaker=Delfador
                    message=_"I think that's all of them! Let's move on - the less time we spend in this swamp the better."
                [/message]
                [endlevel]
                    result=victory
                    bonus=yes
                [/endlevel]
            [/else]
        [/if]
    [/event]

    [event]
        name=prestart
        [objectives]
            side=1
            [objective]
                description=_ "Survive 12 turns"
                condition=win
            [/objective]
            [objective]
                description=_ "Death of Delfador"
                condition=lose
            [/objective]
            [objective]
                description=_ "Death of Lionel"
                condition=lose
            [/objective]
            note={NO_EARLY_FINISH_BONUS_NOTE}
        [/objectives]
    [/event]

    [event]
        name=start
        {RECALL_OR_CREATE_UNIT {LIONEL} Lionel}
        # wmllint: recognize Lionel
        [message]
            speaker=Delfador
            message=_"These swamps seem to go on forever!"
        [/message]
        [message]
            speaker=Lionel
            message=_"One more day's travel, I think. We should camp for the night now - we should be out of it by tomorrow evening."
        [/message]
    [/event]

    [event]
        name=new turn
        [message]
            speaker=Delfador
            message=_"Those standing stones - they summon evil creatures!"
        [/message]
        [message]
            speaker=Lionel
            message=_"I saw this kind of thing in the north... These abominations are not much affected by swords, but they fear the light of day. We must hold them off as best we can."
        [/message]
        [message]
            speaker=Delfador
            message=_"Hmmm... if I could get nearer to the stones, I could perhaps break their power..."
        [/message]
    [/event]

    # encourage the player who takes the hint about "swords"
    [event]
        name=attack
        [filter]
            type=Iron Mauler,Shock Trooper,Heavy Infantry,Heavy Infantryman
        [/filter]
        [filter_second]
            type=Skeleton,Skeleton Archer
        [/filter_second]
        [message]
            speaker=unit
            message=_"This'll splinter your bones, you vile monstrosity!"
        [/message]
    [/event]

    [event]
        name=time over
        [if]
            [have_unit]
                side=2
            [/have_unit]
            [then]
                [message]
                    speaker=Delfador
                    message=_"At least, morning is here... And the skeletons are disappearing!"
                [/message]
                [kill]
                    side=2
                [/kill]
                [redraw]
                [/redraw]
            [/then]
            [else]
                [message]
                    speaker=Delfador
                    message=_"At last, morning is here!"
                [/message]
            [/else]
        [/if]
        [message]
            speaker=Lionel
            message=_"I hope I never see another night like that! Let's leave this evil place as quickly as possible - I want to get us out of Illuven before dusk."
        [/message]
        [endlevel]
            result=victory
            bonus=no
        [/endlevel]
    [/event]
[/scenario]
