Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

generating a chart using variables on a sheet (like auto-calculate for repeat)

I am trying to generate a simple chart and wondering if there is a way to do this. Here is the html snippet. Short version, trying to display the calculated "@{THACO}-(SomeAC)" and all I get is ""@{THACO}-(SomeAC)" not a number. The below does not process (all I see is the value I set). Kinda got spoiled with the auto-calculation jazz for repeat sections and thought maybe this would work but I must be going about it the wrong way. I tried [[]] around one just to see if it worked but didn't there either ;( <table border="1" width="100%"> <tr> <td style="background:#FFFFCC" colspan="22" align="center">D20 Roll</td> </tr> <tr> <td>ROLL</td> <td><input readonly="true" type="text" value="@{THACO}-(-10)" name="attr_thaco_combat_-10"/></td> <td><input readonly="true" type="text" value="@{THACO}-(-9)" name="attr_thaco_combat_-9"/></td> <td><input readonly="true" type="text" value="@{THACO}-(-8)" name="attr_thaco_combat_-8"/></td> <td><input readonly="true" type="text" value="@{THACO}-(-7)" name="attr_thaco_combat_-7"/></td> <td><input readonly="true" type="text" value="@{THACO}-(-6)" name="attr_thaco_combat_-6"/></td> <td><input readonly="true" type="text" value="@{THACO}-(-5)" name="attr_thaco_combat_-5"/></td> <td><input readonly="true" type="text" value="@{THACO}-(-4)" name="attr_thaco_combat_-4"/></td> <td><input readonly="true" type="text" value="@{THACO}-(-3)" name="attr_thaco_combat_-3"/></td> <td><input readonly="true" type="text" value="@{THACO}-(-2)" name="attr_thaco_combat_-2"/></td> <td><input readonly="true" type="text" value="@{THACO}-(-1)" name="attr_thaco_combat_-1"/></td> <td><input style="color:maroon;" readonly="true" type="text" value="[[@{THACO}-(0)]]" name="attr_thaco_combat_0"/></td> <td><input readonly="true" type="text" value="@{THACO}-(1)" name="attr_thaco_combat_1"/></td> <td><input readonly="true" type="text" value="@{THACO}-(2)" name="attr_thaco_combat_2"/></td> <td><input readonly="true" type="text" value="@{THACO}-(3)" name="attr_thaco_combat_3"/></td> <td><input readonly="true" type="text" value="@{THACO}-(4)" name="attr_thaco_combat_4"/></td> <td><input readonly="true" type="text" value="@{THACO}-(5)" name="attr_thaco_combat_5"/></td> <td><input readonly="true" type="text" value="@{THACO}-(6)" name="attr_thaco_combat_6"/></td> <td><input readonly="true" type="text" value="@{THACO}-(7)" name="attr_thaco_combat_7"/></td> <td><input readonly="true" type="text" value="@{THACO}-(8)" name="attr_thaco_combat_8"/></td> <td><input readonly="true" type="text" value="@{THACO}-(9)" name="attr_thaco_combat_9"/></td> <td><input readonly="true" type="text" value="@{THACO}-(10)" name="attr_thaco_combat_10"/></td> </tr> <tr> <td>AC</td> <td><input readonly="true" type="text" value="-10" name="attr_thaco_combat_ac_-10"/></td> <td><input readonly="true" type="text" value="-9" name="attr_thaco_combat_ac_-9"/></td> <td><input readonly="true" type="text" value="-8" name="attr_thaco_combat_ac_-8"/></td> <td><input readonly="true" type="text" value="-7" name="attr_thaco_combat_ac_-7"/></td> <td><input readonly="true" type="text" value="-6" name="attr_thaco_combat_ac_-6"/></td> <td><input readonly="true" type="text" value="-5" name="attr_thaco_combat_ac_-5"/></td> <td><input readonly="true" type="text" value="-4" name="attr_thaco_combat_ac_-4"/></td> <td><input readonly="true" type="text" value="-3" name="attr_thaco_combat_ac_-3"/></td> <td><input readonly="true" type="text" value="-2" name="attr_thaco_combat_ac_-2"/></td> <td><input readonly="true" type="text" value="-1" name="attr_thaco_combat_ac_-1"/></td> <td><input style="color:maroon;" readonly="true" type="text" value="0" name="attr_thaco_combat_ac_0"/></td> <td><input readonly="true" type="text" value="1" name="attr_thaco_combat_ac_1"/></td> <td><input readonly="true" type="text" value="2" name="attr_thaco_combat_ac_2"/></td> <td><input readonly="true" type="text" value="3" name="attr_thaco_combat_ac_3"/></td> <td><input readonly="true" type="text" value="4" name="attr_thaco_combat_ac_4"/></td> <td><input readonly="true" type="text" value="5" name="attr_thaco_combat_ac_5"/></td> <td><input readonly="true" type="text" value="6" name="attr_thaco_combat_ac_6"/></td> <td><input readonly="true" type="text" value="7" name="attr_thaco_combat_ac_7"/></td> <td><input readonly="true" type="text" value="8" name="attr_thaco_combat_ac_8"/></td> <td><input readonly="true" type="text" value="9" name="attr_thaco_combat_ac_9"/></td> <td><input readonly="true" type="text" value="10" name="attr_thaco_combat_ac_10"/></td> </tr> <tr> <td  style="background:#FFCC00;" colspan="22" align="center">AC Hit</td> </tr> </table>
1468215038
Lithl
Pro
Sheet Author
API Scripter
For an autocalc field, you need disabled , not readonly .
1468215129

