<name>Janice O'Connor</name>
<profession>Expert Teacher of Dagger</profession>
<dialogue>
  <greeting>
    <reply>
      <if>
        <reputation>70</reputation>
      </if>
      <text>Everybody's afraid. Some people are just better at hiding it. You'll do fine.</text>
      <return>main</return>
    </reply>
    <reply>
      <text>The fields of Mt. Pilanteko ... only heroes wind up here.
Dead heroes.
Dead naked heroes.</text>
      <return>main</return>
    </reply>
  </greeting>
  <main>
    <option>
      <text>Aren't daggers for assassins and thieves?</text>
      <npc>
        <reply>
          <text>Many people carry daggers. They're fast, you know. They help with digging things from the earth too, sometimes, but don't tell that to Melinda. I'm just the sidekick. Hey, I can teach you to use a dagger in your left hand and another weapon in your right hand, if you like.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>I would like to become a Dagger Expert.</text>
      <npc>
        <reply>
          <if><grandmaster>Dagger</grandmaster></if>
          <text>You already are a grandmaster!!</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><master>Dagger</master></if>
          <text>You already are a master!</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><expert>Dagger</expert></if>
          <text>You already are an expert, [name].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><skill>!Dagger</skill></if>
          <text>You do not know the skill, [name].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><expertlevel>!Dagger</expertlevel></if>
          <text>You are not good enough yet.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><gold>!1000</gold></if>
          <text>You cannot afford the fee.</text>
          <return>main</return> 
        </reply>
        <reply>
          <text>Congratulations, [name]!</text>
          <return>main</return> 
          <script>
            <gold>-1000</gold>
            <expert>Dagger</expert>
            <log>[name] Dagger Expert</log>
          </script>
        </reply>
      </npc>
    </option>
    <option>
      <text>Where do we go for the Master Teacher of Dagger?</text>
      <npc>
        <reply>
          <text>Michael Quickbuck lives in Teardrop, the halfling village north of the Plumwine Bridge.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>Do good!</text>
      <npc>
        <reply>
          <return>exit</return> 
        </reply>
      </npc>
    </option>
  </main> 
</dialogue>