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 .
×

Chat menu buttons - somtimes a box, sometimes not.

I've been making some macros for my Pathfinder 1e game (using the official Roll20 sheet) and have run into an oddity.   Not the first time, but it's annoying. My Macro is called info.  It calls another macro, called Defenses, which gives me the defenses of the targeted token (AC, Flat footed, Saves, etc). /w gm |[Defenses](!
#Defenses) |  It generates a nice pink button called Defenses in my chat. This is the modified macro, which gives me access to the option to turn on/off a tokens name plate, so when players ID a monster, they can get the name. /w gm [Defenses](`#Defenses) | [Name](`#Showname) | It generates to clickable links, both of which work, but neither are a button. If I write it longform, I get a button, and an invalid link /w gm |[Defenses](!
#Defenses) |[Showname] (!
#Showname)  Can someone tell me what's going on here to cause this?
Without logging in and double checking, I'm pretty sure that the issue is that the macros are being expanded prematurely. Try replacing the '#' with '#'. Try this: /w gm |[Defenses](!
#Defenses) |[Showname] (!
#Showname)
Unfortunately, that didn't solve the issue.    Defenses still comes up as an actual button with the expanded &num, but the Showname doesn't convert.
What are the contents of the #Defenses and #Showname macros? 
1777400252

Edited 1777401526
Gauss
Forum Champion
The issue is the tick. Macros with the tick lose the box.&nbsp; The solution here is to stop using Collection tab macros, use Ability macros in a Macro mule instead. It is generally better to do that anyhow.&nbsp; Edit: link to Macro Mule wiki:&nbsp; <a href="https://wiki.roll20.net/Macro_Character_Sheet" rel="nofollow">https://wiki.roll20.net/Macro_Character_Sheet</a>
Defenses is a simple read &amp; display of character attributes read off the character sheet, in a table format using the default template: /w GM &amp;{template:default} {{name=@{selected|character_name}}} {{AC [[@{selected|ac}]] =***Saving throws***}} {{Touch [[@{selected|ac_touch}]] = Fortitude [[@{selected|fortitude}]] }}{{Flat [[@{selected|ac_flatfooted}]] = Reflexes [[@{selected|reflex}]]}} {{CMD [[@{selected|cmd_mod}]] = Willpower [[@{selected|will}]]}} Showname is simply a tokenmod script, which works fine when used directly: !token-mod --flip showname showplayers_name
1777401569
Gauss
Forum Champion
I took a second look at what you put up, There appears to be an added space between the [] and ( ) in your Showname button. Remove the space and it probably will work.
Gauss, thank you.&nbsp; I wasn't seeing that extraneous space, but that was what it was.&nbsp;&nbsp; As for the macro mule, that is something I've never been able to wrap my head around, making a mule work.&nbsp;&nbsp;&nbsp;&nbsp;
1777407004
Gauss
Forum Champion
Jason H. said: Gauss, thank you.&nbsp; I wasn't seeing that extraneous space, but that was what it was.&nbsp;&nbsp; As for the macro mule, that is something I've never been able to wrap my head around, making a mule work.&nbsp;&nbsp;&nbsp;&nbsp; I can help with that. Mules are generally better than Collection tab macros for a number of reasons. (Portability, easier to work with, easier to enable/disable, etc) Let me know if you'd like help with how to use them.