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

Conditional display

I have a macro with3 different rolls that display inside on template.  I want to show only the roles based on a variable.  For example I have a variable that store the amount of d6s to roll if it's two I only want to display to if it's three I want to display 3  is this something that can be done?
1496800259
The Aaron
Pro
API Scripter
Not without the API (pro subscriber perk).  You could use a Roll Query to choose which roll to perform, but not based on an attribute like that.
How do you setup a roll query ?
1496801783
The Aaron
Pro
API Scripter
Something like:  [[ ?{How many dice|1|2|3}d6 ]]
Thanks.