<name>Lucinda</name>
<profession>Expert Teacher of Perception</profession>
<faction>Centaurs</faction>
<dialogue>
  <greeting>
    <reply>
      <if>
        <reputation>70</reputation>
      </if>
      <text>The doors of perception are the doors of heaven and hell.</text>
      <return>main</return>
    </reply>
    <reply>
      <text>One of these days you may learn to see, [race].</text>
      <return>main</return>
    </reply>
  </greeting>
  <main>
    <option>
      <text>Why would we skill ourselves in Perception?</text>
      <npc>
        <reply>
          <text>Without sufficient training in perception, you will stumble forth. You'll miss all the treasures and secrets that are around you everywhere in this world, while nasty surprises such as explosions will hit you right in the face.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>I would like to become a Perception Expert.</text>
      <npc>
        <reply>
          <if><grandmaster>Perception</grandmaster></if>
          <text>You already are a grandmaster!!</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><master>Perception</master></if>
          <text>You already are a master!</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><expert>Perception</expert></if>
          <text>You already are an expert, [name].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><skill>!Perception</skill></if>
          <text>You do not know the skill, [name].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Student</class></if>
          <text>First, you must be promoted to Acolyte, Scholar, Sorcerer or Necromancer.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Apprentice</class></if>
          <text>First, you must be promoted to Sorcerer or Necromancer.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><expertlevel>!Perception</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>Perception</expert>
            <log>[name] Perception Expert</log>
          </script>
        </reply>
      </npc>
    </option>
    <option>
      <text>Where is the home of the Master Teacher of Perception?</text>
      <npc>
        <reply>
          <text>North of the Meridian, in the village of Teardrop, is the home of Ethan DaSilva.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>Goodbye!</text>
      <npc>
        <reply>
          <return>exit</return> 
        </reply>
      </npc>
    </option>
  </main> 
</dialogue>