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

Group Check Macro with toggle whisper GM or tell players (need some help!)

I've been using to macro below and loving it. It allows me to roll a check for the chosen skill or ability with two quick clicks. My hope here is to be able to toggle whether I want to show the party the roll or "/w GM" myself. /w gm &{template:npcaction} {{rname=Group Check}} {{name=pick a check}} {{description=[Athletics](! #Athletics) [Constitution](! #Constitution) [History](! #📖) [Insight](! #Insight) [Medicine](! #Medicine) [Nature](! #Nature) [Perception](! #👁️) [Religion](! #Religion) [Stealth](! #Stealth_Check) }} I have been trying to fit the following in to allow me to toggle whisper ?{Roll|Public, |Private,/w gm} as seen in the macro for Toggle Whisper dice rolls ?{Roll|Public, |Private,/w gm} Rolling ?{Number|1}?{Type|D20|D4|D6|D8|D12|D100}: [[ ?{Number}?{Type} ]] Thank in advance for setting me straight!
1589918330

Edited 1589918353
Kraynic
Pro
Sheet Author
For your roll template macro, I think you could do this: ?{Roll Type?|Public,|Private,/w gm }&{template:npcaction} {{rname=Group Check}} Note that there is no space after the comma on the public option and no space between the query closing } and the start of your roll template call.  If there is a space there after your query completes for a public roll, it will cause problems.  There does need to be a space after the gm, so that space is included in the query.
It's still not whispering like i'd like. @kraynic Thanks for the tips on spaces. I cleaned it up and tried this: ?{Roll Type?|Public,|Private,/w gm }&{template:npcaction} {{rname=Group Check}}{{name=pick a check}} {{description=[Athletics](! #Athletics) [Constitution](! #Constitution) [History](! #) [Insight](! #Insight) [Medicine](! #Medicine) [Nature](! #Nature) [Perception](! #️) [Religion](! #Religion) [Stealth](! #Stealth_Check) }} Stilll not working.
1589978495

Edited 1589978619
Oosh
Sheet Author
API Scripter
Is it the rolls themselves you want the whisper toggle on? You would have to edit all of those macros you're linking to, the /w gm in the chat menu is only going to whisper the chat menu. To save yourself potential work in future, pasting the query into every macro may not be the best idea. A couple of ideas: 1) Edit all those ability macros and change them to #WhisperQuery <rest of macro>, then create the WhisperQuery macro and put your code in there - that way if you want to change it later you only edit one macro instead of all of them. 2) Create a new character called WhisperQuery, then in the character sheet cog settings page (where charactermancer is) change their whisper type to "always query" and then chuck this at the start of your ability roll macros: @{WhisperQuery|wtype} You can then change the setting on this one character sheet to always/never/query/toggle to your heart's delight and all your macros will follow the setting.
excellent! this will give me plenty to play with for a while. Thank you so much!