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

Macro Referencing Previous Rolls

Hi everyone, this may be very obvious or it may be totally impossible, I have no idea. I run a dice game sort of like black jack where you can "hit" by adding another die to the previous total. I would love to be able to automate it so that the "hit" macro includes your previous roll as well. Any way I can do that?
1642126343

Edited 1642126380
GiGs
Pro
Sheet Author
API Scripter
There's no direct way to do that without an API sxcript (requiring the GM to have a Pro subscription). If you aren't using the turn tracker, you can cheat by using that. Ad &{tracker} to the roll and it will be added to the initiative tracker, and you can then grab the initiative value (can't remember the command offhand, it's in the wiki) in subsequent rolls. So have 2 macros: one that makes basic rolls, and adds to the turn tracker One that reads the value from turn tracker and adds a d6 to it.