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

Charlatan's Dice

Hello. I'm not sure if this is the right place to post this. I'm looking for a particular API for dice rolling. For context, I'm a player looking for an API to show to my DM. My character has a magic item called the  Charlatan's Die (Dice, because the DM let me have a pair of them as one item). The way they work is that you can control what number comes up when you roll them. The other players and their characters don't know that my character has this. My character is a less-than-reputable person, and our game is about holding on to info for as long as possible. I was wondering if there is an API that lets you force the outcome of certain dice rolls while making it look like they were rolled fairly and naturally. To be clear,  I do NOT condone cheating dice. DM fudging the dice is one thing, but players cheating is unacceptable, and I wouldn't think about doing so. I know this seems like a setchy request, and I understand if people may not like the idea. But any help would be appreciated.
Within Roll20 there is no way to force a specific die roll and have it look random. You could use a script to generate a specific die roll, but it will not have the Quantum Roll icon, and instead will use the 'API-Generated' tooltip and it will be pretty easily noticed that it was not a true roll. The closest you'll be able to get is something like this tip:  Use Manual/In-Person Rolls Within Roll20 (D&D 5E) . It will display the Quantum Roll icon, but closer inspection shows that it's not a simple '2d6' roll.
I was afraid that would be the case. I appreciate the tip. Would we have to change the global settings for the game, or a character sheet, or can this be a macro for a 2d6?
I’m assuming you’re playing D&D 5E. Which character sheet are you using?  How are you planning on rolling for the item? (If your character had a regular pair of dice that needed to be rolled in game, how would that happen?) What do you want the output to look like? 
Yes, we're using 5E. 2024. My character normally uses these dice for street craps and will sometimes cheat to make sure he doesn't lose too much money. I want to be able to roll a set of d6s in the app and have them roll the number that I want them to roll, or to roll randomly. I want the output to look as close to a real roll as possible. I don't know how hard that is or if it's even possible.
What I mean is: are you looking for an output in a specific roll template? Is there another dice roll that you’re trying to emulate? Can you post a screenshot of a “real roll” that isn’t using a charlatan’s die, or a complete different roll in your game that you want the die roll to look like? 
Ahh, right. My bad. Here you go. This is from my game and my character. This is a straight 2d6, no abilities or anything. I want it to look as close to this as possible.
1765661258
timmaugh
Forum Champion
API Scripter
Mimicking *that* sort of roll output would be tricky... but you can mimic the inline roll output: The top one was just a standard 2d6 roll. The bottom one was generated by the Metascript Toolbox. Two main differences... The color, obviously, but that's less about the roll being "invalid" or "fudged", and just that the Toolbox was built to mimic the original look of non-dark mode, standard color rolls. With the 2024 sheet installed, the roll formatting is different. I have it on my "to-do" list that the Toolbox needs to check the game for the 2024 sheet and adjust its colors accordingly; I just haven't gotten to it yet. But, like I said, that's not a huge indicator that this was a predetermined roll. The other difference isn't as apparent, but it is a giveaway if the person knows what they're looking for: if you hover over each roll, you get the "roll equation". For the top output, it says: "Rolling 2d6" For the bottom output, it sayd: "Rolling (2+5)". Not immediately a giveaway, since everything else looks legit. Anyway, if you want to play, get the Toolbox installed in your game (have your GM do it), then here are the commands I ran: Normal &{template:default} {{name=Charlatan's Dice}} {{Roll=[[2d6]]}} Script Command !&{template:default} {{name=Charlatan's Dice}} {{Roll=[[2+5]]}} {&simple}
Eldest Wolf said: Ahh, right. My bad. Here you go. This is from my game and my character. This is a straight 2d6, no abilities or anything. I want it to look as close to this as possible. It is not possible at all to fake an output in the /r roll template format. If you're using the D&D 5E 2024 by Roll20 character sheet, the best option I can suggest is to create an item (or drag the 'Dice Set' from the Compendium) and just put the dice roll into the description. Since the 2024 sheet doesn't display max or minimum dice rolls in green or red font, the extra code doesn't really matter. Then you can use one of these options depending on exactly what you want the output to look like. Again, to a trained eye, these will be clearly 'fake' rolls, but they can pass a quick glance as legitimate. Dice Roll: [[ ?{Dice Roll Result 1?|1d6} ]] + [[ ?{Dice Roll Result 2?|1d6} ]] Dice Roll: [[ [[ ?{Dice Roll Result 1?|1d6} ]] + [[ ?{Dice Roll Result 2?|1d6} ]] ]] Dice Roll: [[ [[ ?{Dice Roll Result 1?|1d6} ]] + [[ ?{Dice Roll Result 2?|1d6} ]] + 0d0]]
This pretty much gives me what I want. Thank you both, Timmaugh and Jarren, for y'all's help. I'll definitely show this to my DM and use this in my future games.