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

Question about Macros - Reusing a value from a roll in the same macro

1431206632

Edited 1431206675
As the title suggested, is there a way to retrieve the value of a roll made in a macro and use it again later in the macro? Idealy, this is what I want my macro to look like. My DM does the math for determining stuff in a different way and I'm trying to make my macros easier on him /e makes an attack. [[ 20 - d20 roll - modifiers ]] vs ac [[ Value for roll made earlier ]] Roll | [[ 20 - Mods ]] Adjusted Thac0 Polished it would look something like this: Austin makes an attack with his sword! [[ 2 ]] vs Ac! (20 - a roll of 10 - a mod of 8) [[ 10 ]] Roll | [[ 12 ]] Adjusted Thac0
1431209237
Gen Kitty
Forum Champion
Only with the use of API which would require the creator of your GM's campaign to have a mentor level subscription.
1431211265
Spren
Sheet Author
Like Genkitty said you can't save the roll. What you may want to consider is a simple roll macro and then have a query pop up an entry for the roll in a second macro. So the GM would do this: 1. roll the d20. 2. hit the macro button, which will prompt him for the outcome of the roll he just rolled which he enters. 3. the macro fills in all the stuff using his roll Using your example: First macro: [[d20]] Second macro: /e makes an attack. [[ 20 - ?{Roll Outcome|1} - modifiers ]] vs ac [[ ?{Roll Outcome|1} ]] Roll | [[ 20 - Mods ]] Adjusted Thac0
Thanks for the help guys, solved my problem!