#textdomain wesnoth-Genesis
[scenario]
    id=04b_Woodland_Dreams
    name= _ "Woodland Dreams"
    map_data="{~add-ons/Genesis/episode1/maps/04b_Woodland_Dreams.map}"
    next_scenario=03_Northlands
    victory_when_enemies_defeated=no
    disallow_recall=yes
    {TURNS 15 14 13}
    {ETERNALDARKSWAMP}

    {SCENARIO_MUSIC underground.ogg}
    {EXTRA_SCENARIO_MUSIC weight_of_revenge.ogg}
    {EXTRA_SCENARIO_MUSIC transience.ogg}

    {FAE_DEATHS}
    [side]
        {PLAYER_FAE}
        side=1
        recruit=
        {GOLD 150 120 60}
        fog=yes
        shroud=yes
    [/side]

    [side]
        side=2
        no_leader=yes
        {SPIRIT_ENEMY_SIDE}
        {AGGRESSIVE_SIDE}
    [/side]

    [side]
        side=3
        no_leader=yes
        team_name=fae
        controller=ai
        user_team_name= _ "team_name^Spirits"
        fog=no
        shroud=no
        {AGGRESSIVE_SIDE}
        color=lightblue
    [/side]

    # allied ghosts

    #ifdef HARD
        {RESPAWN_POINT_RANDOM_NONAME ("Manifestation") 3 5 12 21 25 3}
        {RESPAWN_POINT_RANDOM_NONAME ("Manifestation") 3 18 22 23 26 3}
        {RESPAWN_POINT_RANDOM_NONAME ("Manifestation") 3 1 5 17 20 3}
    #endif
    #ifdef NORMAL
        {RESPAWN_POINT_RANDOM_NONAME ("Manifestation") 3 5 12 21 25 2}
        {RESPAWN_POINT_RANDOM_NONAME ("Manifestation") 3 18 22 23 26 2}
        {RESPAWN_POINT_RANDOM_NONAME ("Manifestation") 3 1 5 17 20 2}
    #endif
    #ifdef EASY
        {RESPAWN_POINT_RANDOM_NONAME ("Manifestation") 3 5 12 21 25 1}
        {RESPAWN_POINT_RANDOM_NONAME ("Manifestation") 3 18 22 23 26 2}
        {RESPAWN_POINT_RANDOM_NONAME ("Manifestation") 3 1 5 17 20 1}
    #endif

    # enemy ghosts

    #ifdef HARD
        {RESPAWN_POINT_RANDOM ("Wraith","Shadow") 2 1 4 1 3 12}
        {RESPAWN_POINT_RANDOM ("Wraith","Shadow") 2 19 24 19 22 12}
        {RESPAWN_POINT ("Wraith","Shadow") 2 17 4 12}
        {RESPAWN_POINT ("Wraith","Shadow") 2 13 3 12}
        {RESPAWN_POINT ("Wraith") 2 14 6 8}
        {RESPAWN_POINT ("Wraith") 2 17 8 8}
        {RESPAWN_POINT ("Wraith") 2 15 13 8}
        {RESPAWN_POINT ("Wraith") 2 20 10 8}
        {RESPAWN_POINT ("Wraith") 2 26 9 8}
        {RESPAWN_POINT ("Wraith") 2 24 11 8}
        {RESPAWN_POINT ("Wraith") 2 25 13 8}
        {RESPAWN_POINT ("Wraith","Shadow") 2 25 17 12}
        {RESPAWN_POINT ("Wraith","Shadow") 2 21 16 12}
    #endif
    #ifdef NORMAL
        {RESPAWN_POINT_RANDOM ("Wraith","Shadow") 2 1 4 1 3 18}
        {RESPAWN_POINT_RANDOM ("Wraith","Shadow") 2 19 24 19 22 18}
        {RESPAWN_POINT ("Wraith","Shadow") 2 17 4 18}
        {RESPAWN_POINT ("Wraith","Shadow") 2 13 3 18}
        {RESPAWN_POINT ("Wraith") 2 14 6 12}
        {RESPAWN_POINT ("Wraith") 2 17 8 12}
        {RESPAWN_POINT ("Wraith") 2 15 13 12}
        {RESPAWN_POINT ("Wraith") 2 20 10 12}
        {RESPAWN_POINT ("Wraith") 2 26 9 12}
        {RESPAWN_POINT ("Wraith") 2 24 11 12}
        {RESPAWN_POINT ("Wraith") 2 25 13 12}
        {RESPAWN_POINT ("Wraith","Shadow") 2 25 17 18}
        {RESPAWN_POINT ("Wraith","Shadow") 2 21 16 18}
    #endif
    #ifdef EASY
        {RESPAWN_POINT_RANDOM ("Wraith","Shadow") 2 1 4 1 3 21}
        {RESPAWN_POINT_RANDOM ("Wraith","Shadow") 2 19 24 19 22 21}
        {RESPAWN_POINT ("Wraith","Shadow") 2 17 4 21}
        {RESPAWN_POINT ("Wraith","Shadow") 2 13 3 21}
        {RESPAWN_POINT ("Wraith") 2 14 6 16}
        {RESPAWN_POINT ("Wraith") 2 17 8 16}
        {RESPAWN_POINT ("Wraith") 2 15 13 16}
        {RESPAWN_POINT ("Wraith") 2 20 10 16}
        {RESPAWN_POINT ("Wraith") 2 26 9 16}
        {RESPAWN_POINT ("Wraith") 2 24 11 16}
        {RESPAWN_POINT ("Wraith") 2 25 13 16}
        {RESPAWN_POINT ("Wraith","Shadow") 2 25 17 21}
        {RESPAWN_POINT ("Wraith","Shadow") 2 21 16 21}
    #endif
    {RESPAWN_POINT_RANDOM_NONAME ("Manifestation") 2 9 19 15 19 8}
    {RESPAWN_POINT_RANDOM_NONAME ("Manifestation") 2 9 19 15 19 8}
    {RESPAWN_POINT_RANDOM_NONAME ("Manifestation") 2 9 19 15 19 8}
    {RESPAWN_POINT_RANDOM_NONAME ("Manifestation") 2 9 19 15 19 8}
    {RESPAWN_POINT_RANDOM_NONAME ("Manifestation") 2 9 19 15 19 8}
    {RESPAWN_POINT_RANDOM_NONAME ("Manifestation") 2 9 19 15 19 8}
    {RESPAWN_POINT_RANDOM_NONAME ("Manifestation") 2 9 19 15 19 8}
    {RESPAWN_POINT_RANDOM_NONAME ("Manifestation") 2 9 19 15 19 8}
    {RESPAWN_POINT_RANDOM_NONAME ("Manifestation") 2 9 19 15 19 8}

    [event]
        name=start
        [if]
            [variable]
                name=black_cauldron
                numerical_equals=0
            [/variable]
            [then]
                {RECALL_YUMI_NOLOC}

                [message]
                    speaker=Yumi
                    message= _ "Ughh, my head..."
                [/message]
                [message]
                    speaker=Esther
                    message= _ "You okay? Are you hurt?"
                [/message]
                [message]
                    speaker=Yumi
                    message= _ "I'm fine."
                [/message]
                [message]
                    speaker=Esther
                    message= _ "Hmm, alright. So where are we?"
                [/message]
                [message]
                    speaker=Yumi
                    message= _ "I'm not sure."
                [/message]
                [message]
                    speaker=Esther
                    message= _ "Something feels off. This place somehow feels not quite... real. I don't know if that makes sense."
                [/message]
                [message]
                    speaker=Yumi
                    message= _ "(nods) So that's where we are."
                [/message]
                [message]
                    speaker=Yumi
                    message= _ "There's something trapping us here. We need to hurry up or else we'll get stuck."
                [/message]
                [message]
                    speaker=Esther
                    message= _ "We'd better get going then."
                [/message]

                [objectives]
                    {OBJECTIVE_VICTORY  ( _ "Find a way to escape")}
                    {OBJECTIVE_DEFEAT  ( _ "Death of Esther")}
                    {OBJECTIVE_DEFEAT  ( _ "Death of Yumi")}
                    {OBJECTIVE_DEFEAT ( _ "Turns run out")}
                    {OBJECTIVE_FULL_CARRYOVER}
                    {OBJECTIVE_NOTE ( _ "Units will automatically spawn to help you fight enemies.")}
                    {OBJECTIVE_NOTE ( _ "You may recruit Manifestations from hexes adjacent to Yumi.")}
                    {OBJECTIVE_NOTE ( _ "Recruited Manifestations will die at the end of the scenario.")}
                    {OBJECTIVE_NOTE ( _ "Search to the north-east.")}
                [/objectives]
            [/then]
            [else]
                {RECALL_YUMI_NOLOC}
                {RECALL_ARYEL_NOLOC}

                [message]
                    speaker=Yumi
                    message= _ "Ughh, my head..."
                [/message]
                [message]
                    speaker=Esther
                    message= _ "You okay? Are you hurt?"
                [/message]
                [message]
                    speaker=Yumi
                    message= _ "I'm fine."
                [/message]
                [message]
                    speaker=Esther
                    message= _ "Hmm, alright. So where are we?"
                [/message]
                [message]
                    speaker=Aryel
                    message= _ "Let's see... well it seems like some kind of spell. (turns)"
                [/message]
                [message]
                    speaker=Aryel
                    message= _ "It feels like something Yumi did, but at the same time not..?"
                [/message]
                [message]
                    speaker=Yumi
                    message= _ "(shivers)"
                [/message]
                [message]
                    speaker=Esther
                    message= _ "Something feels off. This place somehow feels not quite... real. I don't know if that makes sense."
                [/message]
                [message]
                    speaker=Yumi
                    message= _ "(nods) So that's where we are."
                [/message]
                [message]
                    speaker=Aryel
                    message= _ "(glances at Yumi) Kind of. There's something trapping us here. We need to hurry up or else we'll be stuck."
                [/message]
                [message]
                    speaker=Esther
                    message= _ "We'd better get going then."
                [/message]

                [objectives]
                    {OBJECTIVE_VICTORY  ( _ "Find a way to escape")}
                    {OBJECTIVE_DEFEAT  ( _ "Death of Esther")}
                    {OBJECTIVE_DEFEAT  ( _ "Death of Yumi")}
                    {OBJECTIVE_DEFEAT  ( _ "Death of Aryel")}
                    {OBJECTIVE_DEFEAT ( _ "Turns run out")}
                    {OBJECTIVE_CARRYOVER}
                    {OBJECTIVE_NOTE ( _ "Units will automatically spawn to help you fight enemies.")}
                    {OBJECTIVE_NOTE ( _ "You may recruit Manifestations from hexes adjacent to Yumi.")}
                    {OBJECTIVE_NOTE ( _ "Recruited Manifestations will die at the end of the scenario.")}
                    {OBJECTIVE_NOTE ( _ "Search to the north-east.")}
                [/objectives]
            [/else]
        [/if]

        [set_menu_item]
            id=recruit_ghost
            description= _ "Recruit Ghost"
            image="attacks/wail.png~SCALE(18,18)"
            [show_if]
                [variable]
                    name=side_number
                    numerical_equals=1
                [/variable]
            [/show_if]
            [filter_location]
                [not]
                    [filter][/filter]
                [/not]
                [filter_adjacent_location]
                    [filter]
                        side=1
                        id=Aryel
                    [/filter]
                [/filter_adjacent_location]
            [/filter_location]
            [command]
                [store_gold]
                    [filter_side]
                        side=1
                    [/filter_side]
                    variable=side1gold
                [/store_gold]
                [if]
                    [variable]
                        name=side1gold
                        less_than=20
                    [/variable]
                    [then]
                        {MESSAGE_NOT_ENOUGH_GOLD}
                    [/then]
                    [else]
                        [unit]
                            side=1
                            type=Ghost
                            x,y=$x1,$y1
                            moves,attacks_left=0,0
                            animate=yes
                        [/unit]
                        {VARIABLE_OP side1gold sub 20}
                        [modify_side]
                            side=1
                            gold=$side1gold
                        [/modify_side]
                        {CLEAR_VARIABLE side1gold}
                    [/else]
                [/if]
            [/command]
        [/set_menu_item]
        [set_menu_item]
            id=recruit_manifestation
            description= _ "Recruit Manifestation"
            image="attacks/wail.png~SCALE(18,18)"
            [show_if]
                [variable]
                    name=side_number
                    numerical_equals=1
                [/variable]
            [/show_if]
            [filter_location]
                [not]
                    [filter][/filter]
                [/not]
                [filter_adjacent_location]
                    [filter]
                        side=1
                        id=Yumi
                    [/filter]
                [/filter_adjacent_location]
            [/filter_location]
            [command]
                [store_gold]
                    [filter_side]
                        side=1
                    [/filter_side]
                    variable=side1gold
                [/store_gold]
                [if]
                    [variable]
                        name=side1gold
                        less_than=6
                    [/variable]
                    [then]
                        {MESSAGE_NOT_ENOUGH_GOLD}
                    [/then]
                    [else]
                        [unit]
                            side=1
                            type=Manifestation
                            x,y=$x1,$y1
                            moves,attacks_left=0,0
                            animate=yes
                            upkeep=free
                            [modifications]
                                {TRAIT_LOYAL}
                            [/modifications]
                        [/unit]
                        {VARIABLE_OP side1gold sub 6}
                        [modify_side]
                            side=1
                            gold=$side1gold
                        [/modify_side]
                        {CLEAR_VARIABLE side1gold}
                    [/else]
                [/if]
            [/command]
        [/set_menu_item]
    [/event]

    [event]
        name=sighted
        first_time_only=yes
        [filter]
            side=2
        [/filter]

        [message]
            speaker=Esther
            message= _ "Spirits? Strange. I would've thought that demons would be behind this."
        [/message]
        [if]
            [variable]
                name=black_cauldron
                numerical_equals=1
            [/variable]
            [then]
                [message]
                    speaker=Aryel
                    message= _ "Some of them appear to be on our side too. That's odd."
                [/message]
            [/then]
            [else]
                [message]
                    speaker=Yumi
                    message= _ "Not all of them are against us..."
                [/message]
            [/else]
        [/if]
        [message]
            speaker=Esther
            message= _ "That's good. Maybe we'll have an easier time then."
        [/message]
    [/event]

    [event]
        name=turn 3

        [message]
            speaker=narrator
            message= _ "Can you feel it? By this point, a sensitive one like you surely must have realized..."
        [/message]
        [message]
            speaker=Yumi
            message= _ "(holds head)"
        [/message]
        [message]
            speaker=Yumi
            message= _ "Ugh..."
        [/message]
        [message]
            speaker=Esther
            message= _ "Is something wrong?"
        [/message]
        [message]
            speaker=Yumi
            message= _ "No... it's nothing."
        [/message]

        [if]
            [variable]
                name=black_cauldron
                numerical_equals=0
            [/variable]
            [then]
                [message]
                    speaker=narrator
                    message= _ "You must think that this is all just your imagination. You shouldn't underestimate that. The imagination is a powerful thing, especially yours."
                [/message]
                [message]
                    speaker=Yumi
                    message= _ "It's not just... just..."
                [/message]
                [message]
                    speaker=Esther
                    message= _ "Yumi? Snap out of it!"
                [/message]

                {DELAY 1500}

                [message]
                    speaker=Yumi
                    message= _ "(shakes head) I'm okay... I just realized, this is a fake world. It'll collapse more the longer we stay here."
                [/message]
                [message]
                    speaker=Esther
                    message= _ "Okay, but there's something else you haven't said."
                [/message]
                [message]
                    speaker=Yumi
                    message= _ "I haven't figured anything else out yet. Sorry."
                [/message]
                [message]
                    speaker=Esther
                    message= _ "That's not what I meant."
                [/message]
                [message]
                    speaker=Yumi
                    message= _ "(bites lip) I wasn't going to say anything else."
                [/message]
                [message]
                    speaker=Esther
                    message= _ "Sure, you weren't."
                [/message]
                [message]
                    speaker=Yumi
                    message= _ "I wasn't! Esther, nothing's wrong. I promise."
                [/message]
                [message]
                    speaker=Esther
                    message= _ "(sighs)"
                [/message]
            [/then]
            [else]
                [message]
                    speaker=Aryel
                    message= _ "(frowns) She's lying-"
                [/message]
                [message]
                    speaker=Yumi
                    message= _ "I'm not..!"
                [/message]
                [message]
                    speaker=narrator
                    message= _ "You must think that this is all just your imagination. You shouldn't underestimate that. The imagination is a powerful thing, especially yours."
                [/message]
                [message]
                    speaker=Yumi
                    message= _ "It's not just... just..."
                [/message]
                [message]
                    speaker=Esther
                    message= _ "Yumi? Snap out of it!"
                [/message]

                {DELAY 1500}

                [message]
                    speaker=Aryel
                    message= _ "Yumi. Yuuumi."
                [/message]

                {DELAY 1000}

                [message]
                    speaker=Yumi
                    message= _ "(shakes head) I'm okay... I just realized, this is a fake world. It'll collapse more the longer we stay here."
                [/message]
                [message]
                    speaker=Aryel
                    message= _ "Like I couldn't figure out that much. You're keeping something from us."
                [/message]
                [message]
                    speaker=Yumi
                    message= _ "I'm not!"
                [/message]
                [message]
                    speaker=Aryel
                    message= _ "Liar! Seriously, why do you insist on making us worry?"
                [/message]
                [message]
                    speaker=Esther
                    message= _ "We're your friends, right? You don't have to hide from us."
                [/message]
                [message]
                    speaker=Yumi
                    message= _ "(bites lip) I wasn't going to say anything else. There's nothing else to say."
                [/message]
                [message]
                    speaker=Esther
                    message= _ "Right."
                [/message]
                [message]
                    speaker=Yumi
                    message= _ "Nothing's wrong. I promise."
                [/message]
                [message]
                    speaker=Esther
                    message= _ "(sighs)"
                [/message]
            [/else]
        [/if]
    [/event]

    [event]
        name=turn 6
        [message]
            speaker=narrator
            message= _ "Why do you hide from everyone? What do you fear?"
        [/message]
        [message]
            speaker=Yumi
            message= _ "I'm afraid? ...even if I am, why does that matter?"
        [/message]
        [message]
            speaker=narrator
            message= _ "The more you fear, the more things fall apart. In a way, you are the trigger."
        [/message]
        [message]
            speaker=Yumi
            message= _ "... what do you mean?"
        [/message]
        [message]
            speaker=narrator
            message= _ "Surely you must have some grasp of your own powers."
        [/message]
        [message]
            speaker=Yumi
            message= _ "... I'm just a normal faerie?"
        [/message]
        [message]
            speaker=narrator
            message= _ "Normal is hardly the word to describe you."
        [/message]
        [message]
            speaker=Yumi
            message= _ "I'm not special at all. I'm definitely not. I don't want to be."
        [/message]
        [message]
            speaker=Esther
            message= _ "Yumi? Hello?"
        [/message]
        [message]
            speaker=Yumi
            message= _ "Huh? Oh, I thought I saw something, but it was just a weirdly shaped tree."
        [/message]
        [message]
            speaker=Esther
            message= _ "... right. Okay."
        [/message]
    [/event]

    [event]
        name=turn 9

        [store_unit]
            [filter]
                id=Yumi
            [/filter]
            variable=yumi
        [/store_unit]

        [message]
            speaker=Yumi
            message= _ "(pales)"
        [/message]
        [message]
            speaker=Esther
            message= _ "Yumi? You don't look so good."
        [/message]
        [message]
            speaker=Yumi
            message= _ "I... feel... sick. (cough)"
        [/message]

        [if]
            [variable]
                name=black_cauldron
                numerical_equals=0
            [/variable]
            [then]
                [message]
                    speaker=Esther
                    message= _ "That's- I don't want to be pushy, but I can't just let her be... Tell me what's wrong."
                [/message]
                [message]
                    speaker=Yumi
                    message= _ "I... I..."
                [/message]
                [message]
                    speaker=narrator
                    message= _ "Your own fear will be the destruction of yourself."
                [/message]
                [if]
                    [variable]
                        name=yumi.hitpoints
                        numerical_equals=1
                    [/variable]
                    [then]
                        [harm_unit]
                            [filter]
                                id=Yumi
                            [/filter]
                            amount=0
                            animate=yes
                        [/harm_unit]
                    [/then]
                    [else]
                        [harm_unit]
                            [filter]
                                id=Yumi
                            [/filter]
                            amount=2
                            kill=no
                            animate=yes
                        [/harm_unit]
                    [/else]
                [/if]
                [message]
                    speaker=Esther
                    message= _ "Are you okay? Yumi? Please, look at me."
                [/message]
                [message]
                    speaker=Yumi
                    message= _ "Try-ing - (gasps)"
                [/message]
                [message]
                    speaker=narrator
                    message= _ "Your own potential will be the destruction of yourself."
                [/message]
                [message]
                    speaker=narrator
                    message= _ "If you cannot control it, it will be the end."
                [/message]
                [if]
                    [variable]
                        name=yumi.hitpoints
                        numerical_equals=1
                    [/variable]
                    [then]
                        [harm_unit]
                            [filter]
                                id=Yumi
                            [/filter]
                            amount=0
                            animate=yes
                        [/harm_unit]
                    [/then]
                    [else]
                        [harm_unit]
                            [filter]
                                id=Yumi
                            [/filter]
                            amount=2
                            kill=no
                            animate=yes
                        [/harm_unit]
                    [/else]
                [/if]

                {DELAY 300}

                [if]
                    [variable]
                        name=yumi.hitpoints
                        numerical_equals=1
                    [/variable]
                    [then]
                        [harm_unit]
                            [filter]
                                id=Yumi
                            [/filter]
                            amount=0
                            animate=yes
                        [/harm_unit]
                    [/then]
                    [else]
                        [harm_unit]
                            [filter]
                                id=Yumi
                            [/filter]
                            amount=3
                            kill=no
                            animate=yes
                        [/harm_unit]
                    [/else]
                [/if]
                [message]
                    speaker=Esther
                    message= _ "Yumi!"
                [/message]

                {DELAY 1500}

                [message]
                    speaker=Yumi
                    message= _ "(breathes deeply)"
                [/message]
                [message]
                    speaker=Yumi
                    message= _ "Sorry... sorry, something got in my head and... I don't know..."
                [/message]
                [message]
                    speaker=Esther
                    message= _ "Yumi..."
                [/message]
                [message]
                    speaker=Yumi
                    message= _ "I'm okay, Esther. I really am. I just want to get out of here. I'll be fine once we are."
                [/message]
                [message]
                    speaker=Esther
                    message= _ "Are you sure..?"
                [/message]
                [message]
                    speaker=Yumi
                    message= _ "(shakes head) You don't believe me?"
                [/message]
                [message]
                    speaker=Esther
                    message= _ "Not exactly, but I can't just say that, can I? I... suppose I do. You're right, we should focus on getting out of here before it's too late."
                [/message]
                [message]
                    speaker=Yumi
                    message= _ "(nods)"
                [/message]
                [message]
                    speaker=Esther
                    message= _ "I wonder what she's hiding this time, hmm."
                [/message]
            [/then]
            [else]
                [message]
                    speaker=Aryel
                    message= _ "Stop hiding things from us! Whatever it is, you don't have to deal with it alone!"
                [/message]
                [message]
                    speaker=Esther
                    message= _ "Yumi, there's no need to be scared of us. We're here to help you!"
                [/message]
                [message]
                    speaker=Yumi
                    message= _ "I... I..."
                [/message]
                [message]
                    speaker=narrator
                    message= _ "Your own fear will be the destruction of yourself."
                [/message]
                [if]
                    [variable]
                        name=yumi.hitpoints
                        numerical_equals=1
                    [/variable]
                    [then]
                        [harm_unit]
                            [filter]
                                id=Yumi
                            [/filter]
                            amount=0
                            animate=yes
                        [/harm_unit]
                    [/then]
                    [else]
                        [harm_unit]
                            [filter]
                                id=Yumi
                            [/filter]
                            amount=2
                            kill=no
                            animate=yes
                        [/harm_unit]
                    [/else]
                [/if]
                [message]
                    speaker=Esther
                    message= _ "Are you okay? Please, look at me."
                [/message]
                [message]
                    speaker=Yumi
                    message= _ "Try-ing - (gasps)"
                [/message]
                [message]
                    speaker=narrator
                    message= _ "Your own potential will be the destruction of yourself."
                [/message]
                [message]
                    speaker=narrator
                    message= _ "If you cannot control it, it will be the end."
                [/message]
                [if]
                    [variable]
                        name=yumi.hitpoints
                        numerical_equals=1
                    [/variable]
                    [then]
                        [harm_unit]
                            [filter]
                                id=Yumi
                            [/filter]
                            amount=0
                            animate=yes
                        [/harm_unit]
                    [/then]
                    [else]
                        [harm_unit]
                            [filter]
                                id=Yumi
                            [/filter]
                            amount=2
                            kill=no
                            animate=yes
                        [/harm_unit]
                    [/else]
                [/if]

                {DELAY 300}

                [if]
                    [variable]
                        name=yumi.hitpoints
                        numerical_equals=1
                    [/variable]
                    [then]
                        [harm_unit]
                            [filter]
                                id=Yumi
                            [/filter]
                            amount=0
                            animate=yes
                        [/harm_unit]
                    [/then]
                    [else]
                        [harm_unit]
                            [filter]
                                id=Yumi
                            [/filter]
                            amount=3
                            kill=no
                            animate=yes
                        [/harm_unit]
                    [/else]
                [/if]
                [message]
                    speaker=Aryel
                    message= _ "Yumi! We have to help her!"
                [/message]
                [move_unit]
                    id=Aryel
                    to_x=$yumi.x
                    to_y=$yumi.y
                [/move_unit]

                {DELAY 1500}

                [message]
                    speaker=Yumi
                    message= _ "(breathes deeply)"
                [/message]
                [message]
                    speaker=Yumi
                    message= _ "Sorry... sorry, something got in my head and... I don't know..."
                [/message]
                [message]
                    speaker=Aryel
                    message= _ "..."
                [/message]
                [message]
                    speaker=Yumi
                    message= _ "(holds head) I'm not keeping secrets on purpose. I just want to get out of here. I'll be fine once we're out."
                [/message]
                [message]
                    speaker=Aryel
                    message= _ "..."
                [/message]
                [message]
                    speaker=Yumi
                    message= _ "I'm being serious!"
                [/message]
                [message]
                    speaker=Aryel
                    message= _ "I don't believe you."
                [/message]
                [message]
                    speaker=Yumi
                    message= _ "(shakes head) I'm actually okay. I'm not making it up. Esther, you believe me, right?"
                [/message]
                [message]
                    speaker=Esther
                    message= _ "Uhm... I think... well, she seems like she's being honest about that."
                [/message]
                [message]
                    speaker=Aryel
                    message= _ "(glares) Trust me, she's lying."
                [/message]
                [message]
                    speaker=Yumi
                    message= _ "I'm not! Aryel, please."
                [/message]
                [message]
                    speaker=Aryel
                    message= _ "You totally are."
                [/message]
                [message]
                    speaker=Yumi
                    message= _ "(pouts)"
                [/message]
                [message]
                    speaker=Aryel
                    message= _ "Ugh, whatever. You're hopeless..."
                [/message]
            [/else]
        [/if]
        {CLEAR_VARIABLE yumi}
    [/event]

    [event]
        name=turn 11
        [message]
            speaker=Yumi
            message= _ "We should hurry up..."
        [/message]
    [/event]
    [event]
        name=turn 12
        [message]
            speaker=Yumi
            message= _ "We really should get out of here."
        [/message]
    [/event]

    [event]
        name=moveto
        [filter]
            [filter_location]
                x,y=23,3
                radius=7
            [/filter_location]
            side=1
        [/filter]
        [message]
            speaker=Esther
            message= _ "Forests! And look, I see a dead tree over there. Yumi, you should come here and take a look at it. That might be our way out of here!"
        [/message]
    [/event]
    [event]
        name=moveto
        [filter]
            x,y=23,3
            id=Esther,Aryel
        [/filter]
        [message]
            speaker=unit
            message= _ "Yumi, you should come take a look at this."
        [/message]
    [/event]
    [event]
        name=moveto
        [filter]
            x,y=23,3
            id=Yumi
        [/filter]

        [switch]
            variable=black_cauldron
            [case]
                value=0
                [message]
                    speaker=Yumi
                    message= _ "Something is sapping the life from the tree."
                [/message]
                [message]
                    speaker=Esther
                    message= _ "Can you heal it?"
                [/message]
                [message]
                    speaker=Yumi
                    message= _ "I think so. Let me try."
                [/message]

                {DELAY 500}
                {PLAY_SOUND "magic-dark.ogg"}
                {DELAY 500}
                {PLAY_SOUND "magic-faeriefire.ogg"}
                {DELAY 500}

                [message]
                    speaker=Yumi
                    message= _ "I think that worked. It should start healing soon."
                [/message]

                {DELAY 750}
                [terrain]
                    x=34
                    y=4
                    terrain=Gg^Fet
                [/terrain]
                {DELAY 750}

                [message]
                    speaker=Esther
                    message= _ "I feel a little woozy."
                [/message]
                [message]
                    speaker=Yumi
                    message= _ "Me too."
                [/message]
                [message]
                    speaker=Esther
                    message= _ "Hopefully we'll be out of here in a moment..."
                [/message]

                {DELAY 750}
            [/case]
            [case]
                value=1
                [message]
                    speaker=Yumi
                    message= _ "Something is sapping the life from the tree."
                [/message]
                [message]
                    speaker=Aryel
                    message= _ "Not just something. It's another bit of magic that feels suspiciously like Yumi's... there's no way she hasn't recognized that."
                [/message]
                [message]
                    speaker=Esther
                    message= _ "Can you heal it?"
                [/message]
                [message]
                    speaker=Yumi
                    message= _ "I think so. Let me try."
                [/message]

                {DELAY 500}
                {PLAY_SOUND "magic-dark.ogg"}
                {DELAY 500}
                {PLAY_SOUND "magic-faeriefire.ogg"}
                {DELAY 500}

                [message]
                    speaker=Yumi
                    message= _ "I think that worked. It should start healing soon."
                [/message]

                {DELAY 750}
                [terrain]
                    x=34
                    y=4
                    terrain=Gg^Fet
                [/terrain]
                {DELAY 750}

                [message]
                    speaker=Esther
                    message= _ "I feel a little woozy."
                [/message]
                [message]
                    speaker=Yumi
                    message= _ "Me too."
                [/message]
                [message]
                    speaker=Aryel
                    message= _ "The spell's lifting. We should be out of here any minute now."
                [/message]

                {DELAY 750}
            [/case]
        [/switch]

        {PLAY_SOUND "lightning.ogg"}
        {DELAY 500}
        [clear_menu_item]
            id=recruit_ghost,recruit_manifestation
        [/clear_menu_item]
        [set_variable]
            name=woodland_dreams
            value=1
        [/set_variable]
        [set_variable]
            name=prev_scenario
            value="Woodland Dreams"
        [/set_variable]
        [kill]
            side=1
            type=Manifestation
        [/kill]
        [endlevel]
            result=victory
            bonus=yes
            {NEW_GOLD_CARRYOVER 100}
            carryover_report=no
            linger_mode=no
            next_scenario=03_Northlands
        [/endlevel]
    [/event]

    [event]
        name=time over
        [message]
            speaker=Yumi
            message= _ "We're going to be stuck in here forever..."
        [/message]

        [endlevel]
            result=defeat
        [/endlevel]
    [/event]
