<name>Jossakeda</name>
<profession>Healer</profession>
<faction>Serenity</faction>
<dialogue>
  <greeting>
    <reply>
      <if><reputation>70</reputation></if>
      <text>Hello, [name]! Let me take care of your wounds.</text>
      <return>main</return>
    </reply>
    <reply>
      <text>Have you been fighting?</text>
      <return>main</return>
    </reply>
  </greeting>
  <main>
    <option>
      <text>We like to make a donation.</text>
      <npc>
        <reply>
          <if><gold>!10</gold></if>
          <text>Donations are 10 gold, [name].</text>
          <return>main</return> 
        </reply>
        <reply>
          <text>Bless you, my child.</text>
          <script>
            <gold>-10</gold>
          </script>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <if><key>!gift100Medicary</key></if>
      <text>Ma'me, we wish to gift 100 gold to this temple.</text>
      <npc>
        <reply>
          <if><gold>!100</gold></if>
          <text>When you are ever that wealthy, you will be most welcome.</text>
          <return>main</return> 
        </reply>
        <reply>
          <text>On behalf of the temple, you have my deepest gratitude.</text>
          <script>
            <key>gift100Medicary</key>
            <gold>-100</gold>
            <reputation>1</reputation> 
          </script>
          <return>main</return>
        </reply>
      </npc>
    </option>
    <option>
      <if>
        <key>gift100Medicary</key>
        <key>!gift1000Medicary</key>
      </if>
      <text>Ma'me, we wish to gift 1,000 gold to this temple.</text>
      <npc>
        <reply>
          <if><gold>!1000</gold></if>
          <text>When you are ever that wealthy, you will be most welcome.</text>
          <return>main</return> 
        </reply>
        <reply>
          <text>On behalf of the temple, you have my deepest gratitude.</text>
          <script>
            <key>gift1000Medicary</key>
            <gold>-1000</gold>
            <reputation>1</reputation> 
          </script>
          <return>main</return>
        </reply>
      </npc>
    </option>
    <option>
      <if>
        <key>gift1000Medicary</key>
        <key>!gift10000Medicary</key>
      </if>
      <text>Ma'me, we wish to gift 10,000 gold to this temple.</text>
      <npc>
        <reply>
          <if><gold>!10000</gold></if>
          <text>When you are ever that wealthy, you will be most welcome.</text>
          <return>main</return> 
        </reply>
        <reply>
          <text>On behalf of the temple, you have my deepest gratitude.</text>
          <script>
            <key>gift10000Medicary</key>
            <gold>-10000</gold>
            <reputation>1</reputation> 
          </script>
          <return>main</return>
        </reply>
      </npc>
    </option>
    <option>
      <if>
        <key>gift10000Medicary</key>
        <key>!gift100000Medicary</key>
      </if>
      <text>Ma'me, we wish to gift 100,000 gold to this temple.</text>
      <npc>
        <reply>
          <if><gold>!100000</gold></if>
          <text>When you are ever that wealthy, you will be most welcome.</text>
          <return>main</return> 
        </reply>
        <reply>
          <text>On behalf of the temple, you have my deepest gratitude.</text>
          <script>
            <key>gift100000Medicary</key>
            <gold>-100000</gold>
            <reputation>2</reputation> 
          </script>
          <return>main</return>
        </reply>
      </npc>
    </option>
    <option>
      <if>
        <key>gift100000Medicary</key>
        <key>!gift1000000Medicary</key>
      </if>
      <text>Ma'me, we wish to gift 1,000,000 gold to this temple.</text>
      <npc>
        <reply>
          <if><gold>!1000000</gold></if>
          <text>When you are ever that wealthy, you will be most welcome.</text>
          <return>main</return> 
        </reply>
        <reply>
          <text>On behalf of the temple, you have my deepest gratitude.</text>
          <script>
            <key>gift1000000Medicary</key>
            <gold>-1000000</gold>
            <reputation>5</reputation> 
          </script>
          <return>main</return>
        </reply>
      </npc>
    </option>
    <option>
      <text>We are in need of healing.</text>
      <npc>
        <reply>
          <text>You all seem just fine to me.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>Thank you for taking care of us!</text>
      <npc>
        <reply>
          <return>exit</return> 
        </reply>
      </npc>
    </option>
  </main> 
</dialogue>