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

[5e] Create Macro to invoke an Attack Token

How can I create a macro that invokes a certain Attack Token? Something like this:  i click here and get in the chat this    I tried looking in the apposite page about macro but I couldn't find this exact option. Thanks :)
Do you mean the code to create buttons that link to attacks? It would be [Button name](~Full character name|attack identifier) For the Attack Identifier it can either be a repeating designation based on where in your list of attacks it is, or you can get the exact identification which will be constant even if you rearrange the attacks. You can get it by either inspecting the element of the attack button on the sheet, or by dragging the attack to your macro bar and seeing it there.
1604607668

Edited 1604607819
David M.
Pro
API Scripter
If all you want is to have them show up on your macro bar beneath the player avatars, and they are collection macros, select "show macro quick bar" in the collections tab, then to the right of the macro check the box "In bar". If it is a simple weapon attack or similar that shows up in your repeating attacks section of the character sheet (below hit dice in the 5E OGL sheet), you can drag the attack name and directly drop it right to the macro quick bar. If they are character "abilities", then below the ability name check the option "Show in macro bar".  Dakota's method will create a button in the chat window that can call an ability, which is a different but also useful thing. 
Thanks to both of you! I resolved simply by dragging the attack token into the macro bar *facepalm*