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

Getting Advantage/Disadvantage on Active Defense Macro 5e DND

1658252087

Edited 1658252606
Good afternoon!  I am trying to get a little help on something.  My DM has been running a game where the player has to dodge, instead of the monsters having to attack.  So, the players are rolling for active defense.  I have a macro that works, BUT it doesn't show the opposing roll if you are rolling with adv/dis.  I came up with another that rolls 2 dice all the time.  I am trying to get it to act as a query saving throw.  As such, I pulled the macro from a saving throw and started applying it to the macro that I already had.  Any insight would be useful. Here is the info pulled from a saving throw: @{wtype}&{template:simple} {{rname=^{strength-save-u}}} {{mod=@{strength_save_bonus}}} {{r1=[[@{d20}+@{strength_save_bonus}@{pbd_safe}]]}} {{query=1}} ?{Advantage?|Normal Roll,&#123&#123normal=1&#125&#125 &#123&#123r2=[[0d20|Advantage,&#123&#123advantage=1&#125&#125 &#123&#123r2=[[@{d20}|Disadvantage,&#123&#123disadvantage=1&#125&#125 &#123&#123r2=[[@{d20}}+@{strength_save_bonus}@{pbd_safe}]]}} {{global=@{global_save_mod}}} @{charname_output} I might have to find a way to add the global mod to mine, later.  I would prefer to tinker with something working, though.  Here is what I have: &{template:simple} {{rname=Active Defense Roll}} {{mod=[[@{selected|ac} - 10]]}} {{r1=[[1d20 + @{selected|ac} - 10]]}} {{query=1}} ?{Advantage?|Normal Roll,&#123&#123normal=1&#125&#125 &#123&#123r2=[[0d20|Advantage,&#123&#123advantage=1&#125&#125 &#123&#123r2=[[1d20|Disadvantage,&#123&#123disadvantage=1&#125&#125 &#123&#123r2=[[1d20&#125&#125 + @{selected|ac} - 10]]}}} Any insight is useful.  I've included a screen cap of the results for Normal (top) and advantage/disadvantage rolls.  You can see that normal works fine, but the other two will always just give me the other results, as seen.  Which are no results.  Thank you! E1 - Corrected Save Macro E2 - Added Image for clarification.
Issue resolved.  I believe it had more to do with character replacement than syntax.  Please observe: &{template:simple} {{rname=Active Defense Roll}} {{mod=[[@{selected|ac} - 10]]}} {{r1=[[{d20}+@{selected|ac} - 10]]}} {{query=1}} ?{Advantage?|Normal Roll,&#123&#123normal=1&#125&#125 &#123&#123r2=[[0d20|Advantage,&#123&#123advantage=1&#125&#125 &#123&#123r2=[[d20|Disadvantage,&#123&#123disadvantage=1&#125&#125 &#123&#123r2=[[d20}+@{selected|ac} - 10]]}} This one functions just fine.