#textdomain wesnoth-low

# To future editors: 'philter' is a real archaic word in English meaning a
# potion with magical effects. Do *not* change it to 'filter'!

### to do: make Landar dissapear
#ifdef MULTIPLAYER
[multiplayer]
    random_start_time=no
#ifndef DEBUG_MODE
    allow_new_game=no
#endif
#else
[scenario]    
#endif

    name= _ "News from the front"
    id=13_News_from_the_front
    {LOW_MAP 10_Cliffs_of_Thoria.map}
    turns=1
    snapshot=no
    next_scenario=14_Human_Alliance
    #TODO enable if that is supported again
    #theme=FullScreen

    {SCENARIO_MUSIC the_deep_path.ogg}

    {DEFAULT_SCHEDULE}

    {LOW_PRESTART}

    [story]
        [part]
            #TODO insert a trackplayer route back the the cliffs of thoria
            story= _ "With Crelanu's book in hand, Kalenz and his band began the long journey south to the Ka'lian..."
        [/part]
    [/story]

    #wmllint: validate-off
    [side]
        {KALENZ}
        # wmllint: recognize Kalenz
        fog=yes
        share_view=yes
        x=12
        y=1
        team_name=player
#ifndef MULTIPLAYER
        [unit]
            {LANDAR}
            # wmllint: recognize Landar
            placement=leader
        [/unit]
#endif
        [unit]
            {CLEODIL}
            # wmllint: recognize Cleodil
            placement=leader
        [/unit]
        [unit]
            {OLURF}
            # wmllint: recognize Olurf
            placement=leader
        [/unit]
    [/side]
    #wmllint: validate-on

#ifdef MULTIPLAYER
    [side]
        side=2
        {LANDAR}
        x=11
        y=1
        fog=yes
        share_view=yes
        team_name=player
    [/side]
#endif

    [event]
        name=prestart
        {RECALL_LOYALS}
    [/event]

    [event]
        name=start

        [message]
            id=Landar
            message= _ "Oh, no, I forgot my dose of Crelanu's invisibility philter. I'll go back and get it. I'll catch up with you later!"
        [/message]
        [message]
            id=Olurf
            message= _ "Maybe some of my dwarves can escort you... "
        [/message]
        [message]
            id=Kalenz
            message= _ "Go, Landar, but be careful. We need you."
        [/message]

        [store_unit]
            variable=landar_store
            kill=yes
            [filter]
                id=Landar
            [/filter]
        [/store_unit]

        [message]
            speaker=narrator
            image="wesnoth-icon.png"
            message= _ "Some weeks later, as Kalenz and his companions were working their way southwards from the high peaks of the Heart Mountains into its foothills..."
        [/message]

        [sound]
            name=horse-canter.wav
        [/sound]

        [move_unit_fake]
            type=Elvish Scout
            x=10,11,12,13,14,15
            y=9,8,7,6,5,4
        [/move_unit_fake]

        [unit]
            id=Eonihar
            name=_ "Eonihar"
            type=Elvish Scout
            side=1
            x=15
            y=4
            facing=sw
        [/unit]

        [message]
            id=Eonihar
            message= _ "At last I have found, you alive and well! We need you back at once! The orcs have attacked the humans."
        [/message]
        [message]
            id=Kalenz
            message= _ "This means we are safe for the time being, no?"
        [/message]
        [message]
            id=Eonihar
            message= _ "What's more, King Haldric is dead. His successor wants to renew the treaty of alliance and has asked for our help."
        [/message]

        {VARIABLE landar_store.x 14}
        {VARIABLE landar_store.y  1}

        [move_unit_fake]
            type=$landar_store.type
            x=10,11,12,13,14
            y=1,1,1,1,1
        [/move_unit_fake]

        [unstore_unit]
            variable=landar_store
            find_vacant=yes
        [/unstore_unit]

        {CLEAR_VARIABLE landar_store}

        [message]
            id=Landar
            message= _ "How convenient! Now they need our help, they come running!"
        [/message]
        [message]
            id=Kalenz
            message= _ "Landar! You're back! All is well?"
        [/message]
        [message]
            id=Landar
            message= _ "Yes, I have the philter of invisibility."
        [/message]
        [message]
            id=Kalenz
            message= _ "We face a difficult choice. I know humans did not help us when the orcs attacked, but the orcs are everybody's enemy. When humans fall, we'll be next."
        [/message]
        [message]
            id=Eonihar
            message= _ "The orcish forces are encamped south of the Great River, and have surrounded the fortified human settlement at Tath. The humans are sending all their forces there. We need to decide whether we will help them or not."
        [/message]
        [message]
            id=Kalenz
            message= _ "Go tell the council and the human king that we will be there! Now, let's hurry!"
        [/message]
        [kill]
            id=Eonihar
        [/kill]
        [endlevel]
            result=victory
            bonus=no
            linger_mode=no
            carryover_report=no
            carryover_percentage=100
        [/endlevel]
    [/event]
#ifndef MULTIPLAYER
[/scenario]
#else
[/multiplayer]
#endif

