#textdomain wesnoth-After_the_Storm

[scenario]
    id=06_02_Elves_of_a_Different_Land
    name= _ "Elves of a Different Land"
    {MAP 06_02_Court.map}
    turns=-1
    next_scenario="07_The_Search_for_the_Past"
    victory_when_enemies_defeated=no

    {CUTSCENE_UI}

    {SCENARIO_MUSIC "nunc_dimittis.ogg"}

    {STORYTXT_ELVES_OF_A_DIFFERENT_LAND}

    {LONGDARK3}

    # wmllint: validate-off
    [side]
        save_id=player

        controller=human
        side=1
        team_name=player
        user_team_name= _ "team_name^Galas"

        gold=0
        village_gold=0
        income=-2

        # This is solely to prevent a map snapshot from being used in the
        # Load Game menu when all terrain grahics are loaded. The shroud
        # is disabled later during prestart.
        shroud=yes

        # wmllint: recognize Galas
        {CHARACTER_STATS_GALAS}
    [/side]
    # wmllint: validate-on

    # It may seem silly to put so much effort into cutscenes that will be
    # skipped by most players, but I'm certain that some of those who care
    # about the history of Irdya will feel rewarded, even if I am unable
    # to guide them on their way by then. -- 2009-12-31

    [side]
        side=2
        team_name=player
        user_team_name= _ "team_name^Quenoth"
        controller=ai
        hidden=yes

        canrecruit=yes
        id=Gaellis
        name= _ "Gaellis"
        type=Quenoth Champion
        unrenamable=yes
        facing=se
        [modifications]
            {TRAIT_INTELLIGENT}
            {TRAIT_RESILIENT}
        [/modifications]

        [unit]
            # wmllint: recognize Kyara
            {CHARACTER_STATS_KYARA}
            overlays=""
            facing=nw
            x,y=23,17
        [/unit]

        [unit]
            random_traits,generate_name=yes,yes
            type=Quenoth Fighter
            facing=nw
            x,y=23,18
        [/unit]

        [unit]
            random_traits,generate_name=yes,yes
            type=Quenoth Fighter
            facing=nw
            x,y=21,18
        [/unit]
    [/side]

    [side]
        side=3
        team_name=player
        user_team_name= _ "team_name^Quenoth"
        controller=ai
        hidden=yes

        canrecruit=yes
        id=Maina
        name= _ "Maina"
        type=Quenoth Sun Sylph
        unrenamable=yes
        facing=ne
        [modifications]
            {TRAIT_RESILIENT}
            {TRAIT_DEXTROUS}
        [/modifications]

        [unit]
            id=Ira
            name= _ "Ira"
            type=Quenoth Druid
            unrenamable=yes
            x,y=10,24
            facing=sw
            [modifications]
                {TRAIT_DEXTROUS}
                {TRAIT_QUICK}
            [/modifications]
        [/unit]

        [unit]
            id=Urédiel
            name= _ "Urédiel"
            type=Quenoth Shaman
            unrenamable=yes
            x,y=11,25
            facing=sw
            [modifications]
                {TRAIT_STRONG}
                {TRAIT_INTELLIGENT}
            [/modifications]
        [/unit]

        [unit]
            id=Arandith
            name= _ "Arandith"
            type=Quenoth Marksman
            gender=female
            unrenamable=yes
            x,y=6,7
            facing=se
            [modifications]
                {TRAIT_STRONG}
                {TRAIT_RESILIENT}
            [/modifications]
        [/unit]
    [/side]

    [side]
        side=4
        team_name=player
        user_team_name= _ "team_name^Quenoth"
        controller=ai
        hidden=yes

        canrecruit=yes
        id=Inara
        name= _ "Inara"
        type=Quenoth Ranger
        gender=female
        unrenamable=yes
        facing=sw
        [modifications]
            {TRAIT_STRONG}
            {TRAIT_QUICK}
        [/modifications]

        [unit]
            id=Ainael
            name= _ "Ainael"
            type=Quenoth Warrior
            unrenamable=yes
            x,y=32,25
            facing=nw
            [modifications]
                {TRAIT_STRONG}
                {TRAIT_DEXTROUS}
            [/modifications]
        [/unit]

        [unit]
            id=Remir-Taen
            name= _ "Remir-Taen"
            type=Tauroch Protector
            unrenamable=yes
            x,y=33,21
            facing=sw
            [modifications]
                {TRAIT_INTELLIGENT}
                {TRAIT_STRONG}
            [/modifications]
        [/unit]
    [/side]

    [side]
        side=5
        team_name=player
        user_team_name= _ "team_name^Quenoth"
        controller=ai
        hidden=yes

        canrecruit=yes
        id=Lintaen
        name= _ "Lintaen"
        type=Quenoth Hero
        unrenamable=yes
        facing=s
        [modifications]
            {TRAIT_RESILIENT}
            {TRAIT_DEXTROUS}
        [/modifications]

        [unit]
            id=Del
            name= _ "Del"
            type=Tauroch Vanguard
            unrenamable=yes
            x,y=23,15
            facing=sw
            [modifications]
                {TRAIT_STRONG}
                {TRAIT_DEXTROUS}
            [/modifications]
        [/unit]

        [unit]
            id=Vardé
            name= _ "Vardé"
            type=Quenoth Mystic
            unrenamable=yes
            x,y=17,7
            facing=ne
            [modifications]
                {TRAIT_STRONG}
                {TRAIT_DEXTROUS}
            [/modifications]
        [/unit]

        [unit]
            id=Shin
            name= _ "Shin"
            type=Quenoth Fighter
            unrenamable=yes
            x,y=20,4
            facing=sw
            [modifications]
                {TRAIT_QUICK}
            [/modifications]
        [/unit]

        [unit]
            id=Ji
            name= _ "Ji"
            type=Quenoth Archer
            gender=female
            unrenamable=yes
            x,y=28,4
            facing=se
            [modifications]
                {TRAIT_STRONG}
                {TRAIT_RESILIENT}
            [/modifications]
        [/unit]
    [/side]

    [side]
        side=6
        team_name=player
        user_team_name= _ "team_name^Quenoth"
        controller=ai
        hidden=yes

        canrecruit=yes
        id=Listra
        name= _ "Listra"
        type=Quenoth Sun Singer
        unrenamable=yes
        facing=nw
        [modifications]
            {TRAIT_RESILIENT}
            {TRAIT_DEXTROUS}
        [/modifications]

        [unit]
            id=Nadia
            name= _ "Nadia"
            type=Quenoth Shaman
            unrenamable=yes
            x,y=26,8
            facing=sw
            [modifications]
                {TRAIT_RESILIENT}
            [/modifications]
        [/unit]

        [unit]
            id=Belan
            name= _ "Belan"
            type=Quenoth Outrider
            unrenamable=yes
            x,y=24,11
            facing=s
            [modifications]
                {TRAIT_QUICK}
                {TRAIT_DEXTROUS}
            [/modifications]
        [/unit]

        [unit]
            id=Zarel
            name= _ "Zarel"
            type=Quenoth Fighter
            unrenamable=yes
            x,y=25,18
            facing=sw
            [modifications]
                {TRAIT_STRONG}
                {TRAIT_QUICK}
            [/modifications]
        [/unit]

        [unit]
            id=Noran
            name= _ "Noran"
            type=Quenoth Fighter
            unrenamable=yes
            x,y=23,19
            facing=ne
            [modifications]
                {TRAIT_STRONG}
                {TRAIT_QUICK}
            [/modifications]
        [/unit]

        [unit]
            id=Ivalen
            name= _ "Ivalen"
            type=Quenoth Fighter
            unrenamable=yes
            x,y=27,19
            facing=sw
            [modifications]
                {TRAIT_STRONG}
                {TRAIT_QUICK}
            [/modifications]
        [/unit]

        [unit]
            id=Kal
            name= _ "Kal"
            type=Quenoth Fighter
            unrenamable=yes
            x,y=25,20
            facing=ne
            [modifications]
                {TRAIT_STRONG}
                {TRAIT_QUICK}
            [/modifications]
        [/unit]

        [unit]
            id=Niemin
            name= _ "Niemin"
            type=Tauroch Rider
            unrenamable=yes
            x,y=29,20
            facing=sw
            [modifications]
                {TRAIT_STRONG}
                {TRAIT_QUICK}
            [/modifications]
        [/unit]

        [unit]
            id=Leria
            name= _ "Leria"
            type=Tauroch Stalwart
            unrenamable=yes
            x,y=27,21
            facing=ne
            [modifications]
                {TRAIT_STRONG}
                {TRAIT_QUICK}
            [/modifications]
        [/unit]
    [/side]

    {STARTING_VILLAGES_ALL 2}

    {PLACE_IMAGE (scenery/monolith3.png)      17 8 }
    {PLACE_IMAGE (scenery/monolith4.png)      16 2 }
    {PLACE_IMAGE (scenery/monolith1.png)      29 7 }

    {PLACE_IMAGE (scenery/oak-leaning.png)    24 15}

    {PLACE_IMAGE (scenery/slab1.png)          25 7 }

    {PLACE_IMAGE (scenery/temple1.png)        29 13}

    {PLACE_IMAGE (scenery/mine-abandoned.png) 13 12}
    {PLACE_IMAGE (scenery/mine-abandoned.png) 15 1 }
    {PLACE_IMAGE (scenery/mine-abandoned.png) 13 20}

    [event]
        name=prestart

        [modify_side]
            side=1
            shroud=no
        [/modify_side]

        # wmllint: recognize Elynia
        {RECALL_ELYNIA_AT_LOCATION 19 18}

        {FACE_DIRECTION side=1 nw}

        {LOCK_VIEW}
    [/event]

    [event]
        name=start

        [message]
            speaker=Kyara
            message= _ "Lord Gaellis, son of Kalehssar, we found these two strangers on the southeastern shores. They came from the northern seas, and seem to bring the light of Eloh with them."
        [/message]

        [redraw][/redraw]

        [delay]
            time=250
        [/delay]

        [message]
            speaker=Elynia
            message={ASIDE ( _ "Eloh? That name...")}
        [/message]

        [message]
            speaker=Gaellis
            message= _ "No land dwellers have set foot on this island for a long time. The last recorded landing was centuries ago, when our own kin came here seeking a new home; they made sure no-one was left behind on the continent. Tell us, who are you?"
        [/message]

        [message]
            speaker=Galas
            message= _ "Sir, I am Galas, son of Valthir, and this is..."
        [/message]

        [message]
            speaker=Elynia
            message= _ "Elynia, daughter of Deniéth-Isal."
        [/message]

        [message]
            speaker=Maina
            message= _ "You bear a strong resemblance to us. Spread your wings, Elynia. Albeit unusually pale, your face is that of an elf; but your clothes, and your wings... they are very unlike our own. Where do you come from?"
        [/message]

        [message]
            speaker=Elynia
            message= _ "From the Great Continent — from the region we call the Far North, beyond the tall Heart Mountains that grasp the sky and guard the green lands. There, the suns’ light has not been enough to burn those beautiful forests forever. We are different to you, indeed; we are forest elves, and we have come to seek your help against the great evil that has befallen Irdya."
        [/message]

        [message]
            speaker=Gaellis
            message= _ "Forest elves? How is that possible? The last our people saw of the Great Continent were vast deserts plagued with foul orcs, necromancers, and human barbarians. There’s no green life left on it anymore!"
        [/message]

        [message]
            speaker=Galas
            message= _ "Maybe your people didn’t travel far enough! Most of the central region fits your description, but there are a few secluded valleys where life has continued to thrive, and the Far North is vast enough to allow both humans and orcs to live relatively at peace with each other."
        [/message]

        [message]
            speaker=Gaellis
            message= _ "That is—"
        [/message]

        [message]
            speaker=Inara
            message= _ "Kalehssar, the Blade of Eloh, destroyed the dark force that once reigned over Irdya and attempted to erase the last remnants of our kind. What new foe threatens to put an end to our peace now, daughter of the forests?"
        [/message]

        [message]
            speaker=Elynia
            message= _ "The creature slain by his hand was but a servant of a far greater power. The fight is not over yet, and although we have recently vanquished another... minion of hers, the influence she exerts on this world remains as strong as ever."
        [/message]

        [fade_out_music]
            duration=250
        [/fade_out_music]

        {REPLACE_SCENARIO_MUSIC "harp.ogg"}

        [message]
            speaker=Elynia
            message= _ "I realize that this may sound overly dramatic, but I speak the truth, for I am the slayer of Zhangor, and Eloh guided me back to you in this era because you have the missing page of our civilization’s history: Kalehssar fought Yechnagoth, the Eater of Souls, and defeated her on this island nearly four centuries ago. The enemy we face now is none other than Uria, who has amassed an empire of human followers on the Great Continent. Even now as we speak, they work with the forces of Inferno and their unspeakable creations to destroy all that is left in the world!"
        [/message]

        [redraw][/redraw]
        [delay]
            time=1000
        [/delay]

        [message]
            speaker=narrator
            image=wesnoth-icon.png
            message= _ "The elves were left aghast by the mention of the three accursed names. They eyed each other nervously, as though they feared that rocks would fall from the sky in response to the bold revelation."
        [/message]

        [redraw][/redraw]
        [delay]
            time=250
        [/delay]

        [message]
            speaker=Elynia
            message= _ "I cannot do miracles. If you need more proof of our claims—"
        [/message]

        [message]
            speaker=Maina
            message= _ "At the end of the previous era, you were sent by Eloh to protect elvenkind from the Demon Lord. Now, you have returned to us to protect all Irdya from the Fallen Goddess... Elynia, the power you wield has not been seen by our kin for eons, as much of our forefathers’ knowledge perished with them when the spawn of Uria destroyed their forests. You are a rare gem among the entire elvish civilization, and we have no reason to distrust you. We listen to the call of our forest ancestors, and we agree to help you."
        [/message]

        [message]
            speaker=Maina
            message= _ "Don’t we all?"
        [/message]

        [delay]
            time=750
        [/delay]

        [message]
            speaker=Gaellis
            message= _ "What kind of help do you need?"
        [/message]

        [message]
            speaker=Elynia
            message= _ "Necromancy is the least of evils now that Uria’s minions plague the Great Continent. In our long journey to this island, we have not only been assisted by the orcs of the Far North, but also by a lich who helped us defeat the Chaos Emperor. We will need his help here, so I request that we are allowed to bring our orcish and undead allies to this island."
        [/message]

        [fade_out_music]
            duration=250
        [/fade_out_music]

        {INCIDENTAL_MUSIC "everlasting_night.ogg"}

        [redraw][/redraw]
        [delay]
            time=750
        [/delay]

        [message]
            speaker=Gaellis
            # po: "Why we can’t accede."
            message= _ "(nervously) That request... is very... improper for an elf, to say the least... You surely understand why we can’t—"
        [/message]

        [message]
            speaker=Elynia
            message= _ "It is true that many necromancers have worked together with Uria’s minions to bring doom to the natural inhabitants of the continent, including your own ancestors. But it’s also true that knowing whether a creature walks the path of Light or the path of Darkness does not suffice to distinguish evil from good. As for the orcs, they have been our allies even in the past, back when there was only one sun and all elves lived in the forests of Irdya."
        [/message]

        [message]
            speaker=Maina
            message= _ "We shall allow the orcs and the undead to come to assist you once you tell us exactly what you are going to do, but beware that our warriors and priests are ready to take care of them should they do anything suspicious."
        [/message]

        [message]
            speaker=Galas
            message= _ "We require access to the place where Yechnagoth was destroyed."
        [/message]

        [fade_out_music][/fade_out_music]

        {ENDLEVEL_CONTINUE} {NO_REPLAY_SAVE}
    [/event]
