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

Noob Question: Auto resolve to-hit via tokens?

Hi all, So I have spent time setting up tokens for NPC/Mobs and assigning attributes like HP and AC.  Is it possible for a player to select an onscreen monster token, hit their attack button and automatically get feedback if the attack hit or not? Thanks!
1473664441
Tetsuo
Forum Champion
Yup! Assuming you keep the AC in the blue bubble (Far right one), it would look like this [[1d20]] vs AC @{target|bar2} That would output some like "16 vs AC 17" If you want something that compares the values, then decides to output damage or not, that would be in the realm of API scripts (Which is a feature available to Pro subscribers)
Great, thanks!  That is fine.  Can I code that into a token directly and the OGL character sheet by chance?
1473730344
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
For the OGL sheet, you'll need to make your own custom ability, but you can certainly replicate the template  output easily enough .
Hi Scott.  Thanks for the tip.  Will need to learn (read) a bit more I think.  Not seeing how do add the template to the Character sheet with modifications.  But I expect I just need to read some wiki somewhere.  Will do so tonight.