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

Show Rolls in Calculations

Hello there!  Let me start by saying I have absolutely 0 experience doing coding of any kind.  The tl;dr is that I've taken Arioch1973's Warhammer 4e character sheet HTML code from pastebin and been modifying it for my own use as something of an experiment, trying to learn HTML as I went.  So far it's been pretty good, but there's a feature I'd like to add and have no idea how to go about doing it other than that I was told it could only be done through API and not the HTML code itself.  Essentially, for roll calculations, I'd like the resulting output to display all the numbers in the calculation and not just the 'answer'.  I.E., if I'm rolling a 1d100 with a +22 stat and get a 65, I'd like it to show "22 + 65 = 87" and not just "87". This is the line so far, which just gives me a straight answer (if this information is even relevant for API): <td style="text-align:left; width:8.3%"><button type="roll" name="roll_WS" value="&{template:wfrp4} {{title=Weapon Skill}} {{dice=[[ 1d100+?{Modifier?|0}+@{Current_WS} ]]}}"><label style="text-align:center">WS</label></button>
1568400764
Kraynic
Pro
Sheet Author
Since the Power Cards script was mentioned in your previous thread, you might want to check out the current thread for that script:&nbsp;&nbsp; <a href="https://app.roll20.net/forum/post/7136858/script-powercards-3-thread-6/?pagenum=1" rel="nofollow">https://app.roll20.net/forum/post/7136858/script-powercards-3-thread-6/?pagenum=1</a>
Will do, thank you.