[/scenario]

# kate: indent-mode normal; encoding utf-8; space-indent on;


#textdomain wesnoth-After_the_Storm

[scenario]
    id=07x_Resolutions
    name= _ "Resolutions"
    {MAP 07x_Resolutions.map}
    turns=-1
    next_scenario="08_Fear"
    victory_when_enemies_defeated=no

    {CUTSCENE_UI}

    {SCENARIO_MUSIC "wanderer.ogg"}

    {STORYTXT_RESOLUTIONS}

    {AFTERNOON1}

    # wmllint: validate-off
    [side]
        save_id=player

        controller=human
        side=1
        team_name=player
        user_team_name= _ "team_name^Galas"

        gold=0
        village_gold=0
        income=-2

        # This is solely to prevent a map snapshot from being used in the
        # Load Game menu when all terrain grahics are loaded. The shroud
        # is disabled later during prestart.
        shroud=yes

        # wmllint: recognize Galas
        {CHARACTER_STATS_GALAS}
    [/side]
    # wmllint: validate-on

    [side]
        side=2
        team_name=player
        user_team_name= _ "team_name^Quenoth"
        controller=ai

        canrecruit=yes
        id=Gaellis
        name= _ "Gaellis"
        type=Quenoth Champion
        unrenamable=yes
        facing=s
        [modifications]
            {TRAIT_INTELLIGENT}
            {TRAIT_RESILIENT}
        [/modifications]
    [/side]

    [side]
        side=3
        team_name=player
        user_team_name= _ "team_name^Quenoth"
        controller=ai

        canrecruit=yes
        id=Maina
        name= _ "Maina"
        type=Quenoth Sun Sylph
        unrenamable=yes
        facing=sw
        [modifications]
            {TRAIT_RESILIENT}
            {TRAIT_DEXTROUS}
        [/modifications]
    [/side]

    {PLACE_IMAGE (scenery/oak-leaning.png) 15 11}
    {PLACE_IMAGE (scenery/oak-leaning.png) 1  7 }

    [event]
        name=prestart
        [modify_side]
            side=1
            shroud=no
        [/modify_side]

        # wmllint: recognize Elynia
        {RECALL_ELYNIA_AT_LOCATION 17 7}
        # wmllint: recognize Mal Keshar
        {RECALL_MAL_KESHAR_AT_LOCATION 21 8}
        # wmllint: recognize Horo
        {RECALL_HORO_AT_LOCATION 20 11}
        # wmllint: recognize Kyara
        {RECALL_KYARA_AT_LOCATION 21 6}

        {MODIFY_UNIT (
            id=Galas
            [or]
                id=Horo
            [/or]
        ) facing ne}
        {MODIFY_UNIT (
            id=Elynia
            [or]
                id=Mal Keshar
            [/or]
        ) facing se}
        {FACE_DIRECTION (id=Kyara) sw}

        {NAMED_LOYAL_UNIT 1 (Quenoth Scout)  21  4 (Vordel) ( _ "Vordel")}
        [+unit]
            facing=sw
        [/unit]
        {NAMED_LOYAL_UNIT 1 (Quenoth Fighter) 25  6 (Naron) ( _ "Naron")}
        [+unit]
            facing=sw
        [/unit]
        {NAMED_LOYAL_UNIT 1 (Quenoth Mystic)  23  6 (Dela) ( _ "Dela")}
        [+unit]
            facing=sw
        [/unit]

        {LOCK_VIEW}
    [/event]

    [event]
        name=start
        [message]
            speaker=Maina
            message= _ "It is certainly unfortunate that you couldn’t find a solution to this problem. Everything seems peaceful and good from our current location, but if Uria’s minions win the war and take over the continent, it will only be a matter of time until they come to claim this island. And what if Yechnagoth is able to control the surface creatures of the continent again?"
        [/message]

        [message]
            speaker=Elynia
            message= _ "At least we know that her soul is no longer in this world. There’s a faint possibility that they might be unable to use her heart for anything yet. We must make haste and instruct our allies to purge the remains of Wesmere."
        [/message]

        [message]
            speaker=Gaellis
            message= _ "A few of our people expressed interest on joining your group to help you in this quest, and learn more about the state of the lands whence we came a couple of centuries ago."
        [/message]

        [message]
            speaker=Dela
            message= _ "Eloh would want us to help our kin in these dark times."
        [/message]

        [message]
            speaker=Vordel
            message= _ "Our numbers are very small, and we don’t have the resources to support an army, but we have the knowledge, and the faith to try to make a difference on the battlefield."
        [/message]

        [message]
            speaker=Naron
            message= _ "It would be an honor to fight alongside you, sir."
        [/message]

        [message]
            speaker=Mal Keshar
            message= _ "Fight, indeed. We have spent too much time far from ‘home’ — who knows what’s become of it since we left."
        [/message]

        [message]
            speaker=Galas
            message= _ "The honor is ours. We appreciate and accept your help on this day, but we are even more grateful for the day on which you released Irdya from the eternal nightmare of Yechnagoth’s control."
        [/message]

        [message]
            speaker=Maina
            message= _ "Young Galas, what you three have done for us is no small deed either. Although your journey is not quite complete yet, by defeating Uria’s designated sovereign of Chaos, you proved that her forces are not invincible, and rekindled that flame of hope everyone needed. You truly are the heroes of the forest elves of this era."
        [/message]

        [message]
            speaker=Galas
            message= _ "Thank you."
        [/message]

        [delay]
            time=750
        [/delay]

        [message]
            speaker=Gaellis
            message= _ "Kyara is one of our most skilled archers, and she has expressed her desire to join you in your quest. Seeing as how you will need all the help you can get, we thought you might welcome her support."
        [/message]

        [message]
            speaker=Mal Keshar
            # po: "I’m not sure that’s a good idea."
            message= _ "I’m not—"
        [/message]

        [message]
            speaker=Elynia
            message= _ "You can come with us if you wish, but you need to be aware of the dangers that lie in our way."
        [/message]

        [message]
            speaker=Kyara
            message= _ "I <i>am</i> aware. I’ve already talked with Lord Galas about it — I just want to be of help to our forest cousins in this struggle for our future."
        [/message]

        [delay]
            time=750
        [/delay]

        [message]
            speaker=Galas
            message= _ "Well, we must now prepare for departing tomorrow in the morning. A long voyage back home awaits us..."
        [/message]

        [fade_out_music][/fade_out_music]

        {ENDLEVEL_CONTINUE} {NO_REPLAY_SAVE}
    [/event]
