<name>Morcarack</name>
<profession>Dragon Whelp</profession>
<dialogue>
  <greeting>
    <reply>
    <if><key>!metMorcarack</key></if>
      <text>Don't be afraid, [race], I won't bite.</text>
      <script><key>metMorcarack</key></script>
      <return>main</return>
    </reply>
    <reply>
      <if><random>40</random></if>
      <text>Have you seen any emeralds?</text>
      <script><key>emeraldsmentioned</key></script>
      <return>main</return>
    </reply>
    <reply>
      <if><random>48</random></if>
      <text>I so hate rats!</text>
      <return>main</return>
    </reply>
    <reply>
      <if><random>60</random></if>
      <text>When I am all grown up, I will find myself a real cave.</text>
      <return>main</return>
    </reply>
    <reply>
      <if><random>80</random></if>
      <text>Did you know that my ancestors shaped the world?</text>
      <return>main</return>
    </reply>
    <reply>
      <if><random>120</random></if>
      <text>Fire in the hole!</text>
      <return>main</return>
    </reply>
    <reply>
      <text>One moment. Counting the loot.|Yes, [name]?</text>
      <return>main</return>
    </reply>
  </greeting>
  <main>
    <option>
      <text>You talk! But ... but .. you're a dragon!</text>
      <npc>
        <reply>
          <text>So? Of course I can speak. Maybe someday you will even hear dragons speak the ancient tongue, but of course you will not understand.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>Are there more of you around?</text>
      <npc>
        <reply>
          <text>In this forest I am alone, but there are many dragons in other parts, wild as well as civilized, and some even settled south as far as Regna.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <if><key>emeraldsmentioned</key></if>
      <text>What is so special about gems?</text>
      <npc>
        <reply>
          <text>They say that gems can be turned into other things. I do not know about that, I just collect them for their beauty.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <if>
        <key>testofpromisebooked</key>
        <key>!songbirdcaught</key>
      </if>
      <text>We are looking for a Songbird. Have you seen one around during your flights?</text>
      <npc>
        <reply>
          <text>Oh, he. All high and mighty, that one, he is supposed to be so wise. But his endless singing always betrays him. Just push the foliage aside when you hear him real close, groundwalkers. But do not tell him that I helped you.</text>
          <script><key>helpfromMorcarack</key></script>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>Take care!</text>
      <npc>
        <reply>
          <return>exit</return> 
        </reply>
      </npc>
    </option>
  </main> 
</dialogue>