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

  <dialogue id="19">
    <mood value="0"/>
    <enter id="1" image="0" left="1" block="0"/>
    <enter id="2" image="1012" right="1" block="0" pitch="1.0"/>
    <add_image id="2" image="568" x="12" y="-118"/>
    <wait value="0.5"/>
    <goto id="4" flag="D19-C4"/>
    <text id="2" text="Hello, and welcome! My name is Brobert." flag="D19-C4" value="0"/>
    <mood value="2"/>
    <text id="1" text="Pleased to meet you...Brobert! I'm $NAME$." flag="D19-C4" value="0"/>
    <text id="1" text="Isn't Brobert a pretty...unusual name?" flag="D19-C4" value="0"/>
    <mood value="0"/>
    <text id="2" text="What can I say? Mom and dad could never decide if I should be called Bob or Robert." flag="D19-C4" value="0"/>
    <label id="4"/>
    <text id="2" text="Hello again, $NAME$!" flag="D19-C4"/>
    <flag name="D19-C4"/>

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

    <flag name="D19-C5" value="0"/>
    <goto id="7" flag="Quest-Vengeance" value="2"/>
    <goto id="9"/>
    <label id="7"/>
    <goto id="8" flag="Quest-Guild" value="3"/>
    <goto id="9"/>
    <label id="8"/>
    <flag name="D19-C5"/>
    <label id="9"/>

    <choices>
      <choice text="What's this place?" name="D19-C1">
        <mood value="1"/>
        <text id="1" text="Hey there! What kind of place is this?"/>
        <text id="2" text="Why, this is the Adventurers Guild! Can't you tell by all the adventurous items on the walls?"/>
        <text id="1" text="Oh, of course. I should have known. Rope and torches is what defines an adventurer, after all!"/>
        <text id="2" text="Watch that sarcasm, kid."/>
        <text id="2" text="The other clue would have been the sign outside."/>
        <mood value="2"/>
        <text id="2" text="You know, the sign with a sword. The sign that says Adventurers Guild."/>
        <text id="1" text="Touché!"/>
        <mood value="0"/>
      </choice>
      <choice text="Can I join the guild?" name="D19-C3" flag="D19-C1">
        <mood value="1"/>
        <text id="1" text="Can I join the Adventurers Guild? I'm really adventurous!"/>
        <text id="2" text="Kid, I'm not sure this is the thing for you."/>
        <text id="1" text="Come on! I've already solved lots of quests!"/>
        <text id="2" text="Quests, eh? Like what?"/>
        <mood value="0"/>
        <text id="1" text="Um... I've... Found a pair of glasses. And got Lord Harumphsson a false beard. And-"/>
        <mood value="4"/>
        <text id="2" text="Haha, those aren't REAL quests. A REAL quest is something like rescuing a princess, or destroying a dark wizard."/>
        <mood value="2"/>
        <text id="2" text="Or eating my wife's cooking."/>
        <mood value="0"/>
        <text id="2" text="Anyway, in order to join the guild you have to prove that you've performed a heroic deed."/>
        <text id="1" text="A heroic deed?"/>
        <text id="2" text="Yep. You have to prove that you've got what it takes to be an adventurer before I'll even let you near the application form!"/>
        <enter id="5" info="2"/>
        <exit id="5"/>
        <flag name="Quest-Guild"/>
        <mood value="3"/>
        <text id="1" text="Alright then, just you wait! I'll show you heroics."/>
        <text id="2" text="You do that kid. But I won't be holding my breath in the meantime."/>
        <mood value="0"/>
      </choice>
      <choice text="Do you have a bathroom?" flag="Quest-Wildman" value="4">
        <text id="1" text="Do you have a bathroom here?"/>
        <text id="2" text="Well, yes, it's in the back. Knock yourself out."/>
        <goto id="3"/>
      </choice>
      <choice text="Do you have a bathroom?" flag="Quest-Wildman" value="5">
        <text id="1" text="Do you have a bathroom here?"/>
        <text id="2" text="Well, yes, it's in the back. Knock yourself out."/>
        <goto id="3"/>
      </choice>
      <choice text="Do you have a bathroom?" flag="Quest-Wildman" value="6">
        <text id="1" text="Do you have a bathroom here?"/>
        <text id="2" text="Well, yes, it's in the back. Knock yourself out."/>
        <goto id="2"/>
      </choice>
      <choice text="I have a certificate!" item="Hero certificate">
        <mood value="1"/>
        <text id="1" text="Brobert, I have a certificate of a heroic deed!"/>
        <text id="2" text="You do?! Here, let me see."/>
        <text id="2" text="Well well... Wouldn't you know? This is a bona fide certificate that you aided in dispatching a dragon."/>
        <text id="2" text="I didn't think you had it in you, but you sure proved me wrong."/>
        <text id="2" text="From here on you can call yourself an adventurer!"/>
        <text id="1" text="Yay!"/>
        <mood value="0"/>
        <text id="2" text="As soon as you pay the entrance fee of $1000, that is."/>
        <mood value="3"/>
        <text id="1" text="Does EVERYTHING have a cost around here?!"/>
        <mood value="0"/>
        <text id="2" text="Hey, we're a non-profit organization! All of the money is used to serve you."/>
        <text id="2" text="As a member of the Adventurers Guild you can buy adventurer gear at discount prices. If you need any rope or torches, that is."/>
        <text id="2" text="We also have the best lawyers in the land ready to aid you in any legal disputes."/>
        <text id="2" text="So, do you want to join?"/>
        <goto id="5"/>
      </choice>
      <choice text="I need legal aid!" flag="D19-C5">
        <mood value="4"/>
        <text id="1" text="Brobert, can you help me out? I'm in desperate need of some of that Adventurer Guild legal aid!"/>
        <text id="2" text="Oh no! What've you gotten yourself into?"/>
        <text id="2" text="Goblin hunting out of season?"/>
        <text id="2" text="Collateral damage when slaying a dark wizard?"/>
        <text id="2" text="Hunting endangered species for loot?"/>
        <text id="2" text="Misuse of strange herbs?"/>
        <text id="1" text="No, no, nothing like that! Lord Blunderbuss magically transformed my parents and I can't do anything about it."/>
        <text id="1" text="He's protected by the best lawyers in Tawyn City."/>
        <mood value="1"/>
        <text id="2" text="Ah! You're in luck. Didn't I tell you that we employ the best laywers in the whole land?"/>
        <text id="2" text="Tell me all about this, and I'll get in touch with our legal branch immediately."/>
        <flag name="T15"/>
        <location id="9"/>
        <goto id="1"/>
      </choice>
      <choice text="Haven't I seen you somewhere?" name="D19-C2">
        <text id="1" text="Haven't I seen you somewhere? Like, in Spring Valley?"/>
        <text id="2" text="Spring Valley? Then you must be talking about Bill, my brother!"/>
        <text id="2" text="We do look alike, don't we? Except that he's bald as a baby's bottom."/>
        <mood value="2"/>
        <text id="2" text="I always used to joke about how I got all the brains and brawn, while he got all the baldness. Hahahaha!"/>
        <mood value="1"/>
        <text id="1" text="Sibling love. Is there anything more beautiful?"/>
        <mood value="0"/>
      </choice>
      <choice text="Bye!">
        <goto id="1"/>
      </choice>
    </choices>

    <label id="2"/>
    <exit id="1"/>
    <exit id="2"/>
    <enter id="5" message="1"/>
    <text id="5" text="Our hero swiftly located the loose board, and shoved the toilet paper roll outside."/>
    <exit id="5"/>
    <enter id="5" info="3"/>
    <exit id="5"/>
    <flag name="Quest-Wildman" value="7"/>
    <mood value="1"/>
    <enter id="1" image="0" left="1"/>
    <text id="1" text="Am I brilliant or am I?"/>
    <enter id="2" image="1012" right="1" block="0"/>
    <add_image id="2" image="568" x="12" y="-118"/>
    <wait value="0.5"/>
    <text id="2" text="What do you think you're doing?!"/>
    <mood value="3"/>
    <text id="1" text="Hey, don't come barging in here like that!"/>
    <text id="2" text="Give me that toilet paper!"/>
    <mood value="2"/>
    <text id="1" text="What toilet paper?"/>
    <mood value="0"/>
    <text id="2" text="Don't try to play innocent! There was an extra roll of paper here before you got in."/>
    <text id="1" text="Well, I don't have it. You must have forgotten to fill up."/>
    <text id="2" text="But... But... I could have sworn..."/>
    <text id="2" text="Alright, I'm sorry. You can't be too careful these days - kids will steal everything that's not nailed down."/>
    <mood value="4"/>
    <wait value="1"/>
    <text id="1" text="I can't lie to you Brobert - I smuggled the roll outside."/>
    <text id="1" text="I'm so sorry but I really need a roll of lavatory paper!"/>
    <text id="2" text="Well why didn't you say so in the first place? I have plenty more, so go ahead and keep that one."/>
    <mood value="1"/>
    <text id="1" text="Wow, thanks! You're the greatest!"/>
    <goto id="1"/>   

    <label id="3"/>
    <exit id="1"/>
    <exit id="2"/>
    <enter id="5" message="1"/>
    <text id="5" text="A few minutes later our hero is much relieved and ready for adventure again."/>
    <exit id="5"/>
    <mood value="1"/>
    <enter id="1" image="0" left="1"/>
    <text id="1" text="I needed that!"/>
    <text id="1" text="And would you look at this? I found a spare roll of lavatory paper inside!"/>
    <text id="1" text="I'll just grab this and-"/>
    <enter id="5" item="Lavatory paper"/>
    <exit id="5"/>
    <enter id="2" image="1012" right="1" block="0"/>
    <add_image id="2" image="568" x="12" y="-118"/>
    <wait value="0.5"/>
    <mood value="2"/>
    <text id="2" text="What do you think you're doing?!"/>
    <wait value="1"/>
    <text id="1" text="...Nothing..."/>
    <mood value="4"/>
    <text id="2" text="Give me that toilet paper! It's for our guests, and not for cheap brats to take away at their leisure!"/>
    <enter id="5" item="Lavatory paper" remove="1"/>
    <exit id="5"/>
    <text id="2" text="Now, get out of here!"/>
    <exit id="1"/>
    <exit id="2"/>
    <goto id="1" flag="Quest-Wildman" value="5"/>
    <enter id="5" info="3"/>
    <exit id="5"/>
    <flag name="Quest-Wildman" value="5"/>
    <goto id="1"/>

    <label id="5"/>
    <choices text="Pay $1000?">
      <choice text="Yes!">
        <flag name="Misc-CheckMoney" value="1000"/>
        <game id="11"/>
        <goto id="6" flag="ResultMoney" value="1"/>
        <mood value="4"/>
        <text id="1" text="I don't have enough money..."/>
        <text id="2" text="Okay, just let me know when you have it."/>
        <goto id="1"/>
      </choice>
      <choice text="No!">
        <text id="1" text="No way! I ain't payin' that!"/>
        <text id="2" text="By all means. Suit yourself."/>
        <text id="2" text="But I'll be waiting here if you change your mind."/>
        <goto id="1"/>
      </choice>
    </choices>

    <label id="6"/>
    <flag name="ResultMoney" value="0"/>
    <flag name="Money" add="-1000"/>
    <mood value="1"/>
    <text id="1" text="Sure thing, here's the money!"/>
    <text id="2" text="And your certificate too, please."/>
    <enter id="5" item="Hero certificate" remove="1"/>
    <exit id="5"/>
    <text id="2" text="Thank you very much! You're now officially a member of the Adventurers Guild."/>
    <enter id="5" info="4"/>
    <exit id="5"/>
    <flag name="Quest-Guild" value="3"/>
    <item name="Hero certificate" number="-1"/>
    <text id="1" text="Wow! I feel so... Adventurous!"/>
    <text id="1" text="I'll try not to let this newfound glory go to my head."/>
    <goto id="1"/>

    <label id="1000"/>
    <mood value="1"/>
    <text id="2" text="Way to go! I heard that you finally got the best of Lord Blunderbuss." flag="Misc-GameOver"/>
    <text id="2" text="You know, I'm pretty impressed. If you feel up to some more adventuring..." flag="Misc-GameOver"/>
    <text id="1" text="Thanks but no thanks! I have enough to do with my ranch now." flag="Misc-GameOver"/>
    <text id="2" text="No problem! Just let me know if you change your mind." flag="Misc-GameOver"/>

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

</dialogues>
