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

Syntax for multiple items in a Chat Menu Button

1682970561
CryptoCartographer
Pro
Marketplace Creator
Here's my working code: /w GM &{template:default} {{name=@{selected|Token_name} **Mark Token**}} {{[A](!token-mod --set statusmarkers|Letter-A)[B](!token-mod --set statusmarkers|Letter-B)}} I want to add an Ability call to each Chat Menu Button called "Clear-Letters." What's the syntax for including multiple items within a Chat Button's parentheses? [Button Name](Ability-Call Ability-Call) None of the separators I have tried have worked.
1682973179

Edited 1682973200
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Assuming you want two buttons, try this: /w GM &{template:default} {{name=@{selected|Token_name} **Mark Token**}} {{[A](!token-mod --set statusmarkers|Letter-A) [B](!token-mod --set statusmarkers|Letter-B)}} If you want a single button that performs two commands, try this: /w GM &{template:default} {{name=@{selected|Token_name} **Mark Token**}} {{[A](!token-mod --set statusmarkers|Letter-A
!token-mod --set statusmarkers|Letter-B)}} This latter causes the [A] button to execute two token mod calls, the 
 is the HTML entity for a return character, causing the parser to think that two commands have been issued.
1682974341
CryptoCartographer
Pro
Marketplace Creator
Thank you! I'm calling an ability from the same sheet, and then a !token-mod command. What's the wrapper for the ability call? ~ability-call doesn't seem to be invoking the ability—though the ability works fine on its own. /w GM &{template:default} {{name=@{selected|Token_name} **Mark Token**}} {{[A]( ~Clear-Letters !token-mod --set statusmarkers|Letter-A)[B]( ~Clear-Letters !token-mod --set statusmarkers|Letter-B)}}
1682975045
CryptoCartographer
Pro
Marketplace Creator
This works: [A]( %{GM Macros|Clear-Letters} !token-mod --set statusmarkers|Letter-A) For some reason it doesn't like the local sheet call, but it's okay with the named sheet call.
1682975095
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
~ability-call should work if the calling ability and the ability it calls are both on the same sheet. In some circumstances ~character_name|ability-call is required, but usually only when calling across sheets. You can find more info here:  Chat Menu