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 .
×

Showing Totals and individual rolls.

Hello! So, my character has a lot of mods to their skills depending on certain ability usage, etc. So I was wondering how to have the sums show AND individual rolls. On a basic level, showing something like: "Ability w/ Guidance, ability total w/o Guidance" (This is oversimplified, but should get the job done). I can easily query things like guidance, but there'd be some benefit for my character to be able to query and list potential totals.
1600187304
Andreas J.
Forum Champion
Sheet Author
Translator
You might be able to use this: <a href="https://wiki.roll20.net/Reusing_Rolls" rel="nofollow">https://wiki.roll20.net/Reusing_Rolls</a>
I have to take a closer look, but at first glance, that's exactly what I needed, thank you.
1600196719
David M.
Pro
API Scripter
One key takeaway to reiterate from the link Andreas gave is that you often have to be creative in the output, as you can't perform any mathematical operations on the re-used rolls. If anybody's interested in gaining this capability, I started a suggestion thread for expressly this purpose that didn't get much immediate traction, so thought I would share here.&nbsp; <a href="https://app.roll20.net/forum/post/9161706/re-use-die-rolls-in-macros-treated-as-numbers-rather-than-just-text/?pageforid=9161706#post-9161706" rel="nofollow">https://app.roll20.net/forum/post/9161706/re-use-die-rolls-in-macros-treated-as-numbers-rather-than-just-text/?pageforid=9161706#post-9161706</a>
1600197677
GiGs
Pro
Sheet Author
API Scripter
I dont think there's any chance that will be implemented, because I think this $[[0]] feature is a bug, but I just voted for it anyway! It would be nice to be able to use them this way.
You could always create global ability modifiers for your sheet (provided the sheet has them)
1600227837
Oosh
Sheet Author
API Scripter
Is this for 5e? Because that gets a bit tricky with globals. If you don't use the actual global field, and you roll with (dis)advantage, you'll get two different Guidance rolls. If you do use the global field, there's no way to add it to the die roll, without API. So what you're asking can be done: &amp;{template:default} {{name=Roll stuff}} [[ [[1d20]] + [[1d6]][RND] + [[?{Guidance|Yes,1d4|No,0}]] ]] {{d20 Roll=$[[0]]}} {{Random Bonus=$[[1]]}} {{Guidance=$[[2]]}} {{Total=$[[3]]}} It just has limited use once you bring Advantage rolls into the mix. It also gets complicated very quickly if you try to make a universal macro - changing the number of rolls in any way will change all those roll callbacks and break the output. It's good for specific uses, though.