[/scenario]

# kate: indent-mode normal; encoding utf-8; space-indent on;


#textdomain wesnoth-After_the_Storm

[scenario]
    id=07_The_Search_for_the_Past
    name= _ "The Search for the Past"
    {MAP 07_The_Search_for_the_Past.map}
    {TURNS 70 68 65}
    next_scenario="07x_Resolutions"
    victory_when_enemies_defeated=no

    {A_DEATHS}

    {SCENARIO_MUSIC       "underground.ogg"} {CONTINUE_PLAYING_STORY_MUSIC_FIRST}
    {EXTRA_SCENARIO_MUSIC "the_deep_path.ogg"}
    {EXTRA_SCENARIO_MUSIC "into_the_shadows.ogg"}
    {EXTRA_SCENARIO_MUSIC "gameplay06.ogg"}

    {STORYTXT_THE_SEARCH_FOR_THE_PAST}

    {UNDERGROUND}

    # wmllint: validate-off
    [side]
        save_id=player

        controller=human
        side=1
        team_name=player
        user_team_name= _ "team_name^Galas"

        {GOLD 300 280 260}
        {INCOME 3 2 2}
        shroud=yes

        # wmllint: recognize Galas
        {CHARACTER_STATS_GALAS}
    [/side]
    # wmllint: validate-on

    [side]
        side=2
        team_name=critters
        user_team_name= _ "team_name^Cave Creatures"
        hidden=yes
        no_leader=yes

        {ai/aliases/stable_singleplayer.cfg}
        [ai]
            {AI_NO_SCOUTS}
            {AI_SIMPLE_ALWAYS_ASPECT aggression 10.0}
            {AI_SIMPLE_ALWAYS_ASPECT caution     0.0}
        [/ai]
    [/side]

    [side]
        side=3
        team_name=critters
        user_team_name= _ "team_name^Cave Creatures"

        type=Lesser Giant Spider
        canrecruit=yes
        hidden=yes
        gold=0
        income=-2
        village_gold=0

        {ai/aliases/stable_singleplayer.cfg}
        [ai]
            {AI_NO_SCOUTS}
            {AI_SIMPLE_ALWAYS_ASPECT aggression 10.0}
            {AI_SIMPLE_ALWAYS_ASPECT caution     0.0}
        [/ai]
    [/side]

    [side]
        side=4
        team_name=critters
        user_team_name= _ "team_name^Undead"
        {FLAG_VARIANT undead}
        no_leader=yes
        hidden=yes

        {ai/aliases/stable_singleplayer.cfg}
        [ai]
            {AI_NO_SCOUTS}
            {AI_SIMPLE_ALWAYS_ASPECT aggression 10.0}
            {AI_SIMPLE_ALWAYS_ASPECT caution     0.0}
        [/ai]
    [/side]

    [side]
        side=5
        team_name=critters
        user_team_name= _ "team_name^Yechnagoth’s Guards"
        {CHAOS_FLAG}
        no_leader=yes
        hidden=yes

        {ai/aliases/stable_singleplayer.cfg}
        [ai]
            {AI_NO_SCOUTS}
            {AI_SIMPLE_ALWAYS_ASPECT aggression 10.0}
            {AI_SIMPLE_ALWAYS_ASPECT caution     0.0}
        [/ai]
    [/side]

    [side]
        side=6
        team_name=critters
        user_team_name= _ "team_name^Chaos Guards"
        {CHAOS_FLAG}
        no_leader=yes
        hidden=yes

        {ai/aliases/stable_singleplayer.cfg}
        [ai]
            {AI_NO_SCOUTS}
            {AI_SIMPLE_ALWAYS_ASPECT aggression 10.0}
            {AI_SIMPLE_ALWAYS_ASPECT caution     0.0}
        [/ai]
    [/side]

    {STARTING_VILLAGES 1 5}

    {PLACE_IMAGE (scenery/trash.png)           29 45}
    {PLACE_IMAGE (scenery/trash.png)           10 44}
    {PLACE_IMAGE (scenery/trash.png)           12 48}
    {PLACE_IMAGE (scenery/rubble.png)          25 45}
    {PLACE_IMAGE (scenery/rubble.png)          25 47}
    {PLACE_IMAGE (items/brazier.png)           19 39}
    {PLACE_IMAGE (items/brazier.png)           17 40}
    {PLACE_IMAGE (items/brazier.png)           19 42}
    {PLACE_IMAGE (items/brazier.png)           21 41}
    {PLACE_IMAGE (items/brazier.png)           28 35}
    {PLACE_IMAGE (items/burial.png)            17 24}
    {PLACE_IMAGE (items/burial.png)            25 24}
    {PLACE_IMAGE (items/bonestack.png)         30 17}

    {PLACE_IMAGE ("items/bones.png")           27 45}
    {PLACE_IMAGE ("items/bones.png~FL(horiz)") 23 41}

    {PLACE_IMAGE (scenery/monolith1.png)       18 29}
    {PLACE_IMAGE (scenery/monolith3.png)       32 10}

    {CAVE_WATER_SOUND_SOURCE 26 22}

    {CAVE_WATER_SOUND_SOURCE 18 50}

    {CAVE_NOISE_SOUND_SOURCE}

    [event]
        name=prestart
        {DOOR_TILES_TO_UNITS 2}

        # wmllint: recognize Elynia
        {RECALL_ELYNIA}
        # wmllint: recognize Mal Keshar
        {RECALL_MAL_KESHAR}
        # wmllint: recognize Horo
        {RECALL_HORO}
        # wmllint: recognize Kyara
        {RECALL_KYARA}

        {FACE_DIRECTION (side=1) ne}

        {OBJECTIVES (
            victory_string= _ "Current Objectives:"
            {OBJECTIVE_VICTORY ( _ "Follow the path and explore underground")}

            {OBJECTIVE_DEFEAT  ( _ "Death of Galas")}
            {OBJECTIVE_DEFEAT  ( _ "Death of Elynia")}
            {OBJECTIVE_DEFEAT  ( _ "Death of Mal Keshar")}
            {OBJECTIVE_DEFEAT  ( _ "Death of Horo")}
            {OBJECTIVE_DEFEAT  ( _ "Death of Kyara")}
            {TURNS_RUN_OUT}

            {OBJECTIVE_CARRYOVER_NO_BONUS}
        )}

        {GENERIC_UNIT 2 (Vampire Bat) 37 12} {GUARDIAN}
        {GENERIC_UNIT 2 (Vampire Bat) 30 10} {GUARDIAN}
        {GENERIC_UNIT 2 (Vampire Bat) 27 9 } {GUARDIAN}
        {GENERIC_UNIT 2 (Vampire Bat) 28 8 } {GUARDIAN}
        {GENERIC_UNIT 2 (Vampire Bat) 27 7 } {GUARDIAN}

        {GENERIC_UNIT 2 {DIFF (Vampire Bat) (Blood Bat) (Dread Bat)} 20 8 } {GUARDIAN}

        {GENERIC_UNIT 2 (Vampire Bat) 5  11} {GUARDIAN}
        {GENERIC_UNIT 2 (Vampire Bat) 16 10} {GUARDIAN}
        {GENERIC_UNIT 2 (Vampire Bat) 16 10} {GUARDIAN}

        {GENERIC_UNIT 2 (Giant Ant) 10  5} {FACING sw} {GUARDIAN}
        {GENERIC_UNIT 2 (Giant Ant)  7  8} {FACING se} {GUARDIAN}
        {GENERIC_UNIT 2 (Giant Ant)  8  3} {FACING s } {GUARDIAN}

        {GENERIC_UNIT 2 (Giant Ant) 34 14} {FACING n } {GUARDIAN}
        {GENERIC_UNIT 2 (Giant Ant) 38 14} {FACING nw} {GUARDIAN}
        {GENERIC_UNIT 2 (Giant Ant) 34 14} {FACING n } {GUARDIAN}

        {GENERIC_UNIT 2 (Leech) 13 7 }
        {GENERIC_UNIT 2 (Leech) 23 4 }
        {GENERIC_UNIT 2 (Leech) 33 5 }

        {GENERIC_UNIT 2 (Leech) 11 12}
        {GENERIC_UNIT 2 (Leech) 13 12}
        {GENERIC_UNIT 2 (Leech) 9  13}

        {GENERIC_UNIT 2 (Giant Mushroom) 39 18}

        {GENERIC_UNIT 2 (Leech) 30 15}

        {GENERIC_UNIT 2 (Fungoid) 36 22} {GUARDIAN}
        {GENERIC_UNIT 2 (Fungoid) 40 23} {GUARDIAN}
        {GENERIC_UNIT 2 (Fungoid) 38 25} {GUARDIAN}

        {GENERIC_UNIT 4 (Walking Corpse) 18 50} {VARIATION bat} {FACING ne} {GUARDIAN} {NO_UPKEEP_NO_OVERLAY}

        {GENERIC_UNIT 2 (Dread Bat) 13  1} {VARIATION bat} {FACING ne} {GUARDIAN} {NO_UPKEEP_NO_OVERLAY}

        {GENERIC_UNIT 4 (Necrophage)  9 46} {FACING ne} {GUARDIAN} {NO_UPKEEP_NO_OVERLAY}

        {GENERIC_UNIT 4 (Ghoul)  7 36} {FACING se} {GUARDIAN} {NO_UPKEEP_NO_OVERLAY}
        {GENERIC_UNIT 4 (Ghoul) 22 40} {FACING sw} {GUARDIAN} {NO_UPKEEP_NO_OVERLAY}
        {GENERIC_UNIT 4 (Ghoul) 33 48} {FACING sw} {GUARDIAN} {NO_UPKEEP_NO_OVERLAY}
        {GENERIC_UNIT 4 (Ghoul) 29 49} {FACING nw} {GUARDIAN} {NO_UPKEEP_NO_OVERLAY}
        {GENERIC_UNIT 4 (Ghoul) 16 39} {GUARDIAN} {NO_UPKEEP_NO_OVERLAY}
        {GENERIC_UNIT 4 (Ghoul) 16 42} {GUARDIAN} {NO_UPKEEP_NO_OVERLAY}
        {GENERIC_UNIT 4 (Ghoul) 21 42} {GUARDIAN} {NO_UPKEEP_NO_OVERLAY}
