#textdomain wesnoth-Genesis

[scenario]
    id=19_Twilight_Vision
    name= _ "Twilight Vision"
    map_data="{~add-ons/Genesis/episode1/maps/19_Twilight_Vision.map}"
    victory_when_enemies_defeated=no
    turns=-1
    next_scenario=20_Royal_Palace
    theme=Cutscene
    {DARK_INDOORS}

    {SCENARIO_MUSIC underground.ogg}
    {EXTRA_SCENARIO_MUSIC returning_in_time.ogg}

    [side]
        side=1
        no_leader=yes
        controller=human
        team_name=fae
        user_team_name= _ "team_name^Xia'el"
        {NO_GOLD_SIDE}
        shroud=yes
        color=green
    [/side]

    [side]
        no_leader=yes
        side=2
        color=black
        controller=ai
        team_name=fae
        user_team_name= _ "team_name^Merthiaal"
        {NO_GOLD_SIDE}
        share_view=yes
        shroud=yes
    [/side]

    [side]
        side=3
        no_leader=yes
        controller=ai
        team_name=gates
        hidden=yes
        color=black
    [/side]

#define RESET_PUZZLE_ONE
    [terrain]
        x,y=46,7
        terrain=Urb
    [/terrain]
    [terrain]
        x,y=46,4
        radius=1
        terrain=Wog
    [/terrain]
    [terrain]
        x,y=46,4
        terrain=Wog^Zulf
    [/terrain]
    [terrain]
        x,y=43,3
        terrain=Qlf
    [/terrain]
    [terrain]
        x,y=49,2
        terrain=Gd
    [/terrain]
    [redraw][/redraw]
    {PLACE_IMAGE items/straw-bale1.png 46 7}
    {REMOVE_IMAGE 46 4}
#enddef

#define RESET_PUZZLE_TWO
    [terrain]
        x,y=23,31
        terrain=Rb^Ecf
    [/terrain]
    [terrain]
        x,y=29,31
        terrain=Wwb^Ii
    [/terrain]
    [terrain]
        x,y=29,27
        terrain=Ww
    [/terrain]
    [terrain]
        x,y=23,27
        terrain=Gll^Fetd
    [/terrain]
    [terrain]
        x,y=26,28
        radius=1
        terrain=Aa
    [/terrain]
    [terrain]
        x=25,26
        y=26,26
        terrain=Aa
    [/terrain]
    [terrain]
        x,y=26,28
        terrain=Ayb
    [/terrain]
    [redraw][/redraw]
#enddef
#define RESET_PUZZLE_THREE
    [terrain]
        x,y=9,7
        radius=2
        terrain=Qlf
    [/terrain]
    [terrain]
        x=8,10,7,11,8,10
        y=5,5,7,7,8,8
        terrain=Urb
    [/terrain]
    [terrain]
        x,y=9,7
        terrain=Xu
    [/terrain]
    [terrain]
        x,y=9,10
        terrain=Gg^Fet
    [/terrain]
    [terrain]
        x,y=6,8
        terrain=Gll^Fdw
    [/terrain]
    [terrain]
        x,y=12,8
        terrain=Gll^Fp
    [/terrain]
    [terrain]
        x,y=12,5
        terrain=Gll^Fmw
    [/terrain]
    [terrain]
        x,y=9,4
        terrain=Gs^Fds
    [/terrain]
    [terrain]
        x,y=6,5
        terrain=Gd^Fyok
    [/terrain]
    [redraw][/redraw]
#enddef

    [event]
        name=prestart

        {PLACE_IMAGE items/crystal-glyph-message.png 38 3}
        {PLACE_IMAGE items/crystal-glyph-message.png 34 6}
        {PLACE_IMAGE items/crystal-glyph-message.png 17 22}
        {PLACE_IMAGE items/crystal-glyph-message.png 50 14}
        {PLACE_IMAGE items/straw-bale1.png 46 7}

        [set_variable]
            name=puzzle1
            value=0
        [/set_variable]
        [set_variable]
            name=puzzle2
            value=0
        [/set_variable]
        [set_variable]
            name=puzzle3
            value=0
        [/set_variable]
    [/event]

    [event]
        name=start

        {FADE_SCREEN}
        [unit]
            type=Guardian of Earth
            name= _ "Xia'el"
            id=Xia'el
            facing=sw
            canrecruit=yes
            unrenamable=yes
            animate=yes
            side=1
            x,y=45,30
        [/unit]

        [scroll_to]
            x,y=45,30
        [/scroll_to]
        [redraw]
            side=1
            clear_shroud=yes
        [/redraw]
        {UNFADE_SCREEN}
        {DELAY 1000}

        [message]
            speaker=Xia'el
            message= _ "Oooh, my head..."
        [/message]
        [message]
            speaker=Xia'el
            message= _ "(rubs temples)"
        [/message]
        [message]
            speaker=Xia'el
            message= _ "... Merthiaal? Merthiaal, are you there?"
        [/message]
        {DELAY 350}
        {TURN_UNIT5 "Xia'el"}
        {DELAY 350}
        [message]
            speaker=Xia'el
            message= _ "Hmm. This all doesn't seem real. This is... a dream?"
        [/message]
        [message]
            speaker=Xia'el
            message= _ "I can't tell either way. Maybe if I move around a little, I can figure out where I am."
        [/message]

        [objectives]
            {OBJECTIVE_VICTORY  ( _ "Explore")}
            {OBJECTIVE_NOTE ( _ "There are 3 puzzles on this map.")}
            {OBJECTIVE_NOTE ( _ "Completion of each puzzle will reveal a crystal containing lore information.")}
            {OBJECTIVE_NOTE ( _ "The gates separate the sections between puzzles and will be destroyed upon completion of each puzzle.")}
        [/objectives]
    [/event]

    [event]
        name=moveto
        first_time_only=no
        [filter]
            id=Xia'el
        [/filter]

        {MODIFY_UNIT (x,y=$x1,$y1) moves 7}
        {MODIFY_UNIT (x,y=$x1,$y1) attacks_left 1}
    [/event]
    [event]
        name=attack end
        first_time_only=no
        [filter]
            id=Xia'el
        [/filter]

        {MODIFY_UNIT (x,y=$x1,$y1) moves 7}
        {MODIFY_UNIT (x,y=$x1,$y1) attacks_left 1}
    [/event]

    # puzzle text

    [event]
        name=moveto
        [filter]
            side=1
            [filter_location]
                x,y=46,4
                radius=4
            [/filter_location]
        [/filter]

        [message]
            speaker=Xia'el
            message= _ "Huh, interesting. Looks like I need to make a fire here?"
        [/message]
    [/event]
    [event]
        name=moveto
        [filter]
            side=1
            [filter_location]
                x,y=26,28
                radius=4
            [/filter_location]
        [/filter]

        [message]
            speaker=Xia'el
            message= _ "I think I need to bring that tree back to life."
        [/message]
    [/event]
    [event]
        name=moveto
        [filter]
            side=1
            [filter_location]
                x,y=9,7
                radius=4
            [/filter_location]
        [/filter]

        [message]
            speaker=Xia'el
            message= _ "I wonder why the trees are all different around here."
        [/message]
    [/event]

    ################################################################################
    ################################## PUZZLE ONE ##################################

