#textdomain wesnoth-trow
[scenario]
    id=A_Spy_in_the_Woods
    name= _ "A Spy in the Woods"
    next_scenario=The_Vanguard
    map_data="{campaigns/The_Rise_Of_Wesnoth/maps/Elf_Lords.map}"

    {AFTERNOON}

    {SCENARIO_MUSIC elf-land.ogg}

    # No story
    {A_SPY_IN_THE_WOODS_BIGMAP}

    [side]
        side=1
        type=Noble Commander
        id=Prince Haldric
        name= _ "Prince Haldric"
        unrenamable=yes
        canrecruit=yes
        gold=0
        controller=human
        team_name=Haldric
        user_team_name=_"Refugees"
        {FLAG_VARIANT loyalist}
    [/side]

    [side]
        side=2
        type=Elvish Shyde
        id=Lady Dionli
        name= _ "Lady Dionli"
        profile="portraits/dionli.png"
        team_name=Elves
        user_team_name=_"Elves"
    [/side]

    [side]
        side=3
        type=Elvish Champion
        id=Lord Logalmier
        name= _ "Lord Logalmier"
        # wmllint: directory spelling Logalmier
        profile="portraits/logalmier.png"
        team_name=Elves
        user_team_name=_"Elves"
    [/side]

    [side]
        side=4
        type=Elvish Sharpshooter
        id=Lord Aryad
        # wmllint: directory spelling Aryad
        name= _ "Lord Aryad"
        profile="portraits/aryad.png"
        team_name=Elves
        user_team_name=_"Elves"
    [/side]

    # wmllint: recognize Lady Jessene
    [event]
        name=prestart

        {PLACE_IMAGE (scenery/pine2.png) 13 12}

        [teleport]
            [filter]
                id=Prince Haldric
            [/filter]
            x=13
            y=21
        [/teleport]

        [hide_unit]
            x=13
            y=21
        [/hide_unit]

        [store_unit]
            [filter]
                id=Lady Jessene
            [/filter]

            kill=no
            variable=stored_Jessene
        [/store_unit]

        {VARIABLE stored_Jessene.id "Jessene in Hiding"}
        {VARIABLE stored_Jessene.name _"Jessene in Hiding"}
        {VARIABLE stored_Jessene.x 20}
        {VARIABLE stored_Jessene.y 20}

        [unstore_unit]
            variable=stored_Jessene
        [/unstore_unit]

        {HERO (Elvish Marshal) ("Lord El'Isomithir") ( _ "Lord El'Isomithir") 4 13 14 ("portraits/isomithir.png")}
        # wmllint: recognize Lord El'Isomithir
    [/event]

    [event]
        name=start

        {MOVE_UNIT (id=Jessene in Hiding) 19 16}

        # wmllint: recognize Jessene in Hiding

        [scroll_to_unit]
            id=Jessene in Hiding
        [/scroll_to_unit]

        [message]
            speaker=Lord Logalmier
            message= _ "So a doom has followed them here from their old home. My Outriders have reported that orcs have made landfall. Orcs! The tree-killers of our most ancient legends. Some thought them only a nightmare to frighten children, and never real at all."
        [/message]
        [message]
            speaker=Lady Dionli
            message= _ "And he bears an artifact of some power. The orcs would not be able to sense that. There is some hand we cannot see at work here."
        [/message]
        [message]
            speaker=Lord Aryad
            message= _ "We may have decided wrongly. If the humans drive the orcs off we should honor our pledge. If more trouble follows them here we should let them fight it out, then we should 'deal' with the survivors, and make a compromise with the Dwarves."
        [/message]
        [message]
            speaker=Lady Dionli
            message= _ "But we spoke a Pact with this Haldric and these men of the west-north..."
        [/message]
        [message]
            speaker=Lord Logalmier
            # wmllint: local spelling un-people
            message= _ "We are the people of the forest, you know that all words spoken to these un-people are of secondary importance to our own needs. As Lord Aryad said, 'If more trouble follows them here we should let them fight it out, then we should 'deal' with the survivors, and make a compromise with the Dwarves.'"
        [/message]
        [message]
            speaker="Lord El'Isomithir"
            message= _ "Agreed."
        [/message]
        [message]
            speaker=Lady Dionli
            message= _ "(Sigh) Agreed."
        [/message]
        [message]
            speaker=Lord Logalmier
            message= _ "Agreed."
        [/message]

        [message]
            speaker=Jessene in Hiding
            message= _ "(whispered) Some friends. I must tell Haldric."
        [/message]

        {MOVE_UNIT (id=Jessene in Hiding) 20 22}

        [kill]
            id=Jessene in Hiding
        [/kill]

        {CLEAR_VARIABLE stored_Jessene}

        [endlevel]
            result=victory
            bonus=no
            {NEW_GOLD_CARRYOVER 100}
            carryover_report=no
            linger_mode=no
            next_scenario=The_Vanguard
        [/endlevel]
    [/event]
[/scenario]
