<name>Pekka Ervat</name>
<profession>Mystic</profession>
<faction>Serenity</faction>
<portrait>human_male01</portrait>
<dialogue>
  <greeting>
    <reply>
      <if><company>Pekka Ervat</company></if>
      <text>What's up, [name]?</text>
      <return>inparty</return>
    </reply>
    <reply>
      <text>Do you desire my company?</text>
      <return>main</return>
    </reply>
  </greeting>
  <main>
    <option>
      <text>What can you do for us?</text>
      <npc>
        <reply>
          <text>If you are willing to part with 1000 gold now and 7% of the gold you find, I will do what I can to support your spellcasting efforts.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>We agree to your fee.</text>
      <npc>
        <reply>
          <if><company>full</company></if>
          <text>There is no room in your party. If you wish to hire me, you must fire someone else.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><gold>!1000</gold></if>
          <text>But you cannot pay me now.</text>
          <return>main</return> 
        </reply>
        <reply>
          <script>
            <gold>-1000</gold>
            <company>hire</company>
            <log>Hired Pekka Ervat, the Mystic</log>
          </script>
          <return>exit</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>See you around!</text>
      <npc>
        <reply>
          <return>exit</return> 
        </reply>
      </npc>
    </option>
  </main> 
  <inparty> 
    <option>
      <text>What is it you do again?</text>
      <npc>
        <reply>
          <text>For 7% of the gold you find, I add 4 levels to your Spellcasting skill.</text>
          <return>inparty</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>It is time to let you go.</text>
      <npc>
        <reply>
          <text>It was written in the stars, [class]. If you want to re-hire me later, come to Serenity.</text>
          <script>
            <company>dismiss</company>
            <log>Dismissed Pekka Ervat, the Mystic</log>
          </script>
          <return>exit</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>Thanks for coming with us!</text>
      <npc>
        <reply>
          <return>exit</return> 
        </reply>
      </npc>
    </option>
  </inparty> 
</dialogue>