<name>Astaroth</name>
<profession>Expert Teacher of Music</profession>
<faction>Serenity</faction>
<dialogue>
  <greeting>
    <reply>
      <if>
        <reputation>70</reputation>
      </if>
      <text>Welcome, visitors. Could I grant you a wish?</text>
      <return>main</return>
    </reply>
    <reply>
      <text>What brings you here?</text>
      <return>main</return>
    </reply>
  </greeting>
  <main>
    <option>
      <text>What can you tell us about music?</text>
      <npc>
        <reply>
          <text>Music is what binds all the races of Karigor. By playing a musical instrument, you can lift the spirits of your entire party. Not only is it good for companionship, but it also improves your performance in battle!</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>I would like to become a Music Expert.</text>
      <npc>
        <reply>
          <if><grandmaster>Music</grandmaster></if>
          <text>You already are a grandmaster!!</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><master>Music</master></if>
          <text>You already are a master!</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><expert>Music</expert></if>
          <text>You already are an expert, [name].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><skill>!Music</skill></if>
          <text>You do not know the skill, [name].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Agent</class></if>
          <text>First, you must be promoted to Thief.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Assassin</class></if>
          <text>Assassins cannot achieve expert status.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><expertlevel>!Music</expertlevel></if>
          <text>You are not good enough yet.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><gold>!1500</gold></if>
          <text>You cannot afford the fee.</text>
          <return>main</return> 
        </reply>
        <reply>
          <text>Congratulations, [name]!</text>
          <return>main</return> 
          <script>
            <gold>-1500</gold>
            <expert>Music</expert>
            <log>[name] Music Expert</log>
          </script>
        </reply>
      </npc>
    </option>
    <option>
      <text>Where can we find the Master Teacher of Music?</text>
      <npc>
        <reply>
          <text>That would be Pan, a gentle Troll. He lives among his kin in the town of Verdigris.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>Goodbye!</text>
      <npc>
        <reply>
          <return>exit</return> 
        </reply>
      </npc>
    </option>
  </main> 
</dialogue>
