#textdomain wesnoth-httt
[scenario]
    id=19c_Cliffs_of_Thoria
    name= _ "The Cliffs of Thoria"
    map_data="{campaigns/Heir_To_The_Throne/maps/19c_Cliffs_of_Thoria.map}"

    {SCENARIO_MUSIC "the_dangerous_symphony.ogg"}
    {EXTRA_SCENARIO_MUSIC "knolls.ogg"}
    {EXTRA_SCENARIO_MUSIC "wanderer.ogg"}
    {TURNS 55 50 45}

    next_scenario="20b_Underground_Channels"
    victory_when_enemies_defeated=no

    {AFTERNOON}
    {DUSK}
    {FIRST_WATCH}
    {SECOND_WATCH}
    {DAWN}
    {MORNING}

    {BIGMAP_CLIFFS_OF_THORIA}

    {PLACE_IMAGE items/gohere.png 55 3}
    {PLACE_IMAGE scenery/shipwreck-1.png 43 5}
    {PLACE_IMAGE scenery/wreck.png 46 13}
    {PLACE_IMAGE scenery/shipwreck-1.png 5 8}
    {PLACE_IMAGE scenery/wreck.png 10 17}
    {PLACE_IMAGE scenery/shipwreck-1.png 44 17}
    {PLACE_IMAGE scenery/shipwreck-1.png 52 18}
    {PLACE_IMAGE scenery/shipwreck-1.png 21 12}
    {PLACE_IMAGE scenery/wreck.png 25 5}
    {PLACE_IMAGE scenery/wreck.png 3 4}
    {PLACE_IMAGE scenery/shipwreck-1.png 8 13}
    {PLACE_IMAGE scenery/wreck.png 17 8}
    {PLACE_IMAGE scenery/wreck.png 12 8}
    {PLACE_IMAGE scenery/shipwreck-1.png 14 12}
    {PLACE_IMAGE scenery/wreck.png 48 6}
    {PLACE_IMAGE scenery/shipwreck-1.png 51 4}
    {PLACE_IMAGE scenery/wreck.png 48 19}
    {PLACE_IMAGE scenery/wreck.png 48 6}
    {PLACE_IMAGE scenery/shipwreck-1.png 21 6}
    {PLACE_IMAGE scenery/shipwreck-1.png 13 3}
    {PLACE_IMAGE scenery/wreck.png 18 13}
    {PLACE_IMAGE scenery/shipwreck-1.png 39 2}
    {PLACE_IMAGE scenery/shipwreck-1.png 40 16}
    {PLACE_IMAGE scenery/wreck.png 39 13}
    {PLACE_IMAGE scenery/shipwreck-1.png 32 2}
    {PLACE_IMAGE scenery/shipwreck-1.png 42 10}
    {PLACE_IMAGE scenery/wreck.png 33 14}
    {PLACE_IMAGE scenery/shipwreck-1.png 26 8}
    {PLACE_IMAGE scenery/wreck.png 33 14}
    {PLACE_IMAGE scenery/wreck.png 40 7}
    {PLACE_IMAGE scenery/wreck.png 29 10}
    {PLACE_IMAGE scenery/wreck.png 32 6}
    {PLACE_IMAGE scenery/shipwreck-1.png 24 15}
    {PLACE_IMAGE scenery/shipwreck-1.png 35 9}

    {WATERFALL_MASK 55 1}
    {WATERFALL_MASK 55 2}
    {WATERFALL_MASK 55 3}
    {WATERFALL_MASK 55 4}
    {WATERFALL_MASK 55 5}
    {WATERFALL_MASK 54 1}
    {WATERFALL_MASK 54 2}
    {WATERFALL_MASK 54 3}
    {WATERFALL_MASK 54 4}
    {WATERFALL_MASK 54 5}

    [event]
        name=prestart
        [objectives]
            side=1
            [objective]
                description= _ "Make it to the end of the river"
                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.png
        side=1
        canrecruit=yes
        controller=human
        team_name=elves
        user_team_name=_"Rebels"
        gold=250
        fog=yes
        shroud=no
        share_maps=no
        share_view=no
        {FLAG_VARIANT long}
    [/side]

    [side]
        side=2
        no_leader=yes
        controller=ai
        canrecruit=no
        [ai]
            {ATTACK_DEPTH 5 5 6}
            [avoid]
                x=1-40,14-19,44-55,41-43
                y=15-22,13-14,11-22,14-22
            [/avoid]
            passive_leader=yes
        [/ai]
        team_name=drakes
        user_team_name=_"Drakes"
    [/side]

    [side]
        side=3
        no_leader=yes
        controller=ai
        canrecruit=no
        [ai]
            {ATTACK_DEPTH 5 5 6}
            [avoid]
                x=1-55,40-55
                y=1-14,16-22
            [/avoid]
        [/ai]
        team_name=undead
        user_team_name=_"Undead"
    [/side]

    [side]
        side=4
        no_leader=yes
        controller=ai
        canrecruit=no
        [ai]
            {ATTACK_DEPTH 5 5 6}
            [avoid]
                x=1-55,1-44,1-41
                y=1-11,12-13,14-22
            [/avoid]
        [/ai]
        team_name=monsters
        user_team_name=_"Monsters"
    [/side]

    [side]
        side=5
        no_leader=yes
        controller=ai
        canrecruit=no
        team_name=elves
        user_team_name=_"Rebels"
        fog=yes
    [/side]

    [event]
        name=start
        #For Home of the Northern Elves: where do we come from?
        #the position where we are - impassable mountains,swamp, looking for a way out
        #the sunk loyalist fleet with the flag of wesnoth
        #the conversation with the drakes
        [set_variable]
            name=A_Choice_Was_Made
            value=c
        [/set_variable]
        [role]
            role=merman-advisor
            type=Merman Triton,Merman Hoplite,Mermaid Diviner,Siren,Merman Javelineer,Merman Entangler,Merman Warrior,Mermaid Priestess,Mermaid Enchantress,Merman Spearman,Merman Netcaster,Merman Fighter,Mermaid Initiate,Merman Hunter
        [/role]
        [recall]
            role=merman-advisor
        [/recall]
        [recall]
            id=Delfador
        [/recall]
        [recall]
            id=Kalenz
        [/recall]
        [recall]
            id="Li'sar"
        [/recall]

        {VARIABLE waterfall_sighted no}
        {VARIABLE undead_killed no}
        {OBJ_TRIDENT_STORM 17 11 cot_stormtrident}
        {PLACE_IMAGE items/gohere.png 55 3}

        {UNDEAD_GUARDIAN Draug 2 17}
        {UNDEAD_GUARDIAN Draug 4 17}
        {UNDEAD_GUARDIAN Draug 6 17}
        {UNDEAD_GUARDIAN Draug 8 17}
        {UNDEAD_GUARDIAN Draug 10 17}
        {UNDEAD_GUARDIAN Draug 12 16}
        {UNDEAD_GUARDIAN Draug 14 16}
        {UNDEAD_GUARDIAN Draug 16 15}
        {UNDEAD_GUARDIAN Draug 18 16}
        {UNDEAD_GUARDIAN Draug 20 16}
        {UNDEAD_GUARDIAN Draug 22 17}
        {UNDEAD_GUARDIAN Draug 24 17}
        {UNDEAD_GUARDIAN Draug 26 17}
        {UNDEAD_GUARDIAN Draug 28 17}
        {UNDEAD_GUARDIAN Draug 30 17}
        {UNDEAD_GUARDIAN Draug 32 17}
        {UNDEAD_GUARDIAN Draug 34 17}
        {UNDEAD_GUARDIAN Draug 36 17}
        {UNDEAD_GUARDIAN Draug 38 17}

        {MODIFY_UNIT side=3 movement_costs.deep_water {UNREACHABLE}}
        {MODIFY_UNIT side=3 movement_costs.shallow_water {UNREACHABLE}}
        {MODIFY_UNIT side=3 movement_costs.swamp_water {UNREACHABLE}}
    [/event]

    [event]
        name=start
        [unit]
            type=Injured Sergeant
            side=5
            x=45
            y=16
            id=Warven
            name= _ "Warven"
            hitpoints=1
            [modifications]
                {TRAIT_LOYAL}
                {TRAIT_FEARLESS}
            [/modifications]
            {IS_LOYAL}
            [status]
                poisoned=yes
            [/status]
        [/unit]
        [message]
            speaker=narrator
            image=wesnoth-icon.png
            message= _ "The party traveled down the river for days, sometimes walking through the shallow water, sometimes swimming, helped by the Merfolk."
        [/message]
        [message]
            speaker=narrator
            image=wesnoth-icon.png
            message= _ "One day they saw a gruesome sight — a fleet of boats and rafts sunk or shattered among the river islands. Konrad sent some of the mermen to investigate."
        [/message]
        [message]
            role=merman-advisor
            message= _ "These are not proper ships, but shallow-draft boats built only recently; much of their timber is green. They were sunk in battle, not by a storm. Those that were not capsized have been burned. The battle must have taken place not long ago, perhaps only a few weeks past. We’ve found no survivors. One more thing...all flew the banner of the Crown of Wesnoth."
        [/message]
        [message]
            speaker=Delfador
            message= _ "Haven’t you found any enemy boats, ones the Wesnothians were fighting against?"
        [/message]
        [message]
            role=merman-advisor
            message= _ "No we have not. If there were any, they are long gone."
        [/message]
        [message]
            speaker="Li'sar"
            message= _ "Perhaps the monsters Lord Kalenz alluded to sunk the boats."
        [/message]
        [message]
            speaker=Kalenz
            message= _ "That is possible. I would guess they were seeking a way east, just as we are."
        [/message]
        [message]
            speaker=Konrad
            message= _ "What do we do next? How much more of the river do we still have to travel?"
        [/message]
        [message]
            speaker=Delfador
            message= _ "The mountains north of the river are impassable. Perhaps we should try moving south, to the swamps."
        [/message]
        [message]
            speaker=Kalenz
            message= _ "I don’t recommend it. Long ago, a lich who was at war with my people appointed some of his most powerful minions to guard the swamps. We must not go that way!"
        [/message]
        [message]
            speaker="Li'sar"
            message= _ "Then we have only two choices: to proceed down the river or to go back where we came from and fight our way through the orcs or the undead."
        [/message]
        [message]
            speaker=Delfador
            message= _ "We certainly have no time to go back! We must hurry to the home of the North Elves, to meet with our elven allies."
        [/message]
        [message]
            speaker=Konrad
            message= _ "Delfador is right. We must go on!"
        [/message]
        [delay]
            time=5000
        [/delay]
        [move_unit_fake]
            type=Armageddon Drake
            x=28,4
            y=9,9
            side=2
        [/move_unit_fake]
        [unit]
            type=Armageddon Drake
            facing=sw
            side=2
            x=4
            y=9
            canrecruit=yes
            id=Keh Ohn
            name= _ "Keh Ohn"
            ai_special=guardian
        [/unit]
        [message]
            speaker=Konrad
            message= _ "Oh my! A monster!"
        [/message]
        [message]
            speaker="Li'sar"
            message= _ "A dragon! A big one!"
        [/message]
        [message]
            speaker=Keh Ohn
            # wmllint: local spelling Keh Ohn
            message= _ "I am Keh Ohn, leader of the drakes who have settled upon these cliffs. Who are you?"
        [/message]
        [message]
            speaker=Konrad
            message= _ "A talking dragon?"
        [/message]
        [message]
            speaker="Li'sar"
            message= _ "I am beginning to understand why you were talking about monsters on our way here, Lord Kalenz."
        [/message]
        [message]
            role=merman-advisor
            message= _ "With all due respect, Your Highnesses, you are both wrong. This is not a dragon. This is a drake."
        [/message]
        [message]
            speaker=Delfador
            message= _ "Here? But, drakes have never been seen in Wesnoth before... Are you certain of this?"
        [/message]
        [message]
            role=merman-advisor
            #po: Yes, "Eastern Shore" is correct. Mermen are water-oriented;
            #po: it's the eastern shore of the Great Ocean.
            message= _ "I was born in the Bay of Pearls and spent my entire life on the Eastern Shore. But I have spoken with those who have traveled the Western Ocean and met drakes on their journeys. Therefore, I am certain beyond doubt that the creature flying in front of us is a drake, Delfador. Concerning the drakes having never been seen in Wesnoth, must I remind you that we are not in Wesnoth anymore? There are many unthinkable things and creatures which can be found outside of Wesnoth."
        [/message]
        [message]
            speaker=Keh Ohn
            # wmllint: local spelling GRROAR!!
            message= _ "GRROAR!! Will you silly self-centered creatures show some manners and pay some attention to me?"
        [/message]
        [message]
            speaker=Konrad
            message= _ "Eh... well of course, sir drake. Let me introduce myself — I am Prince Konrad, leader of the group and heir to the throne of Wesnoth."
        [/message]
        [message]
            speaker="Li'sar"
            message= _ "And I am Princess Li’sar, the only daughter of the late King Garard II and Queen Asheviere. I too am an heir to the throne of Wesnoth!"
        [/message]
        [message]
            speaker=Keh Ohn
            #wmllint: display on
            # wmllint: local spelling Soooo
            message= _ "(releasing a torrent of fire towards Konrad and Li’sar)
