View Single Post
royalfa
Member
 
Join Date: Feb 2011
Posts: 37

Old February 12th, 2011, 08:09 PM
Thanks again Mathias, the link you post is empty but I find what I need and fix both things.

Now I have a trouble:

I create a thing_savingthrows.dat with the Def, Fort, Dex and Will things.

Quote:
<thing
id="vDef"
name="Defense"
compset="Save">
<fieldval field="vOutName" value="DEFENSE"/>
<fieldval field="vAbbr" value="Def"/>
<fieldval field="vAttrName" value="(DEXTERITY)"/>
<tag group="explicit" tag="5"/>
<link linkage="LinkAttr" thing="attrDex"/>
</thing>
And then in the traits.str I construct the component Save

Quote:
<component
id="Save"
name="Save"
autocompset="no">

<!-- Bonus from ability scores -->
<field
id="defAbility"
name="Ability Bonus"
type="derived"
maxfinal="25">
<calculate phase="Traits" priority="20000" name="Calc defAbility">
<before name="Derived trtFinal"/>
<after name="Calc attrBonus"/><![CDATA[

perform linkage[LinkAttr].setfocus
~set our value and modify our bonus
@value = focus.field[attrBonus].value
perform field[trtBonus].modify[+,@value,focus.field[name].text]
]]></calculate>
<finalize><![CDATA[
@text = signed(@value)
]]></finalize>
</field>
</component>
But when I try to refer to the linkage HL send me an error message

Quote:
non-existent linkage "LinkAttr" used by script
Really I look for everywhere and don'f find how to fix this.
royalfa is offline   #6 Reply With Quote