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

[5e OGL] Can a roll be stored as a variable and used later in the macro?

I am trying to make things a little easier for gameplay, and want at the bottom of my macro to display the total damage given.  I want to also preface this by saying I am playing DnD 5e. So my macro currently sits like this: ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- @{Morren Arakhora|wtype}&{template:traits} @{Morren Arakhora|charname_output} {{name=Extra Attack (Rapier)}} {{source=Melee}} {{description=Beginning at 5th level, you can attack twice, instead of once, whenever you take the Attack action on your turn Attack 1: [[[[1d20]] + @{Morren Arakhora|dexterity_mod} + @{Morren Arakhora|pb}]] Attack 2: [[[[1d20]] + @{Morren Arakhora|dexterity_mod} + @{Morren Arakhora|pb}]] Dmg 1: [[[[1d8]] + @{Morren Arakhora|dexterity_mod}]] (Piercing) + Crit: [[1d8]] Dmg 2: [[[[1d8]] + @{Morren Arakhora|dexterity_mod}]] (Piercing) + Crit: [[1d8]] }} #Enemy-Vanquisher-1 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Let me explain just for readability; "Morren Arakhora" is my character name, and "#Enemy-Vanquisher-1" is a macro set by our GM as an additional damage roll that is like an achievement for killing monsters. This current setup works beautifully, I just can't figure out how to set the damage rolls as variables to add them up at the bottom. Any thoughts?
1513602056
The Aaron
Pro
API Scripter
Storing information from rolls isn’t possible without them API, a Pro subscriber perk.