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 Die roll API?

Hello all, I'm trying to think of a way to setup a macro/API solution for the Charlatan's Die (details of the item: "Whenever you roll this six—sided die, you can control which number it rolls.").  I'd like to allow my player who has it to "fake a roll" of a d6, and choose the outcome for himself.  Does anyone have any ideas as to whether this is possible or not?  Or how would you go about setting up the API to do it?  I have zero experience working with APIs so far, but from what I understand they can be quite powerful, so I was hoping to get some insight as to whether this would be possible or not. Thanks.
It should be noted that I'm trying to get this roll to look as much like a normal d6 roll as possible, to allow my player to keep the loaded die a secret from the party if he wishes to do so.
1584909692
The Aaron
Roll20 Production Team
API Scripter
You can't fake a die roll, but you can chose a value with something like: [[?{Charlatan die|1|2|3|4|5|6}]]
Thanks @The Aaron.  I was afraid that may be the case.  I get why roll20 doesn't allow you to spoof rolls, for good reasons, but it's a shame that I can't seem to find a way to allow my player to have a bit of inter-party fun with this particular item.
1584911829

Edited 1584911951
The Aaron
Roll20 Production Team
API Scripter
The other thing you could do is wrap it in two inline rolls with other dice: [[ [[ 2d6+ ?{Charlatan die|1|2|3|4|5|6} ]] ]] That will cause it to only show the result and none of the math.  It won't show highlighting, but no good way around that. To get proper highlighting, you could do this: [[ 2d6+?{Charlatan die|1,1d1cs0|2|3|4|5|6,1d1cf0+5} ]] Will the math will look a bit strange if someone wants to dig into it, but the colors will be right.