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

How to Prevent Players from Just Typing Number in Brackets?

I searched for this and could not find it anywhere, so I hope this isn't a duplicate.  My players use a combination of macros and just typing "/roll etc" to play my game. However, sometimes just the number will show up, without giving me the breakdown of the dice the player rolled. Because of this, I realized that a player could simply type [[ 24 ]]  and the number will print in chat as if it was rolled. Is there a way for me to prevent this? Can I disable this option somehow? I have access to the API, so adding a script to my game is possible. Thank you.
1592258390
Gold
Forum Champion
not a complete solution, but just to make sure you know, you can Mouse-Over the yellow number/result, and it will pop-up to show what dice was rolled. So if it says /rolling 24 = 24, then they did not roll a random dice for it
1592258894
The Aaron
Roll20 Production Team
API Scripter
You could write a script to alert you when an inline roll contains just the number that was the result pretty easily, but it might get some false positives because of how roll templates and character sheets work.
Gold said: not a complete solution, but just to make sure you know, you can Mouse-Over the yellow number/result, and it will pop-up to show what dice was rolled. So if it says /rolling 24 = 24, then they did not roll a random dice for it and if you catch them doing that its an auto crit fail ;)
1592274929

Edited 1592275228
Oosh
Sheet Author
API Scripter
If they are using a macro with the rolls buried in enough layers of [[ ]] the mouseover won't give you the info. If you have 3d dice enabled and the dice are an actual physical size (4,6,8 etc.) you should still see a dice roll of some kind, although you won't get them all with nested groupings. What game are you playing? Are the rolls that complex that they need to be buried that deeply in brackets? If not, tell your players to fix their macros so all the dice are visible on mouseover. Unless there's some pretty serious math going on to hack functionality into the dice reference system, this shouldn't be too much of an ask. Honestly, it isn't that hard to balls up a macro even with good intentions. Needlessly obscuring the rolls is a bad idea if it can be avoided, trust issues or no. In addition, you can use $[[0]] references to show obscured dice rolls. Compare this: [[ [[ [[2d6]] + [[2d6]] ]] ]] to this: [[ [[ [[2d6]] + [[2d6]] ]] ]] ----- $[[0]] $[[1]] The mouseover info is "recovered" in the second one.
Gold  said: not a complete solution, but just to make sure you know, you can Mouse-Over the yellow number/result, and it will pop-up to show what dice was rolled. So if it says /rolling 24 = 24, then they did not roll a random dice for it I actually hadn't noticed this, so this helps. Thank you! Oosh said: If they are using a macro with the rolls buried in enough layers of [[ ]] the mouseover won't give you the info. [...] What game are you playing? In addition, you can use $[[0]] references to show obscured dice rolls. Compare this: [[ [[ [[2d6]] + [[2d6]] ]] ]] to this: [[ [[ [[2d6]] + [[2d6]] ]] ]] ----- $[[0]] $[[1]] The mouseover info is "recovered" in the second one. We are playing D&D 5e (level 8). 5e makes things simple enough that this isn't usually an issue, but some of my players have wacky combinations that require a lot of different macros. Dereferencing the values with $ is also useful, if the macros are complicated enough that it doesn't break down the dice, I'll have my players add this. Thank you!