Tabletop Simulator

Tabletop Simulator

Not enough ratings
Yet Another Roller
Game Type: Scripting
File Size
0.019 MB
May 28, 2017 @ 12:04pm
Jun 11, 2017 @ 11:49am
5 Change Notes ( view )

Subscribe to download
Yet Another Roller

I keep fiddling with this concept and, eventually, I may someday make one I'm really pleased with.

With this one, you place a die on top of the device, click the + and - buttons to set how many of it to roll, and click the number to roll. You can turn printing of the results on or off with a button. You can change variables at the top of the script to set how far dice are placed from center or if they are organized in order after rolling.

Added a clean button to removed the rolled dice. No matter what, the old dice will still be removed any time you make a fresh roll, this is just an optional button to use.

I also added an auto-cleanup feature that will clean up the dice after and N seconds. You can set it up by changing a number at the top of the code. By default, this feature is off.

I also used the new cast system to do a sphere cast to find the die on the device instead of checking the distance of all objects.
< >
Sabreman Mar 15 @ 5:46pm 
My favorite roller by far! Discovered that it doesn't like custom dice, though.
Lt. Dexter (Rune) Feb 22 @ 7:48am 
Player like to experiment when they are idle.
It seems you can break it by placing a generated die on the pad and furthermore getting the message to wait for all dice to stop rolling. Would be nice if the X button would be a way out. Or just add a note to the use instructions not to do that ;)
ЭЛЬ КУ-КУЙ Jan 15 @ 3:36am 
Hi! Its really cool mod! For Spartacus game is best :))
But, it can be change? - numbers go in the chat from small to big, but need from big numbers to small. Its really? :) Sorry about my english.
Vigo the Carpathian Apr 25, 2018 @ 3:31pm 
Hands down my favorite roller on TTS. Fantastic work!!!
☣BaconCatBug☣ Apr 24, 2018 @ 2:45am 
Hi, I have a question, how do you get the RollerColor? I can't seem to see how you're finding it.
MrStump  [author] Jul 24, 2017 @ 3:43pm 
My next big plan is a roller like "click roller", my newest one. Except it has multiple buttons for multiple types of dice. But then working custom dice into that becomes more complicated.

So now I am starting to think I want to have individual buttons you can link together into a group so they work together like clickroller does with a modifier options for each
MrStump  [author] Jul 24, 2017 @ 3:39pm 
Yeah this is the problem I run into. Either the die is out on the table, in which case it gets mistaken for a rollable die, or it is in a bag (or spawned) and you aren't sure what it was. I considered making a semi-transpaent cube to warp the die into, but then you can't move the tool around.

I'll figure out a good universal die roller solution one day... one day haha
Tragic Jul 24, 2017 @ 3:18pm 
[Suggestion] ...... When you place the die on the roller, is saves the die scale, then makes it small (maybe during 1st roll)

I have been testing this in real world game situations for awhile now and I think it is the best roller so far, but the dice in the center is often the cause for confusion for other players, thinking it is one of the rolled dice. Maybe even change its texture or something! Or make a new mesh object to "house" the chosen die or sometrhing.
Liberty has Returned Jun 10, 2017 @ 12:46pm 
Would love the ability to set modifiers, great roller!
DedMachine Jun 5, 2017 @ 12:36pm 
okay, thanks anyways! It's still my favorite thing in the workshop right now :)