#textdomain wesnoth-Genesis

[scenario]
    id=09_Blackout
    name= _ "Blackout"
    map_data="{~add-ons/Genesis/episode1/maps/09_Blackout.map}"
    turns=-1
    next_scenario=10_Incubus
    theme=Cutscene_Minimal
    {DARK_INDOORS}

    {SCENARIO_MUSIC underground.ogg}

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

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

    {STARTING_VILLAGES_ALL 2}

    [event]
        name=prestart
        [label]
            x,y=31,7
            text = _ "The Blue Room"
        [/label]
    [/event]

    [event]
        name=start

        {FADE_SCREEN}
        [unit]
            type=Guardian of Earth
            name= _ "Xia'el"
            id=Xia'el
            facing=n
            canrecruit=yes
            unrenamable=yes
            side=1
            x,y=14,32
        [/unit]
        [unit]
            type=Guardian of Darkness
            id=Merthiaal
            facing=s
            name= _ "Merthiaal"
            unrenamable=yes
            canrecruit=yes
            side=2
            x,y=13,24
        [/unit]
        [hide_unit]
            [filter]
            [/filter]
        [/hide_unit]
        [scroll_to]
            x,y=14,32
        [/scroll_to]
        [remove_shroud]
            side=1
            x=1-20,21-36
            y=22-36,25-36
        [/remove_shroud]
        [redraw]
            clear_shroud=yes
        [/redraw]
        {UNFADE_SCREEN}
        {DELAY 500}
        [message]
            speaker=Merthiaal
            message= _ "Xia'el. Hello. It has been a while."
        [/message]
        [message]
            speaker=Xia'el
            message= _ "It has, but perhaps not long enough."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "... nice to see you too?"
        [/message]
        [message]
            speaker=Xia'el
            message= _ "I would say 'likewise', but I'm here regarding something important, unfortunately."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "I'm not sure what you mean by that."
        [/message]
        [message]
            speaker=Xia'el
            message= _ "Your influence, Merthiaal. We all know what you're capable of. It needs to stop."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "I'm sorry, I really don't know what you mean."
        [/message]
        [move_unit]
            id=Xia'el
            to_x,to_y=14,31
        [/move_unit]
        {DELAY 250}
        [message]
            speaker=Xia'el
            message= _ "It's no use playing dumb. Listen, I just want us to get along, okay? We don't need to fight. So please, there's no need for you to do this."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "Do what, exactly?"
        [/message]
        {DELAY 1000}
        [message]
            speaker=Xia'el
            message= _ "(sighs) You've been controlling some of Uria's subjects and even some of those of other guardians. They have been attacking Irdya, my world, and have been harassing my faerie-"
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "And you believe it's my doing. Really, Xia'el? (shakes head) You can't just come marching in here and accusing me of that."
        [/message]
        [message]
            speaker=Xia'el
            message= _ "But you-"
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "What makes you think it's me?"
        [/message]
        {DELAY 250}
        [move_unit]
            id=Xia'el
            to_x,to_y=14,32
        [/move_unit]
        [modify_unit]
            [filter]
                id=Xia'el
            [/filter]
            facing=n
        [/modify_unit]
        {DELAY 250}
        [message]
            speaker=Xia'el
            message= _ "I thought... you had something to do with it... you're the Guardian of Darkness. The Aspect of Darkness that you hold, it grants you the power to control the minds of other creatures."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "Obviously someone as strong as you would be able to sense if I were doing that. Besides, if I really were somehow manipulating Uria's subjects into attacking you, we wouldn't even be having this conversation. You'd probably just take it up with Yarae and get him to-"
        [/message]
        {DELAY 250}
        [move_unit]
            id=Xia'el
            to_x,to_y=14,30
        [/move_unit]
        [modify_unit]
            [filter]
                id=Xia'el
            [/filter]
            facing=n
        [/modify_unit]
        {DELAY 250}
        [message]
            speaker=Xia'el
            message= _ "Is that what you think? That I'd just go running to Yarae for every little dispute we have?"
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "Sort of. Well, it's just..."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "(mutters) You and Uria, you're his favorites. I don't see why you wouldn't be. (coughs) Nevermind. I'm not responsible for whatever is happening on your world. However, I would be glad to help, if you need it. Of course, you're quite strong, yourself, so I doubt you will want help from a weakling like me..."
        [/message]
        {DELAY 250}
        [move_unit]
            id=Xia'el
            to_x,to_y=14,24
        [/move_unit]
        {DELAY 250}
        [modify_unit]
            [filter]
                id=Xia'el
            [/filter]
            facing=nw
        [/modify_unit]
        {DELAY 250}
        [modify_unit]
            [filter]
                id=Merthiaal
            [/filter]
            facing=se
        [/modify_unit]
        {DELAY 500}
        [message]
            speaker=Xia'el
            message= _ "Come on, Merthiaal. I know we have our differences, but it's not like I hold a grudge against you or anything. We're not Shardia and Valdir. I'm sorry I accused you of doing something like that. I really thought you might have had some connection to it because of their odd behavior. I didn't mean to try to pick a fight with you. We can be friends."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "Friends, right."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "I don't see why you think I'm not being sincere. I'm trying, Xia'el. I really am. I don't want to be your enemy either-"
        [/message]
        [message]
            speaker=Xia'el
            message= _ "Nobody said you were."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "I suppose not. But sometimes, it just feels like... ah, never mind."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "..."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "(sighs) So, what exactly has been going on again?"
        [/message]
        [message]
            speaker=Xia'el
            message= _ "The Urdemons have been attacking Irdya. I know it's not Uria's doing. She's been trying to do what she can, but her method of 'control' usually just means quelling the rebels. Which is obviously bad and she doesn't want to keep doing that."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "Of course."
        [/message]
        [message]
            speaker=Xia'el
            message= _ "I suspect that there are other demons among them as well, but mostly they have been Uria's subjects. Ethea is in turmoil. And you were right, I haven't been able to identify how they are being controlled, if at all."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "None of the other aspects hold control over the mind like Darkness. I suppose one of the demon lords here could be responsible, but... (closes eyes) I would probably know about it, if that were the case. Although I'm not sure I could even do anything about it..."
        [/message]
        [message]
            speaker=Xia'el
            message= _ "Come on, Merthiaal. I know you're young, but you're a Guardian! You definitely have the right and the power to control your world."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "Yrathid is huge... and I'm weak... no. No, nevermind. You're right, I shouldn't think like that. So, any other clues?"
        [/message]
        [message]
            speaker=Xia'el
            message= _ "Hmm, the only other thing I can think of is that there were some sightings of the Yuure Demons. And the Void Demons."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "Those ones? Hmm. I never liked the Void Demons to begin with. They are merely mindless killing machines. Too dangerous to be dealt with. And I've always felt that the Yuure Demons were rather weak. Maybe they could control humans, but other demons? I don't think so."
        [/message]
        [message]
            speaker=Xia'el
            message= _ "Is that so? Then, what could it be?"
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "Well, I've heard that..."
        [/message]
        {DELAY 1000}
        [message]
            speaker=Xia'el
            message= _ "What is it?"
        [/message]
        {DELAY 750}
        {MODIFY_UNIT (id=Merthiaal) facing nw}
        {DELAY 500}
        [message]
            speaker=Xia'el
            message= _ "What are you doing? Merthiaal, look at me."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "(softly) You won't like me if I tell you."
        [/message]
        [message]
            speaker=Xia'el
            message= _ "Come on. I won't hate you."
        [/message]
        {DELAY 750}
        [message]
            speaker=Merthiaal
            message= _ "I... I've heard rumors. There's been trouble on Norsula. Okay, so there's always trouble on Norsula, obviously since it has both the Aspects of Water and Fire, but I've heard that the Guardians there have started setting their eyes on other worlds. Valdir and Shardia. They're don't just want to use their own minions to fight. They want to drag others in with them."
        [/message]
        [message]
            speaker=Xia'el
            message= _ "That's been a rumor since forever."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "But that's not all! Recently, some of the demons here on Yrathid have begun attacking each other! I managed to subdue them, but day by day, their numbers grow, and in some places, it's turned into all out war! I tried to step in when the demon lords seemed like they couldn't handle it, but I made a huge, bloody mess of the whole thing so I don't even know what to do anymore, and ah..."
        [/message]
        [message]
            speaker=Xia'el
            message= _ "Sounds like Ethea right now. So you've been having the same troubles? I'm sorry to hear that."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "... it's fine. I let the demon lords do their own thing anyway. But as for the sudden trouble, I suspected that one of Valdir or Shardia had something to do with it, so I went to Yarae. I thought he might have some advice for me."
        [/message]
        [message]
            speaker=Xia'el
            message= _ "And... what did he say?"
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "(sighs)"
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "I couldn't find him. No, he wouldn't let me find him."
        [/message]
        [message]
            speaker=Xia'el
            message= _ "What do you mean? He's always standing guard at the Well of Life."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "He wouldn't let me through. There was a barrier there. I could sense a fantastic energy beyond it, the power of several elements mingled simultaneously. Yarae... he was doing something with that energy. He didn't want me to know. He doesn't want us to know anything. Xia'el... I'm sure he knows what's going on. I know he knows why my- our worlds are suddenly going crazy."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "The thing is, he's not doing anything about it. He doesn't want to help. I think... he doesn't care. No, not just that. He actually wants us to... to fight with each other like dogs while he runs his mad experiments on his own!"
        [/message]
        {DELAY 1500}
        [message]
            speaker=Xia'el
            message= _ "Merthiaal."
        [/message]
        {DELAY 750}
        [message]
            speaker=Xia'el
            message= _ "Look at me."
        [/message]
        {DELAY 1500}
        [message]
            speaker=Xia'el
            message= _ "(reaches forward)"
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "(flinches) I thought you said you wouldn't hate-"
        [/message]
        [message]
            speaker=Xia'el
            message= _ "I don't. I just was surprised. That's quite the accusation to be making. Yarae does things with the Tree of Life all the time. He made it and knows all its secrets. Of course he has some things that he doesn't want to share with us. And I'm sure there's an explanation for why the demons have gone berserk as well. I'll bet you Yarae will give us a solution if we ask nicely."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "Ugh. You don't get it."
        [/message]
        [message]
            speaker=Xia'el
            message= _ "... I don't."
        [/message]
        {DELAY 750}
        {MODIFY_UNIT (id=Merthiaal) facing se}
        {DELAY 500}
        [message]
            speaker=Merthiaal
            message= _ "Of course you don't. You always think everything is okay when it's really not. Optimists like you never see the real truth."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "Our worlds are collapsing. You think our subjects fighting each other is our only problem? No. I'm sure you've seen it already. The power of the void is growing and it's already begun to seep into our universe. For all we know, the void's corrupting influence could be the thing causing everyone to go crazy, and that's just the first, tiniest little thing it can do."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "The thing is, the catastrophe that destroyed the First Gods and their civilization won't just go away. It'll happen to us too. Don't forget that Yarae's people, for all their knowledge and glory, were destroyed, and whatever did that to them could just as easily do that to us."
        [/message]
        [message]
            speaker=Xia'el
            message= _ "Merthiaal."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "We aren't even as strong as they are! Yarae is one of the few of the First Gods that remain, and he's way beyond us, because he keeps all of his power and secrets to himself. He doesn't share anything with us! He even locked me out of the Well that our powers spring from! That's not fair! He wouldn't treat you like that."
        [/message]
        [message]
            speaker=Xia'el
            message= _ "Merthiaal."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "And now he's just- just ignoring me! He doesn't care. He's watching and doing nothing as the void permeates our universe more and more with each passing moment. There's no way someone as strong as you can't see it. If, say, the armageddon arrives on our doorstep tomorrow, what could we do about it? Nothing. Absolutely nothing. Oh, Xia'el, I don't want to go on like this-"
        [/message]
        [message]
            speaker=Xia'el
            message= _ "Merthiaal!"
        [/message]
        {DELAY 1000}
        [message]
            speaker=Xia'el
            message= _ "Please, calm down. Nothing like that is going to happen."
        [/message]
        {DELAY 750}
        [message]
            speaker=Merthiaal
            message= _ "You don't know that."
        [/message]
        {DELAY 1500}
        [message]
            speaker=Xia'el
            message= _ "If we work together, we'll be able to figure something out. I promise. But seriously, what's gotten into you lately? You seem so..."
        [/message]
        {DELAY 500}
        {MODIFY_UNIT (id=Merthiaal) facing nw}
        {DELAY 1000}
        [message]
            speaker=Merthiaal
            message= _ "Let's talk somewhere else. With less of a chance of being overheard."
        [/message]
        [message]
            speaker=Xia'el
            message= _ "Umm, what? But- err... (frowns) okay."
        [/message]
        [move_unit]
            id=Merthiaal
            to_x,to_y=1,23
        [/move_unit]
        [move_unit]
            id=Xia'el
            to_x,to_y=1,24
        [/move_unit]
        [redraw]
            clear_shroud=yes
        [/redraw]
        {DELAY 500}
        [message]
            speaker=Xia'el
            message= _ "This is new. I don't remember there being anything here before."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "(shrugs)"
        [/message]
        {DELAY 250}
        [move_unit]
            id=Merthiaal
            to_x,to_y=8,18
        [/move_unit]
        [move_unit]
            id=Xia'el
            to_x,to_y=7,19
        [/move_unit]
        [redraw]
            clear_shroud=yes
        [/redraw]
        [move_unit]
            id=Merthiaal
            to_x,to_y=12,13
        [/move_unit]
        [move_unit]
            id=Xia'el
            to_x,to_y=12,14
        [/move_unit]
        [redraw]
            clear_shroud=yes
        [/redraw]
        {DELAY 500}
        [message]
            speaker=Xia'el
            message= _ "I know I've said this before, but maybe you shouldn't live in such dreary places. I can't help but feel that it doesn't help your anxiety."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "I'm the Guardian of Darkness, Xia'el. What else would you expect from me?"
        [/message]
        [message]
            speaker=Xia'el
            message= _ "I guess you have a point."
        [/message]
        [move_unit]
            id=Merthiaal
            to_x,to_y=20,11
        [/move_unit]
        [move_unit]
            id=Xia'el
            to_x,to_y=17,10
        [/move_unit]
        [redraw]
            clear_shroud=yes
        [/redraw]
        {DELAY 500}
        [message]
            speaker=Merthiaal
            message= _ "Is something wrong?"
        [/message]
        [message]
            speaker=Xia'el
            message= _ "I feel a bit lightheaded."
        [/message]
        {DELAY 250}
        [move_unit]
            id=Xia'el
            to_x,to_y=18,10
        [/move_unit]
        {DELAY 750}
        [move_unit]
            id=Xia'el
            to_x,to_y=19,11
        [/move_unit]
        {DELAY 500}
        [message]
            speaker=Merthiaal
            message= _ "Are you okay?"
        [/message]
        [message]
            speaker=Xia'el
            message= _ "I... think so."
        [/message]
        {DELAY 500}
        [move_unit]
            id=Merthiaal
            to_x,to_y=24,16
        [/move_unit]
        [redraw]
            clear_shroud=yes
        [/redraw]
        [move_unit]
            id=Xia'el
            to_x,to_y=21,12
        [/move_unit]
        {DELAY 250}
        [move_unit]
            id=Xia'el
            to_x,to_y=23,13
        [/move_unit]
        {DELAY 500}
        [move_unit]
            id=Xia'el
            to_x,to_y=25,14
        [/move_unit]
        {DELAY 500}
        [message]
            speaker=Merthiaal
            message= _ "You look rather pale. Is something the matter?"
        [/message]
        {DELAY 250}
        [move_unit]
            id=Xia'el
            to_x,to_y=25,16
        [/move_unit]
        [message]
            speaker=Xia'el
            message= _ "I'm... not sure..."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "You don't look so good. We can talk later. I think you need to rest."
        [/message]
        [message]
            speaker=Xia'el
            message= _ "(shakes head slowly) But I... need to... get back..."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "Your world isn't going to implode if you aren't there for one day. Besides, it doesn't look like you're in any condition to travel. Not safely, at least. Come on, I can give you somewhere to stay. It might not be to your tastes, but at least nobody will bother you there."
        [/message]
        {DELAY 1000}
        [message]
            speaker=Merthiaal
            message= _ "Xia'el?"
        [/message]
        {DELAY 750}
        [message]
            speaker=Xia'el
            message= _ "Uhh... sure... (holds head) I don't know what's wrong with me... I don't want to trouble you..."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "It's fine. It's not a big deal."
        [/message]
        [message]
            speaker=Xia'el
            message= _ "If you say so..."
        [/message]
        {DELAY 500}
        [move_unit]
            id=Merthiaal
            to_x,to_y=27,22
        [/move_unit]
        [redraw]
            clear_shroud=yes
        [/redraw]
        {DELAY 500}
        [move_unit]
            id=Xia'el
            to_x,to_y=26,21
        [/move_unit]
        {DELAY 500}
        [move_unit]
            id=Merthiaal
            to_x,to_y=34,19
        [/move_unit]
        [redraw]
            clear_shroud=yes
        [/redraw]
        {DELAY 750}
        [move_unit]
            id=Xia'el
            to_x,to_y=34,20
        [/move_unit]
        {DELAY 500}
        [move_unit]
            id=Merthiaal
            to_x,to_y=32,16
        [/move_unit]
        {DELAY 750}
        [move_unit]
            id=Xia'el
            to_x,to_y=33,17
        [/move_unit]
        {DELAY 250}
        [message]
            speaker=Merthiaal
            message= _ "Just a moment."
        [/message]
        {DELAY 500}
        [terrain]
            x,y=32,15
            terrain=Myb
        [/terrain]
        [redraw]
            clear_shroud=yes
        [/redraw]
        {DELAY 250}
        [move_unit]
            id=Merthiaal
            to_x,to_y=31,10
        [/move_unit]
        [redraw]
            clear_shroud=yes
        [/redraw]
        [move_unit]
            id=Xia'el
            to_x,to_y=31,11
        [/move_unit]
        [move_unit]
            id=Merthiaal
            to_x,to_y=30,4
        [/move_unit]
        [redraw]
            clear_shroud=yes
        [/redraw]
        [move_unit]
            id=Xia'el
            to_x,to_y=31,5
        [/move_unit]
        {DELAY 250}
        [message]
            speaker=Merthiaal
            message= _ "There. Not the most comfortable room, but it is a private one. Nobody will bother you here."
        [/message]
        [message]
            speaker=Xia'el
            message= _ "Thanks, Merthiaal."
        [/message]
        [move_unit]
            id=Xia'el
            to_x,to_y=34,1
        [/move_unit]
        [redraw]
            clear_shroud=yes
        [/redraw]
        {DELAY 500}
        [message]
            speaker=Merthiaal
            message= _ "Sleep well."
        [/message]
        [message]
            speaker=Xia'el
            message= _ "Mmm..."
        [/message]
        {DELAY 250}
        [hide_unit]
            id=Xia'el
        [/hide_unit]
        {DELAY 500}
        [message]
            speaker=Merthiaal
            message= _ "I should get going."
        [/message]
        {DELAY 500}
        [hide_unit]
            id=Merthiaal
        [/hide_unit]
        {DELAY 500}
        {SPAWN ("Demon Nightmare") 3 24 3}
        {SPAWN ("Demon Nightmare") 3 26 5}
        {SPAWN ("Demon Nightmare") 3 29 7}
        {SPAWN ("Demon Nightmare") 3 33 8}
        {DELAY 1500}
        [move_unit]
            id=spawn_24_3
            to_x,to_y=27,3
        [/move_unit]
        [move_unit]
            id=spawn_26_5
            to_x,to_y=28,4
        [/move_unit]
        [move_unit]
            id=spawn_29_7
            to_x,to_y=30,5
        [/move_unit]
        [move_unit]
            id=spawn_33_8
            to_x,to_y=33,6
        [/move_unit]
        [move_unit]
            id=spawn_24_3
            to_x,to_y=30,2
        [/move_unit]
        [move_unit]
            id=spawn_26_5
            to_x,to_y=30,3
        [/move_unit]
        [move_unit]
            id=spawn_29_7
            to_x,to_y=31,4
        [/move_unit]
        [move_unit]
            id=spawn_33_8
            to_x,to_y=33,4
        [/move_unit]
        [move_unit]
            id=spawn_24_3
            to_x,to_y=32,1
        [/move_unit]
        [move_unit]
            id=spawn_26_5
            to_x,to_y=32,2
        [/move_unit]
        [move_unit]
            id=spawn_29_7
            to_x,to_y=33,3
        [/move_unit]
        [move_unit]
            id=spawn_33_8
            to_x,to_y=34,3
        [/move_unit]
        {DELAY 2000}
        [kill]
            side=3
        [/kill]
        {DELAY 2000}
        {FADE_SCREEN}
        [endlevel]
            result=victory
            bonus=no
            replay_save=no
            carryover_report=no
            linger_mode=no
            next_scenario=10_Incubus
        [/endlevel]
    [/event]