#ifndef EASY
        {GENERIC_UNIT 4 (Necrophage) 19 41} {FACING ne} {GUARDIAN} {NO_UPKEEP_NO_OVERLAY}
        {GENERIC_UNIT 4 (Soulless) 22 32} {VARIATION swimmer} {FACING n} {GUARDIAN} {NO_UPKEEP_NO_OVERLAY}
#endif
        {GENERIC_UNIT 4 (Walking Corpse) 20 31} {VARIATION swimmer} {FACING ne} {GUARDIAN} {NO_UPKEEP_NO_OVERLAY}
        {GENERIC_UNIT 4 (Walking Corpse) 24 29} {VARIATION swimmer} {FACING sw} {GUARDIAN} {NO_UPKEEP_NO_OVERLAY}

        {GENERIC_UNIT 4 (Soulless) 17 28} {GUARDIAN} {NO_UPKEEP_NO_OVERLAY}
        {GENERIC_UNIT 4 (Walking Corpse) 17 28} {VARIATION saurian} {GUARDIAN} {NO_UPKEEP_NO_OVERLAY}

        {GENERIC_UNIT 4 (Soulless) 24 23} {VARIATION saurian} {FACING ne} {GUARDIAN} {NO_UPKEEP_NO_OVERLAY}

        {GENERIC_UNIT 5 (Psy Crawler) 27 33} {FACING nw} {GUARDIAN}
        {GENERIC_UNIT 5 (Psy Crawler) 26 34} {FACING se} {GUARDIAN}
        {GENERIC_UNIT 5 (Psy Crawler) 22 20} {FACING s } {GUARDIAN}

        {GENERIC_UNIT 6 (Demonic Hound) 26 32} {FACING nw} {GUARDIAN}

        {GENERIC_UNIT 5 (Tentacle of the Deep) 3  33} {GUARDIAN}
        {GENERIC_UNIT 5 (Tentacle of the Deep) 11 31} {GUARDIAN}
        {GENERIC_UNIT 5 (Tentacle of the Deep) 20 32} {GUARDIAN}
        {GENERIC_UNIT 5 (Tentacle of the Deep) 26 29} {GUARDIAN}
        {GENERIC_UNIT 5 (Tentacle of the Deep) 34 22} {GUARDIAN}

        {GENERIC_UNIT 5 (Water Serpent) 25 20} {FACING se} {GUARDIAN}
        {GENERIC_UNIT 5 (Water Serpent) 30 23} {FACING nw} {GUARDIAN}

        {VARIABLE sighted_bats           0}
        {VARIABLE touchplate_38_18_used no}

        {VARIABLE  glyph_7_37_used      no}
        {VARIABLE  glyph_9_36_used      no}
        {VARIABLE  glyph_4_45_used      no}
        #{VARIABLE  glyph_6_46_used      no}
        #{VARIABLE  glyph_8_47_used      no}
        {VARIABLE glyph_10_48_used      no}
        {VARIABLE glyph_31_48_used      no}
    [/event]

    [event]
        name=victory
        {CLEAR_VARIABLE sighted_bats,touchplate_38_18_used}

        {CLEAR_VARIABLE glyph_7_37_used}
        {CLEAR_VARIABLE glyph_9_36_used}
        {CLEAR_VARIABLE glyph_4_45_used}
        #{CLEAR_VARIABLE glyph_6_46_used}
        #{CLEAR_VARIABLE glyph_8_47_used}
        {CLEAR_VARIABLE glyph_10_48_used}
        {CLEAR_VARIABLE glyph_31_48_used}
    [/event]

    [event]
        name=start
        [message]
            speaker=Horo
            message= _ "I don’t like this place. It feels as if something is waiting to ambush us in the darkness."
        [/message]

        [message]
            speaker=Mal Keshar
            message= _ "Heh, darkness. These elves aren’t very smart after all. Why would they think that sending one of their sun-loving youths would be of any help to us?"
        [/message]

        [message]
            speaker=Kyara
            message= _ "Keep your mouth shut, decrepit lich! We are being far more lenient than anyone would be with those who deal with your unnatural minions and these filthy apes."
        [/message]

        [message]
            speaker=Horo
            message= _ "Who are you calling “filthy apes”, you..."
        [/message]

        [message]
            speaker=Galas
            message= _ "Calm down, everyone! If we are to explore these caverns, we’ll need to stay together."
        [/message]

        [message]
            speaker=Kyara
            message= _ "What are you looking for? Some kind of artifact? Rocks? Spiders?"
        [/message]

        [message]
            speaker=Elynia
            message= _ "We believe these caves beneath the dark citadel may have once been used by our enemies. If that is the case, they may have left behind scrolls, artifacts, or anything else that could provide us with hints."
        [/message]

        [message]
            speaker=Galas
            message= _ "This is no time to fight amongst ourselves. Just stay alert and let us see what we can find."
        [/message]

        [message]
            speaker=Horo
            message= _ "We will help you as best we can, elf."
        [/message]
    [/event]

    {FIRE_EVENT_ON_STUMBLE_UPON giant_spider (
        canrecruit=yes
        side=3
    )}

    [event]
        name=giant_spider
        [store_starting_location]
            side=4
        [/store_starting_location]

        [unit]
            x,y=$location.x,$location.y
            side=4
            canrecruit=yes
            type=Death Knight
            id=Firden
            name= _ "Firden"
            [modifications]
                {TRAIT_UNDEAD}
            [/modifications]
        [/unit]

        [modify_side]
            side=4
            recruit=Skeleton,Walking Corpse,Ghost
            {GOLD 100 125 150}
            {INCOME 2 3 4}
        [/modify_side]

        {CAPTURE_VILLAGES 4 $location.x $location.y 8}

        [capture_village]
            side=4
            x,y=31,17
        [/capture_village]

        [message]
            side,canrecruit=3,yes
            message= _ "Hissssssss" # wmllint: no spellcheck
        [/message]

        [message]
            speaker=Horo
            message= _ "A giant spider. Just a bothersome giant spider."
        [/message]

        [scroll_to]
            x,y=$x1,$y1
        [/scroll_to]

        {CLEAR_VARIABLE location}
    [/event]

    {FIRE_EVENT_ON_STUMBLE_UPON undead_enemies (
        side=4
    )}

    [event]
        name=undead_enemies

        [message]
            speaker=Galas
            message= _ "Look out, there are undead sentinels standing in our way!"
        [/message]

        [message]
            speaker=Kyara
            message= _ "This is impossible! Our druids purged any evil creatures left on this island after Kalehssar’s victory!"
        [/message]

        [message]
            speaker=Elynia
            message= _ "Above the surface, they might have been unable to detect these slumbering minions. Yes, it appears our presence is what has awakened them after so long."
        [/message]

        [scroll_to]
            x,y=$x1,$y1
        [/scroll_to]
    [/event]

    [event]
        name=die
        [filter]
            id=Firden
        [/filter]

        [message]
            speaker=Mal Keshar
            message= _ "There was very little strength left in this guardian. I wonder who was the master of these minions before the place was abandoned?"
        [/message]

        [message]
            speaker=Elynia
            message= _ "Argan, of course. There’s no doubt about it."
        [/message]

        [scroll_to]
            x,y=$x2,$y2
        [/scroll_to]
    [/event]

    [event]
        name=die
        [filter]
            level=2
            [or]
                level=3
            [/or]
        [/filter]
        [filter_second]
            id=Kyara
        [/filter_second]

        [message]
            speaker=Mal Keshar
            message= _ "Not bad for a sun-loving little girl."
        [/message]

        [message]
            speaker=Kyara
            message= _ "Shut up, necromancer."
        [/message]

        [scroll_to]
            x,y=$x2,$y2
        [/scroll_to]
    [/event]

    {FIRE_ESSENCE_E1S7 29  7}

    [event]
        name=moveto
        [filter]
            side=1
            x=29-35
            y=15-19
        [/filter]
        [filter_condition]
            {VARIABLE_BOOLEAN_NOT_EQUALS touchplate_38_18_used yes}
        [/filter_condition]

        {CLEAR_CAVE_SHROUD (
            x,y=31,17
            radius=3
        )}

        [redraw]
            side=1
        [/redraw]

        [scroll_to]
            x,y=31,18
        [/scroll_to]

        [delay]
            time=500
        [/delay]

        [message]
            speaker=Kyara
            message= _ "Now what?"
        [/message]

        [message]
            speaker=Galas
            message= _ "If our past experiences with this sort of fortress are anything to go by, this is most likely not the dead end it appears to be. Let us check the cave to the east."
        [/message]
    [/event]

    {ITEM_TOUCHPLATE 38 18}

    [event]
        name=moveto
        [filter]
            side=1
            x,y=38,18
        [/filter]

        {VARIABLE touchplate_38_18_used yes}

        [remove_item]
            x,y=$x1,$y1
        [/remove_item]

        [terrain]
            x,y=38,19
            terrain=Uu
        [/terrain]

        [message]
            speaker=narrator
            image=wesnoth-icon.png
            message= _ "Touchplate triggered. A wall moves."
        [/message]

        [redraw]
            side=1
        [/redraw]
    [/event]

    {ITEM_CRYSTAL_GLYPH_GATE 38 23}

    [event]
        name=moveto
        [filter]
            side=1
            x,y=38,23
        [/filter]

        [terrain]
            x,y=30,19
            terrain=Uu
        [/terrain]

        [message]
            speaker=narrator
            image=wesnoth-icon.png
            message= _ "Crystal glyph activated. A wall moves."
        [/message]

        [remove_shroud]
            x,y=30,19
            radius=1
            [or]
                x,y=28,21
                radius=1
            [/or]
            side=1
        [/remove_shroud]

        [redraw]
            side=1
        [/redraw]

        [scroll_to]
            x,y=29,21
        [/scroll_to]

        {HIGHLIGHT_GOAL (x,y=29,21)}

        [scroll_to]
            x,y=$x1,$y1
        [/scroll_to]
    [/event]

    [event]
        name=moveto
        [filter]
            id=Elynia
            x,y=38-40,28
        [/filter]

        [message]
            speaker=Elynia
            message= _ "Hm... I don’t know what I was thinking; there is no point in following this stream."
        [/message]
    [/event]

    {FIRE_EVENT_ON_STUMBLE_UPON sighted_bats (
        race=bats
    )}
    {FIRE_EVENT_ON_STUMBLE_UPON sighted_water_serpent (
        type=Water Serpent
    )}
    {FIRE_EVENT_ON_STUMBLE_UPON sighted_verlissh (
        race=verlissh
    )}

    [event]
        name=sighted_bats
        first_time_only=no

        {VARIABLE_INC sighted_bats}

        [if]
            {VARIABLE_NUMERICAL_GREATER_THAN sighted_bats 2}
            [then]
                [message]
                    speaker=Kyara
                    message= _ "These accursed bats are everywhere!"
                [/message]

                [message]
                    speaker=Mal Keshar
                    message= _ "It’s a cave, what did you expect? Rabbits?"
                [/message]

                [scroll_to]
                    x,y=$x1,$y1
                [/scroll_to]
            [/then]
        [/if]
    [/event]

    [event]
        name=sighted_water_serpent

        [message]
            speaker=Galas
            scroll=no
            message= _ "Those water creatures don’t look friendly at all."
        [/message]
    [/event]

    [event]
        name=sighted_verlissh

        [message]
            speaker=Kyara
            scroll=no
            # wmllint: local spelling Yec
            message= _ "These abominations look much like Yechnagoth’s true form did according to our druids..."
        [/message]
    [/event]

    [event]
        name=moveto
        [filter]
            side=1
            x=10-18
            y=25-30
        [/filter]

        {CLEAR_CAVE_SHROUD (
            x,y=12,25
            radius=2
            [or]
                x,y=16,25
                radius=2
            [/or]
        )}

        [redraw]
            side=1
        [/redraw]

        [scroll_to]
            x,y=15,27
        [/scroll_to]

        [delay]
            time=750
        [/delay]

        [message]
            speaker=Elynia
            scroll=no
            message= _ "It seems there was a cave-in here long ago. This blocked passage might have led to the citadel — let’s see what lies down the path."
        [/message]
    [/event]

    [event]
        name=DEBUG1

        [teleport]
            [filter]
                id=Galas
            [/filter]
            x,y=23,37
        [/teleport]

        [teleport]
            [filter]
                id=Elynia
            [/filter]
            x,y=24,37
        [/teleport]

        [teleport]
            [filter]
                id=Mal Keshar
            [/filter]
            x,y=24,36
        [/teleport]
    [/event]

    [event]
        name=die
        [filter]
            type=Door
            [and]
                x,y=22,37
                [or]
                    x,y=23,38
                [/or]
            [/and]
        [/filter]

        [remove_shroud]
            side=1
            x=16-23,15
            y=38-43,39-43
        [/remove_shroud]

        [redraw][/redraw]

        [scroll_to]
            x,y=19,40
        [/scroll_to]

        [fade_out_music]
            duration=500
        [/fade_out_music]

        {REPLACE_SCENARIO_MUSIC "snowfall.ogg"}

        [message]
            speaker=Galas
            message= _ "I suppose this is Argan’s old base of operations."
        [/message]

        [message]
            speaker=Elynia
            message= _ "Yes, it seems to be... Let’s get rid of its current residents and inspect those chambers."
        [/message]

        {OBJECTIVES (
            victory_string= _ "Current Objectives:"
            {OBJECTIVE_VICTORY ( _ "Gather all information you can from Argan’s lair")}

            {OBJECTIVE_DEFEAT  ( _ "Death of Galas")}
            {OBJECTIVE_DEFEAT  ( _ "Death of Elynia")}
            {OBJECTIVE_DEFEAT  ( _ "Death of Mal Keshar")}
            {OBJECTIVE_DEFEAT  ( _ "Death of Horo")}
            {OBJECTIVE_DEFEAT  ( _ "Death of Kyara")}

            {TURNS_RUN_OUT}

            {OBJECTIVE_CARRYOVER_NO_BONUS}
        )}

        [event]
            name=check_glyphs
            first_time_only=no
            [if]
                {VARIABLE_BOOLEAN_EQUALS  glyph_7_37_used yes}
                {VARIABLE_BOOLEAN_EQUALS  glyph_9_36_used yes}
                {VARIABLE_BOOLEAN_EQUALS  glyph_4_45_used yes}
                #{VARIABLE_BOOLEAN_EQUALS  glyph_6_46_used yes}
                #{VARIABLE_BOOLEAN_EQUALS  glyph_8_47_used yes}
                {VARIABLE_BOOLEAN_EQUALS glyph_10_48_used yes}
                {VARIABLE_BOOLEAN_EQUALS glyph_31_48_used yes}
                [then]
                    {ENDLEVEL_VICTORY no}
                [/then]
            [/if]
        [/event]
    [/event]

    [event]
        name=moveto
        [filter]
            side=1
            x,y=27,45
        [/filter]

        [message]
            speaker=Horo
            scroll=no
            message= _ "The skeleton of a human, it seems. Who knows how this poor bastard ended up thrown into this chamber."
        [/message]
    [/event]