[/scenario]


#textdomain wesnoth-Genesis
[scenario]
    id=04c_Blue_Moon
    name= _ "Blue Moon"
    map_data="{~add-ons/Genesis/episode1/maps/04c_Blue_Moon.map}"
    next_scenario=03_Northlands
    victory_when_enemies_defeated=no
    disallow_recall=yes
    turns=19
    {ETERNALDARKDREAM}
    {STORYTXT_BLUE_MOON}

    {SCENARIO_MUSIC into_the_shadows.ogg}
    {EXTRA_SCENARIO_MUSIC returning_in_time.ogg}
    {EXTRA_SCENARIO_MUSIC snowfall.ogg}
    {EXTRA_SCENARIO_MUSIC wind3.ogg}

    [side]
        {PLAYER_FAE}
        side=1
        recruit=
        {GOLD 180 160 120}
        {NO_INCOME_SIDE}
        fog=yes
        shroud=yes
    [/side]

    [side]
        {YUURE_SIDE}
        side=2
        [ai]
            aggression=1
            caution=0
            grouping=false
            [goal]
                [criteria]
                    id=Yumi
                [/criteria]
                value=200
            [/goal]
        [/ai]
    [/side]

    [side]
        side=3
        no_leader=yes
        hidden=yes
        controller=ai
        team_name=yuure
        color=green
    [/side]

