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

Pathfinder caster level caps in spell macro

For many spells in the Pathfinder 1e system, they cap at X caster level (fireball caps at 10th, disintegrate at 20th, etc). Is there a way to get the minimum of two values (either my CL or whatever cap) and then roll that many dice? I.e. if I'm casting disintegrate, it would be like /roll 2*min(CL, 20)d6 or something. I'm trying other functions like kl, but I'm missing something.
1546885714

Edited 1546885740
[[ [[ {10,@{level}}kl1]]d6 ]]
Works like a charm. Many thanks!