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

Whisper GM only chat menu

Hi all I'm trying to make a chat menu by macro, for me (the GM) to modify the Turn Tracker values. I have it working fine, but as I try to make it GM eyes only, it fails. I seem to normally be able to make chat menus GM-only this way, but this menu fails to do so. Can anyone help me by telling me what I'm doing wrong? This is the code that fails: /w gm &{template:default} {{name=Adding to tracker}}{{Name = Add }}{{Gandalf = [Normal(+40)](`/gr 40 + @{tracker|Gandalf} &{tracker}) }} But if I delete the /w gm part, this works as intended: &{template:default} {{name=Adding to tracker}}{{Name = Add }}{{Gandalf = [Normal(+40)](`/gr 40 + @{tracker|Gandalf} &{tracker}) }} I do select the Gandalf token to make it work (if there's any way to avoid selecting this, PLEASE let me know this as a bonus :-)
1744461858
timmaugh
Forum Champion
API Scripter
This formation should work. It used inline roll brackets in the second message, and then it also hides them from immediate evaluation by using HTML replacements. The second output is different (it looks like an inline roll rather than a /roll command), but the effect is correctly updating the token in the tracker: /w gm &{template:default} {{name=Adding to tracker}}{{Name = Add }}{{Gandalf = [Normal(+40)](`/w gm [[ 40 + @{tracker|Gandalf} &{tracker}]]) }} As for having to select the token, you are bound to that if you use Roll20 standard constructs like this. You can do it without having to select the token if scripts are available. They would be available if the game owner is a Pro subscriber. If you're the owner, I see you're at Plus, so you'd have to upgrade to be able to implement a solution that didn't require selecting the token.
Yes, it works!! Thanks a lot for your help, Timmaugh. I'll have to look up inline roll brackets and html replacements :-) Yeah, scripts are not available to me, sadly. It only selecting a token was a bit easier, such as if I could set up hotkeys to select by keystroke, or by clicking on the token in the Turn Tracker. Do you know if such a thing is possible to set up (without scripts)?