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 - Setting a maximum number of dice that can be rolled limit.

I have the following Divine Smite Macro [[[[(?{Spellslot|1st lvl,2|2nd lvl,3|3rd lvl,4|4th lvl,5|5th lvl,6} + ?{Undead/Fiend|No,0|Yes,1})*?{Crit|No,1|Yes,2}]]d8[Radiant] ]] Radiant And it is working perfectly so far, except for one thing. The divine smite feature only allows up to 5d8's and already my character is capable of rolling six if lucky. How do I impose a limit, so a maximum of five dive can be rolled? I've looked on the wiki and other threads for clues, but I just can't see how. It's properly something easy I've overlooked and if so I apologize in ad advance.
1534064994
Ziechael
Forum Champion
Sheet Author
API Scripter
Here is the portion of the wiki that allows a maximum/minimum bounding on rolls. For yours you can just wrap the dice deciding portion in a keep lowest function: [[[[ { (?{Spellslot|1st lvl,2|2nd lvl,3|3rd lvl,4|4th lvl,5|5th lvl,6} + ?{Undead/Fiend|No,0|Yes,1})*?{Crit|No,1|Yes,2} ,5}kl1 ]]d8[Radiant] ]] Radiant
It is working perfectly. Thank you very much.