drahkar
January 7th, 2010, 02:23
Does anyone see anything wrong with the following:
Template Code -
<template name="qualityscore">
<numberfield>
<anchored>
<position>belowleft</position>
<offset>0,7</offset>
<size>
<width>32</width>
<height>20</height>
</size>
</anchored>
<frame>
<name>bonus</name>
<offset>5,5,5,5</offset>
</frame>
<keyeditframe>
<name>sheetfocus</name>
<offset>5,5,5,5</offset>
</keyeditframe>
<font>sheetnumber</font>
<script>
function onInit()
if getValue() == 0 then
setValue(12);
end
end
</script>
</numberfield>
</template>
Attempt to use Template -
<qualityscore name="strength" source="qualities.strength.score">
<anchored>
<to>name</to>
<offset>0,7</offset>
</anchored>
</qualityscore>
So far as I can tell this is exactly as it should be. However for some reason the field doesn't show up on the character sheets. Any thoughts?
Template Code -
<template name="qualityscore">
<numberfield>
<anchored>
<position>belowleft</position>
<offset>0,7</offset>
<size>
<width>32</width>
<height>20</height>
</size>
</anchored>
<frame>
<name>bonus</name>
<offset>5,5,5,5</offset>
</frame>
<keyeditframe>
<name>sheetfocus</name>
<offset>5,5,5,5</offset>
</keyeditframe>
<font>sheetnumber</font>
<script>
function onInit()
if getValue() == 0 then
setValue(12);
end
end
</script>
</numberfield>
</template>
Attempt to use Template -
<qualityscore name="strength" source="qualities.strength.score">
<anchored>
<to>name</to>
<offset>0,7</offset>
</anchored>
</qualityscore>
So far as I can tell this is exactly as it should be. However for some reason the field doesn't show up on the character sheets. Any thoughts?