#textdomain wesnoth-httt
[scenario]
    id=18_A_Choice_Must_Be_Made
    name= _ "A Choice Must Be Made"
    map_data="{campaigns/Heir_To_The_Throne/maps/18_A_Choice_Must_Be_Made.map}"
    {SCENARIO_MUSIC "nunc_dimittis.ogg"}
    {EXTRA_SCENARIO_MUSIC "knolls.ogg"}
    {TURNS 33 30 27}

    next_scenario=19a_Snow_Plains

    {DEFAULT_SCHEDULE}

    [story]
        [part]
            story= _ "The Scepter, initially dulled from decades of dust and debris, began to glow from the ruby's inner fire. Dwarvish runes on the golden handle lit up in pulsating blue. The heat and light were comforting in the pitch black."
            #background="maps/wesnoth-httt.jpg"
            show_title=no
        [/part]
        [part]
            story= _ "An early encounter with the Scepter in the hands of its new owners left several trolls as smoking husks. Sensing the awakening of a powerful magic, the dwellers of the deep quickly scattered and remained out of sight."
            #background="maps/wesnoth-httt.jpg"
            show_title=no
        [/part]
        [part]
            story= _ "Delfador led his young charges through lonely corridors and abandoned tunnels for four days. For the first time Konrad saw signs of fatigue in the old wizard's normally inscrutable face. Finally, fresh air greeted the party..."
            #background="maps/wesnoth-httt.jpg"
            show_title=no
        [/part]
    [/story]

    {BIGMAP_A_CHOICE_MUST_BE_MADE}

    [event]
        name=prestart
        [objectives]
            side=1
            [objective]
                description= _ "Defeat either of the enemy leaders"
                condition=win
            [/objective]
            [objective]
                description= _ "Death of Konrad"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Delfador"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Li'sar"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Kalenz"
                condition=lose
            [/objective]

            note={EARLY_FINISH_BONUS_NOTE}+{NEW_GOLD_CARRYOVER_NOTE_40}
        [/objectives]
    [/event]

    {campaigns/Heir_To_The_Throne/utils/deaths.cfg}

    [side]
        type=Commander
        id=Konrad
        name= _ "Konrad"
        unrenamable=yes
        side=1
        canrecruit=yes
        team_name=elves
        user_team_name=_"Rebels"
        controller=human
        gold=200
    [/side]

    {STARTING_VILLAGES 1 8}

    [side]
        type=Orcish Warlord
        id=Urug-Telfar
        name= _ "Urug-Telfar"
        side=2
        canrecruit=yes
        {GOLD 180 240 300}
        [ai]
            {ATTACK_DEPTH 5 5 6}
        [/ai]
#ifdef HARD
        recruit=Orcish Warrior,Orcish Assassin,Orcish Crossbowman,Goblin Knight
#else
        recruit=Orcish Warrior,Orcish Assassin,Orcish Crossbowman,Wolf Rider
#endif
        team_name=evil
        user_team_name=_"Evil"
    [/side]

    {STARTING_VILLAGES 2 8}

    [side]
        type=Death Knight
        id="Unan-Ka'tall"
        name= _ "Unan-Ka'tall"
        side=3
        controller=ai
        canrecruit=yes
        {GOLD 190 250 310}

#ifdef EASY
        recruit=Skeleton,Revenant,Chocobone,Blood Bat,Ghost,Bone Shooter
#endif
#ifdef NORMAL
        recruit=Skeleton,Revenant,Chocobone,Blood Bat,Wraith,Bone Shooter,Dark Adept
#endif
#ifdef HARD
        recruit=Skeleton,Revenant,Chocobone,Wraith,Bone Shooter,Dark Adept
#endif

        [ai]
            {ATTACK_DEPTH 5 5 6}
#ifdef EASY
            recruitment_pattern=fighter,fighter,archer,scout
#endif
#ifdef NORMAL
            recruitment_pattern=fighter,fighter,archer,scout
#endif
#ifdef HARD
            recruitment_pattern=fighter,fighter,archer,scout
