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

Having issues with a macro that only works when testing...

As the title suggests, I have an issue with these two macros that only seem to work while using the test macro button. Recall knowledge Secret /w gm @{selected|token_name} secretly rolls [[1d20+?{Select check|crafting, @{selected|crafting}|arcana, @{selected|arcana}|nature, @{selected|nature}|occultism, @{selected|occultism}|religion, @{selected|religion}|society, @{selected|society}}]] Secret Rolls /w gm @{selected|token_name} secretly rolls [[1d20+?{Select check|perception, @{selected|perception}|deception, @{selected|deception}|diplomacy, @{selected|diplomacy}|stealth, @{selected|stealth}|survival, @{selected|survival}}]] I use these to roll GM hidden rolls for Pathfinder 2E. They were working as of last year and I'm not sure what happened inbetween then and now. I'm a macro/script newbie and mostly made this from bubblegum and paperclips.
1681515505

Edited 1681515541
Where are those macros stored? As Collections macros, or on a character sheet as an Ability?   When you are testing them not  using the 'Test Macro' button, how are you using them? Are you clicking on the Macrobar, or a Token Action? If so, have you saved the macro first (by closing it)? When they 'don't work', what happens? Screenshots are helpful.
So when I use the Test Macro button from the edit screen, I get this: Which after I submit, it sends the results to the chat as a gm whisper. However, if I use the Macro Quick bar or set it as a token action, all I get is this:
And just like that....I fixed it. Apparently beforehand it changed the Macro name automatically and now I have to do it manually. ie, Changing it from: "Recall Knowledge Secret" to "Recall-Knowledge-Secret" I feel like the world's biggest idiot and am trying very hard not to break something as this was wrecking my brains for the last month.
I believe if you copy-paste the name, then Roll20 will not automatically insert dashes instead of spaces (I think it also depends on where it is being copied from, as different word processing software will use different 'space' characters - a 'non-breaking space' or   is most common, but there are others).  Not having dashes can cause Roll20 to not correctly refer to the Macro name, and then you'll get the issue of the macroname showing up in chat. In either case, best practice is to not use spaces in the name for any macros, attributes, or abilities for Roll20.  Yes, it's fine for characters, but even then there are times where a space in a name then requires quotes around it to make sure it functions (such as some Mod scripts). I always default to using underscores or just smooshing words together myself, as I prefer those to dashes.