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

Question on roll queries having multiple effects

I'm trying to set up a macro for my PF1 game that queries to ask if I'm flanking. When I not flanking, nothing is modified, but when I AM flanking I'd like it to add +2 to hit, and +1 to my damage. Is this possible without the API? Or does anyone know of any good workarounds? We're not playing with any character sheets, we're just making our macros all by hand so I don't have the option of going in and creating a toggleable buff. Thanks!
1602481016
GiGs
Pro
Sheet Author
API Scripter
It is possible, but you'll need to manually edit your attack macro with a query using html substitutions as described here:&nbsp; <a href="https://wiki.roll20.net/Macros#Advanced_Usage_for_Roll_Queries" rel="nofollow">https://wiki.roll20.net/Macros#Advanced_Usage_for_Roll_Queries</a> You might be better off just applying the modifiers manually, in conversation.
1602483119
Oosh
Sheet Author
API Scripter
You can do something like this: Hit roll=[[1d20 + 5[BONUS] + [[?{Flanking?|No,0|Yes,1}*2]][FLANKING] ]] ..... more macro goes here .... Damage roll=[[2d6 + 3[STR] + [[?{Flanking?}*1]][FLANKING] ]]
@Oosh, that worked beautifully. Thanks!
1603068411
Oosh
Sheet Author
API Scripter
No problem.... not sure why I multiplied something by a 1, but the theory is sound!