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

Macro to check for AC on attacks

I am pretty sure I know the answer but if I have a token for a monster (no character sheet associated with it) that I have put an AC # in one of the fields (usually the green) is there a macro that can check this field, to determine if a hit was made and then roll damage if successful?  I have done some searching but couldn't locate and answer. Basically this is what I am looking for  Player clicks monster token Player clicks their weapon to attack Macro checks the green field to see if their attack hits (or another field if it works) If yes, rolls damage If no, mocks them for missing Thanks
1605633313
The Aaron
Roll20 Production Team
API Scripter
Not without an API script.  The best you could do without is have it tell you how much damage they did (with damage of 0 if they missed) and it would always roll all the dice.
Thanks!   I figured that was the answer
If you put the AC in one of the monster's Attributes (i believe that all tokens have access to Attributes and Abilities regardless of having a character sheet), then a player can check it as part ot the attack, it something i do as standard in D&D 4th ed. Select the token making the attack and use this macro as one of his abilitities. @{selected|token_name} attacks @{target|token_name} and gets [[1d20]] verses @{target|ac} When you make the attack with the selected token it will ask for a target, you can then click on the target token and it will tell you what the attack roll was and what the target's AC was.  Any one can pull information from a token that is designated as their target, even if they do not have permission to edit or control it. From there you can expand the macro as much as you want to include stat bonuses etc. What it can't do is roll damage if you hit or mock him if it misses, you can add a second part to the macro to cover this such as If the attack hits @{selected|token_name} rolls [[1d6]] for damage, if the attack misses @{target|token_name} mockes @{selected|token_name} but it will always bring up both options.
Thanks Oenanthe!  I will give that a try as well.