Edited 1468245832
I've tried disabled="true" inplace of the readonly="true" first. The snippet below doesn't work either. I only tested readonly=true was because I could actually change the values in the "disabled" blocks on the sheet (which it should be disabled). This is what the output looks like (you can see my cursor in the "disabled" box. <a href="http://i.imgur.com/ReBndOC.png" rel="nofollow">http://i.imgur.com/ReBndOC.png</a> &lt;table border="1" width="100%"&gt; &lt;tr&gt; &lt;td style="background:#FFFFCC" colspan="22" align="center"&gt;D20 Roll&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ROLL&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="@{THACO}-(-10)" name="attr_thaco_combat_-10"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="@{THACO}-(-9)" name="attr_thaco_combat_-9"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="@{THACO}-(-8)" name="attr_thaco_combat_-8"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="@{THACO}-(-7)" name="attr_thaco_combat_-7"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="@{THACO}-(-6)" name="attr_thaco_combat_-6"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="@{THACO}-(-5)" name="attr_thaco_combat_-5"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="@{THACO}-(-4)" name="attr_thaco_combat_-4"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="@{THACO}-(-3)" name="attr_thaco_combat_-3"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="@{THACO}-(-2)" name="attr_thaco_combat_-2"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="@{THACO}-(-1)" name="attr_thaco_combat_-1"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input style="color:maroon;" disable="true" type="text" value="@{THACO}-(0)" name="attr_thaco_combat_0"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="@{THACO}-(1)" name="attr_thaco_combat_1"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="@{THACO}-(2)" name="attr_thaco_combat_2"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="@{THACO}-(3)" name="attr_thaco_combat_3"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="@{THACO}-(4)" name="attr_thaco_combat_4"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="@{THACO}-(5)" name="attr_thaco_combat_5"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="@{THACO}-(6)" name="attr_thaco_combat_6"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="@{THACO}-(7)" name="attr_thaco_combat_7"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="@{THACO}-(8)" name="attr_thaco_combat_8"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="@{THACO}-(9)" name="attr_thaco_combat_9"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="@{THACO}-(10)" name="attr_thaco_combat_10"/&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;AC&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="-10" name="attr_thaco_combat_ac_-10"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="-9" name="attr_thaco_combat_ac_-9"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="-8" name="attr_thaco_combat_ac_-8"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="-7" name="attr_thaco_combat_ac_-7"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="-6" name="attr_thaco_combat_ac_-6"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="-5" name="attr_thaco_combat_ac_-5"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="-4" name="attr_thaco_combat_ac_-4"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="-3" name="attr_thaco_combat_ac_-3"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="-2" name="attr_thaco_combat_ac_-2"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="-1" name="attr_thaco_combat_ac_-1"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input style="color:maroon;" disable="true" type="text" value="0" name="attr_thaco_combat_ac_0"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="1" name="attr_thaco_combat_ac_1"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="2" name="attr_thaco_combat_ac_2"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="3" name="attr_thaco_combat_ac_3"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="4" name="attr_thaco_combat_ac_4"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="5" name="attr_thaco_combat_ac_5"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="6" name="attr_thaco_combat_ac_6"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="7" name="attr_thaco_combat_ac_7"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="8" name="attr_thaco_combat_ac_8"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="9" name="attr_thaco_combat_ac_9"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input disable="true" type="text" value="10" name="attr_thaco_combat_ac_10"/&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td &nbsp;style="background:#FFCC00;" colspan="22" align="center"&gt;AC Hit&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;
ok, I'm an idiot. Sitting here I look at that and finally noticed.. "disable" != "disabled". Nothing to see here!
1468247555
Ziechael
Forum Champion
Sheet Author
API Scripter
Celestian said: ok, I'm an idiot. Sitting here I look at that and finally noticed.. "disable" != "disabled". Nothing to see here! At least you can guarantee you'll not be making that mistake EVER again now, such is the beauty of public humiliation ;)
1468250811
Lithl
Pro
Sheet Author
API Scripter
Ziechael said: Celestian said: ok, I'm an idiot. Sitting here I look at that and finally noticed.. "disable" != "disabled". Nothing to see here! At least you can guarantee you'll not be making that mistake EVER again now, such is the beauty of public humiliation ;) Please, I make stupid mistakes like that all &nbsp;the time. =P
1468254202
Ziechael
Forum Champion
Sheet Author
API Scripter
Brian said: Ziechael said: Celestian said: ok, I'm an idiot. Sitting here I look at that and finally noticed.. "disable" != "disabled". Nothing to see here! At least you can guarantee you'll not be making that mistake EVER again now, such is the beauty of public humiliation ;) Please, I make stupid mistakes like that all &nbsp;the time. =P But do you ever make the exact same one twice? ;) I tend to just find new &nbsp;ways to make similar mistakes myself...
1468261104
Lithl
Pro
Sheet Author
API Scripter
Ziechael said: Brian said: Ziechael said: Celestian said: ok, I'm an idiot. Sitting here I look at that and finally noticed.. "disable" != "disabled". Nothing to see here! At least you can guarantee you'll not be making that mistake EVER again now, such is the beauty of public humiliation ;) Please, I make stupid mistakes like that all &nbsp;the time. =P But do you ever make the exact same one twice? ;) I tend to just find new &nbsp;ways to make similar mistakes myself... Sure, I make the same stupid mistakes on a regular basis.
I am notoriously bad at copy/pasting a mistake (which is what happened here) so I've no doubt I'll do it again but before I post I'll at least notice it I hope!