#define __MSG_POWER_UP_GLYPH _MSG
    [message]
        speaker=narrator
        image=items/crystal-glyph-powerup.png
        caption= _ "Crystal Glyph"
        message={_MSG} # wmllint: ignore
    [/message]
#enddef

#define __LIBRARY_GLYPH_BASE _X _Y _WML
    {ITEM_CRYSTAL_GLYPH_MESSAGE {_X} {_Y} }
    {ITEM_GOAL                  {_X} {_Y} }

    # Step 1: remove goal marker

    [event]
        name=moveto
        [filter]
            x={_X}
            y={_Y}
            side=1
        [/filter]

        {ITEM_REMOVE_GOAL {_X} {_Y} }
    [/event]

    # Step 2: show associated messages (may be triggered again if the player wishes so)

    [event]
        name=moveto
        first_time_only=no
        [filter]
            x={_X}
            y={_Y}
            side=1
        [/filter]

        [allow_undo][/allow_undo]

        {_WML}
    [/event]

    # Step 3: commit status

    [event]
        name=moveto
        [filter]
            x={_X}
            y={_Y}
            side=1
        [/filter]

        {VARIABLE "glyph_$x1|_$y1|_used" yes}

        [fire_event]
            name=check_glyphs
        [/fire_event]
    [/event]
