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

[Script] Blind rolls to GM. Some of you might have fun with this.

1383751165
Stephen S.
Pro
Marketplace Creator
Sheet Author
API Scripter
Player enters: !broll 1d100 What the player sees: What the GM sees: Great fun for a thief.. Player: "I hide in shadows" GM: "Blind roll with your chance of success" Player enters: "!broll 1d00 to hide in shadows 45% chance" API (to player): Blind roll sent to GM (1d00 to hide in shadows 45% chance)" {What the only the GM sees} Ryan (Blind): "(To GM) rolling 1d00 to hide in shadows 45% chance (67) = 67" GM: "OK you think you are hidden... now what?" <a href="https://gist.github.com/baldar/7291922" rel="nofollow">https://gist.github.com/baldar/7291922</a>
I use it for nearly all my thieving skills, built into my custom sheet - the halfling thief's player does NOT like not knowing the rolls.
1444847429

Edited 1444850187
AquaAlex
Sheet Author
Translator
API Scripter
Damn page not available
I have the script, so don't worry. I will PM it to you.
1444858672

Edited 1444858784
Stephen S. said: Player enters: !broll 1d100 What the player sees: What the GM sees: Great fun for a thief.. Player: "I hide in shadows" GM: "Blind roll with your chance of success" Player enters: "!broll 1d00 to hide in shadows 45% chance" API (to player): Blind roll sent to GM (1d00 to hide in shadows 45% chance)" {What the only the GM sees} Ryan (Blind): "(To GM) rolling 1d00 to hide in shadows 45% chance (67) = 67" GM: "OK you think you are hidden... now what?" <a href="https://gist.github.com/baldar/7291922" rel="nofollow">https://gist.github.com/baldar/7291922</a> &nbsp;I wish roll 20 basic had this .
1444865713
Stephen S.
Pro
Marketplace Creator
Sheet Author
API Scripter
I likely need to re-write this... been a long time since I looked at it.
I use it in everyone of my games for thieving skills that wouldn't have an obvious outcome if they were failed. I love it! Well, here is the code and a few improvements thrown in. The Aaron added in blind whispering &nbsp;roll templates as well. You might want to put standard documentation into the file as to who wrote it, and an&nbsp;explanation&nbsp;what it does and how to do those things. If you could figure out a way to code this into a sheet, or a code that can be placed into sheets as easy as copy/paste...muhahaha! 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 roll"); */ } else { sendChat(msgWho, "/gmroll " + msgFormula); sendChat(msgWho, "/w " + who + " secret roll sent to GM (" + msgFormula + ")"); } }; });
I have used this script for almost all of my games. I don't use it for "GM only" rolls though. Remember when you could focus players by rolling a handfull of dice behind your screen? I set my GM macros to put "The GM is rolling dice" in the chat, it tends to bring them back to th game when they are drifting.