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

can you calculate degree of success for PF2 with roll query

1d20cs>20 is the normal crit success/fail highlighting and you can write in different numbers (for e.g. for a keen weapon in 3.5 you might write 1d20cs>19) I'd like to calculate the cs/cf range for PF2 rolls based on a roll query (the target DC), but I can't seem to figure out the syntax.  I thought something like this might work: [[ 1d20cs>(?{DC}+10-@{character|ability}) + @{character|ability} ]] Let's say our character has a +6 to whatever ability we're rolling here.  I thought that this roll syntax would query the DC (let's say we enter 10), and then that would be interpreted as [[ 1d20cs>(10+10-6) + 6 ]] or [[ 1d20cs>14 + 6 ]].   i.e. in order to highlight a crit success vs. the entered DC, we need to roll a nat 14. Doesn't work, though.  Any tips on how I could get that to work?
1765160228

Edited 1765160266
Gauss
Forum Champion
Hi Brad,  To boil this down a bit, you want the critical success on a specific value?  If so, replace the parenthesis in your first example with inline brackets.  Example: [[ 1d20cs>[[?{query}+10-@{charactername|attributename} ]] +@{charactername|attributename} ]] That way it processes the critical success target number before the roll.
Oh works perfect, yes, thanks.  Didn't know you could nest the [[  [[ ]] ]] operators.
1765161174
Gauss
Forum Champion
Brad said: Oh works perfect, yes, thanks.&nbsp; Didn't know you could nest the [[&nbsp; [[ ]] ]] operators. Yup:&nbsp;<a href="https://wiki.roll20.net/Order_of_Operations" rel="nofollow">https://wiki.roll20.net/Order_of_Operations</a>
OK, so to expand on that, then, for any other PF2 GMs out there, this roll will query the DC, and then highlight crit success or crit fail on either a nat 1 / nat 20 or missing / beating the DC by 10&nbsp; (not exactly how the rules work, but close enough for most cases.) [[ 1d20cf&gt;[[ {?{DC}-10-@{character|ability},1}kh1 ]]cs&lt;[[ {?{DC}+10-@{character|ability},20}kl1 ]] + @{character|ability} ]]