#endif
        [/ai]

        [ai]
            aggression=1.0
            village_value=0.0
            leader_value=50.0
        [/ai]
        team_name=evil
        user_team_name=_"Evil"
    [/side]

    {STARTING_VILLAGES 3 8}

    [event]
        name=start

        {VARIABLE dialog no}

        [recall]
            id=Delfador
        [/recall]
        [recall]
            id="Li'sar"
        [/recall]
        [recall]
            id=Kalenz
        [/recall]

        [if]
            [variable]
                name=scepter
                equals="Konrad"
            [/variable]

            #if Konrad got the Scepter
            [then]
                [message]
                    speaker="Li'sar"
                    message= _ "I thank you for helping me get back to the surface, but now I must take what is mine!"
                [/message]
                [message]
                    speaker=Konrad
                    message= _ "You still want to fight me, do you, Princess?"
                [/message]
                [message]
                    speaker="Li'sar"
                    message= _ "Did you think I was just playing around? I need to take my inheritance!"
                [/message]
                [message]
                    speaker=Delfador
                    message= _ "It is not so simple! We are back on the surface, but we are hardly safe. We barely know where we are. Look to the north... there are orcs about! Look to the south... there are the hordes of the undead!"
                [/message]
                [message]
                    speaker=Konrad
                    message= _ "Indeed there are. We will have to fight our way out. Are you with us, Princess, or against us?"
                [/message]
                [message]
                    speaker="Li'sar"
                    message= _ "Perhaps it is in both our best interests for us to remain allies for a little longer... but I do want that Scepter, and someday I will have it!"
                [/message]
                [message]
                    speaker=Konrad
                    message= _ "Then let us devise a battle plan."
                [/message]
            [/then]

            #if Li'sar got the Scepter
            [else]
                [message]
                    speaker="Li'sar"
                    message= _ "We have escaped."
                [/message]
                [message]
                    speaker=Konrad
                    message= _ "Yes, we have. Now I suppose you want to use the Scepter against me, Princess?"
                [/message]
                [message]
                    speaker="Li'sar"
                    message= _ "No, I was thinking... I don't really want to kill you. I have what I came to get. So if you promise never to come south of the great river, I will spare your life."
                [/message]
                [message]
                    speaker=Kalenz
                    message= _ "With all due respect, Princess, it is once again we who will spare you, Scepter or no Scepter."
                [/message]
                [message]
                    speaker="Li'sar"
                    message= _ "Such words in the presence of royalty! Do you want me to fry you, Elf?"
                [/message]
                [message]
                    speaker=Delfador
                    message= _ "Friends, peace! Though we are out of the tunnels, we are hardly safe. We are somewhere in the arid and wild north lands, that is all we know. Behold! To the north, orcs, to the south, dark hordes. We must remain at peace with one another, or else all perish!"
                [/message]
                [message]
                    speaker="Li'sar"
                    message= _ "I suppose that helping each other for a while longer would be mutually beneficial. But what should we do? How should we defend ourselves?"
                [/message]
            [/else]
        [/if]

        [message]
            speaker=Kalenz
            message= _ "I can tell where we are. That is the river that is known as Longlier to men, called Arkan-thoria in my people's ancient tongue. The home of my people lies to the east."
        [/message]
        [message]
            speaker=Konrad
            message= _ "Then perhaps we should head East along the river, and seek refuge and rest there for a time?"
        [/message]
        [message]
            speaker=Kalenz
            message= _ "We should indeed seek refuge there, my lord, but not by going east along the river. Its name means 'The River of Bones'. Great and evil creatures lurk along its banks, its waters are not fit to drink, and it runs over the Cliffs of Thoria. It has been many centuries since any man or elf has passed over the Cliffs and survived. No, Prince, we must choose another way."
        [/message]
        [message]
            speaker=Konrad
            message= _ "But which way, Kalenz?"
        [/message]
        [message]
            speaker=Kalenz
            message= _ "We may take two paths which avoid the river. North, through the ancient home of my people, and then east to where they now live. Or we can go south, passing through the swamps, before turning east and then north. We would cross the river one time more if we chose that route, but I know a safe place for the crossing."
        [/message]
        [message]
            speaker=Konrad
            message= _ "And will you join us in seeking refuge with the North Elves, Princess?"
        [/message]
        [message]
            speaker="Li'sar"
            message= _ "If the elves will promise me refuge and safe passage, then I will go."
        [/message]
        [message]
            speaker=Kalenz
            message= _ "That we will, Princess. Even though you are the daughter of the Queen, our enemy, we shall not harm you on this encounter, for you have helped us."
        [/message]
        [message]
            speaker=Delfador
            message= _ "So, we must choose. To the north past the orcs, where lie the ancient snow plains of the elves, or to the south, beyond the armies of the Walking Dead where the dreaded swamps await."
        [/message]
    [/event]

    [event]
        name=moveto
        first_time_only=no
        [filter]
            side=1
            race=merman
            x=38
            y=28-29
        [/filter]
        [if]
            {CHECK_VARIABLE dialog no}

            [then]
                [message]
                    speaker=unit
                    message= _ "Prince Konrad, you and your friends keep talking about avoiding the river. But we can lead you up the river. With the help of us Merfolk, you could reach the home of the North Elves much sooner by going up the river instead of taking either one of the land routes. I can not promise you that it will be a safe journey, because I do not know what lies ahead, but it is an option and you should consider it, my lord."
                [/message]
                [if]
                    [variable]
                        name=path_muff_malal
                        equals=yes
                    [/variable]
                    [then]
                        [message]
                            speaker=Konrad
                            message= _ "Loyal Merfolk, you have served far beyond what your debt of gratitude requires. I will trust your strength and loyalty through this tribulation even as you trusted us to lead you through the heart of a volcano."
                        [/message]
                    [/then]
                    [else]
                        [message]
                            speaker=Konrad
                            message= _ "Your people have already saved me once from a watery death, noble mer, fighting by my side as undead horrors threatened to devour us. I entrust our army to your strength and protection."
                        [/message]
                    [/else]
                [/if]
                [message]
                    speaker=Konrad
                    message= _ "If you are confident you can navigate these waters and guide our forces to safety, then lead on."
                [/message]
                [message]
                    speaker=unit
                    message= _ "I am, my liege. We press ahead. Stay close, noble masters."
                [/message]
                [message]
                    speaker=Delfador
                    message= _ "I suspected you would attempt to lead us down the banks of Longlier..."
                [/message]
                [message]
                    speaker=Kalenz
                    message= _ "(shock) What!? Konrad, your folly is appalling! Do you flout my advice?"
                [/message]
                [message]
                    speaker="Li'sar"
                    message= _ "We are traveling east? Down the river? Konrad, I hope you know what you are committing us to."
                [/message]
                [message]
                    speaker=Kalenz
                    message= _ "Of course not, whelp, else he would have chosen a safer route."
                [/message]
                [message]
                    speaker=Konrad
                    image=portraits/konrad-angry.png
                    message= _ "Hold your tongue, Kalenz. The princess is our ally and of royal blood. She deserves not your disrespect."
                [/message]
                [message]
                    speaker=Kalenz
                    message= _ "Delfador, you cannot allow this to happen! We march to our death!"
                [/message]
                [message]
                    speaker=Konrad
                    message= _ "Lord elf, I am in command. I have held council with the Merfolk, and they believe they can find a path down the river and over the falls. We will take the most direct route to your homeland and escape the grasp of the Northerner armies that swarm the wilderness."
                [/message]
                [message]
                    speaker=Delfador
                    message= _ "(sigh) I have been spoiled by years of genteel living among your kind, Kalenz. An elf's capacity for introspection and serenity is exceeded only by his ferocity and passion in battle."
                [/message]
                [message]
                    speaker=Delfador
                    message= _ "It offends your pride and wisdom to suffer the indignity of accepting the will of humans, especially in such a harsh predicament. I urge you to remember how far we have come under Konrad's leadership, and how close we are to bringing the hammer of destiny crashing down on Queen Asheviere's ill-gotten throne. We will journey east."
                [/message]
                [message]
                    speaker=Kalenz
                    message= _ "I do not like this, old friend. There are legends of things dwelling on this river that even I dare not speak of..."
                [/message]

                {VARIABLE dialog yes}
            [/then]
        [/if]
        [message]
            speaker=unit
            message= _ "Prince Konrad, are you sure you want to do this?"
        [/message]
        [message]
            speaker=Konrad
            message= _ "I say that..."
            [option]
                message= _ "Our need for speed outweighs the danger. With the Merfolk to help us, we will win through."
                [command]
                    {CLEAR_VARIABLE dialog}

                    [endlevel]
                        next_scenario=19c_Cliffs_of_Thoria
                        result=victory
                        bonus=yes
                        {NEW_GOLD_CARRYOVER 40}
                    [/endlevel]
                [/command]
            [/option]
            [option]
                message= _ "On second thought, perhaps we should choose a safer way to go."
                [command]
                    [message]
                        speaker=unit
                        message= _ "As you say, my lord."
                    [/message]
                    [message]
                        speaker=narrator
                        image=wesnoth-icon.png
                        message= _ "If you want to choose the river path later, move a merman to the right end of the river again."
                    [/message]
                [/command]
            [/option]
        [/message]
    [/event]

    [event]
        name=die
        [filter]
            id=Urug-Telfar
        [/filter]

        {CLEAR_VARIABLE dialog}

        [endlevel]
            next_scenario=19a_Snow_Plains
            result=victory
            bonus=yes
            {NEW_GOLD_CARRYOVER 40}
        [/endlevel]
    [/event]

    [event]
        name=die
        [filter]
            id="Unan-Ka'tall"
        [/filter]

        {CLEAR_VARIABLE dialog}

        [endlevel]
            next_scenario=19b_Swamp_Of_Dread
            result=victory
            bonus=yes
            {NEW_GOLD_CARRYOVER 40}
        [/endlevel]
    [/event]
[/scenario]
