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

problem with calculated values in character sheet

Hi Roll20 Community I have found several forums entries related this but somehow most of these threats totally wandered of the original topic without answering the initial question. I need to create a charactersheet which is able to calculate several values depending on entered attributes and "skillranks". The formula I am using looks like this: <td>     <label>Gewandtheit</label>     <input type="number" name="attr_GE" value="0" /> </td> <td>     <label>EW</label>     <input type="number" name="attr_GEEW" value="(@{GE}+@{GE}-5)"  disabled="true" /> </td> <td>     <button type="roll" value="/roll 2d20-@{GEEW}" name="roll_GECheck"></button> </td> The problem with this, it seems that the system is not putting a real value for GEEW in any place in the attribute and abilities tab for this calculation and thats why its totally messing up the value="/roll 2d20-@{GEEW}" and just throws out the whole calculation of GE+GE-5. This leads to having issues to further calculate with GEEW since i need the "real" number for later math. I am very new to all this API stuff and my only experience before was dabbling in lua scripting and very rudimentary html. So please don't assume "na that to easy" because for me it took me several hours and i am not moving forward. Se yes i am a noob, but want to learn.
1605724850
Andreas J.
Forum Champion
Sheet Author
Translator
Rather than using autocalc values, it's smarter to use sheetworkers to do the calculations, better in every way. <a href="https://wiki.roll20.net/Sheet_Worker_Scripts" rel="nofollow">https://wiki.roll20.net/Sheet_Worker_Scripts</a> (you've accidentally posted this thread in the API forums, rather than the char sheet forum. you could repost your thread in there for better visibility, and then just delete this old one as redundant.)
Thank You! Sheet Workers solved my Problem!