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

Link to Makro

Is there a way to put clickable link to makro in chat? 
1475230889
Tetsuo
Forum Champion
Yes, you can use  API command buttons
Thanks! I thought that api is for Pro subscribers.
1475232717

Edited 1475232850
Tetsuo
Forum Champion
I just went and double checked on a free account. I created an ability on a character sheet called attack, and used the following code: [attack](!& #13;& #37{-KSug5McGqdn5esgA77w|attack}) to generate a button labeled attack, and called the attack macro from the sheet with the associated id. you must used the HTML escape entites in the macro, and remove the spaces between & and # EDIT: Using the API is a pro level feature. The API command buttons were implemented a bit back, and seem to function for free users as well.
Thanks again! Is this ""-KSug5McGqdn5esgA77w" a link to a character sheet? Made by inserting name in a []? Another question... Is it possible to make this kind of button not for fixed character but rather for a selected in chat character(without using tokens)?  Once more because Im not sure if I explained it correctly: I need a universal button that allows for my player to roll using their respective attributes without need to select their token.
1475236762
Tetsuo
Forum Champion
the -KSug5McGqdn5esgA77w is the unique id of the character sheet I was calling the macro from. you could create a macro that asked who was rolling in a dropdown, and roll from the selected sheet
1475236768

Edited 1475237005
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
There is also ability command buttons which are very similar, but don't require html code. <a href="https://wiki.roll20.net/Macros#Ability_Command_Buttons" rel="nofollow">https://wiki.roll20.net/Macros#Ability_Command_Buttons</a> Also, for a macro that will work for any character, use the selected or target keywords. <a href="https://wiki.roll20.net/Macros#Using_a_Targeted_To" rel="nofollow">https://wiki.roll20.net/Macros#Using_a_Targeted_To</a>... I'd put the link to the info about the selected, but can't find it now for some reason.
1475237125
Tetsuo
Forum Champion
Scott C. said: Also, for a macro that will work for any character, use the selected or target keywords. He wants the macro to work without access to tokens. My only idea was a drop down menu to select the char. Any ideas?
1475237493
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Woops missed that. Then, yeah drop down is the only way, although you can use char name instead of the ID.
Once more, thanks guys.