<name>Julie</name>
<profession>Expert Teacher of Dodging</profession>
<faction>Serenity</faction>
<dialogue>
  <greeting>
    <reply>
      <if>
        <reputation>70</reputation>
      </if>
      <text>What a beautiful day to increase your command of your body. I can teach you, you know.</text>
      <return>main</return>
    </reply>
    <reply>
      <text>Mind the head!</text>
      <return>main</return>
    </reply>
  </greeting>
  <main>
    <option>
      <text>Isn't Dodging the skill of a coward?</text>
      <npc>
        <reply>
          <text>Not at all. If you know how to dodge an attack, you can do away with all that heavy armor, and swiftly retaliate. At a higher level of expertise, the effect is truly amazing. And you don't need to look like a Phynaxian dragoon all the time.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>I would like to become a Dodging Expert.</text>
      <npc>
        <reply>
          <if><grandmaster>Dodging</grandmaster></if>
          <text>You already are a grandmaster!!</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><master>Dodging</master></if>
          <text>You already are a master!</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><expert>Dodging</expert></if>
          <text>You already are an expert, [name].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><skill>!Dodging</skill></if>
          <text>You do not know the skill, [name].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Explorer</class></if>
          <text>First, you must be promoted to Agent, Adventurer or Ranger.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Warrior</class></if>
          <text>First, you must be promoted to Ranger.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Knight</class></if>
          <text>Knights cannot achieve expert status.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><expertlevel>!Dodging</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>Dodging</expert>
            <log>[name] Dodging Expert</log>
          </script>
        </reply>
      </npc>
    </option>
    <option>
      <text>Could you tell us the location of the Master Teacher of Dodging?</text>
      <npc>
        <reply>
          <text>You must mean Sir Galrim, but the last I heard is that he is a prisoner in the Temple of Meh.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>Goodbye!</text>
      <npc>
        <reply>
          <return>exit</return> 
        </reply>
      </npc>
    </option>
  </main> 
</dialogue>