#define GENERATE_ICE
    [set_variable]
        name=x_coord
        rand=1..33,6..28
    [/set_variable]
    [set_variable]
        name=y_coord
        rand=1..33,6..28
    [/set_variable]
    [terrain]
        x=$x_coord
        y=$y_coord
        terrain=Ai
    [/terrain]
    {CLEAR_VARIABLE x_coord}
    {CLEAR_VARIABLE y_coord}
    [store_locations]
        variable=hex
        [filter_adjacent_location]
            terrain=Ai
        [/filter_adjacent_location]
    [/store_locations]
    [for]
        array=hex
        [do]
            [set_variable]
                name=change_terrain
                rand=1..25
            [/set_variable]
            [if]
                [variable]
                    name=change_terrain
                    numerical_equals=1
                [/variable]
                [then]
                    [terrain]
                         x,y=$hex[$i].x,$hex[$i].y
                        terrain=Ai
                    [/terrain]
                [/then]
            [/if]
            {CLEAR_VARIABLE change_terrain}
        [/do]
    [/for]
    {CLEAR_VARIABLE hex}
#enddef

#define GENERATE_SNOW
    [set_variable]
        name=x_coord
        rand=1..33,6..28
    [/set_variable]
    [set_variable]
        name=y_coord
        rand=1..33,6..28
    [/set_variable]
    [terrain]
        x=$x_coord
        y=$y_coord
        terrain=Aa
    [/terrain]
    {CLEAR_VARIABLE x_coord}
    {CLEAR_VARIABLE y_coord}
    [store_locations]
        variable=hex
        [filter_adjacent_location]
            terrain=Aa
        [/filter_adjacent_location]
    [/store_locations]
    [for]
        array=hex
        [do]
            [set_variable]
                name=change_terrain
                rand=1..25
            [/set_variable]
            [if]
                [variable]
                    name=change_terrain
                    numerical_equals=1
                [/variable]
                [then]
                    [terrain]
                         x,y=$hex[$i].x,$hex[$i].y
                        terrain=Aa
                    [/terrain]
                [/then]
            [/if]
            {CLEAR_VARIABLE change_terrain}
        [/do]
    [/for]
    {CLEAR_VARIABLE hex}
