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

GM Whispers within Nested Roll Query

1553356623

Edited 1553356664
So for the Ranged option, I'm able to have the button output as a GM whisper properly. However, for the nested Yes/No options under Shortsword (for the Melee option), it will only output: /w gm value1A ...instead of outputting value1A as a GM whisper. I've tried replacing the /  with  /  but no changes occur. This is my code: ?{Melee or Ranged| Melee, ?{Shortsword| Yes,/w gm value1A | No, value1B } | Ranged,/w gm [Heavy Crossbow](!&#13#veteran-heavycrossbow ) } Sidenote: I would like to have multiple buttons appear depending on the Yes/No selection, if anyone has thoughts on that as well. For example: Yes: Whisper GM with  [Longsword](!&#13#veteran-longsword-one )  [Shortsword](!&#13#veteran-shortsword ) No: Whisper GM with  [Longsword](!&#13#veteran-longsword-two )
1553696208
Ziechael
Forum Champion
Sheet Author
API Scripter
On the face of it I can't see anything wrong with your code... assuming you wanted only 1A to be whispered it should have functioned as intended. I'm going to see if I can test it as you've peaked my curiosity, in the mean time I'll take this opportunity to push  Chat Menus , they are a life saver for the aspiring complex macro maker.
1553696387
Ziechael
Forum Champion
Sheet Author
API Scripter
Ok, figured it out... the curse of spacing for readability (between the Melee, and the query to be exact): ?{Melee or Ranged| Melee,?{Shortsword| Yes,/w gm value1A | No, value1B } | Ranged,/w gm [Heavy Crossbow](!&#13#veteran-heavycrossbow ) }
1553696433
Ziechael
Forum Champion
Sheet Author
API Scripter
When you output a query result it will output literally everything past the ',' including whitespace... fallen afoul of that many times in my past ;)
Ah, good to know! Thanks so much