#textdomain wesnoth-trow
[scenario]
    id=Return_to_Oldwood
    name= _ "Return to Oldwood"
    map_data="{campaigns/The_Rise_Of_Wesnoth/maps/The_Oldwood.map}"

    {DEFAULT_SCHEDULE}

    next_scenario=Clearwater_Port
    bonus=yes

    [music]
        name="elf-land.ogg"
    [/music]

    {campaigns/The_Rise_Of_Wesnoth/utils/trow-deaths.cfg}

    {RETURN_TO_OLDWOOD_BIGMAP}

    [side]
        type=Noble Commander
        description=Prince Haldric
        user_description= _ "Prince Haldric"
        unrenamable=yes
        side=1
        canrecruit=yes
        controller=human
        team_name=Haldric
    [/side]

    [side]
        type=Wose
        description=Surprisingly-Treelike
        user_description= _ "Surprisingly-Treelike"
        side=2
        canrecruit=no
        team_name=treefolk
    [/side]

    [side]
        type=Wose
        description=Theylook-Thesame-Toyou
        user_description= _ "Theylook-Thesame-Toyou"
        side=3
        canrecruit=no
        team_name=treefolk
    [/side]

    [side]
        side=4
        type=Ancient Wose
        description=Elilmaldur-Rithrandil
        user_description= _ "Elilmaldur-Rithrandil"
        profile="portraits/rithrandil.png"
        canrecruit=yes
        team_name=treefolk
    [/side]

    [event]
        name=prestart

        {PLACE_IMAGE (scenery/temple1.png) 23 22}
        {PLACE_IMAGE (scenery/castle-ruins.png) 5 5}
        {PLACE_IMAGE (scenery/castle-ruins.png) 6 5}
        {PLACE_IMAGE (scenery/castle-ruins.png) 6 6}
        {PLACE_IMAGE (scenery/castle-ruins.png) 5 7}
        {PLACE_IMAGE (scenery/castle-ruins.png) 4 6}
        {PLACE_IMAGE (scenery/castle-ruins.png) 4 5}
        {PLACE_IMAGE (scenery/castle-ruins.png) 29 2}
        {PLACE_IMAGE (scenery/castle-ruins.png) 29 3}
        {PLACE_IMAGE (scenery/castle-ruins.png) 27 3}
        {PLACE_IMAGE (scenery/castle-ruins.png) 27 2}
        {PLACE_IMAGE (scenery/castle-ruins.png) 15 29}
        {PLACE_IMAGE (scenery/castle-ruins.png) 15 30}
        {PLACE_IMAGE (scenery/castle-ruins.png) 13 30}
        {PLACE_IMAGE (scenery/castle-ruins.png) 13 29}
        {PLACE_IMAGE (scenery/castle-ruins.png) 17 16}
        {PLACE_IMAGE (scenery/castle-ruins.png) 17 17}
        {PLACE_IMAGE (scenery/castle-ruins.png) 15 17}
        {PLACE_IMAGE (scenery/castle-ruins.png) 15 16}

        {GUARD_UNIT (Wose) (Orofarnië) ( _ "Orofarnië") 4 14 13}
        {GUARD_UNIT (Wose) (Bolwuldelman) ( _ "Bolwuldelman") 4 19 14}
        {GUARD_UNIT (Wose) (Bregalad) ( _ "Bregalad") 4 19 18}
        {GUARD_UNIT (Wose) (Dolmannumbil) ( _ "Dolmannumbil") 4 13 17}

        [recall]
            description=Burin the Lost
        [/recall]
        [recall]
            description=Sir Ruddry
        [/recall]
        [recall]
            description=Sir Ladoc
        [/recall]
        [recall]
            description=Minister Edmond
        [/recall]
    [/event]

    [event]
        name=start
        [message]
            speaker=narrator
            message= _ "Prince Haldric has emerged from the Lich-Lord's tomb, with the Ruby of Fire. The forest seems particularly bright this day, but there is a cold breeze. It is late into the fall, and the first snows should fall any day. Prince Haldric has returned to his forest keep, and is pondering what to do next..."
            image=wesnoth-icon.png
        [/message]
        [message]
            description=Elilmaldur-Rithrandil
            message= _ "So, you have defeated the Lich and returned with his jewel of power. The earth feels happy beneath my toes."
        [/message]
        [message]
            description=Prince Haldric
            message= _ "Yes, it was a tough battle, but we prevailed. Now, I'm having a problem. I know not what I should do next."
        [/message]
        [message]
            description=Prince Haldric
            message= _ "I have the jewel, but I have no idea what it does. To make matters worse, I have no idea what's going on outside this forest. The number of refugees is growing daily. We need to get to Southbay, but I dare not lead us onto the plains and risk a slaughter."
        [/message]
        [message]
            description=Elilmaldur-Rithrandil
            message= _ "My eyes do not extend beyond the forest. You have indeed shown yourself a tree-friend, I would there were more I could do to help you."
        [/message]
        [message]
            description=Prince Haldric
            message= _ "We can't all stay here for the winter; we would starve, or freeze. Your hospitality, though generously meant, has barely sufficed. Hold - I see somebody!"
        [/message]
        [if]
            [variable]
                name=lady_store.type
                equals=Wesfolk Outcast
            [/variable]
            [then]
                [move_unit_fake]
                    type=Wesfolk Outcast
                    side=1
                    gender=female
                    x=8,8,8,8,8,7,7,6,6
                    y=30,29,28,27,26,26,25,24,23,22
                [/move_unit_fake]
            [/then]
            [else]
                [if]
                    [variable]
                        name=lady_store.type
                        equals=Wesfolk Lady
                    [/variable]
                    [then]
                        [move_unit_fake]
                            type=Wesfolk Lady
                            side=1
                            gender=female
                            x=8,8,8,8,8,7,7,6,6
                            y=30,29,28,27,26,26,25,24,23,22
                        [/move_unit_fake]
                    [/then]
                    [else]
                        [move_unit_fake]
                            type=Wesfolk Leader
                            side=1
                            gender=female
                            x=8,8,8,8,8,7,7,6,6
                            y=30,29,28,27,26,26,25,24,23,22
                        [/move_unit_fake]
                    [/else]
                [/if]
            [/else]
        [/if]

        {VARIABLE lady_store.x 6}
        {VARIABLE lady_store.y 22}

        [unstore_unit]
            variable=lady_store
        [/unstore_unit]

        {FULL_HEAL description="Lady Outlaw"}
        # wmllint: recognize Lady Outlaw

        [if]
            [variable]
                name=have_lady
                numerical_equals=1
            [/variable]
            [then]
                [message]
                    description=Lady Outlaw
                    message= _ "You thought that I ran away, didn't you?"
                [/message]
                [message]
                    description=Prince Haldric
                    message= _ "The thought had crossed my mind."
                [/message]
                [message]
                    description=Lady Outlaw
                    message= _ "Well, I come bearing news of the road to Southbay!"
                [/message]
                [message]
                    description=Prince Haldric
                    message= _ "Really!"
                [/message]
                [message]
                    description=Lady Outlaw
                    message= _ "The news is not good. The main host of orcs is between the forest and Southbay. We clearly can't go that way. However, the road to Clearwater Port is free of orcs. Apparently they're bogged down in the swamp of Esten."
                [/message]
                [message]
                    description=Prince Haldric
                    message= _ "Well, I certainly don't mind the thought of the orcs floundering around that infernal swamp. But, one question remains."
                [/message]
                [message]
                    description=Lady Outlaw
                    message= _ "What?"
                [/message]
                [message]
                    description=Prince Haldric
                    message= _ "Can I trust you, and your information? I don't even know your name."
                [/message]
            [/then]
            [else]
                [message]
                    description=Prince Haldric
                    message= _ "You again!"
                [/message]
                [message]
                    description=Lady Outlaw
                    message= _ "I come bearing news of the road to Southbay!"
                [/message]
                [message]
                    description=Prince Haldric
                    message= _ "Humph! Your words mean very little to me."
                [/message]
                [message]
                    description=Lady Outlaw
                    message= _ "It is important, and not good. The main host of orcs is between the forest and Southbay. You clearly can't go that way. However, the road to Clearwater Port is free of orcs. Apparently they're bogged down in the swamp of Esten."
                [/message]
                [message]
                    description=Lady Outlaw
                    message= _ "I propose we join forces, and make a break for Clearwater Port."
                [/message]
                [message]
                    description=Prince Haldric
                    message= _ "Well, I certainly don't mind the thought of the orcs floundering around that infernal swamp. But, some questions remain."
                [/message]
                [message]
                    description=Prince Haldric
                    message= _ "Lady, why would you let those undead monsters lead your people?"
                [/message]
                [message]
                    description=Lady Outlaw
                    message= _ "Haldric, we are an ancient people who lived in a land filled with all manner of man and beast. We needed vision that extended beyond the meager span of human years. The art of Necromancy allowed our best and brightest to live forever, and our worst got to serve as mindless slaves."
                [/message]
                [message]
                    description=Lady Outlaw
                    message= _ "Other than losing our war back west, then our refugee war to your people, and this orc thing, it wasn't such a bad deal."
                [/message]
                [message]
                    description=Prince Haldric
                    message= _ "Uh-huh. Have you considered the possibility that the unholy act of turning your best and brightest into undead is what caused them to fall into darkness?"
                [/message]
                [message]
                    description=Lady Outlaw
                    message= _ "We should save this pointless debate for later. Anything else?"
                [/message]
                [message]
                    description=Prince Haldric
                    message= _ "Why should I trust you, or your information? I don't even know your name, and you have this nasty habit of mysteriously vanishing!"
                [/message]
                [allow_recruit]
                    type=Footpad,Poacher,Thief,Thug
                [/allow_recruit]
            [/else]
        [/if]
        [message]
            description=Lady Outlaw
            message= _ "Bah, have it your way!"
        [/message]

        [store_unit]
            [filter]
                description=Lady Outlaw
            [/filter]
            variable=lady_store
            kill=yes
        [/store_unit]

        [if]
            [variable]
                name=lady_store.type
                equals=Wesfolk Outcast
            [/variable]
            [then]
                {VARIABLE lady_store.experience 0}
                {VARIABLE lady_store.type (Outlaw Princess)}
            [/then]
        [/if]

        [if]
            [variable]
                name=lady_store.type
                equals=Wesfolk Lady
            [/variable]
            [then]
                {VARIABLE lady_store.type (Outlaw Princess)}
            [/then]
        [/if]

        [if]
            [variable]
                name=lady_store.type
                equals=Wesfolk Leader
            [/variable]
            [then]
                {VARIABLE lady_store.type (Outlaw Queen)}
            [/then]
        [/if]

        {VARIABLE lady_store.description (Lady Jessica)}
        {VARIABLE lady_store.user_description (_ "Lady Jessica")}

        [unstore_unit]
            variable=lady_store
        [/unstore_unit]

        {FULL_HEAL description="Lady Jessica"}
        # wmllint: recognize Lady Jessica

        {CLEAR_VARIABLE lady_store}

        [scroll_to_unit]
            description=Lady Jessica
        [/scroll_to_unit]

        [delay]
            time=1500
        [/delay]

        [message]
            description=Lady Jessica
            message= _ "I am the Lady Jessica, a noble, a princess of the Wesfolk! I was betrayed by the Lich-Lords' dark pact with the orcs, in no small part because your fool Prince of Southbay convinced them that their immortal un-lives were over!"
        [/message]
        [message]
            description=Lady Jessica
            message= _ "And now, I'm as much a refugee as you. In truth, I don't know if the Lich-Lords are working with the orcs or not. The orcs may have gotten rid of the Lich-Lords, or they may not have, but I do know that the orcs are not going to tolerate living humans outside of the slave mines or stew pot!"
        [/message]
        [message]
            description=Lady Jessica
            message= _ "Young prince, it is time to go! We must flee before the winter snow!"
        [/message]
        [message]
            description=Prince Haldric
            message= _ "Fair enough. We will head for Clearwater Port. Thank you, Elilmaldur-Rithrandil, I will remember your hospitality!"
        [/message]
        [message]
            description=Elilmaldur-Rithrandil
            message= _ "Always happy to help a tree-friend. May the Powers of Light guide you on your way!"
        [/message]
        [message]
            description=Burin the Lost
            message= _ "Finally, we're getting out of this forest!"
        [/message]
        [endlevel]
            {CLEAR_VARIABLE have_lady}
            result=continue
        [/endlevel]
    [/event]
[/scenario]