#enddef

#define GENERATE_SNOW_PINE_FOREST
    [set_variable]
        name=x_coord
        rand=1..33,6..28,10..24
    [/set_variable]
    [set_variable]
        name=y_coord
        rand=1..33,6..28,10..24
    [/set_variable]
    [terrain]
        x=$x_coord
        y=$y_coord
        terrain=Aa^Fpa
    [/terrain]
    {CLEAR_VARIABLE x_coord}
    {CLEAR_VARIABLE y_coord}
    [store_locations]
        variable=hex
        [filter_adjacent_location]
            terrain=Aa^Fma,Aa^Fpa
        [/filter_adjacent_location]
    [/store_locations]
    [for]
        array=hex
        [do]
            [set_variable]
                name=change_terrain
                rand=1..20
            [/set_variable]
            [if]
                [variable]
                    name=change_terrain
                    numerical_equals=1
                [/variable]
                [then]
                    [terrain]
                         x,y=$hex[$i].x,$hex[$i].y
                        terrain=Aa^Fpa
                    [/terrain]
                [/then]
            [/if]
            {CLEAR_VARIABLE change_terrain}
        [/do]
    [/for]
    {CLEAR_VARIABLE hex}
#enddef

#define GENERATE_SNOW_MIXED_FOREST
    [set_variable]
        name=x_coord
        rand=1..33,6..28,10..24
    [/set_variable]
    [set_variable]
        name=y_coord
        rand=1..33,6..28,10..24
    [/set_variable]
    [terrain]
        x=$x_coord
        y=$y_coord
        terrain=Aa^Fma
    [/terrain]
    {CLEAR_VARIABLE x_coord}
    {CLEAR_VARIABLE y_coord}
    [store_locations]
        variable=hex
        [filter_adjacent_location]
            terrain=Aa^Fma,Aa^Fpa
        [/filter_adjacent_location]
    [/store_locations]
    [for]
        array=hex
        [do]
            [set_variable]
                name=change_terrain
                rand=1..20
            [/set_variable]
            [if]
                [variable]
                    name=change_terrain
                    numerical_equals=1
                [/variable]
                [then]
                    [terrain]
                         x,y=$hex[$i].x,$hex[$i].y
                        terrain=Aa^Fma
                    [/terrain]
                [/then]
            [/if]
            {CLEAR_VARIABLE change_terrain}
        [/do]
    [/for]
    {CLEAR_VARIABLE hex}
