#textdomain wesnoth-trow
[scenario]
    id=A_New_Land
    name= _ "A New Land"
    next_scenario=Elf_Lords
    bonus=yes
    map_data="{campaigns/The_Rise_Of_Wesnoth/maps/A_New_Land.map}"

    turns=48
    {DEFAULT_SCHEDULE}

    {SCENARIO_MUSIC wanderer.ogg}

    {TROW_A_NEW_LAND_STORY}
    {A_NEW_LAND_BIGMAP}

    {TROW_DEATHS}

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

    [side]
        type=Elvish Captain
        id=Glimir
        name= _ "Glimir"
        side=2
        canrecruit=yes
        {GOLD 110 250 330}
        {INCOME 2 4 8}
        team_name=Continentals
        user_team_name=_"Continentals"
        recruit=Elvish Archer, Elvish Fighter, Elvish Scout, Elvish Shaman
        [ai]
            {NO_SCOUTS}
            recruitment_ignore_bad_movement=yes
            recruitment_pattern=scout,fighter,archer,fighter, archer, healer
        [/ai]
    [/side]

    [side]
        type=Dwarvish Stalwart
        id=Dursil
        name= _ "Dursil"
        side=3
        canrecruit=yes
        {GOLD 110 250 330}
        {INCOME 2 4 8}
        team_name=Continentals
        user_team_name=_"Continentals"
        recruit=Dwarvish Fighter, Dwarvish Ulfserker, Dwarvish Thunderer, Dwarvish Guardsman
        [ai]
            {NO_SCOUTS}
            recruitment_ignore_bad_movement=yes
            recruitment_pattern=fighter,fighter,fighter,mixed fighter
        [/ai]
        {FLAG_VARIANT knalgan}
    [/side]

    [side]
        type=Elvish Hero
        id=Eowarar
        name= _ "Eowarar"
        side=4
        canrecruit=yes
        {GOLD 110 250 330}
        {INCOME 2 4 8}
        team_name=Continentals
        user_team_name=_"Continentals"
        recruit=Elvish Archer, Elvish Fighter, Elvish Scout, Elvish Shaman
        [ai]
            {NO_SCOUTS}
            recruitment_ignore_bad_movement=yes
            recruitment_pattern=scout,fighter,archer,fighter, archer, healer
        [/ai]
    [/side]

    [event]
        name=prestart
        [hide_unit]
            x=1
            y=39
        [/hide_unit]

        [objectives]
            side=1
            [objective]
                description= _ "Avoid engagement for as long as possible"
                condition=win
            [/objective]
        [/objectives]
    [/event]

    [event]
        name=start

        [message]
            speaker=narrator
            message= _ "Alas, the shore of the Great Continent was not so tranquil a place as it had appeared from at sea."
            image=wesnoth-icon.png
        [/message]
        [message]
            speaker=Glimir
            message= _ "Go home, you vile dwarves! By treaty you are pledged to only the hills and mountains to the north of the Great River. This is not your land."
        [/message]
        [message]
            speaker=Dursil
            message= _ "Our lands are become full, and our mines go to the bottom of the world. We have won our war against those things that live in the dark. By what right do you claim all of the forests of the world, and ALL of the land south of the Great River, and force us onto only the hills and mountains of the north? There are hills and mountains as good as any here in the south!"
        [/message]
        [message]
            speaker=Glimir
            message= _ "By the right of treaty, ancient but still true- "
        [/message]
        [message]
            speaker=Dursil
            # wmllint: local spelling namby-pamby
            message= _ "Hmph! You namby-pamby elves: 'We don't cut the trees, we groom the forest.' Our axes can get the wood for a fifth of the cost! I can charge half of what your people do, and still be rich, and I'm not the first to have the thought!"
        [/message]
        [message]
            speaker=Glimir
            message= _ "Wait, I see a ship. Many ships. We're being invaded!"
        [/message]
        [message]
            speaker=Dursil
            message= _ "Umm, we're being invaded? Okay, we'll sort out our differences later. Let's get them first."
        [/message]

        [move_unit_fake]
            type=Galleon
            side=1
            x=1,2,3,4,5,5,5,5,4,4,3,2
            y=31,31,32,32,33,34,35,36,36,37,38,38
        [/move_unit_fake]

        {PLACE_IMAGE ("units/transport/galleon.png~RC(magenta>red)") 2 38}
        {PLACE_IMAGE ("units/transport/transport-galleon.png~RC(magenta>red)") 3 26}
        {PLACE_IMAGE ("units/transport/transport-galleon.png~RC(magenta>red)") 4 24}
        {PLACE_IMAGE ("units/transport/transport-galleon.png~RC(magenta>red)") 2 23}
        {PLACE_IMAGE ("units/transport/transport-galleon.png~RC(magenta>red)") 5 27}

        [unhide_unit]
            x=1
            y=39
        [/unhide_unit]

        [recall]
            id=Lady Jessica
            x=2
            y=39
        [/recall]
        [recall]
            id=Burin the Lost
            x=2
            y=37
        [/recall]
        [recall]
            id=Sir Ruddry
            x=1
            y=38
        [/recall]
        [recall]
            id=Sir Ladoc
            x=1
            y=38
        [/recall]
        [recall]
            id=Minister Edmond
            x=1
            y=40
        [/recall]
        [recall]
            id=Lord Typhon
            x=2
            y=40
        [/recall]

        #       [teleport]
        #           [filter]
        #               id=Lord Typhon
        #           [/filter]
        #           x=3
        #           y=3
        #       [/teleport]

        [message]
            speaker=Prince Haldric
            message= _ "We come in peace. May our peoples-"
        [/message]
        [message]
            speaker=Dursil
            message= _ "Get them!"
        [/message]
        [message]
            speaker=Lady Jessica
            message= _ "Gee, and you were practicing that speech for days. I guess that's it for diplomacy then. Haldric, we should avoid calling upon too many units, and avoid fighting them. There has to be a peaceful resolution to this."
        [/message]
        [message]
            speaker=Burin the Lost
            message= _ "In the name of... This is the continent of my home. But I set out east. I must have traveled clear around the world."
        [/message]
        [message]
            speaker=Burin the Lost
            message= _ "My people are too far south. I don't know what's going on here. I'll stick with you until the end. You've been a good friend. Just no more sea voyages."
        [/message]
    [/event]

    [event]
        name=attack_end,time over

        [move_unit_fake]
            type=Elvish Shyde
            side=2
            x=31,30,29,28,28
            y=8.8.9.8,7
        [/move_unit_fake]

        {HERO (Elvish Shyde) (Lady Dionli) ( _ "Lady Dionli") 2 28 7 ("portraits/dionli.png")}
        # wmllint: recognize Lady Dionli

        [message]
            speaker=Lady Dionli
            message= _ "What? What's going on here? Dwarves? Humans? Ships? Glimir, tell me."
        [/message]
        [message]
            speaker=Glimir
            message= _ "The stories are true. There must be dwarven colonists in the Brown Hills. We caught this band chopping wood near the bay. Then we saw lots of ships. Not like before, with that fellow from Southbay and his lone ship. It was always interesting when he stopped by."
        [/message]
        [message]
            speaker=Glimir
            # wmllint: local spelling erm
            message= _ "We thought we were being invaded. We, erm, put our differences aside with the dwarves, for the moment, and decided to deal with this first."
        [/message]
        [message]
            speaker=Lady Dionli
            message= _ "These are disturbing trends. Human, it is by luck alone that I am here to spare you. For on this day the Council of Lords is meeting in a forest not far from here."
        [/message]
        [message]
            speaker=Prince Haldric
            message= _ "I am Prince Haldric. We come in peace. May our peoples-"
        [/message]
        [message]
            speaker=Lady Jessica
            message= _ "Haldric."
        [/message]
        [message]
            speaker=Lady Dionli
            message= _ "As for you, dwarf, return to the Brown Hills. Then tell your people to prepare to return to the north."
        [/message]
        [message]
            speaker=Dursil
            message= _ "I'll return to the hills, but I can't promise that my people will go. Hmph!"
        [/message]
        [message]
            speaker=Lady Dionli
            message= _ "Haldric, is it? You are their leader? You and your advisers are to come with me. It will be safe for your passengers to disembark here."
        [/message]

        [move_unit_fake]
            type=Dread Bat
            side=4
            x=1,2,3
            y=15,15,15
        [/move_unit_fake]

        {UNDEAD_INTEL (Dread Bat) (Familiar) ( _ "Familiar") "portraits/familiar.png" 4 3 15}

        [kill]
            id=Familiar
        [/kill]

        [move_unit_fake]
            type=Dread Bat
            side=4
            x=3,3,2,1
            y=15,14,13,13
        [/move_unit_fake]

        [message]
            speaker=Lady Jessica
            message= _ "(whispered) Maybe it'd be best if you didn't mention our little friend following us..."
        [/message]

