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 whisper macro toggle?

I use the following Macro for displaying traits: &{template:npcaction} {{name=@{selected|npc_name}}} {{rname=@{selected|repeating_npctrait_$0_name}}} {{description=@{selected|repeating_npctrait_$0_description}}} I'm wondering whether there is a way to add a toggle to this so that, when run, it first asks whether I prefer to whisper it to myself as GM or let it run in the chat as written here (or the opposite, if it matters).  So far no luck finding that.  Has anyone seen something that would point me in the right direction?
1592458566
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
This should do it: ?{whisper|yes,/w gm|no,} &{template:npcaction} {{name=@{selected|npc_name}}} {{rname=@{selected|repeating_npctrait_$0_name}}} {{description=@{selected|repeating_npctrait_$0_description}}}
Awesome, thanks!
1592873760

Edited 1592873904
One related follow on: Is there a way to structure a multiple call under a single Whisper toggle?  For example, the following code for spells has the Whisper toggle, then three spell calls - but the toggle only impacts the first rather than all three.  Any way to set it up to get all of them and by extension any number of calls? ?{Whisper|No, |Yes,/w gm} %{selected|repeating_spell-3_$0_spell} %{selected|repeating_spell-3_$1_spell} %{selected|repeating_spell-3_$2_spell}
1592874637
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
The version I posted does default to whisper, at least for me. This should handle the reversal of the behavior: ?{whisper|no,|yes,/w gm} &{template:npcaction} {{name=@{selected|npc_name}}} {{rname=@{selected|repeating_npctrait_$0_name}}} {{description=@{selected|repeating_npctrait_$0_description}}} You can also type "y" or "n" to make those choices. As for your second case, There's no way to do that without making it three whispers. Instead, why not set the default for the campaign to be whisper toggle? Here are the ways to toggle this behavior: Always Whisper Go to the Campaign Settings Page Choose "Always Whisper Rolls" under "WHISPER ROLLS TO GM" in the Default Sheet Settings Save Load your game Go to the settings tab on the right and scroll to the bottom where you will find a button that says Apply Default Settings. Press it. Choose to update the Whisper settings. Wait a minute or two for it to resolve. There is a thin easy-to-miss progress bar. Never Whisper There's a bug in the game settings that doesn't recognize "Never Whisper Rolls", possibly because it is trying to write a blank value. The solution is to use Whisper Toggle. The default is public, so once this is set, all rolls should show. Go to the Campaign Settings Page Choose "Whisper Toggle" under "WHISPER ROLLS TO GM" in the Default Sheet Settings Save Load your game Go to the settings tab on the right and scroll to the bottom where you will find a button that says Apply Default Settings. Press it. Choose to update the Whisper settings. Wait a minute or two for it to resolve. There is a thin easy-to-miss progress bar. Query Whisper The default is public, so once this is set, all rolls should show by default unless you choose otherwise. Go to the Campaign Settings Page Choose "Query Whisper" under "WHISPER ROLLS TO GM" in the Default Sheet Settings Save Load your game Go to the settings tab on the right and scroll to the bottom where you will find a button that says Apply Default Settings. Press it. Choose to update the Whisper settings. Wait a minute or two for it to resolve. There is a thin easy-to-miss progress bar.
Thanks!  I guess you must get an email feed - I edited my question just after posting.  Sorry about that! Bummer that there's no parenthesis functionality in the macro code like:  apply this condition to (all of the things inside the parentheses). Thanks for the suggestions - but I don't want to whisper everything; most rolls should be in the open.  I was just hoping for a way of grouping a bunch of calls into one macro button, rather than several, using the whisper toggle, but without having to revisit that toggle for each call.  No worries.  I REALLY appreciate your help!
1593013218
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
What likely happened is the way I manage the forums. I open a list of threads that need attention into tabs, and go through the tabs one by one. The farther to the right, the more likely it is that the thread has sat open for a few minutes. I sometimes miss updates or edits that way.
1593022079

Edited 1593022398
Oosh
Sheet Author
API Scripter
Alex B. said: One related follow on: Is there a way to structure a multiple call under a single Whisper toggle?  For example, the following code for spells has the Whisper toggle, then three spell calls - but the toggle only impacts the first rather than all three.  Any way to set it up to get all of them and by extension any number of calls? ?{Whisper|No, |Yes,/w gm} %{selected|repeating_spell-3_$0_spell} %{selected|repeating_spell-3_$1_spell} %{selected|repeating_spell-3_$2_spell} I might have the wrong end of the stick here.... if you're asking if you can just keep applying the whisper to new lines, then no, Keith's right. There's no way of leaving the whisper open-ended. But if you specifically want those 3 spells to cast, or you have a set number of lines? Sure.... they're technically separate whispers, but you only get queried once. Although it may not be a good idea in this case! ?{Whisper|No, |Yes,/w gm} %{selected|repeating_spell-3_$0_spell} ?{Whisper}%{selected|repeating_spell-3_$1_spell} ?{Whisper}%{selected|repeating_spell-3_$2_spell} If you type multiple queries with the same name (exactly the same) it will keep using the option you selected. Unfortunately in this case, if you multi-cast spells like this the same Query logic will apply to your spell slot level selection. Whatever level you choose to cast the first spell at is what the next two will use because the Higher Level Cast queries all have the same name. So maybe avoid it for spells, unless you want to add your own custom Upcast queries with differing names.