#enddef
#define GENERATE_SNOW_HILLS
    [set_variable]
        name=x_coord
        rand=1..33,6..28,10..24
    [/set_variable]
    [set_variable]
        name=y_coord
        rand=1..33,6..28,10..24
    [/set_variable]
    [terrain]
        x=$x_coord
        y=$y_coord
        terrain=Ha
    [/terrain]
    {CLEAR_VARIABLE x_coord}
    {CLEAR_VARIABLE y_coord}
    [store_locations]
        variable=hex
        [filter_adjacent_location]
            terrain=Ha
        [/filter_adjacent_location]
    [/store_locations]
    [for]
        array=hex
        [do]
            [set_variable]
                name=change_terrain
                rand=1..15
            [/set_variable]
            [if]
                [variable]
                    name=change_terrain
                    numerical_equals=1
                [/variable]
                [then]
                    [terrain]
                         x,y=$hex[$i].x,$hex[$i].y
                        terrain=Ha
                    [/terrain]
                [/then]
            [/if]
            {CLEAR_VARIABLE change_terrain}
        [/do]
    [/for]
    {CLEAR_VARIABLE hex}
#enddef
#define GENERATE_SHALLOW_WATER
    [set_variable]
        name=x_coord
        rand=1..33
    [/set_variable]
    [set_variable]
        name=y_coord
        rand=1..33
    [/set_variable]
    [terrain]
        x=$x_coord
        y=$y_coord
        terrain=Wwg
    [/terrain]
    {CLEAR_VARIABLE x_coord}
    {CLEAR_VARIABLE y_coord}
    [store_locations]
        variable=hex
        [filter_adjacent_location]
            terrain=Wwg
        [/filter_adjacent_location]
    [/store_locations]
    [for]
        array=hex
        [do]
            [set_variable]
                name=change_terrain
                rand=1..40
            [/set_variable]
            [if]
                [variable]
                    name=change_terrain
                    numerical_equals=1
                [/variable]
                [then]
                    [terrain]
                         x,y=$hex[$i].x,$hex[$i].y
                        terrain=Wwg
                    [/terrain]
                [/then]
            [/if]
            {CLEAR_VARIABLE change_terrain}
        [/do]
    [/for]
    {CLEAR_VARIABLE hex}
