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

[Macros] Is there a way to use the same roll result twice on a macro?

1640000261

Edited 1640000335
Hi all Basically I am making a Macro to represent the 5e d&d spell "Life Transference", which for those who aren't familiar with the spell it basically rolls 3d8 in damage, and then awards double that damage in health to another target. So I wanted to make a macro that rolls the damage, then elsewhere in the macro it shows the result(x2) as the heal amount. Something like "You take [[3d8]] damage, and heal [[previous roll*2]]." I know I can just simply make a macro that rolls 3d8 and then double the amount in my head but I want to make a swish looking macro for ease. Is there a way to do this or would this require api functionality?
You can't use a roll inside inline rolls twice but you can reference rolls for display multiple times. This allows you to show a roll that has been nested inside another. You take $[[0.computed]] damage, and heal [[ [[3d8]]*2]]. More details on Reusing Rolls on the wiki
That is perfect thank you so much! Knowing how that works also helps with some other Macro ideas I had.