#textdomain wesnoth-dm
[scenario]
    name= _ "Council in Weldyn"
    id=05_Council_in_Weldyn
    next_scenario=06_Swamps_of_Illuven
    {MEMOIRS_MAP 05_Council_in_Weldyn.map}
    turns=unlimited
    theme=Cutscene_Minimal
    {DEFAULT_SCHEDULE}

    {SCENARIO_MUSIC loyalists.ogg}	# No story part, so no intro music

    {DM_TRACK {SEARCH_STAGE5}}

    [side]
        {YOUNG_DELFADOR}
        side=1
        save_id=Player
        persistent=yes
        controller=human
        recruit=Mage,Spearman,Horseman,Bowman,Cavalryman,Heavy Infantryman
        team_name=allies
        user_team_name= _ "Loyalists"
    [/side]

    [side]
        type=King of Wesnoth
        id=Garard
        name=_ "Garard"
        profile=portraits/garard.png
        side=2
        recruit=Royal Guard
        team_name=allies
        user_team_name= _ "Loyalists"
        controller=ai
        # guards are facing outward
        {UNIT 2 (Royal Guard) 23 18 (facing=nw)}
        {UNIT 2 (Royal Guard) 29 18 (facing=ne)}
        {UNIT 2 (Royal Guard) 24 22 (facing=sw)}
        {UNIT 2 (Royal Guard) 30 21 (facing=se)}
        {FLAG_VARIANT loyalist}
    [/side]

    [event]
        name=start
        {MODIFY_UNIT (id=Delfador) facing nw}
        [scroll_to_unit]
            id=Delfador
        [/scroll_to_unit]

        [unit]
            type=Arch Mage
            id=Leollyn
            name=_ "Leollyn"
            profile=portraits/leollyn.png
            facing=ne
            gender=male
            x=27
            y=21
            side=2
        [/unit]
        [unit]
            type=Cavalryman
            id=Gurcyn
            name=_ "Gurcyn"
            facing=se
            x=25
            y=20
            side=2
        [/unit]

        [message]
            speaker=narrator
            message=_"Delfador and Leollyn met no more opposition in returning to Weldyn. As they entered the city, Delfador was amazed by its size, its grand walls and impressive citadel. After a night’s rest, Leollyn invited him to attend a meeting with the king himself. Garard, it seemed, was anxious to hear news from the borders of Wesnoth."
            image=wesnoth-icon.png
        [/message]

        [redraw]
        [/redraw]

        [unit]
            {LIONEL}
            x=24
            y=14
            side=2
        [/unit]
        {MOVE_UNIT (id=Lionel) 26 19}
        {MODIFY_UNIT (id=Lionel) facing se}
        # wmllint: recognize Lionel

        [message]
            speaker=Garard
            message=_"Ah, now the last of my council is here. Lionel, what tidings from the north?"
        [/message]
        [message]
            speaker=Lionel
            message=_"Bad news, my liege. The orcs mass in great numbers on the north shore of the river, near to the Ford of Abez. We have been cut off from the dwarves of Knalga — the rumor is that the orcs plan to overrun them, then turn their attention to Wesnoth. The good people of our northern provinces flee, and the land there falls into anarchy. We were attacked more than once by thugs and bandits, and by evil creatures that roamed the night in the shapes of men."
        [/message]
        [message]
            speaker=Leollyn
            message=_"Worse news — the orcs are already here, sire. I myself was set upon within the royal forest. Were it not for this young fellow here..."
        [/message]
        [message]
            speaker=Garard
            message=_"Then there is no time to be lost! I will ride to the Ford of Abez with an army. As bold as the orcs may be to cross our borders in secret and prey on the defenseless, they are disorganized and cowardly in the face of a foe worth their mettle. They need reminding that Wesnoth is too hot for them. Gurcyn, you have been to the west — will the Elves lend their archers to help us?"
        [/message]
        [message]
            speaker=Gurcyn
            message=_"The elves will not fight; they hate the orcs, but spoke darkly of human greed and foolishness. I have never seen them so unfriendly. There is something they know of and fear, but they would not tell me what it is."
        [/message]
        [message]
            speaker=Delfador
            message=_"Your majesty... may I join your army? I mean, I came to Weldyn to seek your employ. And if it’s archers you need, might not a mage be of help?"
        [/message]
        [message]
            speaker=Garard
            message=_"Ah, young Delfador... you speak well, and Leollyn has already told me of your bravery. I accept your offer of service with gratitude, but this is a task for warriors, not magic-makers. You shall stay here with Leollyn and be Leollyn’s right hand as he is mine."
        [/message]

        {MOVE_UNIT (id=Garard) 24 14}
        [kill]
            id=Garard
        [/kill]

        [scroll_to_unit]
            id=Delfador
        [/scroll_to_unit]

        #		[message]
        #		speaker=Leollyn
        #		message=_"It is a pity King Garard did not accept your offer to ride with him, Delfador. More than swords and arrows will be needed to return peace to the kingdom. I am troubled by the news that the elves fear to be involved."
        #		[/message]
        #		[message]
        #		speaker=Delfador
        #		message=_"A pity indeed... I had longed to see the great city, but now I am strangely disappointed. I would so have loved to travel through the north in the king’s service..."
        #		[/message]
        [message]
            speaker=Leollyn
            message=_"Delfador, I may have a task for you... Lionel’s talk of evil night creatures troubles me. Such stories have reached me before. There are a few places where the spirit world comes close to the earth we know, and there a trained mage may communicate with the spirits of the dead through meditation. The nearest lies to the northwest, on a small island in the Great River just south of the Ford of Abez. If the dead are restless, they may tell us why. I had thought to undertake such a mission myself... but now I must remain in Weldyn... perhaps you could go in my place?"
        [/message]
        [message]
            speaker=Delfador
            message=_"I’m honored that you would entrust me with such a task... but I too stay in Weldyn, by the king’s order!"
        [/message]
        [message]
            speaker=Leollyn
            message=_"Hmmm... King Garard placed you under my command, and I may command you to travel north, if you wish to; he will not interfere with a mission of magery as he might with one of war. But you must be sure you are ready for such a grave task. Dealings with the spirit world are dangerous even for the most powerful mages. Allow only your mind to enter the land of the dead — should your body follow, there is no return! Do you still wish to go?"
        [/message]
        [message]
            speaker=Delfador
            message=_"If that is how I may best serve, I will do it right willingly."
        [/message]
        [message]
            speaker=Leollyn
            message=_"Then you shall! Lionel and his men will accompany you, for you will need more than magic for protection on the road... especially where you’ll be going, into the wild country north of Tath. It is a chancy place at the best of times, and orcs may already be raiding south of the Ford."
        [/message]

        [endlevel]
            result=victory
            linger_mode=no
            bonus=no
            carryover_percentage=100
            carryover_report=no
        [/endlevel]
    [/event]

    [event]
        name=victory

        {MODIFY_UNIT id=Lionel side 1}
    [/event]
[/scenario]
