TCArknight
Well-known member
Hi all!
I'm trying to duplicate the Spell Resistance as Power Resistance for use by a familiar. The code below sets the resistance to 5 for the familiar, no matter what level the master. It also produces a large window referencing line 3,4,7,10,13,14,15,18,20 in the 'BaseCustSp' Component
Same also for Location: 'field calculate' script for Field 'xTotalLev' near line 4.
I also can't seem to use master.field[xTotalLev] or anything of the like.
Any thought on what I need to do to get this working right?
I'm trying to duplicate the Spell Resistance as Power Resistance for use by a familiar. The code below sets the resistance to 5 for the familiar, no matter what level the master. It also produces a large window referencing line 3,4,7,10,13,14,15,18,20 in the 'BaseCustSp' Component
Linkage pick 'table' not located for current context
Location: 'eval' script for Component 'BaseCustSp' (Eval Script '#1") near line X
Same also for Location: 'field calculate' script for Field 'xTotalLev' near line 4.
I also can't seem to use master.field[xTotalLev] or anything of the like.
Any thought on what I need to do to get this working right?

Code:
<thing id="xPwrRes" name="Power Resistance" description="You have Power Resistance." compset="Ability" uniqueness="unique">
<usesource source="pPURace"/>
<tag group="Helper" tag="ShowSpec" name="ShowSpec" abbrev="ShowSpec"/>
<tag group="SpecType" tag="SR" name="Power Resistance" abbrev="Power Resistance"/>
<tag group="Helper" tag="BaseAbil" name="Base Ability" abbrev="Base Ability"/>
<eval phase="Final" priority="20000"><![CDATA[
call CalcValue
~ Use our value field as the quality of spell resistance
field[livename].text = field[name].text & " (" & field[abValue].value & ")"
~ specify a shortname for consistency with other resistances
field[shortname].text = "powers " & field[abValue].value]]></eval>
</thing>
<thing id="cPwrResist" name="Power Resistance" description="An Occultist has spell resistance equal to 5 + her Occultist level. It never interferes with her own spells, and she can voluntarily lower her spell resistance at any time." compset="CustomSpec">
<comment>MSRD</comment>
<usesource source="pPURace"/>
<tag group="Helper" tag="SpecUp" name="SpecUp" abbrev="SpecUp"/>
<tag group="AbilType" tag="Extra" name="Extraordinary Ability" abbrev=" (Ex)"/>
<tag group="SpecType" tag="Resist"/>
<bootstrap thing="xPwrRes"></bootstrap>
<eval phase="PostLevel" priority="10000"><![CDATA[~if we're not shown, just get out now
doneif (tagis[Helper.ShowSpec] = 0)
field[abValue].value += field[anCompLev].value + 5
field[livename].text = field[thingname].text & " (PR " & field[abValue].value & ")"
field[abSumm].text = "Gain Pwr Resist " & field[abValue].value & "."
~#applysr[field[abValue].value]
hero.child[xPwrRes].field[abValue].value = field[abValue].value]]></eval>
</thing>