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 .
×
May your rolls be merry + bright! 🎄
Create a free account

Link to macro not working

Hi all, sorry if this has already been answered, it's hard to search for something so generic :/ I'm trying to set up the Chat Menu trick with a default template (as I don't have the 5e shaped template available to me). It's not generating the macro buttons for some reason. The menu macro is on a character sheet, and I have the button macros on the same sheet. So using the ~ for the link to them. It's just outputting text. However, i've left in one of Keith Curtis example buttons, which does work. &{template:default} {{name=Utility Menu}} {{[Configure Shaped Options](!shaped-config)**Conflict** [Fast Actions]{~Fast-Actions} [Slow Actions]{~Slow-Actions} }} Thanks for any help!
Solved it! Always something stupid.... I was using { instead of (
1604656684
GiGs
Pro
Sheet Author
API Scripter
There are two problems with your buttons: [Fast Actions]{~Fast-Actions} This uses the wrong type of brackets around the second part, should be ( ) not { }. Secondly when you use the ~ syntax, you must include the character sheet name. So, imagining your character sheet is named Macros, it would look like this: &{template:default} {{name=Utility Menu}} {{[Configure Shaped Options](!shaped-config)**Conflict** [Fast Actions](~Macros|Fast-Actions) [Slow Actions](~Macros|Slow-Actions)}}     You also cant have line breaks. It must all be on a single line (though in the editor it will wrap across several lines).
Cheers for the help!
1604696932
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
For reference: The character sheet name is not needed if all the actions (parent and child) are on the same sheet. If you want line breaks, proceed everything in the last{{}} with =. That puts everything in one field, where returns are allowed. Ex: &{template:default} {{name=Utility Menu}} {{=[Configure Shaped Options](!shaped-config) **Conflict** [Fast Actions](~Fast-Actions) [Slow Actions](~Slow-Actions) }} Finally if you want prettier output (at least for anyone who installs the style), try this Stylus style .
Awesome, thanks!