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

Trying to make a chat menu for abilities that have rolls.

I wanted to make a chat menu that is sent to me. It would display my skills or abilities and I could click a button and then it would trigger a roll for it. I wanted it to call on abilities I already made. I tried this: /w Dennis &{template:default} {{name=Skills Menu}} {{[Skill Burglary](%{Veronica|SKILL:Burglary})}} and /w Dennis &{template:default} {{name=Skills Menu}} {{[Skill Burglary](!
%{Veronica|SKILL:Burglary})}} I Like the button that one makes. I saw the button when I mistakenly did this. /w Dennis &{template:default} {{name=Skills Menu}} {{[Skill Burglary](!
#SKILL:Burglary)}} I was trying to call to a macro before I learned it was actually a ability. It automatically calls it to roll with the first one and then it doesn't show the roll either, but it doesn't pop up a menu with a button. Here is an example of an ability I'm trying to call. &{template:default} {{name=Burglary +@{Burglary}}} {{Roll=[[1d10+@{Burglary}+@{Burglary|max}]]}} The ability calls on from a list of attributes, one of which is burglary. Any help or tutorial that can show me what to do would be amazing and would be much appreciated. If it helps a few other names of abilities are, SKILL:Craft , SKILL:Marksman , and SKILL:Willpower. So just picture Craft or any of the others in the burglary ability where burglary is and its the same. I just want to make a menu, because I'm out of space on the macro bar. Thank you again all help is appreciated.  
1626795324
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Are these abilities on a character sheet? Or global macros in the collections tab? If they are global macros, I'd highly recommend moving them to character abilities. Then you can use ability command syntax . Another supporting technique to look at is the macro mule .
1626798185
GiGs
Pro
Sheet Author
API Scripter
If they are abilities on a character sheet, you got close with this: /w Dennis &amp;{template:default} {{name=Skills Menu}} {{[Skill Burglary](!&amp;#13;%{Veronica|SKILL:Burglary})}} Either of the following syntaxes should work: /w Dennis &amp;{template:default} {{name=Skills Menu}} {{[Skill Burglary](!&amp;#13;&amp;#37;{Veronica|SKILL:Burglary})}} /w Dennis &amp;{template:default} {{name=Skills Menu}} {{[Skill Burglary](~Veronica|SKILL:Burglary)}} See here: <a href="https://wiki.roll20.net/API:Chat#Entering_API_Buttons_In_Chat" rel="nofollow">https://wiki.roll20.net/API:Chat#Entering_API_Buttons_In_Chat</a>
1626808701
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Also, something I just realized, the colons in the ability names will futz with the API command button syntax.
1626812986

Edited 1626813082
GiGs
Pro
Sheet Author
API Scripter
I meant to ask about those and recommend changing them, but forgot after I went looking for the API Command button URL. OP, its a good idea to get rid of the colons in ability names - spaces will work fine, as will dashes or underscores.
Scott C. said: Are these abilities on a character sheet? Or global macros in the collections tab? If they are global macros, I'd highly recommend moving them to character abilities. Then you can use ability command syntax . Another supporting technique to look at is the macro mule . They are under the abilities on the character sheet. GiGs said: If they are abilities on a character sheet, you got close with this: /w Dennis &amp;{template:default} {{name=Skills Menu}} {{[Skill Burglary](!&amp;#13;%{Veronica|SKILL:Burglary})}} Either of the following syntaxes should work: /w Dennis &amp;{template:default} {{name=Skills Menu}} {{[Skill Burglary](!&amp;#13;&amp;#37;{Veronica|SKILL:Burglary})}} /w Dennis &amp;{template:default} {{name=Skills Menu}} {{[Skill Burglary](~Veronica|SKILL:Burglary)}} See here: <a href="https://wiki.roll20.net/API:Chat#Entering_API_Buttons_In_Chat" rel="nofollow">https://wiki.roll20.net/API:Chat#Entering_API_Buttons_In_Chat</a> Thank you, I will try those! :D&nbsp; Scott C. said: Also, something I just realized, the colons in the ability names will futz with the API command button syntax. GiGs said: I meant to ask about those and recommend changing them, but forgot after I went looking for the API Command button URL. OP, its a good idea to get rid of the colons in ability names - spaces will work fine, as will dashes or underscores. IT WAS THE COLONS :D THANK YOU BOTH SO MUCH!!!!! :D I APPRECIATE YOU BOTH!!!!! :D