Another question
My Advancement is linked to a Skill, and that Skill is linked to an Attribute
From within my Advancement Gizmo, is there any way to get to a field in the Attribute.
I'd like to get to it at the point below where it says "debug "In Gizmo"
I believe linkage[basis] would get me access to the Skill fields but not the attribute fields
Code:
<!-- Net final roll that includes the value of the linked attribute -->
<field
id="sklRoll"
name="Net Skill Roll"
type="derived">
<calculate phase="Traits" priority="5000" name="Calc sklRoll">
<after name="Calc trtFinal"/><![CDATA[
~only access the linkage if the skill is directly on the hero; if not, it is
~likely within an advancement gizmo and no linkage will exist there
if (compare(field[trtAbbrev].text,"Barg")=0) then
debug "Calculate in sklRoll field " & field[trtAbbrev].text & @value
endif
if (container.ishero <> 0) then
@value = field[trtFinal].value + linkage[attribute].field[trtFinal].value + linkage[attribute].field[trtRacial].value + field[trtRacial].value
else
debug "NOT IN HERO - sklRoll"
if (tagis[Advance.Gizmo] <> 0) then
debug "In Gizmo " & origin.parent.field[advOrder].value
endif
endif
if (compare(field[trtAbbrev].text,"Barg")=0) then
debug "Calculate2 in sklRoll field " & field[trtAbbrev].text & @value
endif
]]></calculate>
</field>
<!-- Each skill is associated with a specific attribute that must be identified -->
<linkage linkage="attribute" optional="no"/>
<linkage linkage="skill" optional="yes"/>