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

Can a script affect dice rolls of my players as a DM?

Hello everyone who reads this o/ I'm soon going to start my first homebrewed campaign with my players.  At the end of it i would like a scenario to play out where they all need to roll a normal D20. For added effect i would love it if all of them would be NAT 20's even if it's a script that allows them to do it.  Is there a script that can do that?  No biggie if there isn't i'll just do the final scene in another way. In any case, Thanks in advance. Cheers o/
1661389121
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Apostolos! This comes up every once in a while. It's not really possible with mods to spoof a die roll in a way that cannot be detected.
1661390276

Edited 1661390304
There are ways to have a similar effect, as long as your players are in on it. Not a script, but would expanding an attack roll's crit range suit your needs?
Keith - I believe the concentration script has something he is asking for. It provides the DC #, Modifier and Roll results. Then there is a "TOTAL" result number which is hoverable. But the "Roll Result" line is a flat number, you cant see the formula at all.  If that script can be repurposed for OP, it may be what OP is seeking
1661476206

Edited 1661476559
Oosh
Sheet Author
API Scripter
Novercalis said: Keith - I believe the concentration script has something he is asking for. It provides the DC #, Modifier and Roll results. Then there is a "TOTAL" result number which is hoverable. But the "Roll Result" line is a flat number, you cant see the formula at all.  If that script can be repurposed for OP, it may be what OP is seeking If the roll doesn't need to be genuine, you don't even need API functions for it: &{template:default} {{name=Roll}} {{Select your token and click to roll=[Click to roll 1d20](`/w gm &{template:default} [[13d21]] {{name=d20 roll}} {{@{selected|character_name}}} {{Result=[20](#" style="background-color: #fef68e;border: 2px solid #fef68e;padding: 0px 3px 0px 3px;font-weight: bold;cursor: help;font-size: 1.1em;border: 2px solid #3fb315;" title="Rolling 1d20 = (20)" class="showtip tipsy) }}" style="color:blue; font-weight:bold) }} But if you want it to stand up to scrutiny (i.e. 3d dice actually work, and the tooltip has the quantum roll stamp and correct formula) I have no idea how you'd do that to a player roll outside of having your own unethical scripts running in their browser without their knowledge. API can't do 3d dice at all, let alone fake them. You could probably fake the quantum roll signature with some trickery and effort, but I can't imagine Roll20 (or your players) looking very favourably on that.
1661491704
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
That's basically what I meant. You can create any result you want, but not one that stands up against scrutiny.