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

Whispering Nested Macros

Hi all,  I'm trying to build an all encompassing Random Encounter macro for my 5e TOA campaign by calling a number of other macros. Currently I'm able to whisper a query to myself but the result of these roll tables is then posted openly despite the called macros starting with "/w gm" and functioning as desired when rolled in isolation.  I'm keen to have the results whispered as it would erode any sense of suspense if "Party runs into explorers" pops up in the chat before I start describing ambiguous rustles through the jungle ahead.    Thanks in advance
Current text for the above: /w GM &{template:default} {{name=Random Encounter}} {{Random Encounter=[Beach Wilderness](!
 #Wilderness-Beach-Random-Encounters) [Jungle Undead+](!
 #Wilderness-JungleGreaterUndead-Random-Encounters)}} 
1637254027
Kraynic
Pro
Sheet Author
You posted the macro for your menu, and it is whispered as it should.  What is the macro you are calling in each button?  Each one of those needs to be set up as a whisper if you want them whispered, because they are totally separate from the menu.  So, does your Wilderness-JungleGreaterUndead-Random-Encounters macro start with /w?
1637256563

Edited 1637256906
Jak
Pro
I should've been clearer when I attempted to explain that but all macros called are prefaced with /w GM and they whisper when triggered independently, just not when called through this macro :)  The same occurs if I try to use other syntax like !rt for recursive tables. If I place it in the called macro it only functions in isolation but not when called. 
1637258797

Edited 1637258804
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Your calls to other macros are expanding before they ever reach chat. Because you have a space before the # in the macro, that space gets sent to chat at the beginning of the string. So instead of starting with "/w gm", it's starting with " /w gm". Try: /w GM &{template:default} {{name=Random Encounter}} {{Random Encounter=[Beach Wilderness](!
#Wilderness-Beach-Random-Encounters) [Jungle Undead+](!
#Wilderness-JungleGreaterUndead-Random-Encounters)}} 
1637268635

Edited 1637268675
Jak
Pro
Thankyou, there were many spacing errors in my syntax.