#enddef

#define __LIBRARY_GLYPH _X _Y _MSG
    {__LIBRARY_GLYPH_BASE ({_X}) ({_Y}) ({MSG_GLYPH ({_MSG})})}
#enddef

    {__LIBRARY_GLYPH 7 37 ( _ "The Verlissh are a primitive Rythenian lifeform brought to Irdya by the Argazar. Under given conditions, these creatures can combine to form larger and more complex units, and even integrate themselves into foreign organisms, adapting to their bodies and augmenting them. The symbiotic relationship they develop with their host comes at a price for both, however — the host and the Verlissh become reliant on each other’s functions to survive.")}

    {__LIBRARY_GLYPH 9 36 ( _ "Uria has learned that the Argazar civilization used the Verlissh to enhance the abilities and strength of their ‘biomechanical’ warriors. There are ruins scattered across Irdya from which we could obtain samples to, in time, raise a whole army to put an end to the current Dark Age.")}

    {__LIBRARY_GLYPH 4 45 ( _ "The advanced Norsulan technology stolen by Uria’s agents from those working for the one who is rumored to be the reincarnation of Valdir has been very helpful for our ends; understanding the most interesting creations of the Argazar people would have proved nearly impossible without a better-documented modern reference.")}

    # wmlindent: start ignoring
    {__LIBRARY_GLYPH_BASE 10 48 (
        # po: Note: Urvatha = Inferno. Uria is considered the mother of Inferno
        # po: in a strictly figurative sense.
        {MSG_GLYPH ( _ "According to some ancient legends of disputable origin, the First sculpted a beautiful maiden out of fine dust, and bestowed her control over the awesome power that flows through the veins of every one of her faerie descendants, including the elves of Irdya.

Those legends also tell of one of her siblings: Merthiaal the Ashen One, who owing to her bold actions would come to be known as the Eater of Souls. Even after a cycle has passed, the oldest races of Irdya and other worlds continue to remember her, and avoid mentioning her true name in conversation. If they must, they will speak of her as ‘Yechnagoth’.

Now, Merthiaal fervently desired the First’s favor. Alas, no matter how hard she tried, someone with such an aching heart could not possibly manage to tame the Aspect of Darkness. She could never accept that the First only had eyes for the wielder of the Arcane Flame, and Uria, the Guardian who would come to be regarded as the mother of Urvatha.")}

        {MSG_GLYPH ( _ "Envy rooted deep within Merthiaal’s mind. In an attempt to prove her worth, she committed an unspeakable sin against the order of the Universe. Her control over Darkness was lost as a result. Her own world was destroyed, along with every soul on it. Any further damage was only narrowly averted thanks to Uria’s timely intervention.

Merthiaal’s heart, soul, and memories were preserved through eons, but her body was not.

Now we have the means to build a new body that may allow her power to flow unimpeded once again. If she can be convinced to accept Uria’s offer, then she shall have a new opportunity to destroy the descendants of her rival and allow us to reign over this decadent world.")}
    )}
    # wmlindent: stop ignoring

    {OBJ_HEALING_GLYPH  6 46}

    {OBJ_HEALING_GLYPH  8 47}

    {OBJ_HEALING_GLYPH 20 47}

    {ITEM_CRYSTAL_GLYPH_POWERUP 31 48}
    {ITEM_GOAL                  31 48}

    {CONTINUOUS_SOUND_SOURCE power_up_glyph_sound_source 31 48 ("glyph-powerup.ogg")}

    [event]
        name=moveto
        [filter]
            x=31
            y=48
            side=1
        [/filter]

        [allow_undo][/allow_undo]

        [redraw][/redraw]

        {__MSG_POWER_UP_GLYPH ( _ "This glyph may only be used by the true descendants of She who wields the Arcane Flame that protects Irdya.")}

        [if]
            [have_unit]
                id=Elynia
                x=$x1
                y=$y1
            [/have_unit]
            [else]
                [message]
                    speaker=Galas
                    message= _ "Elynia, you should check this crystal; it may have information we need."
                [/message]

                {OBJECTIVES (
                    victory_string= _ "Current Objectives:"
                    {OBJECTIVE_VICTORY ( _ "Move Elynia to the sealed crystal glyph")}
                    {OBJECTIVE_VICTORY ( _ "Gather all information you can from Argan’s lair")}

                    {OBJECTIVE_DEFEAT  ( _ "Death of Galas")}
                    {OBJECTIVE_DEFEAT  ( _ "Death of Elynia")}
                    {OBJECTIVE_DEFEAT  ( _ "Death of Mal Keshar")}
                    {OBJECTIVE_DEFEAT  ( _ "Death of Horo")}
                    {OBJECTIVE_DEFEAT  ( _ "Death of Kyara")}

                    {TURNS_RUN_OUT}

                    {OBJECTIVE_CARRYOVER_NO_BONUS}
                )}
            [/else]
        [/if]
    [/event]

    [event]
        name=moveto
        [filter]
            x=31
            y=48
            id=Elynia
        [/filter]

        {VARIABLE "glyph_$x1|_$y1|_used" yes}

        {__MSG_POWER_UP_GLYPH ( _ "Within this glyph is encoded a Teleport spell which will allow you to cross great distances if you let your soul travel unimpeded by your body. Gaze beyond with your eyes closed, and touch the existence outside your reach. Given sufficient focus, you shall be able to transport your being to any place from your memories and find any soul within your heart’s sight.

Yet cautiously you must tread, for not all the possibilities are written, and those who stray from their reality might not find anything on the other side of the mirror.")}

        [message]
            speaker=Mal Keshar
            message= _ "That’s strange. Why would Argan keep something he obviously couldn’t use in his lair?"
        [/message]

        [message]
            speaker=Elynia
            message= _ "It could be... that he foresaw me coming to this place and wanted to help me, even if he couldn’t break free from Uria’s control."
        [/message]

        [message]
            speaker=Galas
            message= _ "It’s more likely that he wanted to set a trap for us or anyone else who would manage to find this place."
        [/message]

        [message]
            speaker=Elynia
            message= _ "I don’t believe he truly intended to cause me any harm with his actions... I’ll take the spell, it could be of use later."
        [/message]

        [message]
            speaker=Mal Keshar
            message= _ "Elynia, don’t—"
        [/message]

        [scroll_to]
            x,y=$x1,$y1
        [/scroll_to]

        [delay]
            time=500
        [/delay]

        [message]
            speaker=narrator
            image=wesnoth-icon.png
            message= _ "As Elynia approached the crystal’s surface with her hand, the glyph disintegrated into fine golden dust, covering her for a few moments..."
        [/message]

        [animate_unit]
            [filter]
                x,y=$x1,$y1
            [/filter]
            flag=shine_golden
            with_bars=no
        [/animate_unit]

        [remove_item]
            x,y=$x1,$y1
        [/remove_item]

        [terrain]
            terrain=Uu
            x,y=$x1,$y1
        [/terrain]

        {REMOVE_SOUND_SOURCE (power_up_glyph_sound_source)}

        [redraw][/redraw]

        [delay]
            time=750
        [/delay]

        [message]
            speaker=narrator
            image=wesnoth-icon.png
            message= _ "... And then it vanished into thin air."
        [/message]

        [delay]
            time=500
        [/delay]

        [message]
            speaker=Elynia
            message= _ "I don’t feel any different, but... I guess I need to figure out exactly how this power works, now."
        [/message]

        [message]
            speaker=Mal Keshar
            message= _ "Hmph. In my times, you didn’t acquire magic abilities from a rock. Well, be careful if you ever attempt to use that spell; knowing who might have put it there, I don’t think it’s safe. And more generally, while it is known that powerful mages can learn to travel great distances like that, many of them also disappear on occasion and are never heard of again."
        [/message]

        {OBJECTIVES (
            victory_string= _ "Current Objectives:"
            {OBJECTIVE_VICTORY ( _ "Gather all information you can from Argan’s lair")}

            {OBJECTIVE_DEFEAT  ( _ "Death of Galas")}
            {OBJECTIVE_DEFEAT  ( _ "Death of Elynia")}
            {OBJECTIVE_DEFEAT  ( _ "Death of Mal Keshar")}
            {OBJECTIVE_DEFEAT  ( _ "Death of Horo")}
            {OBJECTIVE_DEFEAT  ( _ "Death of Kyara")}

            {TURNS_RUN_OUT}

            {OBJECTIVE_CARRYOVER_NO_BONUS}
        )}

        [fire_event]
            name=check_glyphs
        [/fire_event]
    [/event]

    [event]
        name=victory

        #
        # Just to keep the cutscene zone clear.
        #
        {RESET_AND_SEND_TO_RECALL_LIST (
            side=1
            [not]
                id=Galas
                [or]
                    id=Elynia
                [/or]
                [or]
                    id=Mal Keshar
                [/or]
                [or]
                    id=Horo
                [/or]
                [or]
                    id=Kyara
                [/or]
            [/not]
            [not]
                x,y=recall,recall
            [/not]
        )}

        [kill]
            [not]
                side=1
            [/not]
            animate=no
            fire_event=no
        [/kill]

        {RESET_UNIT_STATUSES (
            side=1
            [not]
                x,y=recall,recall
            [/not]
        )}

        [hide_unit][/hide_unit]

        {FADE_TO_BLACK}

        [fade_out_music][/fade_out_music]

        [scroll_to]
            x,y=19,41
            {WARP}
        [/scroll_to]

        [redraw][/redraw]

        {FADE_IN}

        # FIXME: This sequence actually unhides the units before we reach the
        # [unhide_unit] action.
        [teleport]
            [filter]
                id=Galas
            [/filter]
            x,y=16,39
        [/teleport]
        {FACE_DIRECTION (id=Galas) se}
        [teleport]
            [filter]
                id=Elynia
            [/filter]
            x,y=21,39
        [/teleport]
        {FACE_DIRECTION (id=Elynia) sw}
        [teleport]
            [filter]
                id=Mal Keshar
            [/filter]
            x,y=17,42
        [/teleport]
        {FACE_DIRECTION (id=Mal Keshar) ne}
        [teleport]
            [filter]
                id=Horo
            [/filter]
            x,y=22,41
        [/teleport]
        {FACE_DIRECTION (id=Horo) nw}
        [teleport]
            [filter]
                id=Kyara
            [/filter]
            x,y=20,42
        [/teleport]
        {FACE_DIRECTION (id=Kyara) nw}

        [unhide_unit][/unhide_unit]

        {REPLACE_SCENARIO_MUSIC "nunc_dimittis.ogg"}

        [redraw][/redraw]

        [delay]
            time=750
        [/delay]

        [message]
            speaker=Galas
            message= _ "There doesn’t seem to be much more to see here. That’s unfortunate."
        [/message]

        [message]
            speaker=Kyara
            # po: "Our priestesses won’t accept this truth." or something similarly terrifying.
            message= _ "What we have found here is... frightening. We always thought that there was only one world, the one in which we live. Our priestesses won’t... What do we do with this?"
        [/message]

        [message]
            speaker=Mal Keshar
            message= _ "This reminds me that the ‘First’ is also described in the ruins of a hidden city beneath the Heart Mountains. It is said that he created ten powerful demons, the Original Ten. All this would imply that all elves and other faerie creatures are descended, or at least created in the image of this mysterious wielder of the Arcane Flame, sister of Uria and Yechnagoth, and one of the Original Ten."
        [/message]

        [message]
            speaker=Elynia
            message= _ "Eloh. That’s her name — a name that was seldom heard in my times, for nearly nothing was known for certain about her and the myths neglected explaining the origin of every other race on Irdya. I suppose that Zhangor’s influence upon Wesmere may have resulted in the reintroduction of that name to our kin’s lore. Regardless, even though linguistics are not my specialty, I suspect that’s still not her true name, much like the case of Yechnagoth."
        [/message]

        [message]
            speaker=Elynia
            message= _ "What you have learned here about all this... it would probably be best to keep it a secret for now, especially the allusions to other worlds. In these times when demons roam and spoil Irdya at will, realizing that they might be more closely related to us than we suspected, and that there might be more awaiting out there... it could be devastating to our cultures, to say the least. Perhaps after all this is over..."
        [/message]

        [message]
            speaker=Mal Keshar
            message= _ "(snicker) And you say that Argan never intended to cause you any harm? All that we have found proves that he really wanted to destroy your kind after all! Using the powers of an ancient demon, no less!"
        [/message]

        [message]
            speaker=Elynia
            message= _ "I don’t believe that any of this was done out of his own volition. He was... under Uria’s control."
        [/message]

        [message]
            speaker=Mal Keshar
            message= _ "So, have you forgotten what he said? “I guess I had this coming ever since then.” I know, his last words were very vague, but it certainly sounded like he was well aware of what he was doing the whole time. Perhaps it was not his intention to cause harm to you in particular, but the damage he caused throughout the continent, in the name of Uria, to the things you protect... did it not affect you? Furthermore, it seemed like Uria felt his loss. If he was a mere puppet of hers, would she have resented his death so much?"
        [/message]

        [delay]
            time=750
        [/delay]

        {MOVE_UNIT id=Elynia 20 40}

        [delay]
            time=250
        [/delay]

        {MOVE_UNIT id=Elynia 19 41}

        [delay]
            time=750
        [/delay]

        [message]
            speaker=narrator
            image=wesnoth-icon.png
            message= _ "Elynia slowly approached Mal Keshar with a grim expression in her eyes — neither the lich nor Galas had seen that much rage reflected in her before."
        [/message]

        [delay]
            time=250
        [/delay]

        {MOVE_UNIT id=Elynia 18 41}

        [delay]
            time=750
        [/delay]

        [message]
            speaker=Elynia
            message= _ "You know nothing."
        [/message]

        [message]
            speaker=Mal Keshar
            message= _ "I saw enough. I heard enough."
        [/message]

        [message]
            speaker=Horo
            message= _ "(nervously) We should return to the surface before we run out of provisions."
        [/message]

        [message]
            speaker=Galas
            message= _ "Elynia... if I’m not mistaken, we found a journal in the Heart, and you have kept it all this time with you, correct?"
        [/message]

        [delay]
            time=750
        [/delay]

        [message]
            speaker=Elynia
            message= _ "I... the elf who suggested that we take the journal, he was under Uria’s control, wasn’t he? It might not truly be Argan’s."
        [/message]

        [message]
            speaker=Galas
            message= _ "I am sure it is. I knew Lédinor well enough, and I’m sure that was him speaking, not Uria. It was later that his face and demeanor changed completely. No matter what Uria said, I’m certain that Lédinor was struggling to overcome her control all that time, resisting it long enough to help us, even though he knew she would succeed in the end. If he had told us about it, he would have collapsed much earlier."
        [/message]

        [delay]
            time=250
        [/delay]

        [message]
            speaker=Galas
            message= _ "We are descendants of Eloh, and as the Quenoth elves know, not even Yechnagoth’s mind control can work on us that easily."
        [/message]

        [delay]
            time=500
        [/delay]

        [message]
            speaker=Galas
            message= _ "I know you are probably hesitant about reading Argan’s journal because you fear to learn more about how much of a monster he became..."
        [/message]

        [delay]
            time=750
        [/delay]

        [message]
            speaker=Elynia
            message= _ "I..."
        [/message]

        [delay]
            time=750
        [/delay]

        [message]
            speaker=Mal Keshar
            message= _ "If you prefer, I could read it for you, and keep any details besides what is relevant to our quest from reaching anyone."
        [/message]

        [delay]
            time=750
        [/delay]

        [message]
            speaker=Elynia
            message= _ "(with a calmer expression) Very well."
        [/message]

        [message]
            speaker=Mal Keshar
            message= _ "In the meantime, perhaps you could socialize with the locals or something. Perhaps try to have fun and smile? It really helps when you’ve lived for so long — I should be one to know. While you do that, I’ll be killing myself reading a damn book; I haven’t found any good reading material since the Fall, you know? It seems like everyone suddenly forgot how to read and write after the Wesnothians singlehandedly ended the world!"
        [/message]

        [message]
            speaker=Kyara
            message= _ "... You are already dead."
        [/message]
    [/event]

    [event]
        name=time over

        #
        # I could not think of any good reason for the defeat on end-of-turns; the
        # baddies aren't going to invade Quenoth any time soon, but I can't let the
        # player milk income forever.
        #

        [message]
            speaker=Horo
            message= _ "We have spent too much time in these caverns, and many of my men are starving."
        [/message]

        [message]
            speaker=Elynia
            message= _ "(sighs, staring at the ceiling) Why do we always have a time limit of some sort for everything we do?"
        [/message]
    [/event]

#undef __MSG_POWER_UP_GLYPH
#undef __LIBRARY_GLYPH
#undef __LIBRARY_GLYPH_BASE
[/scenario]

# kate: indent-mode normal; encoding utf-8; space-indent on;


#textdomain wesnoth-After_the_Storm

[scenario]
    id=08_Fear
    name= _ "Fear"
    {MAP 08_Fear.map}
    {TURNS 34 32 30}
    next_scenario="09_The_Triad_part_1"
    victory_when_enemies_defeated=no

    {A_DEATHS}

    {SCENARIO_MUSIC       "heroes_rite.ogg"}
    {EXTRA_SCENARIO_MUSIC "nunc_dimittis.ogg"}

    {STORYTXT_FEAR}

    {DUSK2}      {GLOBAL_LIGHTING_BAD_DUSK}
    {LONGDARK1}  {GLOBAL_LIGHTING_BAD_NIGHT}
    {LONGDARK2}  {GLOBAL_LIGHTING_BAD_NIGHT}
    {LONGDARK3}  {GLOBAL_LIGHTING_BAD_NIGHT}
    {LONGDARK4}  {GLOBAL_LIGHTING_BAD_NIGHT}
    {DAWN1}      {GLOBAL_LIGHTING_BAD_DAWN}
    {MORNING1}   {GLOBAL_LIGHTING_BAD_MORNING}
    {MIDDAY1}    {GLOBAL_LIGHTING_BAD_DAY}
    {AFTERNOON1} {GLOBAL_LIGHTING_BAD_DAY}
    {DUSK1}      {GLOBAL_LIGHTING_BAD_DUSK}
    {SHORTDARK}  {GLOBAL_LIGHTING_BAD_NIGHT_SHORT}
    {DAWN2}      {GLOBAL_LIGHTING_BAD_DAWN}
    {MORNING2}   {GLOBAL_LIGHTING_BAD_MORNING}
    {MIDDAY2}    {GLOBAL_LIGHTING_BAD_DAY}
    {AFTERNOON2} {GLOBAL_LIGHTING_BAD_DAY}

    {SHAXTHAL_SET_SURFACE_VARIATIONS_FLAG}

    # wmllint: validate-off

    [side]
        save_id=player

        controller=human
        side=1
        team_name=player
        user_team_name= _ "team_name^Galas"

        {GOLD 340 320 300}

        shroud,fog=yes,yes

        # wmllint: recognize Galas
        {CHARACTER_STATS_GALAS}
    [/side]

    [side]
        side=2
        no_leader,hidden=yes,yes
        {CHAOS_FLAG}
        team_name=foe
        user_team_name= _ "team_name^Enemies"
        controller=null
    [/side]

    [side]
        side=3
        no_leader,hidden=yes,yes
        {CHAOS_FLAG}
        team_name=foe
        user_team_name= _ "team_name^Enemies"
        controller=null

        [unit]
            type=Shaxthal Drone
            x,y=36,26
            id=event drone
            variation=surface
        [/unit]
    [/side]

    # wmllint: validate-on

    [event]
        name=prestart
        # wmllint: recognize Elynia
        {RECALL_ELYNIA}
        # wmllint: recognize Mal Keshar
        {RECALL_MAL_KESHAR}
        # wmllint: recognize Horo
        {RECALL_HORO}
        # wmllint: recognize Kyara
        {RECALL_KYARA}

        {OBJECTIVES (
            victory_string= _ "Current Objectives:"
            {OBJECTIVE_VICTORY ( _ "Explore the peninsula")}

            {OBJECTIVE_DEFEAT  ( _ "Death of Galas")}
            {OBJECTIVE_DEFEAT  ( _ "Death of Elynia")}
            {OBJECTIVE_DEFEAT  ( _ "Death of Mal Keshar")}
            {OBJECTIVE_DEFEAT  ( _ "Death of Horo")}
            {OBJECTIVE_DEFEAT  ( _ "Death of Kyara")}

            {TURNS_RUN_OUT}

            {OBJECTIVE_CARRYOVER}
        )}
    [/event]

    [event]
        name=start
        [message]
            speaker=Galas
            message= _ "The fog is so thick I can barely see anything in the distance. It’s rather unsettling..."
        [/message]

        [message]
            speaker=Elynia
            message= _ "Indeed. We should explore this peninsula carefully and stay together. Maybe we can find an abandoned castle or village where we can rest while we plan our next course of action."
        [/message]

        [message]
            speaker=Horo
            message= _ "The air is unusually dense. There’s something more about this place I don’t like."
        [/message]

        [message]
            speaker=Mal Keshar
            message= _ "We may soon find out..."
        [/message]
    [/event]

    [event]
        name=moveto
        [filter]
            x=1-40
            y=1-30
            side=1
        [/filter]

        [fire_event]
            name=start battle
        [/fire_event]
    [/event]

    {FIRE_EVENT_ON_STUMBLE_UPON (start battle) (
        id=event drone
    )}

    [event]
        name=start battle
        first_time_only=yes

        [store_starting_location]
            side=2
            variable=sl
        [/store_starting_location]

        [modify_side]
            side=2
            controller=ai
            {GOLD 150 170 185}
            {INCOME 0 1 2}
            hidden=no
            recruit=Chaos Invader,Chaos Raider,Chaos Bowman
        [/modify_side]

        [unit]
            canrecruit=yes
            x,y=$sl.x,$sl.y
            side=2
            type=Chaos Magus
            id=Essornius
            name= _ "Essornius"
            facing=se
            [modifications]
                {TRAIT_RESILIENT}
                {TRAIT_INTELLIGENT}
            [/modifications]
        [/unit]

        {GENERIC_UNIT 2 (Chaos Crossbowman) 11 14} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {FACING sw}
#ifndef EASY
        {GENERIC_UNIT 2 (Chaos Crossbowman) 14 11} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {FACING se}
#endif
        {GENERIC_UNIT 2 (Doom Guard) 13 13} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {FACING se}

        # not guardians
        {GENERIC_UNIT 2 (Chaos Cavalier) 10 12} {NO_UPKEEP_NO_OVERLAY} {FACING se}
#ifndef EASY
        {GENERIC_UNIT 2 (Chaos Cavalier) 11 11} {NO_UPKEEP_NO_OVERLAY} {FACING se}
#endif

        {CAPTURE_VILLAGES 2 $sl.x $sl.y 8}

        [store_starting_location]
            side=3
            variable=sl
        [/store_starting_location]

        [modify_side]
            side=3
            controller=ai
            {GOLD 190 210 220}
            {INCOME 0 2 4}
            hidden=no
            recruit=Shaxthal Runner Drone,Shaxthal Drone,Shaxthal Razorbird
        [/modify_side]

        [unit]
            canrecruit=yes
            x,y=$sl.x,$sl.y
            side=3
            type=Shaxthal War Drone
            facing=se
            [modifications]
                {TRAIT_BIOMECHANICAL}
                {TRAIT_STRONG}
            [/modifications]
        [/unit]

        # This is needed so the AI doesn't send the drone to
        # capture the village this turn.
        [capture_village]
            side=3
            x,y=34,24
        [/capture_village]

        {GENERIC_UNIT 3 (Shaxthal Sentry Drone) 27 9} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {VARIATION surface} {FACING se}
        {GENERIC_UNIT 3 (Shaxthal Sentry Drone) 38 8} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {VARIATION surface} {FACING sw}
        {GENERIC_UNIT 3 (Shaxthal Sentry Drone) 30 2} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {VARIATION surface} {FACING se}
#ifndef EASY
        {GENERIC_UNIT 3 (Shaxthal Sentry Drone) 33 5} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {VARIATION surface} {FACING se}
#endif

        # not guardians
        {GENERIC_UNIT 3 (Shaxthal Protector Drone) 29 7} {NO_UPKEEP_NO_OVERLAY} {FACING sw}
#ifndef EASY
        {GENERIC_UNIT 3 (Shaxthal Protector Drone) 31 6} {NO_UPKEEP_NO_OVERLAY} {FACING sw}
#endif

        {CAPTURE_VILLAGES 3 $sl.x $sl.y 11}

        {APPEND_MUSIC "western_theme2.ogg"}
        {APPEND_MUSIC "climactic_contemplation.ogg"}
        {APPEND_MUSIC "northerners.ogg"}

        {OBJECTIVES (
            {OBJECTIVE_VICTORY ( _ "Defeat all enemy leaders")}

            {OBJECTIVE_DEFEAT  ( _ "Death of Galas")}
            {OBJECTIVE_DEFEAT  ( _ "Death of Elynia")}
            {OBJECTIVE_DEFEAT  ( _ "Death of Mal Keshar")}
            {OBJECTIVE_DEFEAT  ( _ "Death of Horo")}
            {OBJECTIVE_DEFEAT  ( _ "Death of Kyara")}

            {TURNS_RUN_OUT}

            {OBJECTIVE_CARRYOVER}
        )}

        {CLEAR_VARIABLE sl}

        [remove_shroud]
            x,y=36,26
            radius=2
            side=1
        [/remove_shroud]

        [redraw]
            side=1
        [/redraw]

        [scroll_to]
            x,y=36,26
        [/scroll_to]

        [delay]
            time=500
        [/delay]

        [message]
            speaker=Kyara
            message= _ "What kind of infernal spawn is that thing?!"
        [/message]

        [message]
            speaker=Elynia
            message= _ "Shaxthals. We are definitely not alone here."
        [/message]

        [message]
            speaker=Galas
            message= _ "We’ll have to fight our way through this place then."
        [/message]

        [event]
            name=enemies defeated

            {ENDLEVEL_VICTORY yes} {NO_ENDLEVEL_MUSIC}
        [/event]
    [/event]

    [event]
        name=victory

        [store_unit]
            [filter]
                id=Mal Keshar
            [/filter]
            variable=malin_store
            kill=no
        [/store_unit]

        [store_unit]
            [filter]
                id=Elynia
            [/filter]
            variable=elynia_store
            kill=yes
        [/store_unit]

        [hide_unit]
            id=Galas
        [/hide_unit]

        [message]
            speaker=Horo
            message= _ "Yes, we did it!"
        [/message]

        [message]
            speaker=Mal Keshar
            message= _ "Let’s leave this land as quickly as possible."
        [/message]

        [delay]
            time=750
        [/delay]

        [invert_direction]
            variable=malin_store.facing
        [/invert_direction]

        [unstore_unit]
            variable=malin_store
            find_vacant=no
        [/unstore_unit]

        [redraw][/redraw]

        [fade_out_music]
            duration=750
        [/fade_out_music]

        [message]
            speaker=Mal Keshar
            message= _ "Galas?"
        [/message]

        [delay]
            time=750
        [/delay]

        [invert_direction]
            variable=malin_store.facing
        [/invert_direction]

        [unstore_unit]
            variable=malin_store
            find_vacant=no
        [/unstore_unit]

        {CLEAR_VARIABLE malin_store}

        [redraw][/redraw]

        [delay]
            time=750
        [/delay]

        [message]
            speaker=Mal Keshar
            message= _ "... Elynia?"
        [/message]

        [delay]
            time=1000
        [/delay]
    [/event]
[/scenario]

# kate: indent-mode normal; encoding utf-8; space-indent on;