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

Battle macro

Hey, can you help me with macros? How should look attack macros, where needs to choose a target and if attack is pierce AC of a target, he will take damage. It is possible to make that macros?
1629444954
Kraynic
Pro
Sheet Author
There is a lot of info about macros on the wiki.&nbsp; A good starting place is here:&nbsp; <a href="https://wiki.roll20.net/Complete_Guide_to_Macros_%26_Rolls" rel="nofollow">https://wiki.roll20.net/Complete_Guide_to_Macros_%26_Rolls</a> That page has links to other pages for more specialized info.&nbsp; One of the pages it links to is this one that has details on calling the attribute of a target token:&nbsp; <a href="https://wiki.roll20.net/Macros#Targeted_Token_with_a_Macro" rel="nofollow">https://wiki.roll20.net/Macros#Targeted_Token_with_a_Macro</a> There may be more specific examples in the wiki depending on what game system you run (and character sheet), since some systems have a page on system specific macros. In general, macros are able to read attributes, but can't make changes to attributes at all.&nbsp; Automatically dealing damage is possible with a Pro subscription for access to the api.&nbsp; There are a couple api scripts that can be used to do that.&nbsp;