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 .
×

Whisper Macro

I'm currently using the macro:  /w ?{Whisper|player1|player2|player3|player4|player5} ?{What do you wish to say} to whisper to my PCs more quickly. However multiple of their Characters have at least two names, the command  |First Name Sur Name|, does most of the time find the player still, but inputs everything after First Name, in this case: "Second Name Sur Name Message" in the displayed message. Shortening the name in the macro down to the First Name, does seem to find the player for now, but I'd prefer it if there was a way to use the exakt name, to avoid the programm not finding the correct Player later on, if there are Characters with similar names. (Replacing the Spaces in the Name with _ doesn't seem to work either) I'd appreciate any tips.
Not a real tip for your way of doing it, but maybe this is an alternative: I use /w "@{selected|token_name}" ?{Message} to whisper to the selected token. However my macro does not work if there a certain special charakters in the name of the token.
1629376732
David M.
Pro
API Scripter
I use Mirco's method, but could your macro give you what you want if you just put quotes around each of your player names? /w ?{Whisper|"Bob the guy"|"Mary Smith"} ?{What do you wish to say}
Thank you very much for your replies. Putting quotation marks around the names did work. I'll probably also try Mircos method, but I like to have the option as well, to use the macro to whisper, even if there isn't any token on the current map. (One could argue it isn't that much faster than typing in the chat, but most of the time it's still more practical.)
You could try this: /w "?{Name?|@{selected|character_name}|PLAYERNAME1|PLAYERNAME2|PLAYERNAME3}" ?{Message} Replace each PLAYERNAME with the name of your players. Or if you want the ability to type a name you can use this: /w ?{Selected Name?||"@{selected|character_name}"|"Bettin"|"PLAYERNAME2"|"PLAYERNAME3"}?{Typed Name?} ?{Message} The only caveat is you have to select the blank option to then type a name in the second query, and vice-versa, you have to submit a blank typed name if you select a name from the dropdown. 
Jarren said: You could try this: /w "?{Name?|@{selected|character_name}|PLAYERNAME1|PLAYERNAME2|PLAYERNAME3}" ?{Message} Replace each PLAYERNAME with the name of your players. Or if you want the ability to type a name you can use this: /w ?{Selected Name?||"@{selected|character_name}"|"Bettin"|"PLAYERNAME2"|"PLAYERNAME3"}?{Typed Name?} ?{Message} The only caveat is you have to select the blank option to then type a name in the second query, and vice-versa, you have to submit a blank typed name if you select a name from the dropdown.  Thank you for your answer, I unfortunely olny got around to read it now. If tried the methods suggested before, they work quite well, but I might get around to testing yours later on, to compare what works best for me. So thank you nonetheless for your answer.
/w "@{selected|character_name}" /w gm &{template:npcaction} {{rname=Whisper to @{selected|character_name}}} {{description=?{Enter your whisper|default_whisper}}}