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

Universal Chat Menu - Turn off whisper

Hi! I'm creating a menu for my players to be able to control some actions of missing player's characters. Currently the chat menu is automatically being whispered to the GM. Is there a way to have it not whisper? I'm using this script .
1759500728
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Floo fffy! IIRC, it whispers to the sender, not the GM specifically. You want it to display for everyone, whenever it sends?
keithcurtis said: Hi Floo fffy! IIRC, it whispers to the sender, not the GM specifically. You want it to display for everyone, whenever it sends? Ah yea, that's what I meant :D Yes I wanna have it be sent to everyone
1759538994
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Remove every whisper command from the script: change:                 code += `!
/w gm &${ch('{')}template:default${ch('}')}${ch('{')}${ch('{')}name=${ch('@')}${ch('{')}selected|character_name${ch('}')} ${label}${ch('}')}${ch('}')}${ch('{')}${ch('{')}=${ch('@')}${ch('{')}selected${ch('|')}${button}${ch('}')}${ch('}')}${ch('}')})`; to                 code += `!
&${ch('{')}template:default${ch('}')}${ch('{')}${ch('{')}name=${ch('@')}${ch('{')}selected|character_name${ch('}')} ${label}${ch('}')}${ch('}')}${ch('{')}${ch('{')}=${ch('@')}${ch('{')}selected${ch('|')}${button}${ch('}')}${ch('}')}${ch('}')})`; and change: print += footer ? `\n/w ${caller} ${footer}` : ''; sendChat(sender, `/w ${caller} ${print}`,null,{noarchive:true}); to print += footer ? `${footer}` : ''; sendChat(sender, `${print}`,null,{noarchive:true}); I haven't tested, but it should work...
keithcurtis said: Remove every whisper command from the script: change:                 code += `!
/w gm &${ch('{')}template:default${ch('}')}${ch('{')}${ch('{')}name=${ch('@')}${ch('{')}selected|character_name${ch('}')} ${label}${ch('}')}${ch('}')}${ch('{')}${ch('{')}=${ch('@')}${ch('{')}selected${ch('|')}${button}${ch('}')}${ch('}')}${ch('}')})`; to                 code += `!
&${ch('{')}template:default${ch('}')}${ch('{')}${ch('{')}name=${ch('@')}${ch('{')}selected|character_name${ch('}')} ${label}${ch('}')}${ch('}')}${ch('{')}${ch('{')}=${ch('@')}${ch('{')}selected${ch('|')}${button}${ch('}')}${ch('}')}${ch('}')})`; and change: print += footer ? `\n/w ${caller} ${footer}` : ''; sendChat(sender, `/w ${caller} ${print}`,null,{noarchive:true}); to print += footer ? `${footer}` : ''; sendChat(sender, `${print}`,null,{noarchive:true}); I haven't tested, but it should work... It works, thank you so much! <3