#textdomain wesnoth-ei
[scenario]
    id=18_Epilogue
    name= _ "Epilogue"
    map_data="{campaigns/Eastern_Invasion/maps/Throne_Room.map}"
    theme=Cutscene_Minimal
    turns=1
    victory_when_enemies_defeated=no
    next_scenario=null

    {DEFAULT_SCHEDULE}

    {INTRO_AND_SCENARIO_MUSIC knolls.ogg heroes_rite.ogg}

    [story]
        [part]
            story= _ "When Mal-Ravanal fell his undead army simply collapsed like puppets with their strings cut. As the lich’s death-scream echoed in the air, a vast and louring column of shadow arose from his corpse like smoke from an unclean fire; then it divided fivefold at its height, reaching for the heavens like a clutching hand.

Men let weapons fall from nerveless fingers and horses reared in terror as that great dark pall obscured the sun..."
            music=the_deep_path.ogg
        [/part]
        [part]
            story= _ "... and then it thinned, and paled, and a breeze from the west dissolved it in tatters, and the light of day shone once again undiminished on Weldyn."
            music=knolls.ogg
        [/part]
    [/story]

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

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

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

    [event]
        name=prestart

        {THRONEROOM_DECOR}

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

        [recall]
            id=Grug
            x,y=7,11
        [/recall]
        [recall]
            id=Engineer
            x,y=9,12
        [/recall]
        [recall]
            id=Terraent
            x,y=12,11
        [/recall]
    [/event]

    [event]
        name=start

        [message]
            speaker=Konrad II
            message= _ "It is a great victory we have won here today, vanquishing the arch-lich Mal-Ravanal."
        [/message]

        [message]
            speaker=Gweddry
            message= _ "So many months of fighting... I feel as though I am awakening from a long nightmare."
        [/message]

        [message]
            speaker=Dacyn
            message= _ "Nor is our work yet complete. Mal-Ravanal’s host has been broken, but in its wake chaos and disorder prevail throughout the countryside."
        [/message]

        [message]
            speaker=Konrad II
            message= _ "We will be years... perhaps decades... recovering from the ill he has wrought."
        [/message]

        [if]
            [have_unit]
                id=Owaec
            [/have_unit]
            [then]
                [message]
                    speaker=Owaec
                    message= _ "Even now we should be sending our cavalry to restore order throughout the land."
                [/message]
            [/then]
            [else]
                [message]
                    speaker=Gweddry
                    message= _ "Even now we should be sending our troops to restore order throughout the land."
                [/message]
            [/else]
        [/if]

        [message]
            speaker=Konrad II
            message= _ "It shall be so. But first, know that you have served Us, and Our Kingdom, full well. We are minded to reward you."
        [/message]

        [if]
            [have_unit]
                id=Terraent
            [/have_unit]
            [then]
                [message]
                    speaker=Konrad II
                    message= _ "Sir Terraent, your service to the crown has been a beacon of light in these dark times. We are appointing you to command the River Guard in Estmark."
                [/message]
                [message]
                    speaker=Terraent
                    message= _ "It is an honor to serve my kingdom, and I humbly accept your commission."
                [/message]
            [/then]
        [/if]

        [if]
            [have_unit]
                id=Grug
            [/have_unit]
            [then]
                [message]
                    speaker=Konrad II
                    message= _ "Grug, Gweddry has told me of the help you and your tribe provided his men. We wish to offer you a new home in the Estmark Hills along with Our thanks."
                [/message]
                [message]
                    speaker=Grug
                    message= _ "Grug say new home will make thanks with."
                [/message]
            [/then]
        [/if]

        [message]
            speaker=Konrad II
            message= _ "Dacyn. I would have you remain by Our side, here; as you counseled these two in war, so shall you counsel Us in peace and the rebuilding of the Kingdom."
        [/message]
        [message]
            speaker=Dacyn
            message= _ "I am honored, your highness."
        [/message]

        [if]
            [have_unit]
                id=Engineer
            [/have_unit]
            [then]
                [message]
                    speaker=Konrad II
                    message= _ "Engineer, much of Estmark region stands in ruins. The crown has need of your skills to clear the wreckage and organize the reconstruction."
                [/message]
                [message]
                    speaker=Engineer
                    message= _ "I’ll be glad ta help yah. It’ll be fun to work in peace again." # wmllint: no spellcheck
                [/message]
            [/then]
        [/if]

        [message]
            speaker=Konrad II
            message= _ "Now as for you..."
        [/message]

        [if]
            [have_unit]
                id=Owaec
            [/have_unit]
            [then]
                [message]
                    speaker=Gweddry
                    message= _ "Sire, we but did our duty."
                [/message]

                [message]
                    speaker=Konrad II
                    message= _ "Quite. Now do not interrupt while I am doing mine... Kneel, Owaec."
                [/message]

                {MOVE_UNIT id=Owaec 10 8}

                [message]
                    speaker=Konrad II
                    message= _ "Arise, Owaec, Knight Commander of the King’s Horse. And take as Our first command to you your own wish; go from here, secure our borders, and show all that the might of Wesnoth will endure."
                [/message]

                [sound]
                    name=horse-canter.wav
                [/sound]

                {MOVE_UNIT id=Owaec 10 12}

                [delay]
                    time=1000
                [/delay]

                [sound]
                    name=horse-canter.wav
                [/sound]

                {MOVE_UNIT id=Owaec 10 15}

                [kill]
                    id=Owaec
                    animate=no
                [/kill]

                [redraw]
                [/redraw]

                [message]
                    speaker=Konrad II
                    message= _ "Kneel, Gweddry."
                [/message]
            [/then]
            [else]
                [message]
                    speaker=Gweddry
                    message= _ "Sire, I but did my duty."
                [/message]
                [message]
                    speaker=Konrad II
                    message= _ "Quite. Now do not interrupt while I am doing mine... Kneel, Gweddry."
                [/message]
            [/else]
        [/if]

        {MOVE_UNIT id=Gweddry 10 8}

        [message]
            speaker=Konrad II
            message= _ "And arise, Gweddry, Earl of Estmark. The land for which you shed your blood shall be put under your hand to be made green again."
        [/message]

        [message]
            speaker=narrator
            message= _ "And so began the Silver Age of Wesnoth, that time known to historians as the Reconstruction..."
            image=wesnoth-icon.png
        [/message]

        [endlevel]
            carryover_report=no
            replay_save=no
            linger_mode=no
        [/endlevel]
    [/event]
[/scenario]
