<name>August</name>
<profession>High Seer</profession>
<faction>Serenity</faction>
<dialogue>
  <greeting>
    <reply>
      <if><key>!testofpromisebooked</key></if>
      <text>You come here before me, why?</text>
      <return>main</return>
    </reply>
    <reply>
      <if><key>!testofpromisedone</key></if>
      <text>Ah, I have heard that you have accepted the test. This is good. Return to your mentor when you have completed your tasks.</text>
      <return>tutorial</return>
    </reply>
    <reply>
      <if><key>!powercrystalsbooked</key></if>
      <text>Well, well. Mekander has informed us that you have passed the test. You have shown that you are made of the right stuff! Soon, you will be instructed about your mission. But first, there is something else that you must do.
You will have noticed the riverboat, the Saint Nicholas. It is on this boat that you will set out on your journey, and it will be your home for a while to come. The riverboat has sails, but on some stretches there is no wind. It is therefore also powered by crystals.
As the last pair has been depleted, you are to get new ones from the Abandoned Temple. Be careful, because the temple is not altogether safe, and sometimes there can be strange sightings. It is said that the prophet Thelmes was seen there, first.
When you have a pair of power crystals, bring them to skipper Sam Finneas, and then return to me.</text>
      <script>
        <key>powercrystalsbooked</key>
        <quest>Power Crystals|Go into the Abandoned Temple, find a pair of Power Crystals and deliver them to skipper Sam Finneas</quest>
        <log>Ordered by Lord August to get two power crystals from the Abandoned Temple</log>
      </script>
      <return>tutorial</return>
    </reply>
    <reply>
      <text>It is good to see you again.</text>
      <return>main</return>
    </reply>
  </greeting>
  <main>
    <option>
      <if><key>!powercrystalsbooked</key></if>
      <text>Milord, we have heard the call for heroes.</text>
      <npc>
        <reply>
          <text>It is so. Others have come as well. You must go to our Mekander of the Tutorial House. He will see if you are any good.</text>
          <return>tutorial</return> 
        </reply>
      </npc>
    </option>
    <option>
      <if>
        <key>powercrystalsdone</key>
        <class>Explorer</class>
      </if>
      <text>Milord, we have delivered the power crystals to the riverboat.</text>
      <npc>
        <reply>
          <text>Your efforts have not gone unnoticed. We think that this is a good time for you to choose your profession, since it may be a while after you leave before you will visit here again. There is a choice of three professions for each student or explorer. You can only pick one, so think this over carefully. With each profession come different skills to learn, to different degrees of mastery.</text>
          <return>promotions</return> 
        </reply>
      </npc>
    </option>
    <option>
      <if>
        <key>powercrystalsdone</key>
        <class>Student</class>
      </if>
      <text>Milord, we have delivered the power crystals to the riverboat.</text>
      <npc>
        <reply>
          <text>Your efforts have not gone unnoticed. We think that this is a good time for you to choose your profession, since it may be a while after you leave before you will visit here again. There is a choice of three professions for each student or explorer. You can only pick one, so think this over carefully. With each profession come different skills to learn, to different degrees of mastery.</text>
          <return>promotions</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>We wish to express our gratitude, Lord August.</text>
      <npc>
        <reply>
          <return>exit</return> 
        </reply>
      </npc>
    </option>
  </main> 
  <tutorial>
    <option>
      <text>We will do as you say, Lord August.</text>
      <npc>
        <reply>
          <return>exit</return> 
        </reply>
      </npc>
    </option>
  </tutorial>
  <promotions>
    <option>
      <if><class>Explorer</class></if>
      <text>I would like to be a Warrior.</text>
      <npc>
        <reply>
          <text>So it will be. As a Warrior, [name], you will go first into battle when the time comes. Do right, and you can earn a promotion to Knight or Ranger.</text>
          <script>
            <class>Warrior</class>
            <experience>3000</experience>
            <log>[name] promoted to [class]</log>
          </script>
          <return>promotions</return>
        </reply>
      </npc>
    </option>
    <option>
      <if><class>Explorer</class></if>
      <text>I would like to be an Agent.</text>
      <npc>
        <reply>
          <text>So it will be. As an Agent, [name], you will apply your cunning to achieve specific goals and incapacitate your foes. Do right, and you can earn a promotion to Assassin or Thief.</text>
          <script>
            <class>Agent</class>
            <experience>3000</experience>
            <log>[name] promoted to [class]</log>
          </script>
          <return>promotions</return>
        </reply>
      </npc>
    </option>
    <option>
      <if><class>Explorer</class></if>
      <text>I would like to be an Adventurer.</text>
      <npc>
        <reply>
          <text>So it will be. As an Adventurer, [name], you will learn what there is to know about the world and how tu use that. Do right, and you can earn a promotion to Monk or Bard.</text>
          <script>
            <class>Adventurer</class>
            <experience>3000</experience>
            <log>[name] promoted to [class]</log>
          </script>
          <return>promotions</return>
        </reply>
      </npc>
    </option>
    <option>
      <if><class>Student</class></if>
      <text>I would like to be an Acolyte.</text>
      <npc>
        <reply>
          <text>So it will be. As an Acolyte, [name], you will study the magics of self, so you can protect and empower. Do well, and you can earn a promotion to Cleric or Saint.</text>
          <script>
            <class>Acolyte</class>
            <experience>3000</experience>
            <log>[name] promoted to [class]</log>
          </script>
          <return>promotions</return>
        </reply>
      </npc>
    </option>
    <option>
      <if><class>Student</class></if>
      <text>I would like to be a Scholar.</text>
      <npc>
        <reply>
          <text>So it will be. As a Scolar, [name], you will gather wisdom where you can, so you can avoid many troubles. Do well, and you can earn a promotion to Druid or Runemaster.</text>
          <script>
            <class>Scholar</class>
            <experience>3000</experience>
            <log>[name] promoted to [class]</log>
          </script>
          <return>promotions</return>
        </reply>
      </npc>
    </option>
    <option>
      <if><class>Student</class></if>
      <text>I would like to be an Apprentice.</text>
      <npc>
        <reply>
          <text>So it will be. As an Apprentice, [name], you will handle the elemental magics, so you can make things happen. Do well, and you can earn a promotion to Sorcerer or Necromancer.</text>
          <script>
            <class>Apprentice</class>
            <experience>3000</experience>
            <log>[name] promoted to [class]</log>
          </script>
          <return>promotions</return>
        </reply>
      </npc>
    </option>
    <option>
      <if>
        <class>!Exporer</class>
        <class>!Student</class>
      </if>
      <text>We thank you for this opportunity, Lord August.</text>
      <npc>
        <reply>
          <text>It is my pleasure. Now, go to Mekander once more and learn about your mission.</text>
          <return>main</return>
        </reply>
      </npc>
    </option>
  </promotions>
</dialogue>