<?xml version="1.0"?>
<dialogues>

  <dialogue id="9">
    <mood value="0"/>
    <enter id="1" image="0" left="1" block="0"/>
    <enter id="2" image="1016" right="1" pitch="1.10"/>

    <goto id="1000" flag="Misc-GameOver"/>

    <goto id="20" flag="Quest-Hat" value="3"/>
    <goto id="20" flag="Quest-Hat" value="1"/>
    <goto id="21" flag="Quest-Hat" value="2"/>
    <goto id="20" flag="Quest-Repair" value="0"/>
    <goto id="20" flag="Quest-Repair" value="1"/>
    <goto id="20" flag="D9-F2" value="0"/>
    <text id="2" text="*Sniff* *Sniff*"/>
    <text id="1" text="What's the matter, Villager? You look totally down in the dumps!"/>
    <text id="2" text="I am! I'm so depressed I just wanna lay down and weep!"/>
    <text id="1" text="Hey, what's going on? Has something bad happened?"/>
    <mood value="2"/>
    <text id="2" text="It sure has! I lost my lucky hat!"/>
    <mood value="1"/>
    <text id="1" text="Okay, maybe not as catastrophic as I anticipated. But still bad news!"/>
    <text id="2" text="*Sob* *Sniff* *Sob*"/>
    <text id="1" text="Don't cry, Villager... I'll help you find your hat!"/>
    <text id="2" text="*Sniff* Really?"/>
    <text id="1" text="Of course!"/>
    <text id="2" text="Wow! You're the bestest!"/>
    <enter id="5" info="2"/>
    <exit id="5"/>
    <flag name="Quest-Hat" value="1"/>
    <text id="1" text="Hmm... When was the last time you saw your hat?"/>
    <text id="2" text="I dunno really... I had it last Sunday. It was a really hot day and Zachary and me went for a swim."/>
    <text id="1" text="Okay... I'm sure I'll find it if I look around!"/>
    <mood value="0"/>
    <goto id="1"/>
    <label id="21"/>
    <mood value="1"/>
    <text id="1" text="Villager, I found your hat!"/>
    <text id="2" text="Really?"/>
    <text id="1" text="It was over by the campsite close to Pork 'n Beans Lake."/>
    <text id="2" text="Oooh! Riiight! Now I remember... That's where Zachary and I had a swim!"/>
    <enter id="5" item="Lucky hat" remove="1"/>
    <exit id="5"/>
    <text id="2" text="Thanks a bunch $NAME$! Here, have a few coins as a reward."/>
    <goto id="51" flag="D9-F3" value="1"/>
    <mood value="2"/>
    <text id="1" text="Oh! But... Villager, I can't take your hard-earned savings."/>
    <text id="2" text="Uh... But I have loads and loads of these shiny coins already."/>
    <mood value="1"/>
    <text id="2" text="Zachary gives them to me now and then but I never have a use for them."/>
    <text id="1" text="Oh, I see. How much do you have exactly?"/>
    <text id="2" text="Dunno really... I can only count to a hundred."/>
    <mood value="2"/>
    <text id="2" text="So I counted up a hundred piles of a hundred coins at least."/>
    <text id="1" text="That's... A lot! You're rich as a goblin, Villager!"/>
    <mood value="1"/>
    <text id="1" text="Then I won't feel bad about taking your reward."/>
    <flag name="D9-F3" value="1"/>
    <label id="51"/>
    <enter id="5" message="1"/>
    <text id="5" text="You received $35!"/>
    <exit id="5"/>
    <flag name="Money" add="35"/>
    <flag name="Quest-Hat" value="3"/>
    <item name="Lucky hat" number="-1"/>
    <enter id="5" info="4"/>
    <exit id="5"/>
    <text id="2" text="You're great, $NAME$!"/>
    <text id="2" text="Anything else you want?"/>
    <mood value="0"/>
    <goto id="3"/>

    <label id="30"/>
    <mood value="1"/>
    <text id="1" text="Hey, wait a second! I think I already have some berries."/>
    <goto id="31"/>

    <label id="20"/>
    <goto id="10" flag="Quest-Berries" value="2"/>
    <goto id="10" flag="Quest-Berries" value="0"/>
    <goto id="11" item="Berries"/>
    <goto id="10"/>

    <label id="11"/>
    <mood value="1"/>
    <text id="1" text="Villager, good news!"/>
    <text id="2" text="Huuh?"/>
    <text id="1" text="I found some berries! Now you can feed them to Betty."/>
    <label id="31"/>
    <enter id="5" item="Berries" remove="1"/>
    <exit id="5"/>
    <text id="2" text="Wow, thanks a bunch $NAME$! Here, have some coins as a reward."/>
    <goto id="50" flag="D9-F3" value="1"/>
    <mood value="2"/>
    <text id="1" text="Oh! But... Villager, I can't take your hard-earned savings."/>
    <text id="2" text="Uh... But I have loads and loads of these shiny coins already."/>
    <mood value="1"/>
    <text id="2" text="Zachary gives them to me now and then but I never have a use for them."/>
    <text id="1" text="Oh, I see. How much do you have exactly?"/>
    <text id="2" text="Dunno really... I can only count to a hundred."/>
    <mood value="2"/>
    <text id="2" text="So I counted up a hundred piles of a hundred coins at least."/>
    <text id="1" text="That's... A lot! You're rich as a goblin, Villager!"/>
    <mood value="1"/>
    <text id="1" text="Then I won't feel bad about taking your reward."/>
    <flag name="D9-F3" value="1"/>
    <label id="50"/>
    <enter id="5" message="1"/>
    <text id="5" text="You received $20!"/>
    <exit id="5"/>
    <flag name="Money" add="20"/>
    <flag name="Quest-Berries" value="2"/>
    <item name="Berries" number="-1"/>
    <enter id="5" info="4"/>
    <exit id="5"/>
    <text id="2" text="Yay, Betty will be really happy now!"/>
    <text id="2" text="Anything else you want?"/>
    <mood value="0"/>
    <goto id="3"/>

    <label id="10"/>
    <text id="2" text="Hullo! Who are you?" flag="D9-F1" value="0"/>
    <text id="1" text="Hi there, my name's $NAME$. What's your name?" flag="D9-F1" value="0"/>
    <text id="2" text="My name's Villager!" flag="D9-F1" value="0"/>
    <text id="2" text="Hullo, $NAME$!" flag="D9-F1"/>
    <goto id="5" flag="Quest-Vengeance" value="5"/>
    <flag name="D9-F1"/>
    <label id="3"/>
    <choices>
      <choice text="Villager?" name="D9-C1">
        <text id="1" text="Villager? You know, that's just a description - not a real name."/>
        <text id="2" text="Nuh-uh! My name really is Villager!"/>
        <text id="2" text="Momma always told me that I'd never amount to nothin', so that'd be a good enough name for me."/>
      </choice>
      <choice text="You're going to do important things!" flag="D9-C1" value="1">
        <mood value="1"/>
        <text id="1" text="Villager, that's not true! I'm sure that you're going to do a bunch of good things."/>
        <text id="2" text="Gee, I dunno... Like what?"/>
        <goto id="2"/>
      </choice>
      <choice text="Have you seen my parents?" name="D9-C2" flag="D9-F2" value="0">
        <text id="1" text="Say, do you know what happened to my parents? They disappeared from Wildhollow ranch."/>
        <text id="2" text="Ooh... I'm sorry. Momma told me to not speak to strangers!"/>
        <mood value="2"/>
        <text id="1" text="But why not?! They are MY parents!"/>
        <mood value="0"/>
        <text id="2" text="Sorry! I gotta do what momma says!"/>
      </choice>
      <choice text="Have you seen my parents?" name="D9-C3" flag="D9-F2" value="1">
        <text id="1" text="Say, do you know what happened to my parents? They disappeared from Wildhollow ranch." flag="D9-C2" value="0"/>
        <text id="1" text="Now that we're friends, isn't it alright to tell me what you know about my parents?" flag="D9-C2" value="1"/>
        <text id="2" text="Uh... I guess so!" flag="D9-C2" value="1"/>
        <text id="2" text="I saw this strange man wearing a big hat, and he was sneaking around Wildhollow that night your mom and dad disappeared."/>
        <text id="2" text="He looked really weird!"/>
        <text id="1" text="Do you know where he went?"/>
        <text id="2" text="Yeah, he headed off to the mountains in the north-west!"/>
        <enter id="5" info="3"/>
        <exit id="5"/>
        <flag name="Quest-Parents" value="3"/>
        <mood value="1"/>
        <text id="1" text="Thank you very much, Villager! This was very helpful."/>
        <text id="2" text="Gee, always glad to help my friends!"/>
        <mood value="0"/>
      </choice>
      <choice text="What are you doing?" flag="D9-C4" value="0">
        <mood value="1"/>
        <text id="1" text="What are you up to today, Villager?"/>
        <text id="2" text="I'm talking to the animals!"/>
        <text id="2" text="Momma always told me to talk to plants to make them grow, so I'm talking to Zachary's animals to make them grow too."/>
        <mood value="2"/>
        <text id="1" text="..."/>
        <text id="1" text="I don't think I have the heart to tell him that it doesn't work that way."/>
        <mood value="0"/>
        <flag name="D9-C4"/>
      </choice>
      <choice text="Don't talk to strangers?" name="D9-C9" flag="D9-C2">
        <text id="1" text="Why shouldn't you talk to strangers?"/>
        <text id="2" text="Momma says they're only there to do me harm!"/>
        <text id="1" text="What other words of wisdom did your mother impart to you?"/>
        <text id="2" text="Lessee... Don't dance in darkness. Don't smell the flowers. Don't write in starlight."/>
        <mood value="2"/>
        <text id="1" text="I think your mom is a very special woman... Special indeed."/>
        <mood value="0"/>
      </choice>
      <choice text="What are you doing?" flag="D9-C4" value="2">
        <mood value="1"/>
        <text id="1" text="What are you up to today, Villager?"/>
        <text id="2" text="I'm talking to the animals!"/>
        <text id="1" text="Keep up the good work!"/>
        <mood value="0"/>
      </choice>
      <choice text="That's a very cute animal!" name="D9-C10" flag="D9-F2" value="1">
        <mood value="1"/>
        <text id="1" text="Say, that's one cute little critter there!"/>
        <text id="2" text="Yeah, that's Betty! She's a real pretty bunny beast!"/>
        <text id="2" text="She really likes berries and acorns. Too bad I don't have any berries to feed her."/>
        <text id="1" text="Why don't you have any berries? I thought you'd have a great stock of food for the animals here."/>
        <mood value="2"/>
        <text id="2" text="Yeah... We do... But I accident'lly sorta ate all the berries."/>
        <mood value="1"/>
        <text id="1" text="You rascal, you!"/>
        <text id="2" text="I didn't mean to! I was just going to try one!"/>
        <text id="2" text="Zachary will be upset if I run off to pick more. Could you help me out?"/>
        <text id="1" text="Well, alright. Where can I find these berries?"/>
        <text id="2" text="Just north of the big lake! You can't miss 'em!"/>
        <enter id="5" info="2"/>
        <exit id="5"/>
        <flag name="Quest-Berries" value="1"/>
        <goto id="30" item="Berries"/>
        <text id="2" text="Thanks a lot, $NAME$!"/>
        <mood value="0"/>
      </choice>
      <choice text="Have you heard of a dragon?" name="DR5" flag="Quest-Receipt" value="2">
        <text id="1" text="Villager, have you heard of a dragon somewhere around here?"/>
        <text id="2" text="Nuh-uh. There are no dragons here!"/>
        <flag name="DragonRumor" add="1"/>
      </choice>
      <choice text="Bye!">
        <goto id="1"/>
      </choice>
    </choices>

    <label id="2"/>
    <choices text="Response">
      <choice text="You'll become a rancher!" name="D9-C8">
        <text id="1" text="I'm sure you'll become a great rancher!"/>
        <text id="2" text="Nooo... I don't think so."/>
        <mood value="0"/>
        <text id="1" text="Why not?!"/>
        <text id="2" text="Animals make me sneeze..."/>
        <mood value="1"/>
        <goto id="2"/>
      </choice>
      <choice text="Maybe you have hidden powers!" name="D9-C5">
        <text id="1" text="You might have hidden magical powers, and become a great wizard!"/>
        <mood value="0"/>
        <text id="2" text="Nah... Not me. My brother's the one who got all the magic. They tested me as well, but I had nothin'."/>
        <mood value="1"/>
        <goto id="2"/>
      </choice>
      <choice text="You could become a famous writer!" name="D9-C6">
        <text id="1" text="Maybe you're the one who's going to write the big novel of this age! A world in turmoil, seen from an innocent pair of eyes..."/>
        <mood value="0"/>
        <text id="2" text="Sorry, $NAME$... I can't even read."/>
        <mood value="1"/>
        <goto id="2"/>
      </choice>
      <choice text="You're a good friend to people!" name="D9-C7">
        <text id="1" text="I bet you're a great friend to a lot of people!"/>
        <text id="2" text="Gosh, that's true! I always try to be nice to everyone."/>
        <text id="1" text="There you go. That's a very important thing!"/>
        <text id="2" text="Thanks $NAME$, you really cheered me up! D'ya wanna be my friend?"/>
        <text id="1" text="Sure, I'd love that!"/>
        <flag name="D9-C1" value="2"/>
        <flag name="D9-F2"/>
        <mood value="0"/>
        <goto id="3"/>
      </choice>
      <choice text="Hmm... Maybe your mom was right.">
        <mood value="0"/>
        <text id="1" text="Well... Your mom might have been right after all."/>
        <goto id="3"/>
      </choice>
    </choices>

    <label id="1000"/>
    <mood value="1"/>
    <text id="2" text="How did it go, $NAME$? Did you defeat the bad guy?" flag="Misc-GameOver"/>
    <text id="1" text="I sure did, and I never could have done it without your help!" flag="Misc-GameOver"/>
    <text id="1" text="But I forgave him in the end. He wasn't really ALL bad." flag="Misc-Endgame" value="1"/>
    <text id="1" text="He's rotting away in prison right now!" flag="Misc-Endgame" value="2"/>
    <mood value="0"/>
    <text id="1" text="I keep wondering if I made the right choice, though... Maybe he deserved something else." flag="Misc-GameOver"/>
    <text id="2" text="Aw, don't think like that!" flag="Misc-GameOver"/>
    <text id="2" text="No use crying over spilled milk, that's what my momma always used to say." flag="Misc-GameOver"/>
    <mood value="1"/>
    <text id="1" text="I guess you're right! Thanks a lot, Villager." flag="Misc-GameOver"/>
    <text id="2" text="Any time!" flag="Misc-GameOver"/>
    <goto id="1"/>

    <label id="5"/>
    <mood value="4"/>
    <text id="2" text="What's the matter? You look pretty down today!"/>
    <text id="1" text="Well... I'm having some troubles, but I won't bother you with that."/>
    <text id="2" text="Nah! I'm your friend, $NAME$! Friends aren't never bothering friends."/>
    <mood value="0"/>
    <text id="1" text="Thanks, but it's nothing you can do anything about anyway."/>
    <mood value="3"/>
    <text id="1" text="You see, this evil man kidnapped my parents..."/>
    <text id="2" text="No!"/>
    <mood value="0"/>
    <text id="1" text="I got my parents back..."/>
    <text id="2" text="Yay!"/>
    <mood value="3"/>
    <text id="1" text="And now I want to get back at him..."/>
    <text id="2" text="Yeah!"/>
    <mood value="4"/>
    <text id="1" text="But I can't..."/>
    <text id="2" text="Aww! Why not?"/>
    <mood value="3"/>
    <text id="1" text="He's protecting himself with a fierce big beast!"/>
    <text id="2" text="That's not fair!"/>
    <mood value="0"/>
    <text id="1" text="Exactly my sentiment! So you see, I have a bit of a problem. I need to get past that beast."/>
    <text id="2" text="Hmm..."/>
    <wait value="0.5"/>
    <text id="2" text="Hmmmmm..."/>
    <wait value="0.5"/>
    <text id="2" text="I'm just a dumb villager, but to me it seems like you oughtta get a beast of your own to take care of his beast."/>
    <wait value="1"/>
    <mood value="2"/>
    <wait value="2"/>
    <mood value="1"/>
    <text id="1" text="Villager, you're absolutely right! That's a brilliant idea!"/>
    <text id="1" text="I can breed animals, and I'm sure I can come up with a breed that can defeat his creature!"/>
    <text id="1" text="You're a genius!"/>
    <text id="2" text="Aww, shucks! I'm just glad I could help!"/>
    <text id="1" text="Thanks a lot, Villager!"/>
    <enter id="5" info="3"/>
    <exit id="5"/>
    <flag name="Quest-Vengeance" value="6"/>

    <label id="1"/>
    <goto id="4" flag="D9-C4" value="0"/>
    <flag name="D9-C4" value="2"/>
    <label id="4"/>
    <exit id="1"/>
    <exit id="2"/>
  </dialogue>

</dialogues>
