Adam.Ormond
Well-known member
I'm working on implementing a few Weapon Crystals from the Magic Item Compendium, and I'm not quite sure how to create them such that they're tied to a specific weapon.
Thanks in advance for any advice!
Here's my definition so far:
Thanks in advance for any advice!
Here's my definition so far:
Code:
<thing id="ioLfeDrnk1" name="Crystal of Life Drinking, Least" description="This transparent black crystal has a faint, sickly glow.\n\nA crystal of life drinking bestows a small amount of life energy upon you each time you damage a living creature with the weapon to which the crystal is attached. Dealing nonlethal damage with the weapon doesn’t activate the crystal’s effect.\n\nEach time you deal damage to a living creature with the weapon to which this crystal is attached, you heal 1 point of damage. When the crystal has healed a total of 10 points of damage, it becomes inert until the following day." compset="Wondrous" summary="Heal 1hp each time you deal damage to a living, up to 10 hps/day">
<fieldval field="gCost" value="400"/>
<fieldval field="trkMax" value="10"/>
<tag group="gType" tag="Wonder"/>
<tag group="Helper" tag="EquipAvail"/>
<tag group="Helper" tag="EquipMag"/>
<tag group="Custom" tag="WpnCrystal" name="Weapon Crystal"/>
<tag group="Helper" tag="NoPathSoc"/>
<tag group="iSchool" tag="Necromancy"/>
<tag group="Helper" tag="ShowSpec"/>
<eval phase="Final">if (this.field[gIsEquip].value = 1) then
perform this.assign[User.Tracker]
endif</eval>
</thing>