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

Macros using Ability Command Buttons

I am currently trying to figure out how to make it so that when you click on an ability command button, it activates a macro. Here is my current code, which does not work:
[Activate Macro](~#macrohere)
Is this possible without using the API?
April 04 (9 years ago)

Edited April 04 (9 years ago)
Literally five seconds after posting this, a crazy idea hit me, and it worked. For those of you wondering what it was:
[Button](~macro|#macronamehere)
EDIT: Just found out that it only sort-of works, giving an error.
No ability was found for %{macro|#macronamehere}
EDIT2: Okay so, I finally figured it out.
[Button](!
#macroname)
The ~ basically substitutes for the % part of %{CHARACTERNAME|ABILITY} ie. [BUTTON NAME](~CHARACTERNAME|ABILITY). So using the ~ requires the macro be in an ability on a character. 

The standard usage for the API buttons needs the use of HTML entity substitution characters. The format for using a macro from the Settings tab would be [BUTTON NAME](!
#MACRONAME).