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 .
D&D 2024 has arrived! Pre-order the new core rulebooks now and get an exclusive pre-order bonus for free!
Create a free account
This post has been closed. You can still view previous posts, but you can't post any new replies.

Can an attribute be used to increase critical hit range?

Is it possible to use the new critical range syntax (e.g. [[d20cs>19]]) with math? This works: [[d20cs>19]] But something like this does not: [[d20cs>{19-2}]] The final motivation is to use a character attribute to increase the critical range of an attack: [[d20cs>{19-@{critical_range}}]] Is there anyway to perform math on the value that will be checked as the critical range?

Edited 1428265627
The Aaron
Roll20 Production Team
API Scripter
It expects to have a number in that position, so math won't work there. What does work is having the math in the attribute so that the expansion occurs during the attribute substitution. For example, if you have an attribute named crit_calc and it has this in it: 19-@{critical_range} Then this will work: [[d20cs>@{crit_calc}]] Edit: Never mind, that doesn't work. Missed the expansion in testing. You'd need to have the raw number in your attribute: 17 for [[d20cs>@{critical_range}]]