I'm trying to create a custom magic item that allows a character to have Rogue-like abilities. I'm having an issue with not being able to delete the Helper.NotUsable tag from Disable Device (skDisable). I'm not sure if the tag can't be deleted, if it's a timing issue, or if I'm doing something else wrong.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<document signature="Hero Lab Data">
<thing id="ioRobeRog" name="Robe of the Rogue" description="This dark blue hooded cloak grants its wearer 1/2 his/her levels of bonus points in stealth, perception and disable device checks rounded up. It also enables its wearer to find traps and disable devices as if he/she were a rouge of the same level." compset="Wondrous">
<usesource source="srcJimEqp" parent="srcJimHR" name="Equipment"/>
<tag group="Helper" tag="ShowSpec"/>
<tag group="Helper" tag="EquipAvail"/>
<tag group="gType" tag="Wonder"/>
<tag group="Hero" tag="EqpBody"/>
<tag group="Helper" tag="EquipMag"/>
<tag group="Helper" tag="NoPathSoc"/>
<eval phase="PostLevel" priority="9000"><![CDATA[
if (field[gUserEquip].value = 1) then
var level as number
var halflevel as number
var thirdlevel as number
var trapsense as number
var text as string
level = herofield[tLevel].value
halflevel = herofield[tLevel].value / 2
halflevel = round(halflevel,0,0)
thirdlevel = herofield[tLevel].value / 3
thirdlevel = round(thirdlevel,0,-1)
perform hero.child[skDisable].delete[Helper.NotUsable]
hero.child[skDisable].field[Bonus].value += halflevel
hero.child[skPercep].field[Bonus].value += halflevel
hero.child[skStealth].field[Bonus].value += halflevel
text = "+" & halflevel & " to disable traps."
#situational[hero.childfound[skDisable],text,field[thingname].text]
text = "+" & halflevel & " to find traps."
#situational[hero.childfound[skPercep],text,field[thingname].text]
if (level >= 3) then
trapsense = thirdlevel
text = "+" & halflevel & " to reflex saves vs. traps."
#situational[hero.childfound[svRef],text,field[thingname].text]
text = "+" & halflevel & " to dodge traps."
#situational[hero.childfound[ArmorClass],text,field[thingname].text]
endif
endif
]]></eval>
</thing>
</document>