#define ONE_ITEM_MESSAGE
                [message]
                    speaker=narrator
                    message= _ "You can only pick up one thing at a time!"
                [/message]
#enddef

    [event]
        name=moveto
        first_time_only=no
        [filter]
            side=1
            x,y=49,2
        [/filter]
        [filter_condition]
            [variable]
                name=puzzle1
                less_than=10
            [/variable]
        [/filter_condition]
        [switch]
            variable=puzzle1
            [case]
                value=3
                {ONE_ITEM_MESSAGE}
            [/case]
            [case]
                value=5
                {ONE_ITEM_MESSAGE}
            [/case]
            [else]
                [terrain]
                    x,y=49,2
                    terrain=Woby
                [/terrain]
                [redraw][/redraw]
                [message]
                    speaker=Xia'el
                    message= _ "I've got some earth."
                [/message]
                [set_variable]
                    name=puzzle1
                    value=1
                [/set_variable]
            [/else]
        [/switch]
    [/event]

    [event]
        name=moveto
        first_time_only=no
        [filter]
            side=1
            [filter_location]
                x,y=46,4
                terrain=Wog^Zulf
            [/filter_location]
        [/filter]
        [filter_condition]
            [variable]
                name=puzzle1
                less_than=10
            [/variable]
        [/filter_condition]

        [switch]
            variable=puzzle1
            [case]
                value=1
                [move_unit]
                    id=Xia'el
                    to_x,to_y=47,5
                [/move_unit]
                [terrain]
                    x,y=46,4
                    terrain=Gd^Zulf
                [/terrain]
                [redraw][/redraw]

                [set_variable]
                    name=puzzle1
                    value=2
                [/set_variable]
            [/case]
            [case]
                value=0
            [/case]
            [else]
                [message]
                    speaker=Xia'el
                    message= _ "That didn't work."
                [/message]
                {RESET_PUZZLE_ONE}
                [set_variable]
                    name=puzzle1
                    value=0
                [/set_variable]
            [/else]
        [/switch]
    [/event]

    [event]
        name=moveto
        first_time_only=no
        [filter]
            side=1
            x,y=46,7
        [/filter]
        [filter_condition]
            [variable]
                name=puzzle1
                less_than=10
            [/variable]
        [/filter_condition]
        [switch]
            variable=puzzle1
            [case]
                value=1
                {ONE_ITEM_MESSAGE}
            [/case]
            [case]
                value=5
                {ONE_ITEM_MESSAGE}
            [/case]
            [else]
                {REMOVE_IMAGE 46 7}

                [terrain]
                    x,y=46,7
                    terrain=Woby
                [/terrain]
                [redraw][/redraw]

                [message]
                    speaker=Xia'el
                    message= _ "I've picked up some hay."
                [/message]
                [set_variable]
                    name=puzzle1
                    value=3
                [/set_variable]
            [/else]
        [/switch]
    [/event]
    [event]
        name=moveto
        first_time_only=no
        [filter]
            side=1
            [filter_location]
                x,y=46,4
                terrain=Gd^Zulf
            [/filter_location]
        [/filter]
        [filter_condition]
            [variable]
                name=puzzle1
                less_than=10
            [/variable]
        [/filter_condition]

        [switch]
            variable=puzzle1
            [case]
                value=3
                [move_unit]
                    id=Xia'el
                    to_x,to_y=47,5
                [/move_unit]
                {PLACE_IMAGE items/straw-bale1.png 46 4}
                [terrain]
                    x,y=46,4
                    terrain=Gs^Zulf
                [/terrain]
                [redraw][/redraw]
                [set_variable]
                    name=puzzle1
                    value=4
                [/set_variable]
            [/case]
            [case]
                value=2
            [/case]
            [else]
                [set_variable]
                    name=puzzle1
                    value=0
                [/set_variable]
                [message]
                    speaker=Xia'el
                    message= _ "That didn't work."
                [/message]
                {RESET_PUZZLE_ONE}
            [/else]
        [/switch]
    [/event]

    [event]
        name=moveto
        first_time_only=no
        [filter]
            side=1
            x,y=43,3
        [/filter]
        [filter_condition]
            [variable]
                name=puzzle1
                less_than=10
            [/variable]
        [/filter_condition]
        [switch]
            variable=puzzle1
            [case]
                value=1
                {ONE_ITEM_MESSAGE}
            [/case]
            [case]
                value=3
                {ONE_ITEM_MESSAGE}
            [/case]
            [else]
                [terrain]
                    x,y=43,3
                    terrain=Woby
                [/terrain]
                [redraw][/redraw]

                [message]
                    speaker=Xia'el
                    message= _ "It's hot."
                [/message]
                [set_variable]
                    name=puzzle1
                    value=5
                [/set_variable]
            [/else]
        [/switch]
    [/event]

    [event]
        name=moveto
        first_time_only=no
        [filter]
            side=1
            [filter_location]
                x,y=46,4
                terrain=Gs^Zulf
            [/filter_location]
        [/filter]
        [filter_condition]
            [variable]
                name=puzzle1
                less_than=10
            [/variable]
        [/filter_condition]

        [switch]
            variable=puzzle1
            [case]
                value=5
                {REMOVE_IMAGE 46 4}
                [move_unit]
                    id=Xia'el
                    to_x,to_y=47,5
                [/move_unit]
                [terrain]
                    x,y=46,4
                    terrain=Gs^Ecf
                [/terrain]
                [redraw][/redraw]

                {DELAY 350}
                {PLAY_SOUND "magic-dark-miss.ogg"}
                {DELAY 150}
                {PLAY_SOUND "magic-dark-miss.ogg"}
                {DELAY 750}
                {PLAY_SOUND "magic-dark.ogg"}
                {DELAY 500}

                {PLACE_IMAGE items/crystal-glyph-message.png 46 4}
                [terrain]
                    x,y=46,4
                    terrain=Gs
                [/terrain]
                [redraw][/redraw]
                {DELAY 600}

                [message]
                    speaker=Xia'el
                    message= _ "Interesting. It's some kind of message log."
                [/message]

                [remove_terrain_overlays]
                    x=31,32,32,38
                    y=10,9,11,15
                [/remove_terrain_overlays]
                {DELAY 150}
                {PLAY_SOUND "gate-fall.ogg"}
                {DELAY 150}
                [message]
                    speaker=narrator
                    message= _ "A set of gates has been lowered."
                [/message]

                [set_variable]
                    name=puzzle1
                    value=99
                [/set_variable]
            [/case]
            [case]
                value=4
            [/case]
            [else]
                [set_variable]
                    name=puzzle1
                    value=0
                [/set_variable]
                [message]
                    speaker=Xia'el
                    message= _ "That didn't work."
                [/message]
                {RESET_PUZZLE_ONE}
            [/else]
        [/switch]
    [/event]

    [event]
        name=moveto
        first_time_only=no
        [filter]
            side=1
            x,y=46,4
        [/filter]
        [filter_condition]
            [variable]
                name=puzzle1
                numerical_equals=99
            [/variable]
        [/filter_condition]
        [message]
            speaker=narrator
            message= _ "From the journal of Merthiaal."
        [/message]
        [message]
            speaker=narrator
            message= _ "The Yuure demons have been acting extremely strangely. They're usually pretty reclusive, but lately some have begun materializing in large numbers. I thought maybe something happened, say one of the demon lords summoned them or maybe there was a reflection pool bridging the dream world to Yrathid, but as far as I can tell, everything seems to be the same as ever. I also spoke with Yukiria, the Guardian of Ice, and she said that many appeared to be materializing on Siaria as well. She didn't know why either. Yuure demons don't really materialize anywhere else besides... sometimes Norsula."
        [/message]
        [message]
            speaker=narrator
            message= _ "I have heard that Valdir sometimes has contact with them, though I can't imagine why. Using them really doesn't seem like his style. He always prefers those muscly brutes that just physically destroy everything they come across. The Yuure demons' powers are mainly limited to mental acrobatics. That's not really that good in a direct fight."
        [/message]
        [message]
            speaker=narrator
            message= _ "Well, I would have gone to ask Valdir about it, but given his disposition... I heard that when Miss Guardian of Air Kazith showed up unannounced, he attacked her on sight. She got away because, well, she's the Guardian of Air, but I think he'd just crush me if I tried to confront him. So that wasn't really an option."
        [/message]
        [message]
            speaker=narrator
            message= _ "I had to think of another way. Valdir is less versed in the more mystic arts, so I figured I might be able to watch him for a while as long as I wasn't too conspicuous about it. I hid in his shadow and waited and waited... funny thing is unlike me, most of the other Guardians still are somewhat like mortals in that they eat and sleep. Maybe there's long stretches between when they actually do, but eventually after he was done fighting, he went back into his fortress and straight to bed."
        [/message]
        [message]
            speaker=narrator
            message= _ "I wasn't totally sure since they're really deceptive at times, but the nebulous energies that swarmed around him were very similar to those of the Yuure demons. It felt as if reality were warping around him, like nightmares were piercing the thin fabric of our world. The whole thing was a bit jarring."
        [/message]
        [message]
            speaker=narrator
            message= _ "He spoke in his sleep, but it was all garbled. It might have been in a different tongue, one that I did not recognize, or maybe it was in common speech, but encoded somehow. I wanted to infiltrate his dream as well, but if the Yuure demons in his dream were on his side, they would have alerted him. I didn't want to stick around for too long, since he's quite a lot stronger than me - of course, basically everyone is..."
        [/message]
        [message]
            speaker=narrator
            message= _ "I'll have to make another trip back there some time. If I can figure out how to deal with them a bit better, maybe they'll offer me some information so I can figure out exactly what he wants to do with them."
        [/message]
    [/event]

    ################################################################
    ################################################################

    ################################################################################
    ################################## PUZZLE TWO ##################################
    [event]
        name=moveto
        first_time_only=no
        [filter]
            side=1
            x,y=23,31
        [/filter]
        [filter_condition]
            [variable]
                name=puzzle2
                less_than=10
            [/variable]
        [/filter_condition]
        [switch]
            variable=puzzle2
            [case]
                value=3
                {ONE_ITEM_MESSAGE}
            [/case]
            [case]
                value=5
                {ONE_ITEM_MESSAGE}
            [/case]
            [case]
                value=7
                {ONE_ITEM_MESSAGE}
            [/case]
            [else]
                [terrain]
                    x,y=23,31
                    terrain=Qxv
                [/terrain]
                [redraw][/redraw]

                [message]
                    speaker=Xia'el
                    message= _ "I've got some fire."
                [/message]
                [set_variable]
                    name=puzzle2
                    value=1
                [/set_variable]
            [/else]
        [/switch]
    [/event]

    [event]
        name=moveto
        first_time_only=no
        [filter]
            side=1
            [filter_location]
                x,y=26,28
                terrain=Ayb
            [/filter_location]
        [/filter]
        [filter_condition]
            [variable]
                name=puzzle2
                less_than=10
            [/variable]
        [/filter_condition]

        [switch]
            variable=puzzle2
            [case]
                value=1
                [move_unit]
                    id=Xia'el
                    to_x,to_y=25,29
                [/move_unit]
                [terrain]
                    x,y=26,28
                    radius=1
                    terrain=Gd
                [/terrain]
                [terrain]
                    x=25,26
                    y=26,26
                    terrain=Gd
                [/terrain]
                [terrain]
                    x,y=26,28
                    terrain=Dd
                [/terrain]
                [redraw][/redraw]

                [set_variable]
                    name=puzzle2
                    value=2
                [/set_variable]
            [/case]
            [case]
                value=0
            [/case]
            [else]
                [message]
                    speaker=Xia'el
                    message= _ "That didn't work."
                [/message]
                {RESET_PUZZLE_TWO}
                [set_variable]
                    name=puzzle2
                    value=0
                [/set_variable]
            [/else]
        [/switch]
    [/event]

    [event]
        name=moveto
        first_time_only=no
        [filter]
            side=1
            x,y=23,27
        [/filter]
        [filter_condition]
            [variable]
                name=puzzle2
                less_than=10
            [/variable]
        [/filter_condition]
        [switch]
            variable=puzzle2
            [case]
                value=1
                {ONE_ITEM_MESSAGE}
            [/case]
            [case]
                value=5
                {ONE_ITEM_MESSAGE}
            [/case]
            [case]
                value=7
                {ONE_ITEM_MESSAGE}
            [/case]
            [else]
                [terrain]
                    x,y=23,27
                    terrain=Qxv
                [/terrain]
                [redraw][/redraw]

                [message]
                    speaker=Xia'el
                    message= _ "Here's a dead tree."
                [/message]
                [set_variable]
                    name=puzzle2
                    value=3
                [/set_variable]
            [/else]
        [/switch]
    [/event]
    [event]
        name=moveto
        first_time_only=no
        [filter]
            side=1
            [filter_location]
                x,y=26,28
                terrain=Dd
            [/filter_location]
        [/filter]
        [filter_condition]
            [variable]
                name=puzzle2
                less_than=10
            [/variable]
        [/filter_condition]

        [switch]
            variable=puzzle2
            [case]
                value=3
                [move_unit]
                    id=Xia'el
                    to_x,to_y=25,29
                [/move_unit]
                [terrain]
                    x,y=26,28
                    terrain=Dd^Fetd
                [/terrain]
                [redraw][/redraw]
                [set_variable]
                    name=puzzle2
                    value=4
                [/set_variable]
            [/case]
            [case]
                value=2
            [/case]
            [else]
                [set_variable]
                    name=puzzle2
                    value=0
                [/set_variable]
                [message]
                    speaker=Xia'el
                    message= _ "That didn't work."
                [/message]
                {RESET_PUZZLE_TWO}
            [/else]
        [/switch]
    [/event]

    [event]
        name=moveto
        first_time_only=no
        [filter]
            side=1
            x,y=29,27
        [/filter]
        [filter_condition]
            [variable]
                name=puzzle2
                less_than=10
            [/variable]
        [/filter_condition]
        [switch]
            variable=puzzle2
            [case]
                value=1
                {ONE_ITEM_MESSAGE}
            [/case]
            [case]
                value=3
                {ONE_ITEM_MESSAGE}
            [/case]
            [case]
                value=7
                {ONE_ITEM_MESSAGE}
            [/case]
            [else]
                [terrain]
                    x,y=29,27
                    terrain=Qxv
                [/terrain]
                [redraw][/redraw]

                [message]
                    speaker=Xia'el
                    message= _ "This water is really clear."
                [/message]
                [set_variable]
                    name=puzzle2
                    value=5
                [/set_variable]
            [/else]
        [/switch]
    [/event]
    [event]
        name=moveto
        first_time_only=no
        [filter]
            side=1
            [filter_location]
                x,y=26,28
                terrain=Dd^Fetd
            [/filter_location]
        [/filter]
        [filter_condition]
            [variable]
                name=puzzle2
                less_than=10
            [/variable]
        [/filter_condition]

        [switch]
            variable=puzzle2
            [case]
                value=5
                [move_unit]
                    id=Xia'el
                    to_x,to_y=25,29
                [/move_unit]
                [terrain]
                    x,y=26,28
                    terrain=Gs^Fetd
                [/terrain]
                [redraw][/redraw]
                [set_variable]
                    name=puzzle2
                    value=6
                [/set_variable]
            [/case]
            [case]
                value=4
            [/case]
            [else]
                [set_variable]
                    name=puzzle2
                    value=0
                [/set_variable]
                [message]
                    speaker=Xia'el
                    message= _ "That didn't work."
                [/message]
                {RESET_PUZZLE_TWO}
            [/else]
        [/switch]
    [/event]

    [event]
        name=moveto
        first_time_only=no
        [filter]
            side=1
            x,y=29,31
        [/filter]
        [filter_condition]
            [variable]
                name=puzzle2
                less_than=10
            [/variable]
        [/filter_condition]
        [switch]
            variable=puzzle2
            [case]
                value=1
                {ONE_ITEM_MESSAGE}
            [/case]
            [case]
                value=3
                {ONE_ITEM_MESSAGE}
            [/case]
            [case]
                value=5
                {ONE_ITEM_MESSAGE}
            [/case]
            [else]
                [terrain]
                    x,y=29,31
                    terrain=Qxv
                [/terrain]
                [redraw][/redraw]

                [message]
                    speaker=Xia'el
                    message= _ "It's bright here. And warm, like blood."
                [/message]
                [set_variable]
                    name=puzzle2
                    value=7
                [/set_variable]
            [/else]
        [/switch]
    [/event]

    [event]
        name=moveto
        first_time_only=no
        [filter]
            side=1
            [filter_location]
                x,y=26,28
                terrain=Gs^Fetd
            [/filter_location]
        [/filter]
        [filter_condition]
            [variable]
                name=puzzle2
                less_than=10
            [/variable]
        [/filter_condition]

        [switch]
            variable=puzzle2
            [case]
                value=7
                [move_unit]
                    id=Xia'el
                    to_x,to_y=25,29
                [/move_unit]
                [terrain]
                    x,y=26,28
                    terrain=Gs^Fet
                [/terrain]
                [redraw][/redraw]

                {DELAY 350}
                {PLAY_SOUND "magic-dark-miss.ogg"}
                {DELAY 150}
                {PLAY_SOUND "magic-dark-miss.ogg"}
                {DELAY 750}
                {PLAY_SOUND "magic-dark.ogg"}
                {DELAY 500}

                {PLACE_IMAGE items/crystal-glyph-message.png 26 28}
                [terrain]
                    x,y=26,28
                    terrain=Gs
                [/terrain]
                [redraw][/redraw]
                {DELAY 600}

                [message]
                    speaker=Xia'el
                    message= _ "Another message log."
                [/message]

                [remove_terrain_overlays]
                    x=18,19,16,21
                    y=17,18,11,8
                [/remove_terrain_overlays]

                {DELAY 150}
                {PLAY_SOUND "gate-fall.ogg"}
                {DELAY 150}
                [message]
                    speaker=narrator
                    message= _ "A set of gates has been lowered."
                [/message]

                [set_variable]
                    name=puzzle2
                    value=99
                [/set_variable]
            [/case]
            [case]
                value=6
            [/case]
            [else]
                [set_variable]
                    name=puzzle2
                    value=0
                [/set_variable]
                [message]
                    speaker=Xia'el
                    message= _ "That didn't work."
                [/message]
                {RESET_PUZZLE_TWO}
            [/else]
        [/switch]
    [/event]

    [event]
        name=moveto
        first_time_only=no
        [filter]
            side=1
            x,y=26,28
        [/filter]
        [filter_condition]
            [variable]
                name=puzzle2
                numerical_equals=99
            [/variable]
        [/filter_condition]
        [message]
            speaker=narrator
            message= _ "From the journal of Merthiaal."
        [/message]
        [message]
            speaker=narrator
            message= _ "Today was absolutely terrible. Ugh."
        [/message]
        [message]
            speaker=narrator
            message= _ "First things first. It turns out Yuure demons have been infiltrating Ethea and Irdya, the worlds where Uria and Xia'el rule. Uria came barging in here like she was going to kill me! I was so scared- I didn't know what to do... I mean, I didn't think such a thing would happen to begin with. What reason would they have to go to the worlds of Life and Earth? They don't even like those elements. And I most certainly didn't order them to go there, if they can even be ordered around."
        [/message]
        [message]
            speaker=narrator
            message= _ "The more I think about it, I think it's Valdir messing with them, but I can't just go saying that. If anyone goes telling him I said something like that, he would definitely kill me. Oh, I wish I was stronger..."
        [/message]
        [message]
            speaker=narrator
            message= _ "So, now there's apparently a civil war going on in Ethea, and Uria is having a headache dealing with trying to subdue her subjects. I'm sure that she could easily kill them all if she wanted to, but that would be totally embarrassing for her to do and I guess it wouldn't accomplish anything since that wouldn't solve the root of the problem. Those Yuure demons are really hard to track down and basically impossible to actually destroy. I'm not sure if even I could do it. Only Yukiria might be able to."
        [/message]
        [message]
            speaker=narrator
            message= _ "I don't know if Uria is even right about her hunch, but apparently, it's gotten so bad that the war among the Urdemons is even spilling over a little into Irdya. So now Xia'el is going to come after me and she's obviously going to yell at me and threaten me with whatever. And next thing you know, the problem will spread, and like maybe miss Guardian of Fire Shardia is going to barge in here and basically beat me up..."
        [/message]
        [message]
            speaker=narrator
            message= _ "They all like to pick on me just because I'm the youngest..."
        [/message]
        [message]
            speaker=narrator
            message= _ "I wanted to go to talk to Yarae about it, but I don't really know if he'd listen to me. He obviously likes Uria and Xia'el a lot more than me. Honestly, he'd probably just let them have their way with me, but I thought I might as well try explain my situation to him."
        [/message]
        [message]
            speaker=narrator
            message= _ "I decided to try anyway, but you know what happened? He just ignored me! I tried to say things to him, but he just raised his stupid big barrier and shut me out. And it's not like I was being a brat or anything, he was totally hiding something from me! Oh, I feel like I've stuck my nose into something bad..."
        [/message]
    [/event]

    ################################################################
    ################################################################

    ################################################################################
    ################################# PUZZLE THREE #################################
    [event]
        name=moveto
        first_time_only=no
        [filter]
            side=1
            [filter_location]
                x,y=9,10
                terrain=Gg^Fet
            [/filter_location]
        [/filter]
        [filter_condition]
            [variable]
                name=puzzle3
                less_than=10
            [/variable]
        [/filter_condition]

        [terrain]
            x,y=9,10
            terrain=Qxu
        [/terrain]
        [redraw][/redraw]

        [message]
            speaker=Xia'el
            message= _ "It disappeared!"
        [/message]
        [set_variable]
            name=puzzle3
            value=1
        [/set_variable]
    [/event]

    [event]
        name=moveto
        first_time_only=no
        [filter]
            side=1
            [filter_location]
                x,y=9,4
                terrain=Gs^Fds
            [/filter_location]
        [/filter]
        [filter_condition]
            [variable]
                name=puzzle3
                less_than=10
            [/variable]
        [/filter_condition]

        [switch]
            variable=puzzle3
            [case]
                value=1

                [message]
                    speaker=Xia'el
                    message= _ "It's so green."
                [/message]

                [terrain]
                    x,y=9,4
                    terrain=Qxu
                [/terrain]
                [redraw][/redraw]

                [set_variable]
                    name=puzzle3
                    value=2
                [/set_variable]
            [/case]
            [else]
                [message]
                    speaker=Xia'el
                    message= _ "It's so green. But I think I got the order wrong."
                [/message]
                {RESET_PUZZLE_THREE}
                [set_variable]
                    name=puzzle3
                    value=0
                [/set_variable]
            [/else]
        [/switch]
    [/event]

    [event]
        name=moveto
        first_time_only=no
        [filter]
            side=1
            [filter_location]
                x,y=12,8
                terrain=Gll^Fp
            [/filter_location]
        [/filter]
        [filter_condition]
            [variable]
                name=puzzle3
                less_than=10
            [/variable]
        [/filter_condition]

        [switch]
            variable=puzzle3
            [case]
                value=2

                [message]
                    speaker=Xia'el
                    message= _ "Smells like fresh pine cones."
                [/message]

                [terrain]
                    x,y=12,8
                    terrain=Qxu
                [/terrain]
                [terrain]
                    x=7,7,9,9,11,11
                    y=6,8,5,9,6,8
                    terrain=Qxu
                [/terrain]
                [redraw][/redraw]

                [set_variable]
                    name=puzzle3
                    value=3
                [/set_variable]
            [/case]
            [else]
                [message]
                    speaker=Xia'el
                    message= _ "Fresh pine cones. But the leaves aren't as green as the summer trees."
                [/message]
                {RESET_PUZZLE_THREE}
                [set_variable]
                    name=puzzle3
                    value=0
                [/set_variable]
            [/else]
        [/switch]
    [/event]

    [event]
        name=moveto
        first_time_only=no
        [filter]
            side=1
            [filter_location]
                x,y=12,5
                terrain=Gll^Fmw
            [/filter_location]
        [/filter]
        [filter_condition]
            [variable]
                name=puzzle3
                less_than=10
            [/variable]
        [/filter_condition]

        [switch]
            variable=puzzle3
            [case]
                value=3

                [message]
                    speaker=Xia'el
                    message= _ "The leaves on these trees are a bit faded."
                [/message]

                [terrain]
                    x,y=12,5
                    terrain=Qxu
                [/terrain]
                [redraw][/redraw]

                [set_variable]
                    name=puzzle3
                    value=4
                [/set_variable]
            [/case]
            [else]
                [message]
                    speaker=Xia'el
                    message= _ "The leaves on these trees are a bit faded. They look like they're getting ready for winter."
                [/message]
                {RESET_PUZZLE_THREE}
                [set_variable]
                    name=puzzle3
                    value=0
                [/set_variable]
            [/else]
        [/switch]
    [/event]

    [event]
        name=moveto
        first_time_only=no
        [filter]
            side=1
            [filter_location]
                x,y=6,8
                terrain=Gll^Fdw
            [/filter_location]
        [/filter]
        [filter_condition]
            [variable]
                name=puzzle3
                less_than=10
            [/variable]
        [/filter_condition]

        [switch]
            variable=puzzle3
            [case]
                value=4

                [message]
                    speaker=Xia'el
                    message= _ "No leaves on these ones."
                [/message]
                [terrain]
                    x,y=6,8
                    terrain=Qxu
                [/terrain]
                [terrain]
                    x,y=9,7
                    radius=1
                    terrain=Qxu
                [/terrain]
                [terrain]
                    x,y=9,7
                    terrain=Xu
                [/terrain]
                [redraw][/redraw]

                [set_variable]
                    name=puzzle3
                    value=5
                [/set_variable]
            [/case]
            [else]
                [message]
                    speaker=Xia'el
                    message= _ "No leaves on these ones, but they're still alive."
                [/message]
                {RESET_PUZZLE_THREE}
                [set_variable]
                    name=puzzle3
                    value=0
                [/set_variable]
            [/else]
        [/switch]
    [/event]

    [event]
        name=moveto
        first_time_only=no
        [filter]
            side=1
            [filter_location]
                x,y=6,5
                terrain=Gd^Fyok
            [/filter_location]
        [/filter]
        [filter_condition]
            [variable]
                name=puzzle3
                less_than=10
            [/variable]
        [/filter_condition]

        [switch]
            variable=puzzle3
            [case]
                value=5

                [terrain]
                    x,y=6,5
                    terrain=Qxu
                [/terrain]
                [redraw][/redraw]

                {DELAY 350}
                {PLAY_SOUND "magic-dark-miss.ogg"}
                {DELAY 150}
                {PLAY_SOUND "magic-dark-miss.ogg"}
                {DELAY 750}
                {PLAY_SOUND "magic-dark.ogg"}
                {DELAY 500}
                [terrain]
                    x,y=9,7
                    terrain=Qxu
                [/terrain]
                [redraw][/redraw]
                {PLACE_IMAGE items/crystal-glyph-message.png 9 7}

                {DELAY 600}

                [message]
                    speaker=Xia'el
                    message= _ "It's another message."
                [/message]

                [remove_terrain_overlays]
                    x,y=7,20
                [/remove_terrain_overlays]
                {DELAY 150}
                {PLAY_SOUND "gate-fall.ogg"}
                {DELAY 150}
                [message]
                    speaker=narrator
                    message= _ "A gate has been lowered."
                [/message]

                [set_variable]
                    name=puzzle3
                    value=99
                [/set_variable]
            [/case]
            [else]
                [set_variable]
                    name=puzzle3
                    value=0
                [/set_variable]
                [message]
                    speaker=Xia'el
                    message= _ "Ah, it's dead. How unfortunate."
                [/message]
                {RESET_PUZZLE_THREE}
            [/else]
        [/switch]
    [/event]

    [event]
        name=moveto
        first_time_only=no
        [filter]
            side=1
            x,y=9,7
        [/filter]
        [filter_condition]
            [variable]
                name=puzzle3
                numerical_equals=99
            [/variable]
        [/filter_condition]
        [message]
            speaker=narrator
            message= _ "From the memories of Valdir."
        [/message]
        [message]
            speaker=narrator
            message= _ "Today, my glorious Mistress of Fire, Shardia, graced me with her presence once again. She insisted that I halt my armies' assault on her subjects and to withdraw my forces from her lands. Hah! How asinine. As if an insignificant weakling like her could command me! So I told her exactly that. Perhaps if she were so inclined to make a show of her own personal strength in a duel with me, I might consider her request. Of course, she declined. She possesses no resolve."
        [/message]
        [message]
            speaker=narrator
            message= _ "Never does she learn, never does she change. She begs and cries and pleads like a child, hah! For one who so enjoys her monotonous discourse about love, she most certainly is not shy about sending her subjects to fight in her place. If she were truly set on protecting her peoples, she would not cower within the safety of her lofty spires while they die at her feet!"
        [/message]
        [message]
            speaker=narrator
            message= _ "She is a disappointment. On the rare occasion in which she does venture into my domain, even the mere mention of battle is enough to send her scurrying away. She will not put her body where her tongue lies. Unmarred by war, she sits on her high throne as a poorly concealed tyrant."
        [/message]
        [message]
            speaker=narrator
            message= _ "There is a clear break in time here."
        [/message]
        [message]
            speaker=narrator
            message= _ "The seas are silent. She left for Ethea four weeks ago. Our armies still do battle on the ashen shores, but their insignificant struggles only bore me. Shardia's plot is more concerning at the moment. What is she planning?"
        [/message]
        [message]
            speaker=narrator
            message= _ "Shardia and Uria - though their relationship may be tenuous at times, they are undoubtedly allies. Shardia, who so dreads to do battle with her own might, must grovel and shudder behind her equally puny confederates. Yes... they are conspirators... they cannot face me alone, so they choose to draw strength in numbers like ants scurrying upon the ground. And they are willing to do so because they fear me!"
        [/message]
        [message]
            speaker=narrator
            message= _ "So be it. If she refuses to challenge me with her own power, perhaps this will give her the confidence to fight. It shall be more interesting this way."
        [/message]

        [message]
            speaker=narrator
            message= _ "There is another break in time here."
        [/message]
        [message]
            speaker=narrator
            message= _ "At last, Shardia has returned to Norsula. Upon realizing this, I ordered the deepmasters to press the assault on the shores of her towers once again. I myself went to lead the tide toward her sanctuary, but she did not descend to greet me. I do not understand! This is so unlike her usual disposition. Where is her loudmouthed lecture about peace and civility? Why has she not come to lambaste my 'savage lust for blood'? I am here, at the foot of her very own castle, and yet she does not acknowledge my presence in the slightest."
        [/message]
        [message]
            speaker=narrator
            message= _ "Is she ignoring me? How dare she! I am Valdir, the mightiest of the Guardians, the God of War, the Beast of Water, he who is invincible in battle! As long as I am here, she will have to acknowledge me sooner or later..."
        [/message]
        [message]
            speaker=narrator
            message= _ "That blasted witch. She is nothing but a smouldering piece of coal! She must think she has an edge on me now. She must think that I am weak - that I am no threat to her any longer. She thinks that frolicking together with Uria and Xia'el will provide her the means to subdue my armies - to subdue me! Fine. If that is her game, I shall have to show her the error of her ways."
        [/message]
        [message]
            speaker=narrator
            message= _ "The following is a footnote from Merthiaal."
        [/message]
        [message]
            speaker=narrator
            message= _ "I managed to get some small snippets of Valdir's memories using the Yuure demons. I'm so lucky he didn't notice, but I had to know if he was trying to do anything with them. I wasn't the most successful - everyone already knows about his obssession with Shardia - but he definitely sounded like he had some kind of plot of his own."
        [/message]
        [message]
            speaker=narrator
            message= _ "The thing is, it's not like I can go tell anyone with what little evidence I have. Especially not with such disjointed pieces of his memories. And I'm a little scared to risk trying that again. What should I do? Ugh, I don't know, I mean... I kind of already know what's going to happen."
        [/message]
        [message]
            speaker=narrator
            message= _ "Uria will just get mad at me for being nosy, Xia'el will dismiss me and say I'm mistaken, Valdir would totally just kill me... nobody's willing to listen to me. I'm just a child to them. Everyone wants to pick on me and nobody takes me seriously. I guess I've got no choice then. I have to keep spying on him until I come up with something more conclusive."
        [/message]
    [/event]

    ################################################################
    ################################################################

    # non-puzzle message glyphs

    [event]
        name=moveto
        first_time_only=no
        [filter]
            side=1
            x,y=38,3
        [/filter]
        [message]
            speaker=narrator
            message= _ "From the journal of Merthiaal."
        [/message]
        [message]
            speaker=narrator
            message= _ "Today, Shardia, the Guardian of Fire, paid me a visit. She seemed like she was trying to be nice, but she looked kind of lost and tired. I suppose that makes sense."
        [/message]
        [message]
            speaker=narrator
            message= _ "From what I remember, there was once a world dedicated solely to Fire. Its name was Areza. Like all the other worlds, Yarae planted a Seed on it, and though I don't know exactly what the Seeds are supposed to be used for, I know that it inexorably links each planet with its respective element of creation."
        [/message]
        [message]
            speaker=narrator
            message= _ "But apparently, when planting the Seed on Areza, Yarae made a miscalculation and Areza was destroyed. Completely. It was a complete disaster that got even worse when the shattered remains of Areza crashed into the world of Norsula, where the Seed of Water had already been planted. So, Norsula turned into a world where two naturally opposing elements had to war unendingly for dominance."
        [/message]
        [message]
            speaker=narrator
            message= _ "It keeps getting worse. Valdir, the Guardian of Water, is a brutish pig who just likes to fight. And Shardia doesn't seem to mind matching him, even if she claims she's all about love and peace and all that nonsense. Point is, she and Valdir are quite literally always fighting. I guess they'll be at it until the end of time or until one of them dies. I wonder what the consequences of that would be."
        [/message]
        [message]
            speaker=narrator
            message= _ "Either way, Shardia lives on a world that isn't her own, where she doesn't belong, constantly fighting against the Aspect direclty opposed to her own. You know what the funny thing is?"
        [/message]
        [message]
            speaker=narrator
            message= _ "I don't think she hates Valdir. I don't think he hates her either. It's sort of complicated. They're totally obsessed with each other in a really messed up sort of way. I mean really, the only thing they ever talk about is each other, and even if most of it is complaining, they actually seem like... interested in each other."
        [/message]
        [message]
            speaker=narrator
            message= _ "The way she talked about him..."
        [/message]
        [message]
            speaker=narrator
            message= _ "Well, that's probably why their world is torn the way it is."
        [/message]
    [/event]
    [event]
        name=moveto
        first_time_only=no
        [filter]
            side=1
            x,y=34,6
        [/filter]
        [message]
            speaker=narrator
            message= _ "From the journal of Merthiaal."
        [/message]
        [message]
            speaker=narrator
            message= _ "Uria, the Guardian of Life, might be the scariest one of us. Maybe even scarier than Valdir. I think she likes me the least out of all the other Guardians, so I have no idea why I went to go see her when she invited me to Ethea. I was so uncomfortable over there - it felt like she could squash me like a bug any time she wanted to. Not that we're exactly enemies, but..."
        [/message]
        [message]
            speaker=narrator
            message= _ "Anyway, get this. She called me over to teach me of all things. She was all like 'you're a brat and you're uneducated, so I shall have to teach you about our history and your responsibilities myself'. Well okay, that was definitely not what I expected, but it was a welcome change from being bullied all the time. So, where do I start?"
        [/message]
        [message]
            speaker=narrator
            message= _ "She said that in the universe prior to ours, an advanced civilization composed of cosmic beings existed. These were the immortal First Gods. They were so powerful and knowledgeable that they had unlocked most of the secrets of the universe, of the nature of life and of creation itself."
        [/message]
        [message]
            speaker=narrator
            message= _ "However, the end of their society was brought about when an unknown force corrupted their essence and began to wipe them out. As the universe began to collapse into the void, Yarae, one of the First Gods, banded together with a few others and created the Tree of Life. From this Tree sprang energies that birthed the new worlds and provided the souls for new life to form. These energies exist in ten different types, the ten elements of Creation."
        [/message]
        [message]
            speaker=narrator
            message= _ "Most lesser beings do not have a direct connection to the Tree. They are bestowed souls from its innumerable leaves, but otherwise lack the means to channel its energies. In most cases, only we Guardians have that ability, but what are we supposed to use it for? Of course technically, we act as the caretakers of the universe and of each of our corresponding worlds, but that is most certainly a naive purpose Yarae has bestowed upon us for his own convenience."
        [/message]
        [message]
            speaker=narrator
            message= _ "Our worlds are chaos. We are not the preservers of life that we are said to be. Collectively, as a group, we stoke turmoil rather than prevent it. Yarae, however, pays that no attention. He must have some motive for allowing his purported creation - the Tree of Life, the entire universe - to descend into such disarray. He wouldn't have created us just to watch us fight."
        [/message]
        [message]
            speaker=narrator
            message= _ "Uria doesn't think so. She thinks Yarae allows us to act with minimal guidance in hopes that we will distance ourselves from the First Gods' mistakes. Yeah, sure. He basically has her wrapped around his little finger! As if I could believe something like that. He's using us somehow. I just have to figure out what he wants us for."
        [/message]
        [message]
            speaker=narrator
            message= _ "If there was a force that destroyed the prior universe and it was something that he and his people could not overcome, perhaps he is using us as a way to try to circumvent such a thing from happening once again. But how? One thing is for sure. Without more knowledge, I can only guess at his intentions. To learn more - to better understand the nature of creation, more than just a single Aspect is needed..."
        [/message]
        [message]
            speaker=narrator
            message= _ "The rest of the message is garbled beyond recognition."
        [/message]
    [/event]
    [event]
        name=moveto
        first_time_only=no
        [filter]
            side=1
            x,y=50,14
        [/filter]
        [message]
            speaker=narrator
            message= _ "From the memories of Luna."
        [/message]
        [message]
            speaker=narrator
            message= _ "They trapped me. Even when I was still an ordinary demon, I was trapped. My sisters and my father kept me caged for eternity."
        [/message]
        [message]
            speaker=narrator
            message= _ "That one freed me from that cage and put me in another - it made me a cage out of my own body. It chained me with my own flesh, binding me to the world of dreams and nightmares. I descended into darkness. All was blackness."
        [/message]
        [message]
            speaker=narrator
            message= _ "And then there was water. As far as I could sense, there was black water in an endless sea of lucid nightmares. Yes, I was sure it was water, and yet somehow, it felt more like blood. It felt as if all the blood had drained out of my body and I had become nothing more than an image, an illusion that floated about as a bodiless soul, trapped within an endless mire of darkness."
        [/message]
        [message]
            speaker=narrator
            message= _ "I heard its voice. It made me an offer. I could stay within the ocean of black water forever, or I could do its bidding. It gave me a choice. It wasn't much of one. From one cage to another, it is all the same. I have no free will."
        [/message]
    [/event]
    [event]
        name=moveto
        first_time_only=no
        [filter]
            side=1
            x,y=17,22
        [/filter]
        [message]
            speaker=narrator
            message= _ "From the memories of Luna."
        [/message]
        [message]
            speaker=narrator
            message= _ "I cannot see. I have never seen the other one's face - the one who put me in this warped form. But, I know its voice. It is neither male nor female, nor does it ever settle on any one pitch. It is like a chorus of voices, one like a child, one a constant scream, one as cold as the void."
        [/message]
        [message]
            speaker=narrator
            message= _ "The voice of voices speaks and melds together, waves floating away into a sea of dreams. They transform into the texture of water, enveloping my insubstantial form and bearing me away into the cold, empty ocean. Suffocating, I am buried beneath the waters, unseeing, unhearing, unspeaking, unfeeling."
        [/message]
        [message]
            speaker=narrator
            message= _ "The voice speaks through the muted water. Numb within the plunging deeps, my distorted form degenerates into thoughts, into nightmares. My soul, my entire being becomes a mere idea, fleeting and floating away into the amorphous ocean. Identity is lost. The form is lost and the being becomes one with the water."
        [/message]
        [message]
            speaker=narrator
            message= _ "Time morphs into a vague mosaic of days and years and aeons. Floating through the waves, the swarm of thoughts becomes a swarm of voices, no longer just the one voice of many, but a hysterical frenzy of ill conceived whispers."
        [/message]
        [message]
            speaker=narrator
            message= _ "And then this form surges from the depths and rises from the dark dream into another world of darkness. There is no light and there is no warmth, but it's... stable. In the steady stream of thought, this consciousness materializes and this amorphous form becomes me again. I am once again a being."
        [/message]
        [message]
            speaker=narrator
            message= _ "The voice of voices speaks to me again, turning me toward its purpose. Whatever game it wants to use me for, I don't care. Please, I just don't want to be put back in that sea of black nightmares. I don't want to be put in cages anymore."
        [/message]
    [/event]

    # end scene
    [event]
        name=moveto
        [filter]
            side=1
            x,y=9,33
        [/filter]

        {REMOVE_IMAGE 38 3}
        {REMOVE_IMAGE 34 6}
        {REMOVE_IMAGE 17 22}
        {REMOVE_IMAGE 50 14}
        {REMOVE_IMAGE 26 28}
        {REMOVE_IMAGE 46 4}
        {REMOVE_IMAGE 9 7}

        {DELAY 350}
        {TURN_UNIT5 "Xia'el"}
        {DELAY 350}

        [message]
            speaker=Xia'el
            message= _ "(yawns)"
        [/message]

        {FADE_SCREEN}

        [kill]
            id=Xia'el
        [/kill]

        [replace_map]
            map="{~add-ons/Genesis/episode1/maps/09_Blackout.map}"
            expand=yes
            shrink=yes
        [/replace_map]

        [place_shroud]
            side=1
            x=1-36
            y=1-36
        [/place_shroud]
        [redraw][/redraw]

        {SCROLL_TO 33 2}
        {DELAY 750}
        [message]
            speaker=narrator
            message= _ "Xia'el."
        [/message]
        [message]
            speaker=narrator
            message= _ "... Xia'el?"
        [/message]
        [message]
            speaker=narrator
            message= _ "Please wake up. Xia'el?"
        [/message]
        {DELAY 500}
        [unit]
            type=Guardian of Earth
            name= _ "Xia'el"
            id=Xia'el
            facing=sw
            canrecruit=yes
            unrenamable=yes
            animate=no
            side=1
            x,y=34,1
        [/unit]
        [redraw]
            side=1
            clear_shroud=yes
        [/redraw]
        {UNFADE_SCREEN}
        [unit]
            type=Guardian of Darkness
            id=Merthiaal
            facing=ne
            name= _ "Merthiaal"
            unrenamable=yes
            canrecruit=yes
            side=2
            x,y=33,2
        [/unit]
        [message]
            speaker=Merthiaal
            message= _ "Xia'el!"
        [/message]
        [message]
            speaker=Xia'el
            message= _ "Merthiaal?"
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "You were talking in your sleep. You said some very worrying things."
        [/message]
        [message]
            speaker=Xia'el
            message= _ "I did? I see..."
        [/message]
        [message]
            speaker=Xia'el
            message= _ "I don't know if it was a dream or a vision of some sort. It was all black, a whole world of darkness. There were glyphs with messages - or maybe memories imprinted on them, and there were some with your thoughts on them as well. You said some very troubling things. About Valdir..."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "(bites lip)"
        [/message]
        [message]
            speaker=Xia'el
            message= _ "That wasn't just a dream, was it? Was what I read true? Merthiaal?"
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "(sighs)"
        [/message]
        [message]
            speaker=Xia'el
            message= _ "Please, Merthiaal. I need to know. My world has been under attack, and- you wouldn't be having anything to do with it, would you?"
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "(snaps) I thought we went over this."
        [/message]
        [message]
            speaker=Xia'el
            message= _ "But you're still hiding things from me-"
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "I just don't want to see you all fighting. I want us to get along..."
        [/message]
        [message]
            speaker=Xia'el
            message= _ "I do too. So please be truthful with me, Merthiaal."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "Look, what I wrote there is just my guess, okay? I didn't want to tell you everything in case I was wrong. That would've been bad."
        [/message]
        [message]
            speaker=Xia'el
            message= _ "Don't worry, I won't jump to conclusions."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "(nods) All I know is... so like, everyone knows Valdir and Shardia are always fighting. They've been that way since forever and that's why Norsula's so messed up. But I was thinking, since apparently Shardia went to Uria for help, Valdir wanted to look for an edge of his own."
        [/message]
        [message]
            speaker=Xia'el
            message= _ "So you're saying Valdir is using these Yuure demons to mess with our worlds? I've heard your theory about that before. But even supposing what you saw in his memories was true, that seems very much unlike him. He wouldn't care about sowing chaos among our worlds. If he had a problem with us, he would come marching up directly to fight us. Though, even he couldn't do that while engaging Shardia at the same time."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "You're right. The chaos isn't his goal. I think he's looking for something specific on your worlds and he's using the Yuure demons as lackeys to do it. I'm not really sure what he's seeking though. I think it's some kind of weapon? I just... I just don't know. That's why I didn't want to tell you until I figured it out! And if he finds out... ohh, you don't understand, Xia'el. I'm not strong like you or Uria. I can't stand up to him-"
        [/message]
        [message]
            speaker=Xia'el
            message= _ "Relax, Merthiaal. I'm not going to tell anyone. Really, you don't need to freak out."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "Promise?"
        [/message]
        [message]
            speaker=Xia'el
            message= _ "I promise. Now please can you explain what you just said in more detail? You have an idea of what he's looking for."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "I... but- fine."
        [/message]

        [message]
            speaker=Merthiaal
            message= _ "Before you came here, I went to Norsula. What I discovered was a little unsettling, so I haven't told anyone else yet. I think Valdir's goal is to obtain the powers of the other elements. Along with him, you and Uria are some of the other really strong Guardians, right? You've got amazing powers that would definitely benefit him in his fight with Shardia."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "I think he's looking for a way to obtain your powers, so he's looking for a way to do that on your worlds. But like you said it's not really like he can go march into Irdya or Ethea that easily, even he doesn't have enough manpower to do that. So he probably wanted to do it covertly, using the Yuure demons to control the Urdemons to go look for him."
        [/message]
        [message]
            speaker=Xia'el
            message= _ "Why not have the Yuure demons do it directly?"
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "You don't know? Oh, I guess you haven't interacted with them enough. Yuure demons require a medium to materialize in the physical world. Some sort of anchor. Otherwise, they exist only in dreams. They can't really do anything on their own."
        [/message]
        [message]
            speaker=Xia'el
            message= _ "I see. If what you say is true, that's troubling indeed. I'm not entirely sure I want to believe all this."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "I'm not trying to deceive you, Xia'el. Like I said, it's just a hunch."
        [/message]
        [message]
            speaker=Xia'el
            message= _ "Even so, it's definitely worth looking into. Merthiaal, thanks for all the help, I really appreciate it. I'd like to stay and talk more, but I really should get going now. I've troubled you too much, and I had better make sure everything is in order on Irdya."
        [/message]

        [message]
            speaker=Merthiaal
            message= _ "It's okay. I don't mind. Just as long as you're not here to yell at me. Or hurt me-"
        [/message]
        [message]
            speaker=Xia'el
            message= _ "Oh, please, Merthiaal. I'm not going to do that. It would be very bad mannered of me to pick on you, especially when you've been so helpful. I'm sorry if I insulted in you in any way. I'm just trying to protect my world."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "I understand. Safe journey, Xia'el."
        [/message]
        [message]
            speaker=Xia'el
            message= _ "Goodbye for now."
        [/message]
        {WHITE_SCREEN}
        [kill]
            id=Xia'el
        [/kill]
        {UNWHITE_SCREEN}
        {COLOR_ADJUST -40 -30 -15}
        {DELAY 1000}

        [unit]
            id=Luna
            name= _ "Luna"
            type=Illusory Angel
            animate=yes
            side=2
            x,y=29,4
            random_traits=no
            generate_name=no
            gender=female
            facing=ne
        [/unit]
        {DELAY 750}
        {MODIFY_UNIT (id=Merthiaal) facing sw}
        {DELAY 750}

        [message]
            speaker=Merthiaal
            message= _ "Tch. She already left. Hurry it up, you won't have much time before she gets back."
        [/message]
        [message]
            speaker=Luna
            message= _ "They are proving to be more difficult than I anticipated. The shadowy one is... strange."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "... I see. Do the best you can."
        [/message]
        [message]
            speaker=Luna
            message= _ "Very well."
        [/message]

        {DELAY 250}
        [kill]
            id=Luna
            animate=yes
        [/kill]
        {DELAY 500}
        [message]
            speaker=Merthiaal
            message= _ "(sighs)"
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "Xia'el is giving those faerie an annoying amount of attention. Of course she is. Those pretty, delicate, fragile, stupid looking things were made in her image after all. They're part of the reason why she's Yarae's favorite. That lecher."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "I might need a better way to distract her. Luna's not exactly weak, but I don't think she has what it takes to overcome those 'faerie'. At least I still have the Norsula matter I can use. Now the other thing I need to do is figure out a way to get that girl alone again..."
        [/message]
        {DELAY 500}
        {FADE_SCREEN}

        [endlevel]
            result=victory
            bonus=no
            replay_save=no
            carryover_report=no
            linger_mode=no
            next_scenario=20_Royal_Palace
        [/endlevel]
    [/event]

    [event]
        name=victory
        {CLEAR_VARIABLE puzzle1}
        {CLEAR_VARIABLE puzzle2}
        {CLEAR_VARIABLE puzzle3}
    [/event]
[/scenario]

#undef RESET_PUZZLE_ONE
#undef RESET_PUZZLE_TWO
#undef RESET_PUZZLE_THREE
#undef ONE_ITEM_MESSAGE