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

How to send information to DM with macro?

I'm trying to make a simple attack macro for my pathfinder game, so that I don't have to flip through all the page of my monsters and characters in order to see the basic defense stats when an attack is made. I want, simply, to print the attack roll, and send the DM the target's stat block. Currently the macro looks like this: %{selected|repeating_weapon_$0_attack-roll} /w gm %{target|defense-stats} But when testing this out by rejoining as a player, it doesn't print the stats of the target, and another problem pops up: Even if it did print the stats I'm looking for, it would let the player see the stats! Is there any way to make it so when the player uses this macro, it sends a message just to me as the DM with the defense stats of the target?
Have your whisper to the DM whisper a button that runs a macro that the player doesnt have access to, but the DM does.  The player could click the button, but it would return them a macro not found error, but when the DM clicks it, it would return the results.
My guess is the macro works, but your method of testing is not suited. When you rejoin as player you are no longer considered a gm until you rejoin as gm again. Therefore you don't see the gmwhispers. So to properly test this you need someone else to be joined as a player.
1542037242

Edited 1542037252
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
For testing something like this (and many other reasons), I suggest using a dummy account . You can have two instances of the game running simultaneously and fine tune in real time.
The issue is, you see what you whisper, as does the person at the other end.  So if the player is whispering monster stats to the DM, the player sees the stats.  Hence why my solution was to whisper a macro-calling button where the player didn't have access to the macro, so couldn't run that macro.
1542062898
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I don't think you can do a Blind Whisper. There may be an API script that allows this, but I haven't looked for one before.
1542079223
Gen Kitty
Forum Champion
Powercards allows for blind whispering; that was the feature that made me pick up that API to start with, years and years ago.
Actually the more I think about this, the more I realise this would have to be an API script.  My way wouldnt work, as there is no way to 'pass on' which token was selected by the player so the DM would have to go select the macro anyway, at which point you might as well just have a DM macro that whispers the defences to yourself.
1542112762
Ziechael
Forum Champion
Sheet Author
API Scripter
There is also the original Blind Roll script for a more specialised script option :)