<name>Elatus</name>
<profession>Guildmaster</profession>
<faction>Centaurs</faction>
<dialogue>
  <greeting>
    <reply>
      <text>Guard your king with your body, and catch the arrows that are aimed at him.</text>
      <return>main</return>
    </reply>
  </greeting>
  <main>
    <option>
      <text>Sir, are there Prime Guilds for all the types of magic?</text>
      <npc>
        <reply>
          <text>For each of the Self and Elemental magics, there is a Prime Guild in Karigor. The same does not hold true for the Path magics. If you seek to learn the grandmaster spell of your chosen path, you must acquire its Book of Learning by other means. These books are rare, but not unheard of.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>

<!-- Body Magic -->

    <option>
      <if><skill>!Body</skill></if>
      <text>I would like to learn the Body Magic skill.</text>
      <npc>
        <reply>
          <if><class>Explorer</class></if>
          <text>First, [name], you must be promoted to Monk or Bard.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Student</class></if>
          <text>First, [name], you must be promoted to Scholar or Acolyte.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Adventurer</class></if>
          <text>First, [name], you must be promoted to Monk or Bard.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Warrior</class></if>
          <text>Warriors cannot learn this skill, [name].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Agent</class></if>
          <text>Agents cannot learn this skill, [name].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Apprentice</class></if>
          <text>Apprentices cannot learn this skill, [name].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Knight</class></if>
          <text>Knights cannot learn this skill, [name].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Ranger</class></if>
          <text>Rangers cannot learn this skill, [name].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Thief</class></if>
          <text>Thieves cannot learn this skill, [name].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Assassin</class></if>
          <text>Assassins cannot learn this skill, [name].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Sorcerer</class></if>
          <text>Sorcerers cannot learn this skill, [name].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Necromancer</class></if>
          <text>Necromancers cannot learn this skill, [name].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><expert>!Spellcasting</expert></if>
          <text>Before you can begin with one of the magic schools, [name], you must become an Expert at Spellcasting.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><gold>!750</gold></if>
          <text>You don't have enough gold.</text>
          <return>main</return> 
        </reply>
        <reply>
          <text>An excellent choice, [name]. Feel the waves!</text>
          <script>
            <gold>-750</gold>
            <skill>Body</skill>
            <log>[name] learned Body Magic</log>
          </script>
          <return>main</return> 
        </reply>
      </npc>
    </option>

<!-- Shopping -->

    <option>
      <text>We wish to buy some spellbooks.</text>
      <npc>
        <reply>
          <if><hour>!8</hour></if>
          <text>That's what we're here for, [gender], but we are accustomed to starting our day with exercise and meditation. If you would be so kind, return at eight o'clock.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><hour>20</hour></if>
          <text>I'll show you our collection tomorrow, [gender].</text>
          <return>main</return> 
        </reply>
        <reply>
          <text>Learn well and you will overcome all harm.</text>
          <script><shop>Prime Guild of Body</shop></script>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>Thanks for your time!</text>
      <npc>
        <reply>
          <return>exit</return> 
        </reply>
      </npc>
    </option>
  </main> 
</dialogue>