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 .
×

D&D 5e Attack Macro Help

One of my players set up the following Macro for their standard attack rolls:     /me takes a swing at @{Target|character_name}! /roll [[1d20+4+2]] vs @{Target|AC} The macro prompts him to select a target token and pulls the token's AC, so that he knows when his attack hits or misses.  What we've noticed, though, is that it doesn't seem to be pulling the targets's AC correctly.  For instance, when fighting a Dire Wolf with AC 14 (natural armor), his macro was only listing the target's AC as 12.  Anyone know why that be happening?  It looks like it's calculating AC by taking 10 + DEX modifier, rather than using the AC entered on the monster's stat block.  I do have all the monsters' stat blocks set up as NPC sheets in the game. Thanks,
1590814507

Edited 1590814707
Oosh
Sheet Author
API Scripter
You'll want to use npc_ac for npc tokens. It functions a little differently to player AC as it won't change if you throw a Breastplate into the NPC's inventory. Depending on how you set up your tabletop & tokens, you might also want to get your player to change character_name to token_name : if you have a Vampire who appears to be a normal human, with a token called Ralph but linked to the Vampire sheet for his stats & abilities, your player's current macro will throw the Vampire's true identity into chat for all to see. If you number your mook tokens (e.g. Goblin 1, Goblin 2 ....) the token_name call will also give some clarity as to which one the player is swinging at. If that doesn't bother you, don't worry about it. You can also cut that down to one click instead of two by using a Target Label. /me takes a swing at @{target|T1|token_name}! /r [[1d20+4+2]] vs @{target|T1|npc_ac} The lack of template and hardcoded stats are in danger of triggering me. I'll show myself the door before things get out of hand.
Appreciate the help!