<name>Sir Galrim</name>
<profession>Master Teacher of Dodging</profession>
<faction>Soronne</faction>
<dialogue>
  <greeting>
    <reply>
      <if>
        <reputation>70</reputation>
      </if>
      <text>Greetings, good people! Sit down, codes are for courts and dragons.</text>
      <return>main</return>
    </reply>
    <reply>
      <text>My, my, a visitor. I so wish the day will come that I can get out and see the picture play once more.</text>
      <return>main</return>
    </reply>
  </greeting>
  <main>
    <option>
      <text>Are there new techniques of dodging to learn?</text>
      <npc>
        <reply>
          <text>The art of dodging remains the same for all, but your reflexes will grow fast as you master this skill.</text>
          <return>main</return>
        </reply>
      </npc>
    </option>
    <option>
      <text>I would like to become a Dodging Master.</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><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 or Monk.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Adventurer</class></if>
          <text>First, you must be promoted to Monk.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if>
            <class>!Agent</class>
            <class>!Assassin</class>
            <class>!Thief</class>
            <class>!Monk</class>
          </if>
          <text>Heroes of your class cannot achieve master status.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><expert>!Dodging</expert></if>
          <text>Before you can be taught mastery, you must become an expert.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><masterlevel>!Dodging</masterlevel></if>
          <text>You are not good enough yet.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><gold>!5000</gold></if>
          <text>You cannot afford the fee.</text>
          <return>main</return> 
        </reply>
        <reply>
          <text>Congratulations, [name]!</text>
          <return>main</return> 
          <script>
            <gold>-5000</gold>
            <expert>Dodging</expert>
            <log>[name] Dodging Expert</log>
          </script>
        </reply>
      </npc>
    </option>
    <option>
      <text>Where can the Grandmaster Teacher of Dodging be found?</text>
      <npc>
        <reply>
          <text>Ask for Sheriff Bart in the town of Potz.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>Keep up hope, Sir! We will put in a good word for you.</text>
      <npc>
        <reply>
          <return>exit</return> 
        </reply>
      </npc>
    </option>
  </main> 
</dialogue>