Soooo... It is you who sent your subordinates to attack us. Now when we’ve destroyed them, you come to do the job yourselves."
            #wmllint: display off
        [/message]
        [message]
            speaker=Konrad
            message= _ "No...There is an ongoing civil war amongst us humans. The boats were sent by our enemies, not by us, even if they were Wesnothian boats."
        [/message]
        [message]
            speaker=Kalenz
            message= _ "The Prince speaks the truth."
        [/message]
        [message]
            speaker=Keh Ohn
            message= _ "I don’t know. Maybe you are telling the truth, maybe not. We drakes don’t trust you. Many of our warriors died in the battle and many more are still healing their wounds, but we still have claws. Go back now and leave us in peace. If you go further we’ll be forced to show them."
        [/message]
        [message]
            speaker=Delfador
            message= _ "But we can not go back. We are on an important mission."
        [/message]
        [message]
            speaker=Keh Ohn
            message= _ "If you defy my warning — prepare for battle."
        [/message]
        [message]
            speaker=Konrad
            message= _ "So be it. We have to go down the river; we have no choice. We’ll fight our way through if necessary."
        [/message]
        [message]
            speaker=Keh Ohn
            message= _ "You will regret challenging us. Drakes, to arms!"
        [/message]
        [delay]
            time=500
        [/delay]
        [kill]
            x=4
            y=9
            animate=no
        [/kill]
        [move_unit_fake]
            type=Armageddon Drake
            x=4,28
            y=9,9
            side=2
        [/move_unit_fake]
        [unit]
            type=Armageddon Drake
            side=2
            x=28
            y=9
            canrecruit=yes
            id=Keh Ohn
            name= _ "Keh Ohn"
            ai_special=guardian
        [/unit]
    [/event]

    [event]
        name=start
        [store_locations]
            terrain=*^V*    # wmllint: ignore
            [and]
                x=14
                y=9
                radius=10
            [/and]
            variable=temp_starting_villages_area
        [/store_locations]

        {FOREACH temp_starting_villages_area i}
            [capture_village]
                side=2
                x,y=$temp_starting_villages_area[$i].x,$temp_starting_villages_area[$i].y
            [/capture_village]
        {NEXT i}

        {CLEAR_VARIABLE temp_starting_villages_area}
    [/event]

    [event]
        name=start
        [store_locations]
            terrain=*^V*    # wmllint: ignore
            [and]
                x=34
                y=7
                radius=10
            [/and]
            variable=temp_starting_villages_area
        [/store_locations]

        {FOREACH temp_starting_villages_area i}
            [capture_village]
                side=2
                x,y=$temp_starting_villages_area[$i].x,$temp_starting_villages_area[$i].y
            [/capture_village]
        {NEXT i}

        {CLEAR_VARIABLE temp_starting_villages_area}
    [/event]

    [event]
        name=die
        first_time_only=no
        [filter]
            side=3
        [/filter]
        [kill]
            x=$x1
            y=$y1
            animate=yes
        [/kill]

        {UNDEAD_GUARDIAN Draug $x1 $y1}

        {MODIFY_UNIT side=3 movement_costs.shallow_water {UNREACHABLE}}
        {MODIFY_UNIT side=3 movement_costs.deep_water {UNREACHABLE}}
        {MODIFY_UNIT side=3 movement_costs.swamp_water {UNREACHABLE}}
        {MODIFY_UNIT side=3 movement_costs.forest {UNREACHABLE}}

        [if]
            {CHECK_VARIABLE undead_killed no}

            [then]
                [message]
                    speaker=second_unit
                    message= _ "I slew the undead monster but somehow it has revived! Dark magic is stirring around us!"
                [/message]
                [message]
                    speaker=Kalenz
                    message= _ "Those are some of the monsters I warned about. Such undead guardians are indestructible. We must find another way to go."
                [/message]

                {VARIABLE undead_killed yes}
            [/then]
        [/if]
    [/event]

    [event]
        name=prestart

        [set_variables]
            name=drake_bases

            [value]
                x,y=12,10
            [/value]
            [value]
                x,y=16,6
            [/value]
            [value]
                x,y=22,7
            [/value]
            [value]
                x,y=23,13
            [/value]
            [value]
                x,y=28,9
            [/value]
            [value]
                x,y=31,5
            [/value]
            [value]
                x,y=34,12
            [/value]
            [value]
                x,y=38,7
            [/value]
            [value]
                x,y=41,12
            [/value]
        [/set_variables]

        {FOREACH drake_bases i}
            {PLACE_IMAGE scenery/tent-fancy-red.png $drake_bases[$i].x $drake_bases[$i].y}
        {NEXT i}
    [/event]

    [event]
        name=moveto
        first_time_only=no

        [filter]
            side=1

            [filter_location]
                find_in=drake_bases
            [/filter_location]
        [/filter]

        {RANDOM 10..50}

        [gold]
            side=1
            amount=+$random
        [/gold]

        [message]
            speaker=unit
            message= _ "We’ve found $random gold in the drake nest."
            image=items/gold-coins-medium.png
        [/message]

        [remove_item]
            x,y=$x1,$y1
            image=scenery/tent-fancy-red.png
        [/remove_item]

        {PLACE_IMAGE scenery/village-human-burned4.png $x1 $y1}

        # Remove the current location from the array
        {FOREACH drake_bases i}
            [if]
                [variable]
                    name=drake_bases[$i].x
                    numerical_equals=$x1
                [/variable]

                [variable]
                    name=drake_bases[$i].y
                    numerical_equals=$y1
                [/variable]

                [then]
                    {CLEAR_VARIABLE drake_bases[$i]}

                    {VARIABLE i 999}
                [/then]
            [/if]
        {NEXT i}
    [/event]

    [event]
        name=last breath
        [filter]
            id=Keh Ohn
        [/filter]
        [message]
            speaker=Keh Ohn
            message= _ "GRRROOOOAAAAR!"  # wmllint: no spellcheck
        [/message]
        [message]
            speaker=second_unit
            message= _ "Hurrah! We’ve killed their leader!"
        [/message]
        [message]
            side=2
            canrecruit=no
            message= _ "Our leader is dead, but it matters not! Time enough to appoint a new leader after the battle is won! Fight on to the last, comrades!"
        [/message]
        [message]
            speaker=Konrad
            image=portraits/konrad-angry.png
            message= _ "Keep on going down the river. While we’re at it, let us force as many drakes as possible to pay with their lives. They have defied us, and now they will meet the same fate as their leader!"
        [/message]
        [message]
            side=1
            [and]
                race=elf

                [or]
                    race=merman
                [/or]
            [/and]
            message= _ "We hear and obey, My Lord."
        [/message]
    [/event]

    # Each turn, a drake will be spawned from each base which still stands;
    # however, a lvl2 drake will take 2 turns to appear and a lvl3 drake 3 turns
    [event]
        name=new turn
        first_time_only=no

        {FOREACH drake_bases i}
            [if]
                # We only attempt to spawn drakes from a base if there isn't one
                # already standing there
                [not]
                    [have_unit]
                        x,y=$drake_bases[$i].x,$drake_bases[$i].y
                    [/have_unit]
                [/not]

                [then]
                    [if]
                        [variable]
                            name=drake_bases[$i].delayed_spawning_on_turn
                            greater_than=1
                        [/variable]

                        [variable]
                            name=drake_bases[$i].delayed_spawning_on_turn
                            # Note: the value might be lower than $turn_number
                            less_than_equal_to=$turn_number
                        [/variable]

                        [then]
                            {GENERIC_UNIT 2 $drake_bases[$i].spawn_type $drake_bases[$i].x $drake_bases[$i].y}
                            [+unit]
                                ai_special=guardian
                                facing=sw
                            [/unit]

                            {CLEAR_VARIABLE drake_bases[$i].delayed_spawning_on_turn}
                        [/then]

                        [else]
                            [if]
                                [then]
