#textdomain wesnoth-dm
[scenario]
    name=_ "Wasteland"
    id=11_wasteland
    next_scenario=12_terror_at_the_ford_of_parthyn
    {MEMOIRS_MAP wasteland.map}
    turns=24
    {DEFAULT_SCHEDULE}

    {SCENARIO_MUSIC elvish-theme.ogg}	# No story part, so no intro music
    {EXTRA_SCENARIO_MUSIC the_dangerous_symphony.ogg}
    {EXTRA_SCENARIO_MUSIC elf-land.ogg}
    {EXTRA_SCENARIO_MUSIC northerners.ogg}

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

    [side]
        {YOUNG_DELFADOR}
        # wmllint: recognize Delfador
        type=Journeyman Mage
        canrecruit=yes
        recruit=Elvish Scout,Elvish Archer,Elvish Fighter,Elvish Shaman
        team_name=goodies
        user_team_name= _ "Player"
        shroud=yes
    [/side]

    {STARTING_VILLAGES 1 6}

    [side]
        type=Orcish Warlord
        id=Tish Golub
        name= _ "Tish Golub"
        side=2
        canrecruit=yes
        controller=ai
        recruit=Orcish Archer,Orcish Grunt,Wolf Rider,Orcish Crossbowman,Orcish Warrior,Troll Whelp
        team_name=baddies
        user_team_name= _ "Enemies"
        {GOLD 150 200 250}
    [/side]

    {STARTING_VILLAGES 1 4}

    [side]
        {CHANTAL}
        # wmllint: recognize Chantal
        type=Elvish Druid
        {GOLD 100 100 100}
        [ai]
            caution=0.5
            aggression=0.0 # let player do the dirty work
        [/ai]
        {NAMED_UNIT 3 (Elvish Ranger) 21 12 (Istelimir) ( _ "Istelimir") (ai_special=guardian)}
        {NAMED_UNIT 3 (Elvish Ranger) 33 11 (Atellas) ( _ "Atellas") (ai_special=guardian)}
    [/side]

    {STARTING_VILLAGES 3 5}
    {MEMOIRS_DEATHS}

    #############################
    # Move hero to the starting position, and eat recall list
    #############################
    [event]
        name=prestart
        {SAVE_UNDEAD_VETERANS}
        {TELEPORT_UNIT id=Delfador 33 20}
    [/event]

    #############################
    # starting dialog
    #############################
    [event]
        name=start

        [set_recruit]
            recruit=Elvish Scout,Elvish Archer,Elvish Fighter,Elvish Shaman
            side=1
        [/set_recruit]
        [capture_village]
            side=3
            x,y=33,11
        [/capture_village]
        [capture_village]
            side=3
            x,y=21,12
        [/capture_village]

        [message]
            speaker=narrator
            message=_"As Delfador followed Iliah-Malal into the portal, a freezing wind sprung up and the air became thick with ghosts pouring through into the land of the living. The ground became icy underfoot, and soon Delfador was following the necromancer's footsteps in a thick layer of snow. Eventually, even these became indistinct."
            image=wesnoth-icon.png
        [/message]

        [message]
            speaker=Delfador
            message=_"It's hopeless, I've lost all track of Iliah-Malal... and I shall freeze unless I find shelter soon. Perhaps in that forest to the north..."
        [/message]

        [objectives]
            side=1
            [objective]
                description=_ "Find Delfador shelter before he freezes to death"
                condition=win
            [/objective]
            [objective]
                description=_ "Death of Delfador"
                condition=lose
            [/objective]
            [objective]
                description=_ "Time runs out"
                condition=lose
            [/objective]
        [/objectives]
    [/event]

    #############################
    # Delfador first encounters the elves
    #############################
    [event]
        name=sighted
        [filter]
            type=Elvish Rider,Elvish Ranger
            side=3
        [/filter]

        [if]
            [not]
                [have_unit]
                    id=Chantal
                    [filter_vision]
                        visible=yes
                        viewing_side=1
                    [/filter_vision]
                [/have_unit]
            [/not]

            [then]
                [message]
                    speaker=unit
                    message=_"What are you doing in our forests, stranger?"
                [/message]
                [message]
                    speaker=Delfador
                    message=_"It's a long story... but I wonder whether I might first ask for your hospitality? I'm lost, and freezing to death here!"
                [/message]
                [message]
                    speaker=unit
                    message=_"I suppose there can be little harm in one half-frozen human... Our nearest post is to the northeast; I'll lead you there. But we must not tarry! There are deadlier foes than the weather abroad."
                [/message]
            [/then]
        [/if]
    [/event]

    #############################
    # Delfador encounters Chantal
    #############################
    [event]
        name=moveto
        [filter]
            id=Delfador
            x=29-35
            y=1-7
        [/filter]
        {INCIDENTAL_MUSIC love_theme.ogg}
        [message]
            speaker=Chantal
            message=_"Welcome, Delfador!"
        [/message]
        [message]
            speaker=Delfador
            # wmllint: local spelling Er
            message=_"Er, hello... you know my name, then...?"
        [/message]
        [message]
            speaker=Chantal
            message=_"Yes. I am Chantal, and I know many things. I know you come from the great human kingdom of the south, and are a master of magic. You have faced great adversity, and visited a place from where few hope to return, and from where none before have returned unchanged. Fate is heavy upon you, and you deserve our help."
        [/message]
        [message]
            speaker=Delfador
            message=_"Oh... well... very nice of you, but I don't feel very fated. In fact, I've been positively blundering! I was just trying to defend my master Methor's school against the orcs, and then to find out the source of the undead activity... and I have failed at both."
        [/message]
        [message]
            speaker=Chantal
            message=_"But you have not failed. The southlands have not yet fallen to the orcish army, and have you not learned more about the undead than any man alive? It is he who fears death above all things who deceives the spirits into believing they can live again, and blinds them to the peace and rest of their own domain."
        [/message]
        [message]
            speaker=Delfador
            message=_"You mean Iliah-Malal?"
        [/message]
        [message]
            speaker=Chantal
            message=_"Yes, that is who I mean."
        [/message]
        [message]
            speaker=Delfador
            message=_"If I might ask, where am I? And what of Lionel, and King Garard? What has befallen them?"
        [/message]
        [message]
            speaker=Chantal
            message=_"You are among the North Elves, in the Lintanir Forest. Our arts hold back the winter cold within these woods. To the south and west of here lies a wasteland inhabited only by barbarians and orcs. To the south again, the Great River, and your home. Of your friends, I know nothing."
        [/message]
        [message]
            speaker=Delfador
            message=_"I am deeply grateful for your aid, Chantal. I see now what I must do... I have lost Iliah-Malal, but I must at least try to report back to the King or to Leollyn. I will set out for the south!"
        [/message]
        [message]
            speaker=Chantal
            message=_"It will not be easy. The orcish army lies between here and your destination. We are under attack even here, by an orcish warband encamped in the mountains to the southwest."
        [/message]
        [message]
            speaker=Delfador
            message=_"Attacked by orcs? Then I might perhaps help you to defeat them, and repay your assistance and kindness!"
        [/message]
        [modify_side]
            side=3
            share_maps=yes
        [/modify_side]
        [objectives]
            side=1
            [objective]
                description=_ "Defeat enemy leader"
                condition=win
            [/objective]
            [objective]
                description=_ "Death of Delfador"
                condition=lose
            [/objective]
            [objective]
                description=_ "Death of Chantal"
                condition=lose
            [/objective]
            [objective]
                description=_ "Time runs out"
                condition=lose
            [/objective]
            note={EARLY_FINISH_BONUS_NOTE}
        [/objectives]
    [/event]

    #############################
    # ending dialog
    #############################
    [event]
        name=victory

        [message]
            speaker=Chantal
            message=_"With your help, Delfador, we have overrun the orcish warlord of this area, and our forests are secure. Secure enough that I can even join you in your journey south... at least as far as the Great River."
        [/message]

        {CHANTAL_FOLLOWS_DELFADOR}
    [/event]
[/scenario]
