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
This post has been closed. You can still view previous posts, but you can't post any new replies.

Using the same die roll twice without rerolling it (D&D 5e, macro making)

1547920681

Edited 1547922776
Karl
Pro
There is a spell that applies the same 4d8 roll twice in two different ways.  What I am trying to do is to get the single result to apply in two different ways. As I try to get the macro to behave as the spell does, I discover that I don't know how to map the bolded 4d8 into the second use of the same roll.  (Bolded for ease of description).  /me life transference attempt [[ 4d8 ]] | necrotic damage | [[ {4d8}*(2) + 4 + 5 ]] | healing | and trying [[ 4d8 ]] | [[{4d8}*2 + @{selected|wisdom_mod} [Wisdom Mod] + 2 + 3]] the result  looks like this What I am trying to do is have the 4d8 rolled once; the first time the value is applied raw, and the second time the value is applied as doubled with modifiers.  As shown, each instance of 4d8 is rolled separately.   How do I need to change this macro so that the 4d8 is not rolled twice?  Solution requested: Find a way to make the bolded (and only roll of) /r 4d8 (the value  a) be used in two locations.  Can I insert  a  into the second piece of the macro so that is looks something like this?     /me life transference attempt [[ a ]] | necrotic damage | [[ { a }*(2) + 4 + 5 ]] | healing    (et cetera)  /me life transference attempt [[ 4d8 ]] | necrotic damage | [[ {4d8}*(2) + 4 + 5 ]] | healing | and trying [[ 4d8 ]] | [[{4d8}*2 + @{selected|wisdom_mod} [Wisdom Mod] + 2 + 3]]
1547921075

Edited 1547921160
vÍnce
Pro
Sheet Author
The standard dice/macro mechanic will not store rolls.  I believe you will need to use an API script like PowerCards to store a roll and apply it to multiple calculations.
OK, I'll take a peak at that and reply after I mull that over. Thank you. Vince said: The standard dice/macro mechanic will not store rolls.  I believe you will need to use an API script like PowerCards to store a roll and apply it to multiple calculations.
1547921874
vÍnce
Pro
Sheet Author
Actually, I'm not sure Powercards can even do it.  It would probably be best to make a post to the Powercards thread.  Lot's of PowerCard experts there. ;-)
Vince said: Actually, I'm not sure Powercards can even do it.  It would probably be best to make a post to the Powercards thread.  Lot's of PowerCard experts there. ;-) Oh, I am reviewing some of the stuff there, so I guess I need to ask. Thank you. :)  
Vince said: Actually, I'm not sure Powercards can even do it.  It would probably be best to make a post to the Powercards thread.  Lot's of PowerCard experts there. ;-) I asked, but oddly my post got overwritten by someone else's post. I'll ask later when I have more time, thanks again for the help.   K