#textdomain wesnoth-trow
[scenario]
    id=18_A_Spy_in_the_Woods
    name= _ "A Spy in the Woods"
    next_scenario=19_The_Vanguard
    map_data="{campaigns/The_Rise_Of_Wesnoth/maps/16_The_Kalian.map}"
    turns=1
    theme=Cutscene_Minimal

    {AFTERNOON}

    {SCENARIO_MUSIC elf-land.ogg}

    # No story
    {TROW_GC_TRACK {JOURNEY_18_NEW} }

    [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=Autumn Shyde
        id=Lady Dionli
        name= _ "Lady Dionli"
        # profile="portraits/dionli.png"
        facing=se
        team_name=Elves
        user_team_name=_"Elves"
        {FLAG_VARIANT long}
    [/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"
        {FLAG_VARIANT long}
    [/side]

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

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

        [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: whofield clear HERO
    [/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, <i>“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.”</i>"
        [/message]
        [message]
            speaker="Lord El’Isomithir"
            message= _ "Agreed."
        [/message]
        [message]
            speaker=Lady Dionli
            message= _ "(<i>Sigh</i>) Agreed."
        [/message]
        [message]
            speaker=Lord Logalmier
            message= _ "Agreed."
        [/message]

        [message]
            speaker=Jessene in Hiding
            message={WHISPER _"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=19_The_Vanguard
        [/endlevel]
    [/event]
[/scenario]
