Senior Member
Join Date: May 2013
Posts: 1,458
|
I'm experimenting with the character sheet (sheet_standard1.dat), and I'm confused by an issue. When I use output_label with a text element, things seem to work as expected. But when I use a labeltext script, things do not work as expected (meaning not what I would have expected).
So here's my code for what works: Code:
<template id="oAgility" name="Agility" compset="Attribute"> <portal id="oAgility" style="outNormal"> <output_label text="hello"> </output_label> </portal> <position><![CDATA[ portal[oAgility].top=0 ]]></position> </template> Code:
<template id="oAgility" name="Agility" compset="Attribute"> <portal id="oAgility" style="outNormal"> <output_label> <labeltext><![CDATA[ @text = "hello" ]]></labeltext> </output_label> </portal> <position><![CDATA[ portal[oAgility].top=0 ]]></position> </template> When I switch between these two methods, I'm not changing any other code anywhere else in the file. I'm probably missing something simple (again), but I've looked it over and over, and compared it to other examples. Whatever I'm missing, I haven't been able to figure it out yet. |
#1 |
|
|