[/scenario]


#textdomain wesnoth-Genesis
[scenario]
    id=10_Incubus
    name= _ "Incubus"
    map_data="{~add-ons/Genesis/episode1/maps/10_Incubus.map}"
    next_scenario=11_Frozen_Skies
    victory_when_enemies_defeated=no
    disallow_recall=yes
    turns=29
    {ETERNALDARKDREAM}

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

    [side]
        {PLAYER_FAE}
        side=1
        recruit=
        {GOLD 400 360 280}
        {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
        team_name=yuure
        controller=ai
        user_team_name= _ "team_name^Humans"
        color=white
        [ai]
            aggression=1
            caution=0
            grouping=false
            [goal]
                [criteria]
                    id=Yumi
                [/criteria]
                value=200
            [/goal]
        [/ai]
    [/side]

    [side]
        side=4
        no_leader=yes
        hidden=yes
        controller=null
        team_name=yuure
        color=black
    [/side]

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

[event]
    name=switch_terrain
    first_time_only=no
    [if]
        [variable]
            name=change_terrain
            numerical_equals=1
        [/variable]
        [then]
            [terrain]
                x,y=$hex[$i].x,$hex[$i].y
                terrain=Ai
            [/terrain]
        [/then]
    [/if]
    [if]
        [variable]
            name=change_terrain
            numerical_equals=2
        [/variable]
        [then]
            [terrain]
                 x,y=$hex[$i].x,$hex[$i].y
                terrain=Aa
            [/terrain]
        [/then]
    [/if]
    {CLEAR_VARIABLE change_terrain}
[/event]
#define GENERATE_BLACK_SHALLOW
    [store_locations]
        variable=hex
        [filter_adjacent_location]
            terrain=Wwby
        [/filter_adjacent_location]
        [not]
            terrain=Woby
        [/not]
    [/store_locations]
    [for]
        array=hex
        [do]
            [set_variable]
                name=change_terrain
                rand=1..3
            [/set_variable]
            [if]
                [variable]
                    name=change_terrain
                    numerical_equals=1
                [/variable]
                [then]
                    [terrain]
                         x,y=$hex[$i].x,$hex[$i].y
                        terrain=Wwby
                    [/terrain]
                [/then]
            [/if]
            {CLEAR_VARIABLE change_terrain}
        [/do]
    [/for]
    {CLEAR_VARIABLE hex}
#enddef
#define REGENERATE_TERRAIN
    [store_locations]
        variable=hex
        [not]
            terrain=Aa^Fma,Aa^Fpa,Wwby,Woby
        [/not]
    [/store_locations]
    [for]
        array=hex
        [do]
            [set_variable]
                name=change_terrain
                rand=1..50
            [/set_variable]
            [fire_event]
                name=switch_terrain
            [/fire_event]
        [/do]
    [/for]
    {CLEAR_VARIABLE hex}
    [store_locations]
        variable=hex
        terrain=Aa^Fma,Aa^Fpa
        [not]
            terrain=Wwby,Woby
        [/not]
    [/store_locations]
    [for]
        array=hex
        [do]
            [set_variable]
                name=change_terrain
                rand=1..160
            [/set_variable]
            [fire_event]
                name=switch_terrain
            [/fire_event]
        [/do]
    [/for]
    {CLEAR_VARIABLE hex}
#enddef
#define GENERATE_ICE
    [set_variable]
        name=x_coord
        rand=1..27,7..21
    [/set_variable]
    [set_variable]
        name=y_coord
        rand=1..27,7..21
    [/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..12
            [/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..27,7..21
    [/set_variable]
    [set_variable]
        name=y_coord
        rand=1..27,7..21
    [/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..12
            [/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=5..23,10..18
    [/set_variable]
    [set_variable]
        name=y_coord
        rand=5..23,10..18
    [/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..15
            [/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=5..23,10..18
    [/set_variable]
    [set_variable]
        name=y_coord
        rand=5..23,10..18
    [/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..15
            [/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=5..23,10..18
    [/set_variable]
    [set_variable]
        name=y_coord
        rand=5..23,10..18
    [/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..10
            [/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..27
    [/set_variable]
    [set_variable]
        name=y_coord
        rand=1..27
    [/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..30
            [/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..27
    [/set_variable]
    [set_variable]
        name=y_coord
        rand=1..27
    [/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..30
            [/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_CONDITIONAL_RANDOM ("Shadow Demon") 5 7 21 7 21 7 ("new_terrain")}
        {RESPAWN_POINT_CONDITIONAL_RANDOM ("Shadow Demon") 5 7 21 7 21 7 ("new_terrain")}
        {RESPAWN_POINT_CONDITIONAL_RANDOM ("Shadow Demon") 5 7 21 7 21 7 ("new_terrain")}
        {RESPAWN_POINT_CONDITIONAL_RANDOM ("Shadow Demon") 5 7 21 7 21 7 ("new_terrain")}
    #endif
    #ifdef NORMAL
        {RESPAWN_POINT_CONDITIONAL_RANDOM ("Shadow Demon") 5 7 21 7 21 14 ("new_terrain")}
        {RESPAWN_POINT_CONDITIONAL_RANDOM ("Shadow Demon") 5 7 21 7 21 14 ("new_terrain")}
        {RESPAWN_POINT_CONDITIONAL_RANDOM ("Shadow Demon") 5 7 21 7 21 14 ("new_terrain")}
        {RESPAWN_POINT_CONDITIONAL_RANDOM ("Shadow Demon") 5 7 21 7 21 14 ("new_terrain")}
    #endif
    #ifdef EASY
        {RESPAWN_POINT_CONDITIONAL_RANDOM ("Shadow Demon") 5 7 21 7 21 19 ("new_terrain")}
        {RESPAWN_POINT_CONDITIONAL_RANDOM ("Shadow Demon") 5 7 21 7 21 19 ("new_terrain")}
        {RESPAWN_POINT_CONDITIONAL_RANDOM ("Shadow Demon") 5 7 21 7 21 19 ("new_terrain")}
        {RESPAWN_POINT_CONDITIONAL_RANDOM ("Shadow Demon") 5 7 21 7 21 19 ("new_terrain")}
    #endif

    [event]
        name=new turn
        first_time_only=no
        [store_locations]
            variable=hex
            terrain=Ha^*,Aa,Ai,Ha,Aa^*,Wwg,Wog
        [/store_locations]
        [for]
            array=hex
            [do]
                #ifdef HARD
                [set_variable]
                    name=spawn_val
                    rand=1..1800
                [/set_variable]
                #endif
                #ifdef NORMAL
                [set_variable]
                    name=spawn_val
                    rand=1..3000
                [/set_variable]
                #endif
                #ifdef EASY
                [set_variable]
                    name=spawn_val
                    rand=1..3600
                [/set_variable]
                #endif
                [if]
                    [variable]
                        name=spawn_val
                        less_than=3
                    [/variable]
                    [then]
                        {SPAWN_NOID ("Dream Dragoon","Dream Swordsman","Dream Javelineer","Dream Knight","Dream Longbowman","Dream Red Mage","Dream White Mage","Dream Pikeman","Dream Shock Trooper") 3 $hex[$i].x $hex[$i].y}
                    [/then]
                [/if]
                [if]
                    [variable]
                        name=spawn_val
                        numerical_equals=4
                    [/variable]
                    [then]
                        {SPAWN_NOID ("Demon Dreamweaver","Demon Nightmare") 2 $hex[$i].x $hex[$i].y}
                    [/then]
                [/if]
                {CLEAR_VARIABLE spawn_val}
            [/do]
        [/for]
        {CLEAR_VARIABLE hex}
        [store_locations]
            variable=hex
            terrain=Wwby
        [/store_locations]
        [for]
            array=hex
            [do]
                [set_variable]
                    name=spawn_val
                    rand=1..700
                [/set_variable]
                [if]
                    [variable]
                        name=spawn_val
                        numerical_equals=1
                    [/variable]
                    [then]
                        {SPAWN_NOID ("Shadow Demon") 5 $hex[$i].x $hex[$i].y}
                    [/then]
                [/if]
                {CLEAR_VARIABLE spawn_val}
            [/do]
        [/for]
        {CLEAR_VARIABLE hex}
    [/event]

    [event]
        name=prestart
        {REPEAT 15 ({GENERATE_SHALLOW_WATER})}
        {REPEAT 7 ({GENERATE_ICE})}
        {REPEAT 7 ({GENERATE_SNOW})}
        {REPEAT 5 ({GENERATE_SHALLOW_WATER})}
        {REPEAT 5 ({GENERATE_ICE})}
        {REPEAT 5 ({GENERATE_SNOW})}
        {REPEAT 5 ({GENERATE_SHALLOW_WATER})}
        {REPEAT 3 ({GENERATE_ICE})}
        {REPEAT 3 ({GENERATE_SNOW})}
        {REPEAT 5 ({GENERATE_SNOW_HILLS})}
        {REPEAT 5 ({GENERATE_SNOW_PINE_FOREST})}
        {REPEAT 5 ({GENERATE_SNOW_MIXED_FOREST})}
        {REPEAT 3 ({GENERATE_ICE})}
        {REPEAT 3 ({GENERATE_SNOW})}
        {REPEAT 3 ({GENERATE_SNOW_HILLS})}
        {REPEAT 3 ({GENERATE_SNOW_PINE_FOREST})}
        {REPEAT 3 ({GENERATE_SNOW_MIXED_FOREST})}
        {RECALL_YUMI_NOLOC}
        [set_variable]
            name=x_coord
            rand=9..19
        [/set_variable]
        [set_variable]
            name=y_coord
            rand=9..19
        [/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=5
                    [/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 5}
                        [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}
        [sound_source]
            id=s10dark1
            x=14
            y=14
            sounds="dark-2.ogg"
            full_range=100
            delay=0
            loop=-1
            check_fogged=no
            check_shrouded=no
        [/sound_source]
        [set_variable]
            name=new_terrain
            value=0
        [/set_variable]
    [/event]

    [event]
        name=start
        [message]
            speaker=Yumi
            message= _ "(rubs eyes)"
        [/message]
        [message]
            speaker=Yumi
            message= _ "Again?"
        [/message]
        [message]
            speaker=Yumi
            message= _ "(shivers)"
        [/message]
        [message]
            speaker=narrator
            message= _ "It's here, that power. It wants you to use it."
        [/message]
        [message]
            speaker=Yumi
            message= _ "(nods)"
        [/message]
        [message]
            speaker=narrator
            message= _ "But you do not want to. You do not trust it. You do not trust yourself."
        [/message]
        [message]
            speaker=Yumi
            message= _ "... (nods)"
        [/message]
        [message]
            speaker=narrator
            message= _ "It will not simply disappear if you ignore it. What will you do?"
        [/message]
        [message]
            speaker=Yumi
            message= _ "(covers ears)"
        [/message]
        [message]
            speaker=narrator
            message= _ "So you're giving up."
        [/message]
        {DELAY 1000}
        [message]
            speaker=Yumi
            message= _ "(shakes head)"
        [/message]

        [objectives]
            {OBJECTIVE_VICTORY  ( _ "Survive until end of turns")}
            {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=new turn
        first_time_only=no
        [filter_condition]
            [variable]
                name=new_terrain
                numerical_equals=0
            [/variable]
        [/filter_condition]

        {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=new turn
        first_time_only=no
        [filter_condition]
            [variable]
                name=new_terrain
                numerical_equals=1
            [/variable]
        [/filter_condition]

        {REGENERATE_TERRAIN}
        {REPEAT 3 ({GENERATE_BLACK_SHALLOW})}
    [/event]

    [event]
        name=attack
        [filter]
            side=3
        [/filter]
        [filter_second]
            id=Yumi
        [/filter_second]
        [message]
            speaker=unit
            message= _ "Die, faerie scum!"
        [/message]
        [harm_unit]
            [filter]
                id=Yumi
            [/filter]
            [filter_second]
                x,y=$x1,$y1
            [/filter_second]
            [primary_attack]
                range=melee
            [/primary_attack]
            [secondary_attack]
                range=melee
            [/secondary_attack]
            animate=yes
            amount=4
        [/harm_unit]
        {DELAY 250}
        [message]
            speaker=Yumi
            message= _ "Ugh. Why would they attack us? What did we do to deserve this?"
        [/message]
        [message]
            speaker=unit
            message= _ "Say something!"
        [/message]
        {DELAY 350}
        [harm_unit]
            [filter]
                id=Yumi
            [/filter]
            [filter_second]
                x,y=$x1,$y1
            [/filter_second]
            [primary_attack]
                range=melee
            [/primary_attack]
            [secondary_attack]
                range=melee
            [/secondary_attack]
            amount=0
            animate=yes
        [/harm_unit]
        [message]
            speaker=unit
            message= _ "What's the matter? Cat got your tongue?"
        [/message]
        [message]
            speaker=Yumi
            message= _ "(steps back) I hate this."
        [/message]
    [/event]

    [event]
        name=turn 4
        [message]
            speaker=narrator
            message= _ "You are so quiet."
        [/message]
        [message]
            speaker=Yumi
            message= _ "Is there something wrong with that?"
        [/message]
        [message]
            speaker=narrator
            message= _ "You keep so much to yourself. Why are you afraid of telling people things? You should not be so scared of opening up."
        [/message]
        [message]
            speaker=Yumi
            message= _ "I'm not afraid."
        [/message]
        [message]
            speaker=narrator
            message= _ "No?"
        [/message]
        [message]
            speaker=Yumi
            message= _ "No."
        [/message]
        [message]
            speaker=narrator
            message= _ "You seem upset. Or maybe angry."
        [/message]
        [message]
            speaker=Yumi
            message= _ "Do I?"
        [/message]
        {DELAY 1500}
        [message]
            speaker=Yumi
            message= _ "(shakes head) I just feel strange."
        [/message]
    [/event]
    [event]
        name=turn 7
        [message]
            speaker=Yumi
            message= _ "(looks up)"
        [/message]
        [message]
            speaker=Yumi
            message= _ "(eyes gleam)"
        [/message]
        [message]
            speaker=narrator
            message= _ "You see what will happen if you use that power? Blood rains from the sky. Everything crumbles into the void. This is your doing."
        [/message]
        {DELAY 500}
        {TURN_UNIT5 "Yumi"}
        {DELAY 500}
        [message]
            speaker=narrator
            message= _ "You are horrifying, are you not?"
        [/message]
        [message]
            speaker=Yumi
            message= _ "(remains silent)"
        [/message]
    [/event]
    [event]
        name=turn 11
        [store_unit]
            [filter]
                id=Yumi
            [/filter]
            variable=yumi
        [/store_unit]
        {FADE_SCREEN}
        {DELAY 250}
        {PLAY_SOUND "dark-1.ogg"}
        [message]
            speaker=Yumi
            message= _ "(shudders)"
        [/message]
        {DELAY 750}
        {PLAY_SOUND "magic-dark.ogg"}
        {DELAY 550}
        [message]
            speaker=Yumi
            message= _ "Something is coming."
        [/message]
        {DELAY 500}
        {PLAY_SOUND "magic-dark-miss.ogg"}
        {DELAY 400}
        {PLAY_SOUND "magic-dark.ogg"}
        {DELAY 500}
        {UNFADE_SCREEN}
        {SPAWN_ID ("Demon Incubus") 2 $yumi.x $yumi.y ("boss1") ("male")}
        {SPAWN_ID ("Demon Incubus") 2 $yumi.x $yumi.y ("boss2") ("male")}
        [message]
            speaker=Yumi
            message= _ "Uhh..."
        [/message]
        [message]
            speaker=boss1
            message= _ "Why, she is only a child. The poor thing."
        [/message]
        [message]
            speaker=boss2
            message= _ "One must show a limited amount of empathy for such a creature."
        [/message]
        [message]
            speaker=boss1
            message= _ "That is true."
        [/message]
        [message]
            speaker=Yumi
            message= _ "They look strong... should I try to fight or run?"
        [/message]
        [message]
            speaker=boss2
            message= _ "She is frightened."
        [/message]
        [message]
            speaker=boss1
            message= _ "So you suppose. Will you come quietly?"
        [/message]
        [message]
            speaker=Yumi
            message= _ "(frowns)"
        [/message]
        [message]
            speaker=boss2
            message= _ "She is silent. So be it."
        [/message]
        [message]
            speaker=boss1
            message= _ "We will have to subdue her by force."
        [/message]
        [message]
            speaker=Yumi
            message= _ "(holds head)"
        [/message]
        {CLEAR_VARIABLE yumi}
    [/event]
    [event]
        name=last breath
        [filter]
            id=boss1
        [/filter]
        [message]
            speaker=boss1
            message= _ "She is powerful, even in our domain. But she cannot resist forever..."
        [/message]
        [kill]
            id=boss1
        [/kill]
    [/event]
    [event]
        name=last breath
        [filter]
            id=boss2
        [/filter]
        [message]
            speaker=boss2
            message= _ "Sooner or later... you will belong to us."
        [/message]
        [kill]
            id=boss2
        [/kill]
        [message]
            speaker=Yumi
            message= _ "All I am is a toy to them..."
        [/message]
    [/event]
    [event]
        name=turn 17
        [message]
            speaker=Yumi
            message= _ "(winces) It hurts..."
        [/message]
        [message]
            speaker=narrator
            message= _ "The more you think about it the more harm it will do. You are letting it slip out of control."
        [/message]
        [message]
            speaker=Yumi
            message= _ "(stares at hands)"
        [/message]
        [message]
            speaker=narrator
            message= _ "All that passes through your dreams comes into reality."
        [/message]
        [message]
            speaker=Yumi
            message= _ "(remains silent)"
        [/message]
        [message]
            speaker=narrator
            message= _ "Are you afraid of the future?"
        [/message]
        [message]
            speaker=Yumi
            message= _ "Am I?"
        [/message]
        {DELAY 1500}
        [message]
            speaker=Yumi
            message= _ "...I don't know how I feel."
        [/message]
        [message]
            speaker=Yumi
            message= _ "Esther... Aryel..."
        [/message]
        [message]
            speaker=narrator
            message= _ "They cannot help you. They cannot stand before it. You are the only one with that power."
        [/message]
    [/event]
    [event]
        name=turn 21
        {FADE_SCREEN}
        [terrain]
            x,y=14,14
            radius=2
            terrain=Wwby
        [/terrain]
        [terrain]
            x,y=14,14
            radius=1
            terrain=Woby
        [/terrain]
        [redraw][/redraw]
        [message]
            speaker=Yumi
            message= _ "..."
        [/message]
        [message]
            speaker=Yumi
            message= _ "It's so dark."
        [/message]
        [message]
            speaker=Yumi
            message= _ "..."
        [/message]
        {UNFADE_SCREEN}
        {DELAY 500}
        [store_unit]
            [filter]
                id=Yumi
            [/filter]
            variable=yumi
        [/store_unit]
        [if]
            [variable]
                name=yumi.x
                numerical_equals=14
            [/variable]
            [and]
                [variable]
                    name=yumi.y
                    numerical_equals=14
                [/variable]
            [/and]
            [then]
                [move_unit]
                    id=Yumi
                    to_x,to_y=14,15
                [/move_unit]
            [/then]
        [/if]
        {CLEAR_VARIABLE yumi}
        [message]
            speaker=Yumi
            message= _ "(flinches)"
        [/message]
        {DELAY 750}
        [remove_shroud]
            side=1
            x,y=14,14
            radius=4
        [/remove_shroud]
        [lift_fog]
            [filter_side]
                side=1
            [/filter_side]
            x,y=14,14
            radius=4
            multiturn=yes
        [/lift_fog]
        [redraw]
            clear_shroud=yes
        [/redraw]
        [unit]
            type=Guardian of Darkness
            id=Merthiaal
            name= _ "Merthiaal"
            x,y=14,14
            side=4
            random_traits=no
        [/unit]
        {DELAY 500}
        [message]
            speaker=Yumi
            message= _ "(pales)"
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "Hello. Do you know who I am?"
        [/message]
        {DELAY 1000}
        [message]
            speaker=Merthiaal
            message= _ "I'm going to assume you do. I'm sure you don't know why I'm here, though."
        [/message]
        {DELAY 1000}
        [message]
            speaker=Merthiaal
            message= _ "Are you afraid of me?"
        [/message]
        {DELAY 2000}
        [message]
            speaker=Merthiaal
            message= _ "How strange. I can't tell what she is thinking at all. This is a first."
        [/message]
        [message]
            speaker=Yumi
            message= _ "(shudders)"
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "I'm not going to hurt you. I just want to help. Please come here."
        [/message]
        {DELAY 1500}
        [message]
            speaker=Merthiaal
            message= _ "She's a difficult one."
        [/message]
        [set_variable]
            name=new_terrain
            value=1
        [/set_variable]
    [/event]
    [event]
        name=attack
        first_time_only=no
        [filter]
        [/filter]
        [filter_second]
            id=Merthiaal
        [/filter_second]
        [message]
            speaker=Merthiaal
            message= _ "You don't really want to attack me."
        [/message]
        [store_unit]
            [filter]
                id=Merthiaal
            [/filter]
            variable=merthiaal
        [/store_unit]
        [kill]
            x,y=$x2,$y2
        [/kill]
        [unit]
            type=Guardian of Darkness
            id=Merthiaal
            name= _ "Merthiaal"
            x,y=$merthiaal.x,$merthiaal.y
            side=4
            random_traits=no
            facing=$merthiaal.facing
        [/unit]
        {CLEAR_VARIABLE merthiaal}
    [/event]
    [event]
        name=turn 22
        {COLOR_ADJUST -10 -10 -10}
    [/event]
    [event]
        name=turn 23
        [message]
            speaker=Merthiaal
            message= _ "Why are you afraid of me?"
        [/message]
        {COLOR_ADJUST -20 -20 -20}
    [/event]
    [event]
        name=side 3 turn 23
        [message]
            speaker=Merthiaal
            message= _ "I haven't even done anything to you. The humans and the demons are the ones attacking you. Come here, I'll protect you against them."
        [/message]
    [/event]
    [event]
        name=turn 24
        {DELAY 500}
        [message]
            speaker=Yumi
            message= _ "(holds head)"
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "Are you hurt? Maybe I can help you."
        [/message]
        {COLOR_ADJUST -30 -30 -30}
    [/event]
    [event]
        name=turn 25
        [message]
            speaker=Merthiaal
            message= _ "Listen, I'm friends with Xia'el. You don't need to fear me."
        [/message]
        [message]
            speaker=Yumi
            message= _ "(shakes head)"
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "What's wrong? I just want to protect you. Xia'el trusts me. Don't you trust her?"
        [/message]
        [message]
            speaker=Yumi
            message= _ "(looks away)"
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "Ah, she doesn't trust anyone. I see. I suppose I can empathize."
        [/message]
        {COLOR_ADJUST -40 -40 -40}
    [/event]
    [event]
        name=turn 26
        [message]
            speaker=narrator
            message= _ "You two are not so different."
        [/message]
        [message]
            speaker=Yumi
            message= _ "(looks up)"
        [/message]
        {TURN_UNIT5 "Yumi"}
        [message]
            speaker=Merthiaal
            message= _ "(eyes narrow) She can feel it too? I thought so."
        [/message]
        {COLOR_ADJUST -50 -50 -50}
    [/event]
    [event]
        name=side 5 turn 26
        [message]
            speaker=Merthiaal
            message= _ "Perhaps she is more similar to me than I had originally thought."
        [/message]
    [/event]
    [event]
        name=turn 27
        [message]
            speaker=narrator
            message= _ "She is the one. She has seen it too. She knows what must be done to stop it."
        [/message]
        [message]
            speaker=Yumi
            message= _ "(turns)"
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "(frowns) She's looking at me now? But it's not because of anything I said. What could she be thinking?"
        [/message]
        [message]
            speaker=Yumi
            message= _ "(tenses) Should I trust her?"
        [/message]
        [message]
            speaker=narrator
            message= _ "What do you think?"
        [/message]
        {COLOR_ADJUST -60 -60 -60}
    [/event]
    [event]
        name=turn 28
        [store_unit]
            [filter]
                id=Yumi
            [/filter]
            variable=yumi
        [/store_unit]
        [unit]
            type=Fake Shadow Fae
            id=Fake Yumi
            name=_ "Yumi"
            random_traits=no
            side=4
            x,y=$yumi.x,$yumi.y
        [/unit]
        {CLEAR_VARIABLE yumi}
        {DELAY 500}
        [message]
            speaker=Yumi
            message= _ "(eyes widen)"
        [/message]
        [message]
            speaker=Fake Yumi
            message= _ "What can you do? If they knew, Esther and Aryel wouldn't care enough to help you. And even if they did..."
        [/message]
        [kill]
            id=Fake Yumi
        [/kill]
        [message]
            speaker=narrator
            message= _ "They would not be able to."
        [/message]
        [message]
            speaker=Yumi
            message= _ "(whispers) ... they do care. They'll help me. They'll help me stop it!"
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "Who?"
        [/message]
        [message]
            speaker=Yumi
            message= _ "(holds hand over mouth) I- I shouldn't have said that-"
        [/message]
        {COLOR_ADJUST -70 -70 -70}
    [/event]
    [event]
        name=turn 29
        [message]
            speaker=Yumi
            message= _ "I guess... it doesn't matter. We're all doomed anyway. It's better if they don't know about it. At least that way, they'll still like me."
        [/message]
        [message]
            speaker=narrator
            message= _ "Is that what you have concluded?"
        [/message]
        [message]
            speaker=Yumi
            message= _ "(shrugs)"
        [/message]
        [message]
            speaker=narrator
            message= _ "They will find out about it sooner or later, and when they do, all of your secrets will be revealed. What will they think then? Do you think they will give up like you have?"
        [/message]
        [message]
            speaker=Yumi
            message= _ "I..."
        [/message]
        [message]
            speaker=Yumi
            message= _ "... don't want to give up."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "(speaks slowly) Are you talking to someone?"
        [/message]
        [message]
            speaker=narrator
            message= _ "But what can you do? You do not have what it takes to fight the void on your own."
        [/message]
        [message]
            speaker=Yumi
            message= _ "I'm... so weak."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "(frowns) Aren't we all?"
        [/message]
        {COLOR_ADJUST -80 -80 -80}
    [/event]

    [event]
        name=time over
        [store_unit]
            [filter]
                id=Yumi
            [/filter]
            variable=yumi
        [/store_unit]
        [unit]
            type=Fake Shadow Fae
            id=Fake Yumi
            name=_ "Yumi"
            random_traits=no
            side=4
            x,y=$yumi.x,$yumi.y
        [/unit]
        {CLEAR_VARIABLE yumi}
        {DELAY 500}
        [message]
            speaker=Fake Yumi
            message= _ "Why do you keep fighting?"
        [/message]
        [message]
            speaker=Yumi
            message= _ "Because... because-"
        [/message]
        [message]
            speaker=narrator
            message= _ "You think it is a power you can use. That may be true, but it is not something you can control."
        [/message]
        [message]
            speaker=Yumi
            message= _ "But- I-"
        [/message]
        [message]
            speaker=Fake Yumi
            message= _ "Shouldn't we just give up?"
        [/message]
        [message]
            speaker=Yumi
            message= _ "(whispers) Give up?"
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "Give up on what?"
        [/message]
        [message]
            speaker=Yumi
            message= _ "(whispers) Shouldn't we try?"
        [/message]
        {DELAY 1500}
        {COLOR_ADJUST -85 -85 -85}
        [message]
            speaker=Fake Yumi
            message= _ "That takes too much effort. Let's let it all disappear."
        [/message]
        [message]
            speaker=Yumi
            message= _ "(whispers) But, my friends..!"
        [/message]
        [message]
            speaker=Fake Yumi
            message= _ "They're not really-"
        [/message]
        [message]
            speaker=Yumi
            message= _ "They are! They'll prove you wrong. I trust them. I'm not scared of them."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "Of... course. Who exactly are you referring to?"
        [/message]
        [message]
            speaker=Yumi
            message= _ "(bites lip)"
        [/message]
        [message]
            speaker=narrator
            message= _ "She is the one. She has seen it too. The other two cannot help you, but she could... if you would just let her."
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "You don't have to be afraid. You can tell me your secrets. This'll all stay between us. Okay? I won't tell anyone else."
        [/message]
        [message]
            speaker=Fake Yumi
            message= _ "Let's just let her handle it. A small sacrifice is nothing if she actually knows how to stop it."
        [/message]
        [message]
            speaker=Yumi
            message= _ "I... don't... want to."
        [/message]
        {COLOR_ADJUST -90 -90 -90}
        [message]
            speaker=Merthiaal
            message= _ "Excuse me?"
        [/message]
        [message]
            speaker=narrator
            message= _ "You and your friends, you are powerless by yourselves."
        [/message]
        [message]
            speaker=Yumi
            message= _ "We're not helpless!"
        [/message]
        {COLOR_ADJUST -95 -95 -95}
        [message]
            speaker=Merthiaal
            message= _ "So she is not talking to me. That means..."
        [/message]
        [message]
            speaker=Fake Yumi
            message= _ "She's looking at you. Are you just going to stand there?"
        [/message]
        [message]
            speaker=Yumi
            message= _ "(holds head in hands) No! No, I mean, I know, but-"
        [/message]
        {COLOR_ADJUST -100 -100 -100}
        [message]
            speaker=narrator
            message= _ "You would fight a Guardian?"
        [/message]
        [message]
            speaker=Yumi
            message= _ "N-no no no. I just..."
        [/message]
        {COLOR_ADJUST -105 -105 -105}
        [message]
            speaker=Merthiaal
            message= _ "Tell me. Who are you talking to? And what are you referring to as 'we'? Friends, perhaps?"
        [/message]
        [message]
            speaker=Fake Yumi
            message= _ "She knows about Esther and Aryel."
        [/message]
        [message]
            speaker=Yumi
            message= _ "I-I don't have friends."
        [/message]
        {COLOR_ADJUST -110 -110 -110}
        [message]
            speaker=Merthiaal
            message= _ "That's not true. You can't lie to me. You are going to tell me everything-"
        [/message]
        [message]
            speaker=Yumi
            message= _ "(looks around frantically) No!"
        [/message]
        {COLOR_ADJUST -115 -115 -115}
        [message]
            speaker=Merthiaal
            message= _ "She's starting to panic. Is it because of me, or because of something else?"
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "Come now. It won't hurt. I'm just trying to-"
        [/message]
        [message]
            speaker=Yumi
            message= _ "(shakes head vehemently) S-stop! Please... please- j-just... get out of my head!"
        [/message]
        {COLOR_ADJUST -120 -120 -120}
        [message]
            speaker=Fake Yumi
            message= _ "We have to get out of here, now!"
        [/message]
        [message]
            speaker=narrator
            message= _ "There is no escape. It is coming."
        [/message]
        [message]
            speaker=Yumi
            message= _ "Get out!"
        [/message]
        {COLOR_ADJUST -140 -140 -140}
        [message]
            speaker=Merthiaal
            message= _ "What the-"
        [/message]
        {COLOR_ADJUST -170 -170 -170}
        [message]
            speaker=Merthiaal
            message= _ "She's forcibly removing us from her mind! She has that kind of power?"
        [/message]
        [kill]
            side=2
        [/kill]
        [kill]
            side=3
        [/kill]
        [kill]
            side=5
        [/kill]
        {DELAY 750}
        {COLOR_ADJUST -210 -210 -210}
        [message]
            speaker=Yumi
            message= _ "Leave!"
        [/message]
        [message]
            speaker=Merthiaal
            message= _ "But-"
        [/message]
        [kill]
            id=Merthiaal
        [/kill]
        {DELAY 750}
        {COLOR_ADJUST -255 -255 -255}
        [hide_unit]
        [/hide_unit]
        {DELAY 2000}

        [endlevel]
            result=victory
            bonus=yes
            {NEW_GOLD_CARRYOVER 100}
            replay_save=no
            carryover_report=no
            linger_mode=no
            next_scenario=11_Frozen_Skies
        [/endlevel]
    [/event]

    # don't forget to unstore Esther
    [event]
        name=victory
        [kill]
            side=1
            type=Manifestation
        [/kill]
        [unstore_unit]
            variable=esther_tmp
            find_vacant=yes
        [/unstore_unit]
        [clear_menu_item]
            id=recruit_manifestation
        [/clear_menu_item]
        {CLEAR_VARIABLE esther_tmp}
        {CLEAR_VARIABLE new_terrain}
    [/event]

    [event]
        name=last breath
        [filter]
            id=Yumi
        [/filter]
        [message]
            speaker=Yumi
            message= _ "(gasps)"
        [/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
#undef REGENERATE_TERRAIN