Corpse Counter - Status Bar

cMUD Corpse Counter - This tracks your inventory corpses, follower corpses, smuggled corpses, coffin corpses and puts the individual totals as well as the TOTAL of corpses in a status bar. It will also track shifting of corpses and usage of corpses. It does not track absorption from the ground. :( (If anyone has an idea how to include this into here, please let me know)

All the absorb triggers are form based - I believe I have all the absorb triggers for each form. If you should find an emote I don't have - please let me know and I will add it to the collection.

<module name="Corpse Counter" global="true">
  <uid>{7654D30D-FE20-4DDB-B134-9D1809E70CC3}</uid>
  <class name="Corpse Counter" id="1">
    <stat name="Corpse" priority="3610" id="2">
      <value>TOTAL: @tcorpses()    Inventory: @icorpses Follower: @fcorpses Smuggle: @scorpses Coffin: @ccorpses </value>
    </stat>
    <trigger priority="3620" id="3">
      <pattern>Encumberance  ~[ (*)~/(*)|(*)~%~| &amp;{icorpses}c~]</pattern>
    </trigger>
    <trigger priority="3630" id="4">
      <pattern>{@followers}       ~[ (*)~/ (*)~|(*)~%~| &amp;{fcorpses}c~]</pattern>
    </trigger>
    <trigger priority="3640" id="5">
      <pattern>Smuggling     ~[  %d~/  %d~|%a~%~| &amp;{scorpses}c~]</pattern>
    </trigger>
    <trigger priority="3700" id="9">
      <pattern>^You unsmuggle: (%p) a preserved, (*) corpse</pattern>
      <value>scorpses = (@scorpses - 1)
#add icorpses 1</value>
    </trigger>
    <trigger priority="3710" id="10">
      <pattern>You smuggle away: %p a preserved, (*) corpse </pattern>
      <value>#add scorpses 1
icorpses = (@icorpses - 1)</value>
    </trigger>
    <trigger priority="3720" id="11">
      <pattern>  Giving 'corpse' to '(*) the {@followers}' mistress.</pattern>
      <trigger>
        <pattern>Ok.</pattern>
        <value>#add fcorpses 1
icorpses = (@icorpses - 1)</value>
      </trigger>
    </trigger>
    <trigger priority="3730" id="12">
      <pattern>Your {@followers} gives %p a preserved, (*) corpse of (*) to you.</pattern>
      <value>#add icorpses 1
fcorpses = (@fcorpses - 1)</value>
    </trigger>
    <trigger priority="3740" id="13">
      <pattern>You prepare the corpse with magical energies and store it away.</pattern>
      <value>#add icorpses 1</value>
    </trigger>
    <trigger priority="3770" id="16">
      <pattern>Death tells you:</pattern>
      <value>#add icorpses -1</value>
    </trigger>
    <trigger priority="3780" id="17">
      <pattern>The {@followers} drops a corpse</pattern>
      <value>~=get corpse</value>
    </trigger>
    <trigger priority="3790" id="18">
      <pattern>You put %p a preserved, (*) corpse (*) into the box.</pattern>
      <value>icorpses = (@icorpses - 1)
</value>
    </trigger>
    <trigger priority="3810" id="20">
      <pattern>Encumberance  ~[&amp;4~/&amp;4~|%a~%~| &amp;{icorpses}c~]</pattern>
    </trigger>
    <trigger priority="3840" id="21">
      <pattern>Smuggling     ~[   */  &amp;2| %d~%|  &amp;{scorpses}c~]</pattern>
    </trigger>
    <trigger priority="3850" id="22">
      <pattern>You get %p a preserved, (*) corpse of (*) from the box.</pattern>
      <value>icorpses = @icorpses + 1

</value>
    </trigger>
    <class name="absorb triggers" id="28">
      <class name="Pure" id="59">
        <trigger priority="3750" id="14">
          <pattern>The corpse explodes as you extract its energy to heal your magical powers.</pattern>
          <value>icorpses = (@icorpses - 1)</value>
        </trigger>
        <trigger priority="3760" id="15">
          <pattern>You crush the corpse and draw forth the physical energies from within it.</pattern>
          <value>icorpses = (@icorpses - 1)</value>
        </trigger>
        <trigger priority="250" id="25">
          <pattern>With a gesture, you absorb the corpse and recover your magical health.</pattern>
          <value>icorpses = (@icorpses - 1)</value>
        </trigger>
        <trigger priority="260" id="26">
          <pattern>Melting the corpse's skin away, you extract the magical energies within.</pattern>
          <value>icorpses = (@icorpses - 1)</value>
        </trigger>
        <trigger priority="270" id="27">
          <pattern>You quickly dissipate the corpse and restore your magical energy.</pattern>
          <value>icorpses = (@icorpses - 1)</value>
        </trigger>
        <trigger priority="300" id="30">
          <pattern>Melting the corpse's skin away, you extract the physical energies within.</pattern>
          <value>icorpses = (@icorpses - 1)</value>
        </trigger>
        <trigger priority="310" id="31">
          <pattern>With a gesture, you absorb the corpse and recover your physical health.</pattern>
          <value>icorpses = (@icorpses - 1)</value>
        </trigger>
        <trigger priority="320" id="32">
          <pattern>The physical energies flow through you as you absorb the rotting flesh.</pattern>
          <value>icorpses = (@icorpses - 1)</value>
        </trigger>
        <trigger priority="330" id="33">
          <pattern>You quickly dissipate the corpse and restore your physical energy.</pattern>
          <value>icorpses = (@icorpses - 1)</value>
        </trigger>
        <trigger priority="340" id="34">
          <pattern>You wave your hands over the corpse and feel your physical energy return.</pattern>
          <value>icorpses = (@icorpses - 1)</value>
        </trigger>
        <trigger priority="350" id="35">
          <pattern>As you suck the life force from the corpse, your physical levels rise.</pattern>
          <value>icorpses = (@icorpses - 1)</value>
        </trigger>
        <trigger priority="360" id="36">
          <pattern>You wave your hands over the corpse and feel your magical energy return.</pattern>
          <value>icorpses = (@icorpses - 1)</value>
        </trigger>
        <trigger priority="370" id="37">
          <pattern>You chant with the corpse, releasing the magical energy within.</pattern>
          <value>icorpses = (@icorpses - 1)</value>
        </trigger>
        <trigger priority="380" id="38">
          <pattern>The magical energies flow through you as you absorb the rotting flesh.</pattern>
          <value>icorpses = (@icorpses - 1)</value>
        </trigger>
        <trigger priority="390" id="39">
          <pattern>Just as the corpse goes *POOF*, you suck in its magical residue.</pattern>
          <value>icorpses = (@icorpses - 1)</value>
        </trigger>
        <trigger priority="400" id="40">
          <pattern>As you suck the life force from the corpse, your magical levels rise.</pattern>
          <value>icorpses = (@icorpses - 1)</value>
        </trigger>
        <trigger priority="410" id="41">
          <pattern>A magical energy enters your body as the corpse crumbles and is blown away.</pattern>
          <value>icorpses = (@icorpses - 1)</value>
        </trigger>
        <trigger priority="420" id="42">
          <pattern>The corpse explodes as you extract its energy to heal your physical powers.</pattern>
          <value>icorpses = (@icorpses - 1)</value>
        </trigger>
        <trigger priority="430" id="43">
          <pattern>You chant with the corpse, releasing the physical energy within.</pattern>
          <value>icorpses = (@icorpses - 1)</value>
        </trigger>
        <trigger priority="440" id="44">
          <pattern>Just as the corpse goes *POOF*, you suck in its physical residue.</pattern>
          <value>icorpses = (@icorpses - 1)</value>
        </trigger>
        <trigger priority="450" id="45">
          <pattern>A physical energy enters your body as the corpse crumbles and is blown away.</pattern>
          <value>icorpses = (@icorpses - 1)</value>
        </trigger>
        <trigger priority="460" id="46">
          <pattern>You crush the corpse and draw forth the magical energies from within it.</pattern>
          <value>icorpses = (@icorpses - 1)</value>
        </trigger>
      </class>
      <class name="Lich/Reaper" id="61">
        <trigger priority="600" id="60">
          <pattern>You chant softly, casting ginseng onto the fallen.</pattern>
          <value>icorpses = (@icorpses - 1)</value>
        </trigger>
      </class>
      <class name="Vampire" id="63">
        <trigger priority="620" id="62">
          <pattern>You chant softly, casting your own soul over the fallen$</pattern>
          <value>icorpses = (@icorpses - 1)</value>
        </trigger>
      </class>
      <class name="Were" id="64">
        <trigger priority="650" id="65">
          <pattern>You chant with the corpse, releasing the magical energy within.</pattern>
          <value>icorpses = (@icorpses - 1)</value>
        </trigger>
        <trigger priority="660" id="66">
          <pattern>The physical energies flow through you as you absorb the rotting flesh.</pattern>
          <value>icorpses = (@icorpses - 1)</value>
        </trigger>
      </class>
    </class>
    <class name="vars" id="29">
      <var name="icorpses" type="Integer" id="6"> 0</var>
      <var name="fcorpses" type="Integer" id="7">0</var>
      <var name="scorpses" type="Integer" id="8">0</var>
      <var name="tcorpses" id="23"/>
    </class>
    <trigger priority="470" id="47">
      <pattern>Coffin        ~[   %d/  %d| %d~%|  &amp;{ccorpses}c~] </pattern>
    </trigger>
    <trigger priority="480" id="48">
      <pattern>wrap it up into the coffin's protective hold!</pattern>
      <value>#add ccorpses 1
icorpses = (@icorpses - 1)</value>
    </trigger>
    <trigger priority="490" id="49">
      <pattern>The coffin expels a corpse onto the ground!</pattern>
      <value>ccorpses = (@ccorpses - 1)</value>
    </trigger>
    <trigger priority="510" id="51">
      <pattern>%p a preserved, (*) corpse of (*): Ok</pattern>
      <value>#add icorpses 1</value>
    </trigger>
    <trigger priority="520" id="52">
      <pattern>The coffin expels your selected corpse.</pattern>
      <value>ccorpses = (@ccorpses - 1)</value>
    </trigger>
    <trigger priority="530" id="53">
      <pattern>Coffin        ~[  %d~/  %d|%a~%| &amp;{ccorpses}c~]</pattern>
    </trigger>
    <func name="tcorpses" id="54">
      <value>#RETURN (@fcorpses+@icorpses+@scorpses+@ccorpses)</value>
    </func>
    <trigger priority="550" id="55">
      <pattern>You drop %p a preserved, (*) corpse of (*).</pattern>
      <value>icorpses = (@icorpses - 1)</value>
    </trigger>
    <trigger priority="560" id="56">
      <pattern>%p a preserved, (*) corpse of (*)~: Taken.</pattern>
      <value>#add icorpses 1</value>
    </trigger>
    <trigger priority="570" id="57">
      <pattern>drop: %p a preserved, (*) corpse of </pattern>
      <value>icorpses = (@icorpses - 1)</value>
    </trigger>
    <var name="followers" type="StringList" id="58">
      <value>Skeleton|Zombie|Ghoul|Valpur|Ghast|Manshi|Bolwyn|Greesh|Wight|Heucuva|Tholen|Bayen|Quarin|Mohrg|Grimare|Valithyn</value>
      <json>["Skeleton","Zombie","Ghoul","Valpur","Ghast","Manshi","Bolwyn","Greesh","Wight","Heucuva","Tholen","Bayen","Quarin","Mohrg","Grimare","Valithyn"]</json>
    </var>
  </class>
</module>
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License