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

Player rolls but only GM sees the result

Is there a way to do this? I searched, but couldn't find anything. Sorry if this is a question with an obvious answer. I couldn't find it.
1527277336
The Aaron
Pro
API Scripter
There are API scripts (a Pro subscriber perk) that can do that.  PowerCards has a mode for it and there is a blindroll script somewhere about.
The Aaron said: There are API scripts (a Pro subscriber perk) that can do that.  PowerCards has a mode for it and there is a blindroll script somewhere about. I am a pro subscriber, but I have no idea to use API scripts. Like none. Zero. I appreciate the suggestion, but is kinda useless to me cuz I am totally dumb about API scripts.
1527280005
The Aaron
Pro
API Scripter
No problem. Go to your Game's Details page, where you invite players, or promote them to co-gm, click the "Launch Game" button, etc. On the right side, click the "Settings" dropdown and select "API Scripts" Click the "New Script" Tab Change "untitled.js" in the Name: field to "Blind Roll" (or something else, doesn't matter, just identifies the tab for you). Click in the black area below and paste the script (see below) into it. Scroll down and click the "Save Script" button. That's it for installing the script.  Now in the game, if you type something in chat like this: !broll 1d20+3 The person that sends it will get a message of "secret roll sent to GM (1d20+3)" and the GM will get a roll of 1d20+3 result. Script Code: on("chat:message", function(msg_orig) {     "use strict";     var msg = _.clone(msg_orig), who;     if (msg.type !== "api") {         return;     }     if(_.has(msg,'inlinerolls')){         msg.content = _.chain(msg.inlinerolls)         .reduce(function(m,v,k){             m['$[['+k+']]']=v.results.total || 0;             return m;         },{})         .reduce(function(m,v,k){             return m.replace(k,v);         },msg.content)         .value();     }     who=getObj('player',msg.playerid).get('_displayname').split(' ')[0];     var cmdName = "!broll ";     var msgTxt = msg.content;     var msgWho = msg.who;     var msgFormula = msgTxt.slice(cmdName.length);     if(msg.type == "api" && msgTxt.indexOf(cmdName) !== -1) {         if(_.has(msg,'rolltemplate')) {             sendChat(msgWho,'/w gm &{template:'+msg.rolltemplate+'}'+msg.content);             sendChat(msgWho, "/w " + who + " secret rolltemplate sent to GM");         } else {             sendChat(msgWho, "/gmroll " + msgFormula);             sendChat(msgWho, "/w " + who + " secret roll sent to GM (" + msgFormula + ")");         }     }; });
Thank you! You be teh awesome! I'll have to test this soon. Thanks so much.
1527280298
The Aaron
Pro
API Scripter
No problem.  If you get stuck, feel free to PM me an invite to the game and GM me and I'll come help you sort it out. =D
What is the syntax for using a rolltemplate with this?
1527314777
The Aaron
Pro
API Scripter
!broll &{template:default}{{name=Bob’s Stealth}}{{Roll=[[1d20+8]]}}
Thanks, Aaron. I notice the roll does not have a tooltip so I can't see the breakdown of the roll. Is there a way that could be displayed, or is it not possible with this mechanism?
1527351983
The Aaron
Pro
API Scripter
Not easily possible. I could probably get you something. I didn’t really write this script...
I use that script constantly, some of my players hate it, if you know you failed the climb roll, you might stop just before you would take damage...