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 Question - Is this even possible?

Just curious, is it even possible to create a macro (or maybe it would be an API script), that would display the same dice roll differently to different players.   For example, the player who executes the macro or script for the dice roll would see the details behind it, including all the variables that go into it, whereas the other players would only see the aggregate of the variables without the detail behind it?
1623542881
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
That would require an API script.
1623542954
Oosh
Sheet Author
API Scripter
The local Metamancer has a script here which should do what you want (obviously requires Pro for API access). Setting up rolls on the fly would be finicky, but if you have some kind of template you want to use it should work fine. Without API the only way I can think of is to use the HTML injection trick here to insert your own ids or classes, then use Stylus (all players will need it installed) to change which players see which parts. This is super clunky, and would be a real pain to set up, but technically could work. You'd probably also need to use one of the roll parser methods to hide the 3d dice, if players aren't meant to see the natural roll. There's (AFAIK) no way to show a roll result without also showing the 3d dice, unless you use the API (I think 3d dice are still broken using sendChat()) or a parser trick.
Thanks all!