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

Return the result VS AC success/failure

1517208839

Edited 1517216463
Hi All, I am looking to finish the macro below by checking against the Defender AC and return success or failure. So far the first part is working great: !as @{selected|character_name}| The @{selected|token_name} attempts to strike home with a swing at @{target|Defender|token_name} /roll 1d20+@{selected|BaseAttackBonus}+?{Combat Advantage?|No,0|Yes,2} What do I need to add the end of line 2 to get the success/failure vs the Defenders AC ? I edited the first line with a script i just found so players wont get an error and will show the avatar of the attacker Been trying for an hour so decided to turn for help. thank you kindly, -GTH
1517251239
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
You want the target number syntax : !as @{selected|character_name}| The @{selected|token_name} attempts to strike home with a swing at @{target|Defender|token_name} /roll [[1d20+@{selected|BaseAttackBonus}+?{Combat Advantage?|No,0|Yes,2}]]>@{target|Defender|ac}