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

One dice result for muliple equation displays

1710477893

Edited 1710478789
Is there a way to reference one dice result in mulitple parts of a template for different equasions? For example: &{template:default} {{name=Test}} {{Test Result = [[55 - d100]]}} {{Bonus = (---TEST RESULT---)/10}}
1710479626

Edited 1710506321
Gauss
Forum Champion
Hi Kangee,  The answer is a complicated one and completely depends on what you'd like to do with it.  If the example you provided is one such thing you'd like to do you can do it like this:  &{template:default} {{name=Test}} [[[[55 - d100]]/10]] {{Test Result=$[[0]]}} {{Bonus=$[[1]]}} I put the calculation in-between the {{}} sections, then have the inside calculation referenced in Test Result and the total calculation referenced in Bonus. 
Thank you very much that's exactly what I'm after and now I see how it's done.
1710510939
GiGs
Pro
Sheet Author
API Scripter
You can see more about the concept here: <a href="https://wiki.roll20.net/Reusing_Rolls" rel="nofollow">https://wiki.roll20.net/Reusing_Rolls</a>