MeepoSose
October 27th, 2008, 05:25
I've tried adding a new icon cycler to the NPC sheet for the SWSE_II ruleset and I can't get anything to display. If I adjust the height and width, it makes an appropriately sized blank space but doesn't ever show my icons. In the scripts folder, I see there is a template_iconcycler.lua. Do I need to somehow reference this?
Anyway, here is my xml so far:
<iconcycler name="condition">
<anchored>
<left>
<anchor>left</anchor>
<offset>5</offset>
</left>
<top>
<anchor>top</anchor>
<offset>15</offset>
</top>
<size>
<width>20</width>
<height>20</height>
</size>
</anchored>
<sourcefields>
<icons>condition_normal|condition_one|condition_two|condi tion_five|condition_ten|condition_helpless</icons>
<values>0|-1|-2|-5|-10|-99</values>
<srcnode>condition</srcnode>
<defaulticon>condition_normal</defaulticon>
</sourcefields>
<script>
function onInit()
super.onInit();
if not User.isHost() then
setReadOnly(true);
end
end
</script>
</iconcycler>
Anyway, here is my xml so far:
<iconcycler name="condition">
<anchored>
<left>
<anchor>left</anchor>
<offset>5</offset>
</left>
<top>
<anchor>top</anchor>
<offset>15</offset>
</top>
<size>
<width>20</width>
<height>20</height>
</size>
</anchored>
<sourcefields>
<icons>condition_normal|condition_one|condition_two|condi tion_five|condition_ten|condition_helpless</icons>
<values>0|-1|-2|-5|-10|-99</values>
<srcnode>condition</srcnode>
<defaulticon>condition_normal</defaulticon>
</sourcefields>
<script>
function onInit()
super.onInit();
if not User.isHost() then
setReadOnly(true);
end
end
</script>
</iconcycler>