#textdomain wesnoth-httt
[scenario]
    id=18_A_Choice_Must_Be_Made
    name= _ "A Choice Must Be Made"
    map_file=18_A_Choice_Must_Be_Made.map
    {TURNS 30 27 24}

    next_scenario=19a_Snow_Plains

    {DEFAULT_SCHEDULE}

    {SCENARIO_MUSIC "siege_of_laurelmor.ogg"}
    {EXTRA_SCENARIO_MUSIC "knolls.ogg"}
    {EXTRA_SCENARIO_MUSIC "northern_mountains.ogg"}
    {EXTRA_SCENARIO_MUSIC "breaking_the_chains.ogg"}
    {EXTRA_SCENARIO_MUSIC "battle.ogg"}
    {EXTRA_SCENARIO_MUSIC "casualties_of_war.ogg"}

    [story]
        [part]
            story= _ "The Sceptre, 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."
            show_title=no
        [/part]
        [part]
            story= _ "An early encounter with the Sceptre 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."
            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..."
            show_title=no
        [/part]
    [/story]

    {HTTT_TRACK {JOURNEY_18_NEW} }

    [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]

            {TURNS_RUN_OUT}

            [gold_carryover]
                bonus=yes
                carryover_percentage=40
            [/gold_carryover]
        [/objectives]
    [/event]

    {campaigns/Heir_To_The_Throne/utils/deaths.cfg}

    [side]
        type=Commander
        id=Konrad
        name= _ "Konrad"
        unrenamable=yes
        profile=portraits/konrad-human.webp
        side=1
        canrecruit=yes
        team_name=elves
        user_team_name=_"Rebels"
        controller=human
        {GOLD 230 200 170}
        {FLAG_VARIANT long}
    [/side]

    [side]
        type=Orcish Warlord
        id=Urug-Telfar
        name= _ "Urug-Telfar"
        side=2
        canrecruit=yes
        {GOLD 150 200 250}
#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=_"Orcs"
        {FLAG_VARIANT6 ragged}
    [/side]

    {STARTING_VILLAGES 2 8}

    [side]
        type=Death Knight
        id="Unan-Ka'tall"
        name= _ "Unan-Ka’tall"
        side=3
        controller=ai
        canrecruit=yes
        {GOLD 160 210 260}

#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]
#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=_"Undead"
        {FLAG_VARIANT undead}
    [/side]

    {STARTING_VILLAGES 3 8}

    [event]
        name=prestart

        {VARIABLE dialog no}

        {NEED_DELFADOR placement=leader}
        {NEED_LISAR placement=leader}
        {NEED_KALENZ placement=leader}
    [/event]

    [event]
        name=start

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

            #if Konrad got the sceptre
            [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, Li’sar?"
                [/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 hordes of undead!"
                [/message]
                [message]
                    speaker=Konrad
                    message= _ "Indeed there are. We shall have to fight our way out. Are you with us 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 Sceptre, and someday I shall have it!"
                [/message]
                [message]
                    speaker=Konrad
                    message= _ "Then let us devise a battle plan."
                [/message]
            [/then]

            #if Li'sar got the sceptre
            [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 Sceptre against me, Li’sar?"
                [/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, <i>Princess</i>, it is once again we who will spare you, Sceptre or no Sceptre."
                [/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
            #po: "Longlier" <- English "long" + "lies"; translate accordingly
            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, Li’sar?"
        [/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. 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
            {DELFADOR_MENTORING}
            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 need not avoid the Arkan-thoria. We merfolk can lead you downstream; with our vanguard, your company will vanquish any foe, and reach the home of the North Elves much sooner than by either of the land routes. I can not promise a perilless journey, but it is an option for you to consider, my lord."
                [/message]
                [if]
                    [variable]
                        name=via_isle_of_the_damned
                        not_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]
                        [if]
                            [have_unit]
                                id=$unit.id
                                gender=male
                            [/have_unit]
                            [then]
                                [message]
                                    speaker=Konrad
                                    message= _ "Your people have already saved me once from a watery death, noble merman, fighting by my side as undead horrors threatened to devour us. I entrust our army to your strength and protection."
                                [/message]
                            [/then]
                            [else]
                                [message]
                                    speaker=Konrad
                                    message= _ "Your people have already saved me once from a watery death, noble mermaid, fighting by my side as undead horrors threatened to devour us. I entrust our army to your strength and protection."
                                [/message]
                            [/else]
                        [/if]
                    [/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
                    {KONRAD_VARIATION concerned}
                    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
                    {DELFADOR_MENTORING}
                    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
                    {DELFADOR_MENTORING}
                    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]
                label= _ "Our need for speed outweighs the danger. With the merfolk to help us, we will win through."
                [command]
                    [role]
                        role=merman-advisor
                        id=$unit.id
                    [/role]

                    [endlevel]
                        next_scenario=19c_Cliffs_of_Thoria
                        result=victory
                        bonus=yes
                        {NEW_GOLD_CARRYOVER 40}
                    [/endlevel]
                [/command]
            [/option]
            [option]
                label= _ "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]

        [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]

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

    [event]
        name=victory

        {CLEAR_VARIABLE dialog}
    [/event]
[/scenario]
