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: Powerful Sneak roll for a rogue

1476665655

Edited 1476665951
Playing a rogue with Powerful Sneak as a rogue talent, which says "Treat all ones on sneak attack dice as 2's" and I'm trying to get my macro to do it.  Currently I am putting this in my extra non-crit damage: ?{Sneak Attack| No, [[0]]| Yes, [[ {1d6,1d6,1d6,0d1+2,0d1+2,0d1+2}k3 ]] } As far as I can tell this should work, but it is returning this when I say no:  and when I say Yes it returns nothing.  I don't see any errors in the roll, but it is just messing up.
1476666727

Edited 1476667141
Tetsuo
Forum Champion
You need to replace the } bracket in your k equation with HTML replacements.  See  here for more info. 
1476667796
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Yep, also, see the order of operations wiki section for more info on what is resolved when (rolls are after queries). <a href="https://wiki.roll20.net/Dice_Reference" rel="nofollow">https://wiki.roll20.net/Dice_Reference</a>
?{Sneak Attack| No, [[0]]| Yes, [[ & #123;&nbsp;1d6, 1d6, 1d6, 0d1+2, 0d1+2, 0d1+2 & #125 k3 ]] } is still not working. &nbsp; Do I have an order of operations problem?
1476669197
Tetsuo
Forum Champion
You only need the &#125
1476669261

Edited 1476669385
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
no, but you replaced the opening curly bracket instead of the closing one. The query ends at the first } that it sees, so you need to replace that } with &#125; also, looking at that, you have a space between the } and the k3 once it is replaced
I did the closing one only and it messed up too,&nbsp; ?{Sneak Attack| No, 0| Yes, [[ { 1d6,1d6,1d6,0d1+2,0d1+2,0d1+2 & #125; k3 ]] }
1476670683

Edited 1476670753
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
doh, also need to replace the commas with &amp;#44; can't believe I forgot that. For future reference, the problem characters for roll queries are bars, commas, and end curly braces. They all have to be replaced in a option or value. EDIT: Also, still looks like you're going to have a space between the curly brace and the k3, which will make the k3 syntax not work.
PS for nesting prompts or bracket items within prompts and dropdowns, this page is the usual reference to check out.
I'm all for custom macros, but wouldn't this be more easily achieved by creating a second "Attack" on the PF sheet that includes the -2 attack penalty and a raw +[[&nbsp; {[[1d6]],[[1d6]],[[1d6]],2,2,2}kh3 ]] to the critical-possible damage macro field?