so I'm trying to swap images based on my attribute values. When I compile, I keep getting the following error message:
Hero Lab was forced to stop compilation after the following errors were detected:
Portal 'health' - Reference to incompatible field type/style/behavior on portal type
Here's my code:
traits.str
tab_basics.dat
Hero Lab was forced to stop compilation after the following errors were detected:
Portal 'health' - Reference to incompatible field type/style/behavior on portal type
Here's my code:
traits.str
Code:
<!-- Health image name -->
<field
id="attImage"
name="Image"
type="derived">
<!-- Determine this value based on the current value of the attribute -->
<calculate phase="Traits" priority="3001" name="Calc attImage"><![CDATA[
~Note! Happens immediately after we get the final value of the related stat
var image as string
image = field[trtAbbrev].text & "-" & field[trtFinal].value & ".bmp"
debug "Attribute Value" & image
@value = image
]]></calculate>
</field>
tab_basics.dat
Code:
<portal id="health" style="imgNormal">
<image_field field="attImage" istransparent="yes"/>
</portal>