Tabletop Simulator

Tabletop Simulator

39 ratings
Click Roller
   
Award
Favorite
Favorited
Unfavorite
Assets: Scripting
Tags: Misc
File Size
Posted
Updated
15.565 KB
23 Jul, 2017 @ 10:45am
25 Jul, 2017 @ 8:14pm
4 Change Notes ( view )

Subscribe to download
Click Roller

Description
A button that rolls dice. Click it once, a die is spawned and, after a delay, is rolled. If you click it more than once during that delay, then more dice will be spawned and rolled all at once. It has many variables to modify how it works without any scripting knowledge. Each button can be modified to work with one of a variety of dice.

I created a new version that works with 6 dice types at once. https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1092390834.

List of Modifications (no scripting required)
  • Color of Dice : Leave them their natural color, overwrite them with a color, or color-code them to the person who clicked the button to spawn it.
  • Die Type : Use the default dice types (D4 through D20) or use a custom die of your liking.
  • Cleanup : Dice are removed every time you go to roll again (or when the tool is loaded if any dice are left laying around). You can also set a time delay to automatically delete dice after their roll.
  • Announcements : You can print the name of the (last) person to click the roll button, the individual roll results, and/or the total. Or nothing at all.
  • Die Positioning : The dice form a ring around the button, but you can determine how wide that ring is or how high above the table they are placed.
  • Die Size : Change how big the dice are. You maaaay want to adjust positioning if you intend to supersize.
  • Roll Delay : Want more or less time between the clicking and the rolling? Easy to modify.
  • Max Dice Count : Ability to limit the maximum number of dice spawnable for one roll. Default is 20, can be disabled.

This tool DOES support custom dice and the default dice types. This tool DOES NOT support custom models or asset bundles set to be dice. That is because they do not correclty show their number of sides, breaking the print function. It is possible to make a script that works with them, but it is a case-by-case setup required. You also can't spawn metalic dice from the spawnObject menu.

Don't waste your money. Let me waste your money. [www.paypal.com]

33 Comments
chessica 25 Aug, 2022 @ 1:52pm 
Are there any way that I can use it with a d100 dice?
anski 20 May, 2020 @ 12:39am 
Is there a way to apply more rotation? I know it is random, but people I play with arent seeing much visual rotation and they become superstitious...
Quizzelbuck 12 Apr, 2020 @ 1:15pm 
can you make this roll a combination of X Y and Z dice, with a single push? like, a long sword is always a d20, and a d8, and maybe some other extra BS thing, like a d4.

What if a single push spat out predefined "long sword attack/damage" dice? No one makes one i've seen but all the other things like roll20 an fantasy grounds support this type of function.
MurderHobo 26 Jan, 2019 @ 1:16pm 
Is it, or would it be possble to make this awesome dice roller "ACE" for savage worlds settings.On the highest roll... roll again... until the highest roll is no longer rolled?
JetMorris 9 Sep, 2018 @ 6:56am 
This is awesome, saves you getting that annoying dice that doesn't roll properly

I modified the script slightly and used it to create this:

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1507776226
MrStump  [author] 9 Aug, 2017 @ 12:10pm 
@Brando haha thank you

As for "getting rid of the noise" I have worked out a way to stop dice from re-entering the bag they left. So I'm working on a version of this that will work with decals/simple edits, as well as the new rotation value system added last patch. Should work with any die of any type, and multiple versions of the tool should be able to work together (similar to how Click Roller Strip works) for you to roll multiple dice.
Bando 9 Aug, 2017 @ 11:45am 
Stump, you're a treasure to the TTS community.
MrStump  [author] 5 Aug, 2017 @ 7:20am 
I've got a request in the suggestions section of the forum to let us turn off the damn spawning noise haha. Keep an eye on patch notes, if they ever make it toggleable, I'll be turning it off.

The only way around it now is to use a bag, and that adds a layer of annoyance to the whole exercise. But now that we can customize sides to a die, I may make an infinite bag style button that you can put a die into and it will roll that die. Since now you can make pretty much any die "readable". This tool was me avoiding unreadable dice by only spawning the types that can be read.
ribbie 5 Aug, 2017 @ 4:01am 
I love this roller, just what I needed for my games. However the spawning sound really annoys me. But from reading the other posts, sounds like you do not have much say in the spawn sound. I just wanted to check if that was still true or not.
MrStump  [author] 29 Jul, 2017 @ 2:43pm 
@Gold, there's a die limiter in the script already in the variables. It is set to 20 by default, you can switch it to 1 then only 1 die can be spawned.