#textdomain wesnoth-ei
[scenario]
    id=15_The_Council
    name= _ "The Council"
    map_data="{campaigns/Eastern_Invasion/maps/Throne_Room.map}"
    turns=1
    next_scenario=16_Weldyn_under_Attack

    {DEFAULT_SCHEDULE}

    {DEFAULT_MUSIC_PLAYLIST}

    {BRAZIERS}

    {campaigns/Eastern_Invasion/utils/deaths.cfg}

    {BIGMAP_15}

    # wmllint: local spelling Galdren Ravan
    [story]
        [part]
            story= _ "Before we begin our council, I must tell you all the history of this lich we face. He was at first a mage of the realm, like me, and his fall began during the reign of Haldric VII..."
            background=portraits/dacyn.png
        [/part]
        [part]
            story= _ "The greatest seer in the land, Galdren, foresaw that some day, some day soon, a great evil would spread over the land. The king, naturally, was worried. The seer told him that the only way to stop the evil was to appoint a mage, versed well in combat with the spirits of darkness, to be the king’s advisor."
        [/part]
        [part]
            story= _ "In all the land, there were two magi that clearly stood out from the rest. A mage from the east named Ravan, and myself. The King, wishing to choose the best advisor, sent us both before Galdren. Then he conversed with the seer privately. None know what was said, but when he came out he announced that the seer was dead, and he had chosen me as his new advisor."
        [/part]
        [part]
            story= _ "Ravan took this quietly enough, we all thought, but now I think that this was when he began his fall. He went deep into conversation with the spirits of darkness, hoping to discover their weaknesses. But it was they who found his."
        [/part]
        [part]
            story= _ "One day, Ravan returned to the castle where I was living. He demanded to see me and the guards let him in, for then he was still a well-respected mage. When I greeted him, he named himself Mal-Ravanal and challenged me to a duel."
        [/part]
        [part]
            story= _ "His attack was swift and his power great, but through unwavering faith and no small skill I emerged victorious. As he lie there mortally wounded I prepared to excise the darkness in his soul."
        [/part]
        [part]
            story= _ "But I hesitated too long... He simply vanished, teleported away. The mage Ravan died that day; yet death is a mere inconvenience to those most skilled in the arts of necromancy..."
        [/part]
    [/story]

    [side]
        type=Lieutenant
        id=Gweddry
        name= _ "Gweddry"
        side=1
        canrecruit=yes
        controller=human
        gold=0
        team_name=good
        user_team_name=_"Wesnothians"
        {FLAG_VARIANT loyalist}
    [/side]

    [side]
        type=General
        id=Konrad II
        name= _ "Konrad II"
        profile=portraits/konrad_II.png
        side=2
        canrecruit=no
        facing=sw
        controller=ai
        team_name=good
        user_team_name=_"Wesnothians"
        {FLAG_VARIANT loyalist}
    [/side]

    [side]
        type=Great Mage
        id=Kaldor
        name= _ "Kaldor"
        side=3
        canrecruit=no
        facing=sw
        controller=ai
        team_name=good
        user_team_name=_"Wesnothians"
        {FLAG_VARIANT loyalist}
    [/side]

    [event]
        name=prestart

        {THRONEROOM_DECOR}

        [recall]
            id=Dacyn
            x,y=8,8
        [/recall]
        [recall]
            id=Owaec
            x,y=9,10
        [/recall]
    [/event]

    [event]
        name=start

        [message]
            speaker=Dacyn
            message= _ "This is the lich we are facing: Mal-Ravanal."
        [/message]
        [message]
            speaker=Konrad II
            message= _ "So what should we do now?"
        [/message]
        [message]
            speaker=Kaldor
            message= _ "We must fight, obviously. Surely the might of Wesnoth can triumph over a mere lich!"
        [/message]
        [message]
            speaker=Owaec
            message= _ "I can tell by your words that you have not seen the hordes for yourself. It is like all of the dead warriors from all the ages have come back to attack us. There is no end to the columns of marching skeletons, the wailing ghosts, the infernal bats, led by the foul necromancers who raised them."
        [/message]
        [message]
            speaker=Gweddry
            message= _ "We barely escaped the Southern Outpost with our lives; Mal-Ravanal’s army cannot be defeated by even the might of all Wesnoth."
        [/message]
        [message]
            speaker=Kaldor
            message= _ "That simply makes you cowards. True warriors would have stayed and fought to the death!"
        [/message]
        [message]
            speaker=Dacyn
            message= _ "A meaningless sacrifice and a few more corpses marching upon Weldyn. We realized our only path to victory is to destroy the head of these necromancers, the lich Mal-Ravanal. With this Null Stone I can counteract his teleportation and finally put his tortured soul to rest."
        [/message]
        [message]
            speaker=Kaldor
            message= _ "But if we cannot defeat the army, how may we strike at the leader?!"
        [/message]
        [message]
            speaker=Owaec
            message= _ "I recommend a full assault. Our mounted units are more maneuverable; if we attack in force we may be able to punch through the enemy lines and isolate Mal-Ravanal in the chaos of battle."
        [/message]
        [message]
            speaker=Dacyn
            message= _ "I suggest that we appeal to his arrogance: I believe Mal-Ravanal would be <i>compelled</i> to face me if I were to challenge him to a duel."
        [/message]
        [message]
            speaker=Owaec
            message= _ "We cannot trust that he would honor the terms of the challenge! You would likely find yourself facing his entire army!"
        [/message]
        [message]
            speaker=Dacyn
            message= _ "We face his entire army regardless. The only difference is whether Mal-Ravanal is commanding in back or gloating in front."
        [/message]
        [message]
            speaker=Konrad II
            message= _ "Two risky plans. But if these undead are as strong as you say then we are pressed for options. Gweddry, you are most familiar with this situation. I will leave this choice in your hands."
        [/message]

        #While I would like to put the choice here, that would make players replay "Weldyn Under Attack"
        #if they wanted to change their selection. Playability trumps storyline, so the choice is deferred.

        [unit]
            id=guard
            generate_name=yes
            type=Royal Guard
            x=10
            y=20
            side=2
        [/unit]
        {MOVE_UNIT id=guard 10 15}
        [message]
            speaker=guard
            message= _ "Sire, the undead armies are attacking!"
        [/message]
        [message]
            speaker=Konrad II
            message= _ "Well, that will have to be the end of our council. Let us fight!"
        [/message]
        [endlevel]
            result=victory
            bonus=no
            {NEW_GOLD_CARRYOVER 100}
            carryover_report=no
            linger_mode=no
        [/endlevel]
    [/event]
[/scenario]