#ifdef EASY
                                    {VARIABLE_OP spawn_level rand "1,2"}
#else
                                    {VARIABLE_OP spawn_level rand "1,2,2,3"}
#endif

                                    [switch]
                                        variable=spawn_level

                                        [case]
                                            value=1

                                            {VARIABLE_OP spawn_type rand "Drake Fighter,Drake Burner,Drake Glider"}

                                            {GENERIC_UNIT 2 $spawn_type $drake_bases[$i].x $drake_bases[$i].y}
                                            [+unit]
                                                ai_special=guardian
                                            [/unit]
                                        [/case]

                                        [case]
                                            value=2

                                            {VARIABLE_OP drake_bases[$i].spawn_type rand "Drake Warrior,Drake Flare,Fire Drake,Sky Drake"}

                                            {VARIABLE drake_bases[$i].delayed_spawning_on_turn "$($turn_number + 1)"}
                                        [/case]

                                        [case]
                                            value=3

                                            {VARIABLE_OP drake_bases[$i].spawn_type rand "Drake Blademaster,Drake Flameheart,Inferno Drake,Drake Enforcer,Drake Warden,Hurricane Drake"}

                                            {VARIABLE drake_bases[$i].delayed_spawning_on_turn "$($turn_number + 2)"}
                                        [/case]
                                    [/switch]
                                [/then]
                            [/if]
                        [/else]
                    [/if]
                [/then]
            [/if]
        {NEXT i}
    [/event]

    [event]
        name=moveto
        [filter]
            side=1
            x=40-50
            y=11-20
        [/filter]
        [modify_side]
            side=5
            share_view=yes
        [/modify_side]
        [message]
            speaker=unit
            message= _ "I see someone at the top of the furthermost cliff!"
        [/message]
        [remove_shroud]
            side=1
            x=43-47
            y=14-17
        [/remove_shroud]
        [scroll_to]
            x=45
            y=16
        [/scroll_to]
        [message]
            speaker=unit
            message= _ "It is a young human sergeant, barely more than a boy. He appears badly hurt but still alive."
        [/message]
        [message]
            speaker=unit
            message= _ "I wonder why the drakes haven’t finished him by now? It is strange that there are not any drakes or undead in that area."
        [/message]