#ifdef EASY
        [message]
            speaker=Lord Typhon
            message= _ "I must return to my people. You have kept your word, you may avail of my services in the future. The services of my people will remain at your disposal."
        [/message]
#else
        [disallow_recruit]
            side=1
            type=Merman Fighter
        [/disallow_recruit]

        [message]
            speaker=Lord Typhon
            message= _ "I must return to my people. My warriors that fought by your side wish to remain with you. You have kept your word, and you may avail of my services in the future."
        [/message]
#endif

        [kill]
            id=Lord Typhon
        [/kill]

        [message]
            speaker=Prince Haldric
            message= _ "May the currents carry you swiftly, my friend. (whispered) Jessica, send word that a third of the fleet is to return to the Green Isle, to look for more survivors. If they return tell them to keep returning until no more survivors are found."
        [/message]
        [message]
            speaker=Prince Haldric
            message= _ "(whispered) Man the ships with skeleton crews, and give them the remaining supplies. Pass the word to Lord Typhon. Make sure that no more than a third of the fleet is sent. We must not provide the orcs with a ready-made fleet. Make haste, return before it is time to meet with these, what are they? Ahh, elves."
        [/message]
        [message]
            speaker=Prince Haldric
            message= _ "This is the second Eldaric I get to say goodbye to. At least this time it is easier than the first."
        [/message]

        [set_variable]
            name=num_done
            value=0
        [/set_variable]

        [set_variable]
            name=a_beach
            value=0
        [/set_variable]

        [set_variable]
            name=cursed_isle
            value=0
        [/set_variable]

        [set_variable]
            name=the_dragon
            value=0
        [/set_variable]

        [set_variable]
            name=troll_hole
            value=0
        [/set_variable]

        [set_variable]
            name=last_done
            value="none"
        [/set_variable]

        [endlevel]
            #Bet I scared a few people there
            result=victory
            bonus=no
            {NEW_GOLD_CARRYOVER 40}
            next_scenario=Elf_Lords
        [/endlevel]
    [/event]

    [event]
        name=turn 3
        [message]
            speaker=Lady Jessica
            message= _ "I bet this wasn't the welcome you were expecting."
        [/message]
    [/event]
[/scenario]
