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

  <dialogue id="8">
    <mood value="0"/>
    <enter id="1" image="0" left="1" block="0"/>
    <enter id="2" image="1017" right="1" pitch="0.95"/>

    <goto id="5" flag="Quest-Mushrooms" value="0"/>
    <goto id="5" flag="Quest-Mushrooms" value="2"/>
    <goto id="666" item="Mushroom"/>
    <goto id="5"/>
    <label id="666"/>
    <goto id="3" item="Acorns"/>

    <label id="5"/>
    <text id="2" text="Hey there, neighbor. Can I help you with something?"/>

    <goto id="900" flag="D8-C2" value="1"/>
    <label id="6"/>
    <choices>
      <choice text="Nice ranch!" name="D8-C1">
        <mood value="1"/>
        <text id="1" text="Nice ranch you've got here, Zachary!"/>
        <text id="2" text="Thanks! Taking care of animals sure is hard work but I wouldn't want to change it for the world."/>
        <text id="2" text="Seeing my little critters' happy faces makes it all worth while!"/>
        <mood value="0"/>
      </choice>
      <choice text="Been ranching long?" name="D8-C3" flag="D8-C1">
        <mood value="1"/>
        <text id="1" text="Have you been in the ranching business a long time?"/>
        <text id="2" text="Indeed I have. Been a rancher my whole life, and my father was a rancher before me."/>
        <text id="2" text="His father was a rancher as well, as was his grandfather."/>
        <mood value="2"/>
        <text id="2" text="My dad's grandfather's father was a contortionist, though."/>
        <text id="2" text="But at least he married a rancher's daughter, so he became a rancher too."/>
        <mood value="0"/>
      </choice>
      <choice text="What's it like?" name="D8-C4" flag="D8-C3">
        <text id="1" text="What's it like, being a rancher? I'm just starting out myself now."/>
        <text id="2" text="Then you probably haven't fully experienced the joy of ranching yet."/>
        <text id="2" text="The pleasure of an honest day's work, the thrill of working with your hands..."/>
        <mood value="4"/>
        <text id="1" text="...the pains of waking up with a sore back..."/>
        <text id="2" text="What are you, mouse or mosquito? You'll get used to it!"/>
        <mood value="0"/>
      </choice>
      <choice text="Seen any glasses?" name="D8-C5" flag="Quest-Glasses" value="1">
        <text id="1" text="Was Barber Jack here recently?"/>
        <text id="2" text="He sure was, and a mighty good job he did! He gave all of my animals a proper makeover."/>
        <mood value="1"/>
        <text id="1" text="Isn't that just a tad..."/>
        <text id="2" text="Overzealous?"/>
        <text id="1" text="Yeah, let's go with that word."/>
        <mood value="0"/>
        <text id="2" text="Not at all! Only the best is good enough for my cute little beasties!"/>
        <text id="1" text="O-kay. Well... Apparently Jack lost his glasses around here. Have you seen them?"/>
        <text id="2" text="Well, no. But he was standing over there by the pen. Feel free to look around."/>
      </choice>
      <choice text="Seen my parents?" name="D8-C2">
        <text id="1" text="You live pretty close to Wildhollow... Do you know what happened to my parents?"/>
        <text id="2" text="There were blazing lights and strange noises coming from the ranch, but I never got there in time to see what happened to your mom and dad."/>
        <text id="2" text="Villager was out chatting with the animals - he might have seen something."/>
        <goto id="900"/>
      </choice>
      <choice text="Villager?" flag="D8-C2" value="1">
        <text id="1" text="Villager? Who's that?"/>
        <text id="2" text="Villager is a handyman who helps with chores around here. He's standing over there by the fence."/>
        <flag name="D8-X1" value="2"/>
      </choice>
      <choice text="Need any help?" flag="Quest-Mushrooms" value="0">
        <mood value="1"/>
        <text id="1" text="Do you need help with anything?"/>
        <text id="2" text="Well... Ranching is hard work, as you'll find out for yourself. The li'l critters always need to have a good supply of food."/>
        <text id="2" text="If you could bring me some acorns and a mushroom it would be very helpful."/>
        <text id="1" text="No problem! I can do this."/>
        <enter id="5" info="2"/>
        <exit id="5"/>
        <flag name="Quest-Mushrooms"/>
        <text id="2" text="Great! You should be able to find them both in the Creepy Woods to the west."/>
        <mood value="0"/>
      </choice>
      <choice text="Any animals for sale?" flag="Quest-Repair" value="2">
        <goto id="2" flag="Quest-Repair" value="2"/>
        <text id="1" text="Hey Zachary, do you have any animals I could buy?"/>
        <text id="2" text="I sure do!"/>
        <mood value="1"/>
        <text id="1" text="That's great!"/>
        <mood value="2"/>
        <text id="2" text="But where are you going to keep them? In your cabin? In your pants? You need a fence!"/>
        <text id="2" text="Ask me again when you've repaired Wildhollow!"/>
        <mood value="0"/>
      </choice>
      <choice text="How do I breed animals?" name="D8-C6" flag="Quest-Repair" value="2">
        <mood value="0"/>
        <text id="1" text="Say, Zachary... You're a man of the world, aren't you?"/>
        <text id="2" text="I sure am!"/>
        <text id="1" text="My parents used to breed animals, but I really don't know how to do it."/>
        <text id="1" text="Can you teach me?"/>
        <mood value="1"/>
        <text id="2" text="Of course! That I can do."/>
        <mood value="0"/>
        <text id="2" text="But I want to see that you're taking good care of your animals before that."/>
        <text id="2" text="If you show me an animal you've taken really good care of, I will teach you the secrets of breeding!"/>
        <enter id="5" info="2"/>
        <exit id="5"/>
        <flag name="Quest-Breeding"/>
      </choice>
      <choice text="Take a look at this animal!" flag="Quest-Breeding" value="1">
        <mood value="1"/>
        <text id="1" text="I think I've made one of my animals really healthy! Wanna see it?"/>
        <text id="2" text="Sure thing! Let's see what you've got there!"/>
        <flag name="Misc-Breeding"/>
        <flag name="SkipMusic" value="1"/>
        <location id="3"/>
        <goto id="1"/>
      </choice>
      <choice text="Wanna buy some animal food?">
        <mood value="1"/>
        <text id="1" text="Wanna buy some food for the animals?"/>
        <text id="2" text="Sure thing!"/>
        <goto id="7" item="Apple"/>
        <goto id="7" item="Berries"/>
        <goto id="7" item="Mushroom"/>
        <goto id="7" item="Acorns"/>
        <mood value="0"/>
        <text id="2" text="But you'd better have some in your inventory first."/>
      </choice>
      <choice text="How's everything?" flag="D8-C1">
        <mood value="1"/>
        <text id="1" text="How's everything today, Zachary?"/>
        <text id="2" text="Just fine and dandy!"/>
        <text id="2" text="Enjoying the sun for a little while before I tend the animals."/>
        <mood value="0"/>
      </choice>
      <choice text="Have you heard of a dragon?" name="DR4" flag="Quest-Receipt" value="2">
        <text id="1" text="Hey, have you heard of a dragon somewhere around here?"/>
        <text id="2" text="Nah, can't help you there."/>
        <flag name="DragonRumor" add="1"/>
      </choice>
      <choice text="Bye!">
        <goto id="1"/>
      </choice>
    </choices>

    <label id="2"/>
    <game id="3"/>
    <goto id="1"/>

    <label id="3"/>
    <mood value="1"/>
    <text id="1" text="I found both acorns and a mushroom for you, Zachary!"/>
    <text id="2" text="That's splendid work, $NAME$! Here's a reward for your hard work."/>
    <enter id="5" message="1"/>
    <text id="5" text="You received $100!"/>
    <exit id="5"/>
    <flag name="Money" add="100"/>
    <flag name="Quest-Mushrooms" value="2"/>
    <enter id="5" item="Mushroom" remove="1"/>
    <exit id="5"/>
    <enter id="5" item="Acorns" remove="1"/>
    <exit id="5"/>
    <item name="Mushroom" number="-1"/>
    <item name="Acorns" number="-1"/>
    <enter id="5" info="4"/>
    <exit id="5"/>
    <text id="2" text="If you ever find yourself with a surplus of animal food, just let me know - I'll take it off your hands."/>
    <mood value="0"/>
    <goto id="6"/>

    <label id="7"/>
    <goto id="100" item="Apple"/>
    <goto id="100" item="Berries"/>
    <goto id="100" item="Acorns"/>
    <goto id="100" item="Mushroom"/>
    <goto id="6"/>
    <label id="100"/>
    <choices text="Sell what?">
      <choice text="All apples" item="Apple">
        <goto id="40"/>
      </choice>
      <choice text="All berries" item="Berries">
        <goto id="60"/>
      </choice>
      <choice text="All acorns" item="Acorns">
        <goto id="70"/>
      </choice>
      <choice text="All mushrooms" item="Mushroom">
        <goto id="80"/>
      </choice>
      <choice text="I changed my mind...">
        <goto id="6"/>
      </choice>
    </choices>

    <label id="40"/>
    <enter id="5" item="Apple" remove="1"/>
    <exit id="5"/>
    <flag name="Misc-SellIndex" value="0"/>
    <flag name="Misc-SellValue" value="1"/>
    <game id="13"/>
    <goto id="99"/>

    <label id="99"/>
    <text id="2" text="Thanks! Here's $$FLAG_VALUE$ for them."/>
    <enter id="5" message="1"/>
    <text id="5" text="You received $$FLAG_VALUE$!"/>
    <exit id="5"/>
    <goto id="7"/>

    <label id="60"/>
    <enter id="5" item="Berries" remove="1"/>
    <exit id="5"/>
    <flag name="Misc-SellIndex" value="3"/>
    <flag name="Misc-SellValue" value="2"/>
    <game id="13"/>
    <goto id="99"/>

    <label id="70"/>
    <enter id="5" item="Acorns" remove="1"/>
    <exit id="5"/>
    <flag name="Misc-SellIndex" value="4"/>
    <flag name="Misc-SellValue" value="3"/>
    <game id="13"/>
    <goto id="99"/>

    <label id="80"/>
    <enter id="5" item="Mushroom" remove="1"/>
    <exit id="5"/>
    <flag name="Misc-SellIndex" value="5"/>
    <flag name="Misc-SellValue" value="3"/>
    <game id="13"/>
    <goto id="99"/>

    <label id="900"/>
    <goto id="6" flag="D9-F1" value="0"/>
    <flag name="D8-C2" value="2"/>
    <goto id="6"/>

    <label id="1"/>
    <exit id="1"/>
    <exit id="2"/>
  </dialogue>

</dialogues>
