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

Auto Calculation Issue

1420845183

Edited 1420845326
Patrick Gebhardt
Sheet Author
I have a issue with the calculation with of my Main Stats when there is a wound modifier when i roll on the Main stat when the wound modifieris on 0 everything is normal, but when the modifier is on the value in the box i correctly calcaulated but when clicking on the roll button the modified value is not used but instead the unmodified or a value that is not even entered code for calculating the Main Stat "@{MU}" and rolling on it line:80 &lt;input type=number style='width: 4em' name="attr_MU_Basis"&gt; &lt;input type=number disabled=true style='width: 3em;' name="attr_MU" value="(@{MU_Basis}-(@{wound_Kopf}*2)) "&gt; &lt;button type=roll value="[[@{MU}-1d20]] Mutprobe"&gt;&lt;/button&gt; code to set/calculate "@{wound_Kopf} line:816 &lt;input type=checkbox name="attr_wound_Kopf1" value="1"&gt; &lt;input type=checkbox name="attr_wound_Kopf2" value="1"&gt; &lt;input type=checkbox name="attr_wound_Kopf3" value="1"&gt;&lt; line:825 &lt;input type=number disabled=true name="attr_wound_Kopf" value="(@{wound_Kopf1}+@{wound_Kopf2}+@{wound_Kopf3})"&gt; whole sheet: <a href="https://github.com/Meteox/DSA_character_sheet_roll" rel="nofollow">https://github.com/Meteox/DSA_character_sheet_roll</a>...
1420846572
Lithl
Pro
Sheet Author
API Scripter
I'm not familiar with the system, but based purely on the calculations, the roll is producing the output I expect. The only thing I can think of is that you changed the value of Basis and didn't let the control lose focus before hitting the roll button, which means that the changed value hasn't saved yet. You need to click somewhere else in the window or hit [tab] so that the number input loses focus and the game saves the new value.
On your sheet, you are missing "attr_wound_Kopf3" in the "attr_wound_Kopf3" spot. I don't know if that was intentional. As far as I can, the Mut, Klugheit, and Intution fields are populating correctly, and the rolls seem good. Have you tired going to the "Attributes & Abilities tab, deleting everything there, and then tabbing through the sheet to re-save all the values? The sheet might be hung up on an attribute you put in long ago. My assistance is limited not only by my experince and skill, but also my lack of knowledge on the system and language.
1420914157

Edited 1420914418
Patrick Gebhardt
Sheet Author
the missing "attr_wound_Kopf3" is intentional as the third wound in the spot as a other effect as the first two edit: deleting everything in the Attributes & Abilities tab solved it, thanks
...I was right about something? I am writing this date down.
Umm...how would I go about creating an auto calculation, but have it display it on my character sheet? Or is that too complex to work with Roll20?
1421619215
vÍnce
Pro
Sheet Author
Jonathan D. said: Umm...how would I go about creating an auto calculation, but have it display it on my character sheet? Or is that too complex to work with Roll20? <a href="https://wiki.roll20.net/Character_Sheets#Auto-Calculating_Values" rel="nofollow">https://wiki.roll20.net/Character_Sheets#Auto-Calculating_Values</a>