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

Change this script to make it whisper everything to the DM?

I'm trying to modify this script to only whisper to me.. but I'm way over my head here.

Can anyone help me out?

I would love if it whispered everything to me. the dm


https://raw.githubusercontent.com/capekfilip/roll20-scripts/master/time-tracker/TimeTracker.js

April 29 (6 years ago)

I don't know much about that but there is a setting in game settings that allows you to do this already. On the game splash page before entering if you click the settings tab and scroll down to " whisper rolls to gm" click on "yes"

Not what I'm looking for, but thanks anyways.

April 30 (6 years ago)

Edited April 30 (6 years ago)
GiGs
Pro
Sheet Author
API Scripter

Try this quick-and-dirty fix. Look for this section:

var sendPublic = function(msg) {
		if (!msg) {
			return undefined;
		}
		var content = '/desc ' + msg;
		sendChat('',content,null,(flags.archive ? {noarchive:true}:null));
	}; 

and change this line

		var content = '/desc ' + msg;

to

		var content = '/w GM ' + msg;

and that should do it