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

Question about whisper macros

I was wondering if there was a way to be prompted if I want to whisper a roll or have it seen by all? Ie. if i have  /w gm [[?{Number of dice?|1}d10+?{Modifier?|0}]]  it keeps the roll to myself, or i can do [[?{Number of dice?|1}d10+?{Modifier?|0}]] and everyone sees. there a way to combine them?
1587628242

Edited 1587628399
Ziechael
Forum Champion
Sheet Author
API Scripter
Sure thing, you can make the whisper a query based toggle: ?{Whisper|GM,/w gm |None,​}[[?{Number of dice?|1}d10+?{Modifier?|0}]]
1587628902

Edited 1587628914
Thanks very cool, I noticed the "​" disappears after I save is that needed? could I also add othe player names there?
1587636301
Ziechael
Forum Champion
Sheet Author
API Scripter
The ​ is a zero-space html character. When you don't put a value for a query option (for some reason that I can't remember being the usual) it was adding 'None' to the start of the roll... so I dropped the zero space option in there to keep it clean. You can expand that query as much as you'd like, you can even change the default by putting whichever you want as the default as first in the list: ?{Whisper|GM,/w gm |Player A,/w "player A name" |Player B,/w "player B name" |None,​}[[?{Number of dice?|1}d10+?{Modifier?|0}]]
Ill have to read up on that zero space option, but that first half just clicked in my head, wow! thanks dude!
1587638310
Ziechael
Forum Champion
Sheet Author
API Scripter
You are welcome, the key to queries is to remember that whatever result you choose/input is EXACTLY what will slot into the macro when run. It's something a lot of people fall afoul of when forgetting or including spaces in their query outputs. It's a steep learning curve for sure, but one worth climbing for the aspiring macromancer :) Happy rolling!