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

  <dialogue id="5">
    <mood value="0"/>
    <enter id="1" image="0" left="1" block="0"/>
    <enter id="2" image="1012" right="1" pitch="1.0"/>

    <goto id="4" item="Small fish" flag="Quest-Fish" value="1"/>
    <goto id="4" item="Big fish" flag="Quest-Fish" value="1"/>

    <text id="2" text="Hey there, $NAME$! How are you holding up?" flag="D3-F1" value="0"/>
    <text id="1" text="I'm doing my best, Bill, but it's hard coping with all that's happened here." flag="D3-F1" value="0"/>
    <text id="2" text="I sure can understand that. But hang in there! You'll get it all sorted out again." flag="D3-F1" value="0"/>
    <text id="2" text="Hey there, $NAME$! What can I do for you today?" flag="D3-F1"/>

    <label id="7"/>
    <flag name="HasFish" value="0"/>
    <goto id="3" item="Small fish"/>
    <goto id="3" item="Big fish"/>
    <goto id="2"/>
    <label id="3"/>
    <flag name="HasFish" value="1"/>

    <label id="2"/>
    <flag name="D3-F1"/>
    <choices>
      <choice text="I met your brother!" flag="Quest-Wildman" value="5">
        <mood value="1"/>
        <text id="1" text="Bill, I met your brother Brobert!"/>
        <text id="2" text="I haven't seen Brobert for years! How is he? Does he still run that Adventurers Guild?"/>
        <text id="1" text="He sure does, and as far as I could say he's doing just fine!"/>
        <text id="2" text="That's great!"/>
        <text id="2" text="Oh, the memories this brings back. Me and Brobert used to spend most of our summers in Tawyn City."/>
        <text id="2" text="He was always such a rascal, getting me into all kinds of trouble."/>
        <text id="2" text="I remember one time when he was still an apprentice at the Adventurers Guild..."/>
        <text id="2" text="He got me to smuggle ale to him when he was supposed to be scrubbing the bathroom!"/>
        <text id="1" text="Really? How did you manage that?"/>
        <text id="2" text="Well, we noticed that one of the boards was loose. So I simply handed him the bottles from outside."/>
        <text id="1" text="Now, isn't that interesting... I bet you could smuggle things OUT from the bathroom as well..."/>
        <enter id="5" info="3"/>
        <exit id="5"/>
        <flag name="Quest-Wildman" value="6"/>
        <mood value="0"/>
      </choice>
      <choice text="How's business?" name="D3-C1">
        <text id="1" text="How's business at the inn?"/>
        <text id="2" text="Not bad, not bad. Adventurers are passing through now and then - in fact there are two right here in town!"/>
        <text id="2" text="They're a weird pair alright. Not exactly the sharpest swords in the armory, so to speak."/>
      </choice>
      <choice text="How's business?" flag="D3-C1" value="7">
        <text id="1" text="How's business, Bill?"/>
        <text id="2" text="Very fine. My fish stew has been selling like crazy lately!"/>
      </choice>
      <choice text="Sharpest swords?" flag="D3-C1">
        <text id="1" text="...Sharpest swords in the armory?"/>
        <text id="2" text="Yeah, you know... Not the brightest stars in the sky..."/>
        <flag name="D3-C1" value="2"/>
      </choice>
      <choice text="Brightest stars?" flag="D3-C1" value="2">
        <text id="1" text="...Brightest stars in the sky? What do you mean?!"/>
        <text id="2" text="Ehm... Missing a spell from the spellbook?"/>
        <flag name="D3-C1" value="3"/>
      </choice>
      <choice text="Missing a spell?" flag="D3-C1" value="3">
        <text id="1" text="Missing a spell? So, they're mages then?"/>
        <text id="2" text="No... I mean, like, a few cards short of a full deck."/>
        <flag name="D3-C1" value="4"/>
      </choice>
      <choice text="Cards? Deck?" flag="D3-C1" value="4">
        <text id="1" text="Bill, what are you talking about? Are they gamblers?"/>
        <text id="2" text="No! Not like that! ...They're a few inches short of a quarterstaff!"/>
        <flag name="D3-C1" value="5"/>
      </choice>
      <choice text="Quarterstaff?" flag="D3-C1" value="5">
        <text id="1" text="First you mention swords and now quarterstaffs. They have a lot of weapons, then?"/>
        <text id="2" text="No no no! I don't mean it literally!"/>
        <mood value="1"/>
        <text id="1" text="Relax, Bill, I'm just pulling your leg!"/>
        <text id="2" text="Phew! I was running out of ways to put it."/>
        <mood value="0"/>
        <flag name="D3-C1" value="6"/>
      </choice>
      <choice text="Any info about my parents?" name="D3-C2" flag="Quest-Parents" value="1">
        <text id="1" text="Do you know what happened to my parents?"/>
        <text id="2" text="Well, I did hear a rumor that a mysterious man in a wide-brimmed hat was seen around Wildhollow at the time..."/>
        <enter id="5" info="3"/>
        <exit id="5"/>
        <flag name="Quest-Parents" value="2"/>
        <text id="1" text="Hmm... A mysterious man in a wide-brimmed hat? Where did he go?"/>
        <text id="2" text="Sorry, that's all I know. Someone else might be able to tell you more."/>
      </choice>
      <choice text="What lies to the north-west?" flag="Quest-Parents" value="3">
        <text id="1" text="Say, do you know what lies in the mountains to the north-west from here?"/>
        <text id="1" text="I suspect that I need to go there to find out more about my parents."/>
        <text id="2" text="North-west? That's where the dwarven city of Steinheim Keep is located."/>
        <enter id="5" info="1"/>
        <exit id="5"/>
        <flag name="Location-Keep"/>
        <flag name="Location-Keep-Show"/>
        <text id="2" text="But I'd be careful if I were you. To get there one has to pass through the Creepy Woods, and they're...well...really creepy!"/>
        <flag name="Quest-Parents" value="4"/>
      </choice>
      <choice text="Need help with anything?" name="D3-C3">
        <text id="1" text="Bill, do you need help with anything? I'm a bit short on cash, and..."/>
        <text id="2" text="I understand! And I actually DO need help."/>
        <text id="2" text="I've been serving my award-winning fish stew at the Angry Weasel daily for years and years, but tonight we don't have any fish!"/>
        <text id="2" text="Could you catch some fish for me?"/>
        <mood value="1"/>
        <text id="1" text="Sure, I can do that!"/>
        <text id="2" text="That would be great! Here, take this fishing rod."/>
        <enter id="5" item="Fishing rod"/>
        <exit id="5"/>
        <item name="Fishing rod"/>
        <enter id="5" info="2"/>
        <exit id="5"/>
        <flag name="Quest-Fish"/>
        <text id="2" text="Go to the Pork 'n Beans Lake nearby, and come back to me when you've caught something."/>
        <text id="2" text="I'll be sure to have a reward for you if you help me out."/>
  	    <mood value="0"/>
        <goto id="1"/>
      </choice>
      <choice text="I've got fish for you!" flag="HasFish">
        <goto id="8"/>
      </choice>
      <choice text="Have you heard of a dragon?" name="DR2" flag="Quest-Receipt" value="2">
        <text id="1" text="Bill, have you heard of a dragon somewhere around here?"/>
        <text id="2" text="Nope, haven't heard anything like that at all."/>
        <flag name="DragonRumor" add="1"/>
      </choice>
      <choice text="Why the Angry Weasel?" name="D3-C4">
        <text id="1" text="Why do you call this inn the Angry Weasel?"/>
        <text id="2" text="It was my dad who named the place."/>
        <text id="2" text="He came here from Porkfylke where he was weasel-in-your-pants winner five years running."/>
        <mood value="2"/>
        <text id="2" text="Apparently it's no easy task, for those weasels are pretty angry..."/>
        <move id="1" x="224" frames="25"/>
        <text id="1" text="Okay! Okay! I don't think I want to know any details."/>
        <move id="1" x="256" frames="25"/>
        <mood value="0"/>
      </choice>
      <choice text="Fine day we're having.">
        <mood value="1"/>
        <text id="1" text="My, isn't the weather just lovely!"/>
        <text id="2" text="Sure is. Just like yesterday. It never seems to rain here!"/>
        <mood value="0"/>
      </choice>
      <choice text="Bye!">
        <goto id="1"/>
      </choice>
    </choices>

    <label id="8"/>
    <goto id="100" item="Small fish"/>
    <goto id="100" item="Big fish"/>
    <goto id="7"/>
    <label id="100"/>
    <choices text="Sell what fish?">
      <choice text="All small fish" item="Small fish">
        <goto id="50"/>
      </choice>
      <choice text="All big fish" item="Big fish">
        <goto id="60"/>
      </choice>
      <choice text="I've changed my mind...">
        <goto id="7"/>
      </choice>
    </choices>

    <label id="50"/>
    <enter id="5" item="Small fish" remove="1"/>
    <exit id="5"/>
    <flag name="Misc-SellIndex" value="1"/>
    <flag name="Misc-SellValue" value="1"/>
    <game id="13"/>
    <enter id="5" message="1"/>
    <text id="5" text="You received $$FLAG_VALUE$!"/>
    <exit id="5"/>
    <goto id="8"/>

    <label id="60"/>
    <enter id="5" item="Big fish" remove="1"/>
    <exit id="5"/>
    <flag name="Misc-SellIndex" value="2"/>
    <flag name="Misc-SellValue" value="5"/>
    <game id="13"/>
    <enter id="5" message="1"/>
    <text id="5" text="You received $$FLAG_VALUE$!"/>
    <exit id="5"/>
    <goto id="8"/>

    <label id="4"/>
    <mood value="1"/>
    <text id="1" text="Bill, I caught some fish for you!"/>
    <text id="2" text="Just in time! You're my saviour! Here, hand me that quickly."/>
    <goto id="5" item="Big fish"/>
    <enter id="5" item="Small fish" remove="1"/>
    <exit id="5"/>
    <item name="Small fish" number="-1"/>
    <goto id="6"/>
    <label id="5"/>
    <enter id="5" item="Big fish" remove="1"/>
    <exit id="5"/>
    <item name="Big fish" number="-1"/>
    <label id="6"/>
    <enter id="5" info="4"/>
    <exit id="5"/>
    <text id="2" text="And here's the reward I promised you."/>
    <enter id="5" message="1"/>
    <text id="5" text="You received $50!"/>
    <flag name="Money" add="50"/>
    <exit id="5"/>
    <flag name="Quest-Fish" value="2"/>
    <text id="2" text="You know, I could always use more fish. Keep that fishing rod, and just let me know if you have more fish for me."/>
    <mood value="0"/>
    <goto id="7"/>

    <label id="1"/>
    <goto id="20" flag="D3-C1" value="1"/>
    <goto id="20" flag="D3-C1" value="2"/>
    <goto id="20" flag="D3-C1" value="3"/>
    <goto id="20" flag="D3-C1" value="4"/>
    <goto id="20" flag="D3-C1" value="5"/>
    <goto id="22" flag="D3-C1" value="6"/>
    <goto id="21"/>
    <label id="20"/>
    <flag name="D3-C1" value="0"/>
    <goto id="21"/>
    <label id="22"/>
    <flag name="D3-C1" value="7"/>
    <label id="21"/>
    <exit id="1"/>
    <exit id="2"/>
  </dialogue>

</dialogues>
