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

Macro Dual Whisper

1747270697

Edited 1747271859
VTTeamPlayers
Pro
Marketplace Creator
I have the following macro set up: !rt /w gm [[1t[Species]]] I would also like it to whisper to the player who presses the button. (essentially to GM and that player only) How do I accomplish this?
1747274443
timmaugh
Forum Champion
API Scripter
I'm not sure you can do that natively through Roll20 syntax or with RecursiveTable. However, I think you could do it with metascripts. How deep could the recursion go on that table? One level of re-rolling could be accomplished like this: !{{ {\&global ([SpeciesRoll]  [[1t[Species]]].value) } /w gm SpeciesRoll /w @(speaker.character_name[@(speaker.player_name)]) SpeciesRoll }} It's simpler if you know the player to-whom-to-whisper... but that complex formation gets the character name (if you're speaking as a character) or the player name (if you're speaking as a player). Further recursions are possible, but require adjustment of the above command and/or the table items, themselves. If further recursions are potentially required, can you provide an example of the table returns from the Species table, and any related tables that might be rolled? REQUIRED SCRIPTS Metascript Toolbox
1747327769

Edited 1747327814
If you want a non-script approach that won't rely on any number of recursions from RecursiveTables, then you can do this: Use "placeholder" character(s)  to whisper the output to individual players and yourself as GM.     1. Create a character  Whisper Player1Name (replace 'Player1Name' with the name of your player), and give Edit and Control access to that player and yourself as GM.         1A. Create additional characters: WhisperPlayer2Name, etc.     2. Edit your macro to be  !rt /w WhisperPlayer1Name [[1t[Species]]]      3. You'll need a separate macro for each player. If you want to use a single macro for all players, you can combine that with Macro Overloading :      1.  Create a character  Whisper Player1Name , and give Edit and Control access to that player and yourself as GM.          1A. Create additional characters: WhisperPlayer2Name, etc.      2. Create several macros called "PlayerWhisper", and for each one put in the  WhisperPlayer#Name of that player.      3. Edit your macro to be    !rt /w #PlayerWhisper [[1t[Species]]]