#enddef
#define GENERATE_DEEP_WATER
    [set_variable]
        name=x_coord
        rand=1..33
    [/set_variable]
    [set_variable]
        name=y_coord
        rand=1..33
    [/set_variable]
    [terrain]
        x=$x_coord
        y=$y_coord
        terrain=Wog
    [/terrain]
    {CLEAR_VARIABLE x_coord}
    {CLEAR_VARIABLE y_coord}
    [store_locations]
        variable=hex
        [filter_adjacent_location]
            terrain=Wog
        [/filter_adjacent_location]
    [/store_locations]
    [for]
        array=hex
        [do]
            [set_variable]
                name=change_terrain
                rand=1..40
            [/set_variable]
            [if]
                [variable]
                    name=change_terrain
                    numerical_equals=1
                [/variable]
                [then]
                    [terrain]
                         x,y=$hex[$i].x,$hex[$i].y
                        terrain=Wog
                    [/terrain]
                [/then]
            [/if]
            {CLEAR_VARIABLE change_terrain}
        [/do]
    [/for]
    {CLEAR_VARIABLE hex}
#enddef

# enemy spawns

    #ifdef HARD
        {RESPAWN_POINT_RANDOM ("Demon Dreamwalker","Demon Apparition") 2 4 30 4 30 9}
        {RESPAWN_POINT_RANDOM ("Demon Dreamwalker","Demon Apparition") 2 4 30 4 30 9}
        {RESPAWN_POINT_RANDOM ("Demon Dreamwalker","Demon Apparition") 2 4 30 4 30 9}
        {RESPAWN_POINT_RANDOM ("Demon Dreamwalker","Demon Apparition") 2 4 30 4 30 9}
        {RESPAWN_POINT_RANDOM ("Demon Dreamwalker","Demon Apparition") 2 4 30 4 30 9}
        {RESPAWN_POINT_RANDOM ("Demon Dreamwalker","Demon Apparition") 2 4 30 4 30 9}
        {RESPAWN_POINT_RANDOM ("Demon Dreamwalker","Demon Apparition") 2 4 30 4 30 9}
        {RESPAWN_POINT_RANDOM ("Demon Dreamwalker","Demon Apparition") 2 4 30 4 30 9}
        {RESPAWN_POINT_RANDOM ("Demon Dreamwalker","Demon Apparition") 2 4 30 4 30 9}
    #endif
    #ifdef NORMAL
        {RESPAWN_POINT_RANDOM ("Demon Dreamwalker","Demon Apparition") 2 4 30 4 30 18}
        {RESPAWN_POINT_RANDOM ("Demon Dreamwalker") 2 4 30 4 30 18}
        {RESPAWN_POINT_RANDOM ("Demon Dreamwalker","Demon Apparition") 2 4 30 4 30 18}
        {RESPAWN_POINT_RANDOM ("Demon Dreamwalker") 2 4 30 4 30 18}
        {RESPAWN_POINT_RANDOM ("Demon Dreamwalker","Demon Apparition") 2 4 30 4 30 18}
        {RESPAWN_POINT_RANDOM ("Blue Demon") 2 4 30 4 30 9}
        {RESPAWN_POINT_RANDOM ("Blue Demon") 2 4 30 4 30 9}
        {RESPAWN_POINT_RANDOM ("Blue Demon") 2 4 30 4 30 9}
        {RESPAWN_POINT_RANDOM ("Blue Demon") 2 4 30 4 30 9}
        {RESPAWN_POINT_RANDOM ("Blue Demon") 2 4 30 4 30 9}
    #endif
    #ifdef EASY
        {RESPAWN_POINT_RANDOM ("Demon Dreamwalker") 2 4 30 4 30 24}
        {RESPAWN_POINT_RANDOM ("Demon Dreamwalker","Demon Apparition") 2 4 30 4 30 24}
        {RESPAWN_POINT_RANDOM ("Demon Dreamwalker") 2 4 30 4 30 24}
        {RESPAWN_POINT_RANDOM ("Demon Dreamwalker","Demon Apparition") 2 4 30 4 30 24}
        {RESPAWN_POINT_RANDOM ("Demon Dreamwalker") 2 4 30 4 30 24}
        {RESPAWN_POINT_RANDOM ("Blue Demon") 2 4 30 4 30 12}
        {RESPAWN_POINT_RANDOM ("Blue Demon") 2 4 30 4 30 12}
        {RESPAWN_POINT_RANDOM ("Blue Demon") 2 4 30 4 30 12}
        {RESPAWN_POINT_RANDOM ("Blue Demon") 2 4 30 4 30 12}
        {RESPAWN_POINT_RANDOM ("Blue Demon") 2 4 30 4 30 12}
    #endif

    [event]
        name=prestart

        # be very careful about the number of repeats
        # adding an extra one can have drastic results
        # mixing up the generation also seems to give better performance

        {REPEAT 20 ({GENERATE_SHALLOW_WATER})}
        {REPEAT 7 ({GENERATE_ICE})}
        {REPEAT 7 ({GENERATE_SNOW})}
        {REPEAT 10 ({GENERATE_SHALLOW_WATER})}
        {REPEAT 6 ({GENERATE_ICE})}
        {REPEAT 6 ({GENERATE_SNOW})}
        {REPEAT 10 ({GENERATE_SHALLOW_WATER})}
        {REPEAT 5 ({GENERATE_ICE})}
        {REPEAT 5 ({GENERATE_SNOW})}
        {REPEAT 5 ({GENERATE_SNOW_HILLS})}
        {REPEAT 3 ({GENERATE_SNOW_PINE_FOREST})}
        {REPEAT 3 ({GENERATE_SNOW_MIXED_FOREST})}
        {REPEAT 3 ({GENERATE_ICE})}
        {REPEAT 3 ({GENERATE_SNOW})}
        {REPEAT 5 ({GENERATE_SNOW_HILLS})}
        {REPEAT 3 ({GENERATE_SNOW_PINE_FOREST})}
        {REPEAT 3 ({GENERATE_SNOW_MIXED_FOREST})}
        {REPEAT 2 ({GENERATE_ICE})}
        {REPEAT 2 ({GENERATE_SNOW})}
        {REPEAT 2 ({GENERATE_SNOW_HILLS})}
        {REPEAT 2 ({GENERATE_SNOW_PINE_FOREST})}
        {REPEAT 2 ({GENERATE_SNOW_MIXED_FOREST})}
        {RECALL_YUMI_NOLOC}
        [set_variable]
            name=x_coord
            rand=9..25
        [/set_variable]
        [set_variable]
            name=y_coord
            rand=9..25
        [/set_variable]
        [move_unit]
            id=Yumi
            to_x,to_y=$x_coord,$y_coord
        [/move_unit]
        [store_unit]
            [filter]
                id=Esther
            [/filter]
            variable=esther_tmp
        [/store_unit]
        [kill]
            id=Esther
        [/kill]

        # recruiting code for this scenario
        [set_menu_item]
            id=recruit_manifestation
            description= _ "Recruit Manifestation"
            image="attacks/wail.png~SCALE(18,18)"
            [show_if]
                [variable]
                    name=side_number
                    numerical_equals=1
                [/variable]
            [/show_if]
            [filter_location]
                [not]
                    [filter][/filter]
                [/not]
                [filter_adjacent_location]
                    [filter]
                        side=1
                        id=Yumi
                    [/filter]
                [/filter_adjacent_location]
            [/filter_location]
            [command]
                [store_gold]
                    [filter_side]
                        side=1
                    [/filter_side]
                    variable=side1gold
                [/store_gold]
                [if]
                    [variable]
                        name=side1gold
                        less_than=6
                    [/variable]
                    [then]
                        {MESSAGE_NOT_ENOUGH_GOLD}
                    [/then]
                    [else]
                        [unit]
                            side=1
                            type=Manifestation
                            x,y=$x1,$y1
                            moves,attacks_left=0,0
                            animate=yes
                            upkeep=free
                            [modifications]
                                {TRAIT_LOYAL}
                            [/modifications]
                        [/unit]
                        {VARIABLE_OP side1gold sub 6}
                        [modify_side]
                            side=1
                            gold=$side1gold
                        [/modify_side]
                        {CLEAR_VARIABLE side1gold}
                    [/else]
                [/if]
            [/command]
        [/set_menu_item]
        {CLEAR_VARIABLE x_coord}
        {CLEAR_VARIABLE y_coord}
    [/event]

    [event]
        name=start
        [message]
            speaker=Yumi
            message= _ "(shivers)"
        [/message]
        [message]
            speaker=Yumi
            message= _ "..."
        [/message]
        [message]
            speaker=Yumi
            message= _ "Is this a dream..?"
        [/message]
        [message]
            speaker=Yumi
            message= _ "Is anyone else here? Anyone?"
        [/message]

        [multi_turn_unit]
            [filter]
                id=Yumi
            [/filter]
            times=5
        [/multi_turn_unit]

        [message]
            speaker=Yumi
            message= _ "(sighs) Why does all the weird stuff happen to me..?"
        [/message]

        {DELAY 1000}

        [message]
            speaker=Yumi
            message= _ "There are more demons around."
        [/message]
        [message]
            speaker=Yumi
            message= _ "I wonder if they're going to attack me."
        [/message]
        [message]
            speaker=Yumi
            message= _ "..."
        [/message]

        [objectives]
            {OBJECTIVE_VICTORY  ( _ "Survive until the end of turns")}
            {OBJECTIVE_VICTORY  ( _ "OR: Find a way to escape")}
            {OBJECTIVE_DEFEAT  ( _ "Death of Yumi")}
            {OBJECTIVE_FULL_CARRYOVER}
            {OBJECTIVE_NOTE ( _ "You may recruit by right clicking on a hex next to Yumi.")}
        [/objectives]
    [/event]

    [event]
        name=menu item recruit_manifestation
        first_time_only=yes
        [message]
            speaker=Yumi
            message= _ "I can make spirits just by thinking."
        [/message]
    [/event]

    [event]
        name=new turn
        first_time_only=no

        {REPEAT 5 ({GENERATE_SHALLOW_WATER})}
        {GENERATE_ICE}
        {GENERATE_SNOW}
        {GENERATE_SNOW_HILLS}
        {GENERATE_SNOW_PINE_FOREST}
        {GENERATE_SNOW_MIXED_FOREST}
        {REPEAT 5 ({GENERATE_DEEP_WATER})}
    [/event]

    [event]
        name=turn 4
        [store_unit]
            [filter]
                id=Yumi
            [/filter]
            variable=yumi
        [/store_unit]
        [message]
            speaker=narrator
            message= _ "(feminine voice)  Yumi... Yuummiii"
        [/message]
        [message]
            speaker=Yumi
            message= _ "(shudders)"
        [/message]
        [message]
            speaker=narrator
            message= _ "Yumi, I'm coming. I'm coming for you..."
        [/message]
        [message]
            speaker=Yumi
            message= _ "... Esther?"
        [/message]

        [unit]
            id=Fake Esther
            type=Fake Fire Fae
            side=3
            x,y=$yumi.x,$yumi.y
            name= _ "Esther"
            random_traits=no
            [modifications]
                {TRAIT_FEARLESS}
            [/modifications]
        [/unit]
        [message]
            speaker=Fake Esther
            message= _ "Hello Yumi."
        [/message]
        [message]
            speaker=Yumi
            message= _ "Esther! Oh, thank goodness you're here. I was-"
        [/message]

        {DELAY 1000}

        [message]
            speaker=Yumi
            message= _ "Wait a second."
        [/message]
        [message]
            speaker=Fake Esther
            message= _ "Yes?"
        [/message]
        [message]
            speaker=Yumi
            message= _ "S-something's not right. You're- you're not her. You're a fake."
        [/message]
        [message]
            speaker=Fake Esther
            message= _ "What are you talking about?"
        [/message]
        [message]
            speaker=Yumi
            message= _ "You're not actually Esther. You can't be-"
        [/message]
        [message]
            speaker=Fake Esther
            message= _ "Are you feeling okay? You seem a bit... hello? Yumi? Are you paying attention?"
        [/message]
        [message]
            speaker=Yumi
            message= _ "(frowns) S-stop it. Stop trying to trick me."
        [/message]
        [message]
            speaker=narrator
            message= _ "Not feeling nervous now, are you?"
        [/message]
        [message]
            speaker=Yumi
            message= _ "Stop!"
        [/message]
        [message]
            speaker=Fake Esther
            message= _ "Yumi, calm down! You're really starting to worry me. I just want to help you!"
        [/message]
        [message]
            speaker=Yumi
            message= _ "I can take care of myself! I don't need a babysitter. I can handle my own problems."
        [/message]
        [message]
            speaker=Fake Esther
            message= _ "Yumi, please..."
        [/message]
        [message]
            speaker=narrator
            message= _ "Listen to her."
        [/message]
        [message]
            speaker=Yumi
            message= _ "(pales) You're not Esther... you're not..."
        [/message]

        {CLEAR_VARIABLE yumi}
    [/event]
    [event]
        name=turn 9

        [store_unit]
            [filter]
                id=Yumi
            [/filter]
            variable=yumi
        [/store_unit]

        {SPAWN_ID_NAME ("Fake Blood Fae") 3 $yumi.x $yumi.y ("Fake Aryel") ("female") ("Aryel")}

        [message]
            speaker=Yumi
            message= _ "Ugh, not more..."
        [/message]
        [message]
            speaker=Fake Aryel
            message= _ "... You're crazy, you know that? I went through the trouble of finding you and-"
        [/message]
        [message]
            speaker=Yumi
            message= _ "Liar. You're not Aryel."
        [/message]
        [message]
            speaker=Fake Aryel
            message= _ "Then who am I supposed to be? Sheesh, you're so irrational at times."
        [/message]
        [message]
            speaker=Yumi
            message= _ "I- that's..."
        [/message]
        [message]
            speaker=Yumi
            message= _ "... I really hope you're not her..."
        [/message]
        [message]
            speaker=Fake Aryel
            message= _ "What are you talking about?"
        [/message]
        [message]
            speaker=Fake Aryel
            message= _ "Are you crazy? Snap out of it. Just let me-"
        [/message]
        [message]
            speaker=Yumi
            message= _ "No! Stay back, or I'll- I'll..."
        [/message]
        [message]
            speaker=Fake Aryel
            message= _ "You'll do what? Stupid Yumi, sometimes I wonder why you're so weird. Now quit being dumb and come here."
        [/message]
        [message]
            speaker=Yumi
            message= _ "Stay away!"
        [/message]
        [message]
            speaker=Fake Aryel
            message= _ "I've had enough of you. Looks like we have to do this the hard way."
        [/message]
        [message]
            speaker=Yumi
            message= _ "(whispers) Aryel would never threaten me like that. You're not her."
        [/message]
        {CLEAR_VARIABLE yumi}
    [/event]

    [event]
        name=turn 14
        [store_unit]
            [filter]
                id=Yumi
            [/filter]
            variable=yumi
        [/store_unit]

        {SPAWN_ID_NAME ("Fake Shadow Fae") 3 $yumi.x $yumi.y ("Fake Yumi") ("female") ("Yumi")}

        [message]
            speaker=Yumi
            message= _ "You have got to be kidding me."
        [/message]
        [message]
            speaker=Fake Yumi
            message= _ "Hello."
        [/message]

        {WHITE_SCREEN}
        {DELAY 500}

        [message]
            speaker=Yumi
            message= _ "Ugh, my head-"
        [/message]
        [message]
            speaker=narrator
            message= _ "(feminine voice) Look at her. What do you see?"
        [/message]
        [message]
            speaker=Yumi
            message= _ "... I-I don't know..."
        [/message]
        [message]
            speaker=narrator
            message= _ "Yourself? Who are you? What are you?"
        [/message]
        [message]
            speaker=Yumi
            message= _ "I... don't know. I'm... not normal."
        [/message]
        [message]
            speaker=narrator
            message= _ "Is this why are you are shunned by the other faerie?"
        [/message]
        [message]
            speaker=Yumi
            message= _ "..."
        [/message]
        [message]
            speaker=narrator
            message= _ "(feminine voice) And what about your friends?"
        [/message]
        [message]
            speaker=Yumi
            message= _ "They don't know..."
        [/message]
        [message]
            speaker=narrator
            message= _ "What don't they know?"
        [/message]
        [message]
            speaker=Yumi
            message= _ "I-it hurts... (shivers)"
        [/message]
        [message]
            speaker=narrator
            message= _ "(feminine voice) What are you? What is she?"
        [/message]
        [message]
            speaker=Yumi
            message= _ "..."
        [/message]
        [message]
            speaker=Yumi
            message= _ "... she's me?"
        [/message]

        {UNWHITE_SCREEN}

        [message]
            speaker=Yumi
            message= _ "(holds head) Ugh, my head feels like it's going to explode..."
        [/message]
        [message]
            speaker=Fake Yumi
            message= _ "Hello."
        [/message]
        [message]
            speaker=Yumi
            message= _ "(mutters) Not even going to bother with you."
        [/message]

        {CLEAR_VARIABLE yumi}
    [/event]

    [event]
        name=last breath
        [filter]
            id=Fake Aryel
        [/filter]

        [message]
            speaker=Fake Aryel
            message= _ "(gasps)"
        [/message]
        [message]
            speaker=Fake Aryel
            message= _ "Wa-it-"
        [/message]
        [message]
            speaker=Yumi
            message= _ "..."
        [/message]
        [message]
            speaker=Fake Aryel
            message= _ "Why... do you... hate me?"
        [/message]
        [message]
            speaker=Yumi
            message= _ "(closes eyes)"
        [/message]

        {DELAY 1000}

        [message]
            speaker=Yumi
            message= _ "(breathes deeply)"
        [/message]

        {FLASH_RED_EXTREME ({DELAY 500})}

        [kill]
            id=Fake Aryel
            animate=yes
        [/kill]
    [/event]
    [event]
        name=last breath
        [filter]
            id=Fake Esther
        [/filter]

        [message]
            speaker=Fake Esther
            message= _ "Yumi... (gasp) ... why?"
        [/message]
        [message]
            speaker=Yumi
            message= _ "You- you're not real. (turns away) Esther would never attack me."
        [/message]
        [message]
            speaker=Fake Esther
            message= _ "Yumi... no... you're hurting me..."
        [/message]
        [message]
            speaker=Yumi
            message= _ "Go away."
        [/message]
        [message]
            speaker=Fake Esther
            message= _ "Yu-mi-I-need-"
        [/message]
        [message]
            speaker=Yumi
            message= _ "Get away from me!"
        [/message]

        [kill]
            id=Fake Esther
            animate=yes
        [/kill]

        {DELAY 1500}

        [message]
            speaker=Yumi
            message= _ "Ugh."
        [/message]
    [/event]
    [event]
        name=last breath
        [filter]
            id=Fake Yumi
        [/filter]

        [message]
            speaker=Fake Yumi
            message= _ "..."
        [/message]
        [message]
            speaker=Yumi
            message= _ "Who are you?"
        [/message]
        [message]
            speaker=Fake Yumi
            message= _ "Who are you?"
        [/message]
        [message]
            speaker=Yumi
            message= _ "..."
        [/message]
        [message]
            speaker=Fake Yumi
            message= _ "Why do you hunt me?"
        [/message]
        [message]
            speaker=Yumi
            message= _ "Why are you hunting me?"
        [/message]
        [message]
            speaker=Fake Yumi
            message= _ "I-"
        [/message]
        [message]
            speaker=narrator
            message= _ "(feminine voice) She is fading."
        [/message]
        [message]
            speaker=Fake Yumi
            message= _ "But-"
        [/message]
        [kill]
            id=Fake Yumi
            animate=yes
        [/kill]
        [message]
            speaker=Yumi
            message= _ "What's going on..?"
        [/message]
        [message]
            speaker=narrator
            message= _ "Do not fret. Close your eyes. Rest."
        [/message]
        [message]
            speaker=Yumi
            message= _ "Uhh, but..."
        [/message]

        {FLASH_DARK ({DELAY 500})}

        [message]
            speaker=Yumi
            message= _ "What... was... that?"
        [/message]

        {FLASH_DARK ({DELAY 500})}

        [message]
            speaker=narrator
            message= _ "(feminine voice) Sleep..."
        [/message]

        {FADE_SCREEN}
        {DELAY 1250}

        [endlevel]
            result=victory
            bonus=yes
            {NEW_GOLD_CARRYOVER 100}
            carryover_report=no
            linger_mode=no
            next_scenario=03_Northlands
        [/endlevel]
    [/event]

    [event]
        name=time over
        [message]
            speaker=Yumi
            message= _ "I think... I think I hear someone calling my name."
        [/message]
        [message]
            speaker=narrator
            message= _ "Yumi... Yumi, wake up... "
        [/message]
        [message]
            speaker=Yumi
            message= _ "(squints)"
        [/message]

        {FLASH_DARK ({DELAY 750})}

        [message]
            speaker=Yumi
            message= _ "(swaying)  I feel... strange."
        [/message]

        {FLASH_DARK ({DELAY 1000})}

        [message]
            speaker=Yumi
            message= _ "(closes eyes)"
        [/message]
        [message]
            speaker=Yumi
            message= _ "(yawns)"
        [/message]
        [message]
            speaker=narrator
            message= _ "It's time to get up, sleepyhead... "
        [/message]

        {FADE_SCREEN}

        {DELAY 1250}

        [endlevel]
            result=victory
            bonus=yes
            {NEW_GOLD_CARRYOVER 100}
            carryover_report=no
            linger_mode=no
            next_scenario=03_Northlands
        [/endlevel]
    [/event]

    # don't forget to unstore Esther
    [event]
        name=victory
        [kill]
            side=1
            type=Manifestation
        [/kill]
        [set_variable]
            name=blue_moon
            value=1
        [/set_variable]
        [set_variable]
            name=prev_scenario
            value="Blue Moon"
        [/set_variable]
        [unstore_unit]
            variable=esther_tmp
            find_vacant=yes
        [/unstore_unit]
        [unhide_unit]
            [filter]
                id=Esther
            [/filter]
        [/unhide_unit]
        [clear_menu_item]
            id=recruit_manifestation
        [/clear_menu_item]
        {CLEAR_VARIABLE esther_tmp}
    [/event]

    [event]
        name=last breath
        [filter]
            id=Yumi
        [/filter]
        [message]
            speaker=Yumi
            message= _ "I- can't... breathe - (gasp)"
        [/message]
        [endlevel]
            result=defeat
        [/endlevel]
    [/event]
[/scenario]

#undef GENERATE_DEEP_WATER
#undef GENERATE_SHALLOW_WATER
#undef GENERATE_ICE
#undef GENERATE_SNOW
#undef GENERATE_SNOW_HILLS
#undef GENERATE_SNOW_PINE_FOREST
#undef GENERATE_SNOW_MIXED_FOREST