#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}"
    {TURNS 55 50 45}

    next_scenario="20b_Underground_Channels"
    victory_when_enemies_defeated=no

    {DEFAULT_SCHEDULE_AFTERNOON}

    {SCENARIO_MUSIC "knolls.ogg"}
    {EXTRA_SCENARIO_MUSIC "wanderer.ogg"}
    {EXTRA_SCENARIO_MUSIC "legends_of_the_north.ogg"}
    {EXTRA_SCENARIO_MUSIC "northern_mountains.ogg"}
    {EXTRA_SCENARIO_MUSIC "breaking_the_chains.ogg"}

    {HTTT_TRACK {JOURNEY_19C_NEW} }

    {PLACE_IMAGE items/gohere.png 55 3}
    {PLACE_IMAGE scenery/shipwreck-1.png 43 5}
    {PLACE_IMAGE scenery/wreck-3.png 46 13}
    {PLACE_IMAGE scenery/shipwreck-1.png 5 8}
    {PLACE_IMAGE scenery/wreck-3.png 44 17}
    {PLACE_IMAGE scenery/shipwreck-1.png 52 18}
    {PLACE_IMAGE scenery/wreck-2.png 21 12}
    {PLACE_IMAGE scenery/wreck.png 25 5}
    {PLACE_IMAGE scenery/wreck.png 3 4}
    {PLACE_IMAGE scenery/wreck-2.png 8 13}
    {PLACE_IMAGE scenery/wreck.png 17 8}
    {PLACE_IMAGE scenery/wreck-3.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/wreck-2.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/wreck-2.png 32 2}
    {PLACE_IMAGE scenery/shipwreck-1.png 42 10}
    {PLACE_IMAGE scenery/wreck-2.png 33 14}
    {PLACE_IMAGE scenery/shipwreck-1.png 26 8}
    {PLACE_IMAGE scenery/wreck.png 33 14}
    {PLACE_IMAGE scenery/wreck-3.png 40 7}
    {PLACE_IMAGE scenery/wreck.png 29 10}
    {PLACE_IMAGE scenery/wreck-2.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]
                [show_if]
                    [not]
                        {CHECK_VARIABLE waterfall_sighted yes}
                    [/not]
                [/show_if]
                description= _ "Make it to the end of the river"
                condition=win
            [/objective]
            [objective]
                [show_if]
                    {CHECK_VARIABLE waterfall_sighted yes}
                [/show_if]
                description= _ "Move Konrad to the cave"
                condition=win
            [/objective]
            [objective]
                [show_if]
                    {CHECK_VARIABLE sergeant_sighted yes}
                [/show_if]
                {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]

    {campaigns/Heir_To_The_Throne/utils/deaths.cfg}

    [side]
        type=Commander
        id=Konrad
        name= _ "Konrad"
        unrenamable=yes
        profile=portraits/konrad-human.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
        [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
        hidden=yes
        [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=4
        no_leader=yes
        controller=ai
        hidden=yes
        team_name=elves
        user_team_name=_"Rebels"
        fog=yes
        share_view=no
    [/side]

    [event]
        name=prestart
        # For Home of the Northern Elves: where do we come from?
        # the position where we are - impassable mountains, 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,Merman Javelineer,Merman Entangler,Mermaid Diviner,Mermaid Siren," +
                "Merman Warrior,Merman Spearman,Merman Netcaster,Mermaid Priestess,Mermaid Enchantress," +
                "Merman Fighter,Merman Hunter,Mermaid Initiate"
            reassign=no
            [auto_recall][/auto_recall]
            [else]
                [unit]
                    type=Merman Fighter
                    role=merman-advisor
                    placement=leader
                [/unit]
            [/else]
        [/role]
        {NEED_DELFADOR placement=leader}
        {NEED_KALENZ placement=leader}
        {NEED_LISAR placement=leader}

        {VARIABLE sergeant_sighted no}
        {VARIABLE waterfall_sighted no}
        {OBJ_TRIDENT_STORM 17 11 cot_stormtrident}
        {PLACE_IMAGE items/gohere.png 55 3}
        [unit]
            type=Injured Sergeant
            side=4
            x=45
            y=16
            id=Warven
            name= _ "Warven"
            hitpoints=1
            experience=27
            [modifications]
                {TRAIT_LOYAL}
                {TRAIT_FEARLESS}
            [/modifications]
            {IS_LOYAL}
            [status]
                poisoned=yes
            [/status]
        [/unit]
    [/event]

    [event]
        name=start
        [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 merfolk 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 and south of the river are impassable."
        [/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=1000
        [/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. Merfolk 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 the 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 cannot 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=prestart
        [store_locations]
            terrain=*^V*    # wmllint: ignore
            [and]
                x=14
                y=9
                radius=10
            [/and]
            variable=temp_starting_villages_area
        [/store_locations]

        [foreach]
            array=temp_starting_villages_area
            [do]
                [capture_village]
                    side=2
                    x,y=$this_item.x,$this_item.y
                [/capture_village]
            [/do]
        [/foreach]

        {CLEAR_VARIABLE temp_starting_villages_area}
    [/event]

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

        [foreach]
            array=temp_starting_villages_area
            [do]
                [capture_village]
                    side=2
                    x,y=$this_item.x,$this_item.y
                [/capture_village]
            [/do]
        [/foreach]

        {CLEAR_VARIABLE temp_starting_villages_area}
    [/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]
    [/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]
        {CLEAR_VARIABLE random}

        # Remove the current location from the array
        [for]
            array=drake_bases
            [do]
                [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]}

                        [break][/break]
                    [/then]
                [/if]
            [/do]
        [/for]
        {CLEAR_VARIABLE 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
            {KONRAD_VARIATION mad}
            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 defy us, and now they will meet the same fate as their leader!"
        [/message]
        [message]
            side=1
            [and]
                race=elf
                level=1

                [or]
                    race=elf
                    level=2
                [/or]

                [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]
            array=drake_bases
            [do]
                [if]
                    # We only attempt to spawn drakes from a base if there isn't one
                    # already standing there
                    [not]
                        [have_unit]
                            x,y=$this_item.x,$this_item.y
                        [/have_unit]
                    [/not]

                    [then]
                        [if]
                            [variable]
                                name=this_item.delayed_spawning_on_turn
                                greater_than=1
                            [/variable]

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

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

                                {CLEAR_VARIABLE this_item.delayed_spawning_on_turn}
                            [/then]

                            [else]
#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 $this_item.x $this_item.y}
                                        [+unit]
                                            ai_special=guardian
                                        [/unit]
                                        {CLEAR_VARIABLE spawn_type}
                                    [/case]

                                    [case]
                                        value=2

                                        {VARIABLE_OP this_item.spawn_type rand "Drake Warrior,Drake Flare,Fire Drake,Sky Drake"}

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

                                    [case]
                                        value=3

                                        {VARIABLE_OP this_item.spawn_type rand "Drake Blademaster,Drake Flameheart,Inferno Drake,Drake Enforcer,Drake Warden,Hurricane Drake"}

                                        {VARIABLE this_item.delayed_spawning_on_turn "$($turn_number + 2)"}
                                    [/case]
                                [/switch]
                                {CLEAR_VARIABLE spawn_level}
                            [/else]
                        [/if]
                    [/then]
                [/if]
            [/do]
        [/foreach]
    [/event]

    [event]
        name=moveto
        [filter]
            side=1
        [/filter]
        [filter_condition]
            [have_location]
                x,y=$x1,$y1
                [and]
                    x,y=45,16
                    radius=7
                [/and]
            [/have_location]
        [/filter_condition]
        [modify_side]
            side=4
            share_view=yes
        [/modify_side]
        [message]
            speaker=unit
            message= _ "I see someone at the top of the furthermost cliff!"
        [/message]
        [lift_fog]
            [filter_side]
                side=1
            [/filter_side]
            x,y=45,16
            radius=2
        [/lift_fog]
        [scroll_to]
            x=45
            y=16
        [/scroll_to]
        [message]
            speaker=unit
            scroll=no
            message= _ "It is a young human sergeant, barely more than a boy. He appears badly hurt but still alive."
        [/message]
        [message]
            speaker=unit
            scroll=no
            message= _ "I wonder why the drakes haven’t finished him by now? It is strange that there are not any drakes in that area."
        [/message]
#define SERPENT X Y
    [unit]
        type=Water Serpent
        side=3
        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
            scroll=no
            message= _ "Grrroar"    # wmllint: no spellcheck
        [/message]
        [scroll_to_unit]
            id=unit
        [/scroll_to_unit]
        [message]
            speaker=unit
            scroll=no
            message= _ "Well... that answers the question."
        [/message]
        [message]
            speaker="Li'sar"
            message= _ "We should try to help the injured soldier."
        [/message]
        [message]
            speaker=Konrad
            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= _ "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= _ "Be that as it may, 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=Kalenz
            message= _ "Very well. If you convince him not to raise his sword against us, the Lintair elves shall grant him safe passage."
        [/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="Li'sar"
            message= _ "That I do understand, Konrad. I am no stranger to the burden of command."
        [/message]
        {IF_VAR waterfall_sighted boolean_equals yes (
            [then]
                [message]
                    speaker=Konrad
                    message= _ "I’m glad we agree, Li’sar. Now, onward! We must reach the cave."
                [/message]
            [/then]
            [else]
                [message]
                    speaker=Konrad
                    message= _ "I’m glad we agree, Li’sar. Now, onward! We must continue downstream, past these drakes."
                [/message]
            [/else]
        )}
        {VARIABLE sergeant_sighted yes}
        [show_objectives][/show_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
            experience=27
            [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 the 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]
        {VARIABLE sergeant_sighted no}
    [/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}

        [role]
            role=merman-advisor
            reassign=no
            search_recall_list=no
            type="Merman Triton,Merman Hoplite,Merman Javelineer,Merman Entangler,Mermaid Diviner,Mermaid Siren," +
                "Merman Warrior,Merman Spearman,Merman Netcaster,Mermaid Priestess,Mermaid Enchantress," +
                "Merman Fighter,Merman Hunter,Mermaid Initiate"
        [/role]
        [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]

        [show_objectives][/show_objectives]

        {PLACE_IMAGE items/gohere.png 37 1}

        [event]
            name=moveto
            [filter]
                x=37
                y=1
                id=Konrad
            [/filter]
            [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]
        [/event]
    [/event]

    [event]
        name=victory

        {CLEAR_VARIABLE sergeant_sighted,waterfall_sighted,drake_bases}
    [/event]
[/scenario]
