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

Is there a way for a macro to just whisper the player that uses it?

Is there a way for a macro to just whisper the player that uses it? I'm essentially trying to switch how I run things in terms of sending information. I plan on putting a token on maps that the players can control but not see the journal of. I want to set macros as token actions. I want players to be able to click them and then receive a whisper of room details. That way if someone forgets what is in a room, or scouts ahead they can click the button.
1406648353
The Aaron
Roll20 Production Team
API Scripter
The API can whisper players: var who=getObj('player',msg.playerid).get('_displayname').split(' ')[0]; sendChat('','/w '+who+' some secret message.');
Hmm, might have to make a tiny short api script for that then, thanks!
1406651272
The Aaron
Roll20 Production Team
API Scripter
Oh.. I totally misread your question Macros can whisper to the player, just use their name. /w aaron I'm your macro! You might use the character instead: /w @{character_name} I'm a macro on this character! So that copy/pasting it will work.