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 .
Advertisement Create a free account Compendium in Game, Join Today

Re-use die rolls in macros, treated as numbers rather than just text

Score + 21
1599612825
David M.
Pro
API Scripter
We can currently re-use dice rolls (sort of) in macros/abilities using the $[[0]] syntax described here , but currently can only return the text of the roll. It would often be very convenient to be able to perform mathematical operations or otherwise treat these die rolls as actual numbers, like [[$0]] + 4, or [[ $[[0]]d6 ]]. If this has been suggested before, point me in the right direction and I will delete this and upvote it!
Turns out I had a spare vote, so +1. It feels like setting the macro difficulty slider down to "Easiest", though :)
1600228690
Vince
Pro
Sheet Author
Everyone pile on!  This has been such a requested feature on the forums over the years.  How is this not already a suggestion?
1600246083
Ziechael
Forum Champion
Sheet Author
API Scripter
... And my Axe! We've hit that magic 10 votes at least!
1600260750
ᐰndreas J.
Forum Champion
Sheet Author
Had to move a vote form elsewhere to this one, good suggestion. Currently the Reusing Rolls page just copes/list the prominent forum posts on the subject, but it would be great if someone where to organize it a bit. I created the page, but haven't had the time to get more familiar with the stuff to be able to make the documentation more clear. I added a link to this thread on the page, and posted about this in the Reusing Rolls - Megathread .
1600262268
David M.
Pro
API Scripter
Thanks for spreading the word, Andreas! Oosh & Ziechael: HAHA!
David, maybe you should cherry-pick some of the cleverer uses and edit them into the top post? There's been some crackers, but trimming them down to "I just clicked on this suggestion thread" level will probably take some work.