#define SERPENT X Y
    [unit]
        type=Water Serpent
        side=4
        x={X}
        y={Y}
        [movement_costs]
            mountains={UNREACHABLE}
        [/movement_costs]
    [/unit]
#enddef
        {SERPENT 48 13}
        {SERPENT 45 12}
        {SERPENT 50 16}
        {SERPENT 48 18}
        {SERPENT 45 19}
#undef SERPENT
        [message]
            type=Water Serpent
            message= _ "Grrroar"    # wmllint: no spellcheck
        [/message]
        [scroll_to_unit]
            id=unit
        [/scroll_to_unit]
        [message]
            speaker=unit
            message= _ "Well... that answers the question."
        [/message]
        [message]
            speaker="Li'sar"
            message= _ "We should try to help the injured soldier."
        [/message]
        [message]
            speaker=Kalenz
            message= _ "Must I remind you that he, like all the others who died, was sent to kill us!?"
        [/message]
        [message]
            speaker="Li'sar"
            message= _ "Perhaps he was sent after you, but not after me. I am sure that he is still loyal to his princess — the heiress to the throne of Wesnoth!"
        [/message]
        [message]
            speaker=Delfador
            message= _ "Princess Li’sar, do I have to remind you again that it is Konrad, not you, who is the rightful heir?"
        [/message]
        [message]
            speaker="Li'sar"
            message= _ "Whatever.... I still think we should make an effort to rescue him from the unfortunate position he is in. If you help him, I’ll do my best to convince him that you are not his enemies but his friends..."
        [/message]
        [message]
            speaker=Konrad
            message= _ "Our main goal remains to survive ourselves, but if we can spare the troops, we might try to rescue the sergeant stranded on the cliff. However, I make no promises."
        [/message]
        [message]
            speaker=Kalenz
            message= _ "Fair enough!"
        [/message]
        [message]
            speaker="Li'sar"
            message= _ "Fair enough."
        [/message]
        [message]
            speaker=Delfador
            message= _ "Fair enough..."
        [/message]
        [objectives]
            side=1
            [objective]
                description= _ "Make it to the end of the river"
                condition=win
            [/objective]
            [objective]
                {BONUS_OBJECTIVE_CAPTION}
                description= _ "Rescue the sergeant"
                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]

    [event]
        name=moveto
        [filter]
            side=1
            x=44,44,45,45,46,46
            y=15,16,15,17,15,16
        [/filter]

        [kill]
            id=Warven
        [/kill]

        [unit]
            type=Sergeant
            side=1
            x=45
            y=16
            id=Warven
            name= _ "Warven"
            hitpoints=1
            [modifications]
                {TRAIT_LOYAL}
                {TRAIT_FEARLESS}
            [/modifications]
            {IS_LOYAL}
            [status]
                poisoned=yes
            [/status]
        [/unit]

        [message]
            speaker=Warven
            message= _ "Who...who are you? A friend or a foe?"
        [/message]
        [message]
            speaker=unit
            message= _ "We are friends. Don’t worry about it and don’t try to fight us — you are in no condition to fight."
        [/message]
        [message]
            speaker="Li'sar"
            message= _ "I am Princess Li’sar, and we are friends. Join us and wait for the healers to help you, young sergeant."
        [/message]
        [message]
            speaker=Warven
            message= _ "Princess Li’sar — here? Your Highness, I am yours to command!"
        [/message]
        [message]
            speaker=Konrad
            message= _ "Follow us when you think you are capable and beware of monsters. We have fought many already, and there are sure to be more ahead."
        [/message]
    [/event]

    [event]
        name=moveto
        [filter]
            x=53-55
            y=1-5
            side=1
        [/filter]

        {VARIABLE waterfall_sighted yes}

        [message]
            speaker=unit
            message= _ "There is a cataract ahead. By the thunder of the water and the height of the spume, it must drop several hundred feet at least. We must leave the river before we are swept into it, or we will surely perish!"
        [/message]

        {REMOVE_IMAGE 55 3}

        {WATERFALL_MASK 55 3}

        [message]
            role=merman-advisor
            message= _ "Even we merfolk cannot swim that. The road east is blocked."
        [/message]
        [message]
            speaker=Konrad
            message= _ "Wait. What about the tributary which flows into the river from inside the mountain? There seems to be a cave..."
        [/message]
        [message]
            speaker=Kalenz
            # wmllint: local spelling Everlore
            message= _ "Legend says that that little river comes from the land of the North Elves. It is said that it is an outflow of Everlore, which flows in the land of my home and that there is a cave system in that area with several cave entrances and springs which flow into the ground. I can say no more about it, except that it is swarming with undead and other creatures which find power in the darkness of the caves. We elves prefer not to venture into the caves; instead we put guards near the entrances to kill any foul creature foolish enough to wander outside. No elves have been inside for centuries and that area is unknown to us. Truly, I don’t recommend entering the cave if we have any other options."
        [/message]
        [message]
            speaker=Konrad
            message= _ "Unfortunately, we have no other options. Onward into the cave!"
        [/message]

        [objectives]
            side=1
            [objective]
                description= _ "Reach the cave"
                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]

        {PLACE_IMAGE items/gohere.png 37 1}
    [/event]

    [event]
        name=moveto
        [filter]
            x=37
            y=1
            id=Konrad
        [/filter]
        [if]
            {CHECK_VARIABLE waterfall_sighted yes}

            [then]
                [message]
                    speaker=Konrad
                    message= _ "I’ve reached the cave entrance. There seems to be a system of channels running through the mountains. Follow me, and let us hope we somehow manage to get out alive."
                [/message]
                [message]
                    speaker="Li'sar"
                    message= _ "That is so very encouraging...."
                [/message]
                [message]
                    speaker=Delfador
                    message= _ "I wonder what kind of monsters await us inside."
                [/message]
                [message]
                    speaker=Kalenz
                    message= _ "We are soon going to find out."
                [/message]
                [message]
                    speaker="Li'sar"
                    message= _ "Well, there is no point in delaying any further. Let us go and find out."
                [/message]
                [message]
                    speaker=Warven
                    side=1
                    message= _ "Yes, my lady!"
                [/message]
                [message]
                    speaker=Konrad
                    message= _ "Everybody inside..."
                [/message]
                [endlevel]
                    result=victory
                    bonus=yes
                    {NEW_GOLD_CARRYOVER 40}
                [/endlevel]
            [/then]
        [/if]
    [/event]
[/scenario]
