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

ablity comand button help

[Button](! %ablityname) is what i'm trying to use to make a clickable spell list, i already have my spells entered as ablities, but since i added a template to the called ablities its not working. having the same issue with a drop down menu, any suggestion? what i just noticed is that if the linked to ablity or macro just has text it works find but if it has any active command ie template or a inline role it automaticly exicutes it instead of waiting for button to be pushed.
1471547088
The Aaron
Roll20 Production Team
API Scripter
Should be: [Button](~abilityname) or [Button](~charactername|ablityname) or the like. See:&nbsp; <a href="https://wiki.roll20.net/Macros#Ability_Command_But" rel="nofollow">https://wiki.roll20.net/Macros#Ability_Command_But</a>...
1471548768

Edited 1471549485
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
As an addition to Aaron's info above. The syntax you were using was for API Command Buttons which are very similar. If you want to use API command buttons instead of ability command buttons, replace the % with it's html entity: &amp;#37;. Ability Command Buttons must call an ability (a macro that is in a character's sheet); API command buttons can be made to call anything by adding in the carriage return html entity (&amp;#13; ) and other appropriate html entities through syntax like: [Abilities](!&amp;#13;&amp;#37;{characterName|abilityName}) [whisper](!&amp;#13;/w gm whispering something to the gm) [Global Macro](!&amp;#13;#globalMacro) And of course their name sake: [API Command](!Some chat command for an API script to parse) See the&nbsp; API:chat page for more details. Hope that helps, Scott
1471549488
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
And a question I've always had, that I'll just ask here. Pardon the second post, don't want to screw up my html in the previous post. Is it possible to do formatting on ability/api command buttons from the chat input, or is this only possible via the API sendChat function?
1471550037

Edited 1471550076
The Aaron
Pro
API Scripter
Only in API sendChat(). (Though you could locally change the default appearance with a Stylish script in browser.)
1471550507
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
heh, yeah, was hoping I could get rid of that ugly pink box that is the default for a game I'm a player in and replace it with something more streamlined looking for the sake of my fellow players and the gm.
1471552509

Edited 1471553473
Some Roll Templates (e.g. 5e-shaped) add styling to command buttons.
1471552686
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
yep, unfortunately we aren't using the shaped sheet :(. Although now that I'm getting used to the OGL sheet, it seems just fine.
1471553496

Edited 1471555711
Some of the {{properties}} within Roll Templates used by the 5e OGL sheet apply styling to command buttons. e.g. &{template:atk} {{desc=[Ability CBs are styled](~), but [API CBs are still pink](!)}} Here are some other possible 'styling' options for command buttons: Empty label: [ ](!) ZWSP label: [&amp;#x200b;](!) Single symbol: [⚔](!) Code style 1: ``[**Lorem Ipsum**](!)`` Code style 2: [``**Lorem Ipsum**``](!)
thanks, ill try it out as soon as i get the chance.
thanks got it working. you all have been a big help