Tabletop Simulator

Tabletop Simulator

57 ratings
Holy Roller - scripted dice roller
   
Award
Favorite
Favorited
Unfavorite
Assets: Scripting
Tags: Misc
File Size
Posted
Updated
25.445 KB
9 Aug, 2016 @ 11:20am
6 Mar, 2017 @ 6:27pm
6 Change Notes ( view )

Subscribe to download
Holy Roller - scripted dice roller

Description
UPDATE 3/6/17
I have updated the randomization so the dice are quicker to fall into place. See my newer creation, Roll-O-Matic, for a different way I could handle the "print" functionality. If you would prefer the new print functionality from Roll-O-Matic, let me know in the comments.

What is it?
Drop any dice into the tool to have them all rolled automatically.

It is that simple. The halo is a "bag". Drop dice into it, they automatically pop back out rolled and get laid out in a ring around the Holy Roller. There is an option to have it print roll results to chat as well (beta feature, must be enabled. Look at the settings at the top of the code.)

You can edit how high up they are placed and how far from the Halo with an easy script edit. The rest of the script is fully commented to help anyone trying to figure out how any of it was done. And it is worth metioning, avoid throwing non-dice into the halo. It will take anything you throw at it, literally, which could cause some odd behavior if absued.

Please do not abuse the halo.

Special Thanks
I want to thank forum user Revinor for working out the quaternion foruma to get a nice, random result. I credited him in the function itself (in case anybody copies it over for their own work) but he cracked a problem that stuck me but good.
30 Comments
Capt. Bollocks 2 Apr, 2023 @ 6:40am 
Love this roller! Is there a way to print the dice roll result in the GUI/Game Log?
Aracnes 24 Apr, 2022 @ 7:17am 
Used this yesterday with d8s. There is definetly something not working because I kept rolling far over statistics. On several 6x d8 tests on a 5+ (50%) for example I was constantly obtaining 5 successes. The value 8, which in my game represents a critical success, was also happening way too frequently. Not sure if there is an effect on how the initial position of the dice or such.
chaylafaysky 5 May, 2021 @ 5:02pm 
It looks like the author has not posted here in over a year, but I figure that I'll try anyways... I am a DM who plays D&D with a couple of close friends - I rather like this roller,.. but my friends often have really bad rolls with their dice (their rolls are generally like 50% below the average), and they have been having a hard go on some of the tougher encounters - since I (as the DM) always roll in the open, where my players can see my rolls, I cannot "fudge" the numbers to help them out in any encounters. So I was wondering if it was possible to script a copy of this roller to give out numbers that are above average about 2x more often than getting lower rolls - I am not looking for a roller that rolls max most of the time... just a slight boost, to help out my players who often roll poorly.
Buddy ☩ 6 Feb, 2021 @ 2:09pm 
Hey I planned to use these for my session today but as of like 5 minutes before the session. An error is showing up. We have done literally nothing to the rings. It says Error in Script, Custom Model Bag, onCollisionEnter fuction: Object reference not set to an instance of an object
Top C. Cret 30 May, 2020 @ 10:05am 
Hey! Big fan of the roller but i was curious what the script is to possibly add back in the rolling animation it did before? I am thinking of starting a game with my group but i am not sure they would use the roller if they didnt think it was actually rolling the dice to randomize them. I know it is but they enjoy visual feedback like that.
MusicNeverSleeps 10 May, 2020 @ 9:28pm 
Is there a ways to make it so the GUID isn't changed once an item enters the halo?
MareNostrum 14 Apr, 2020 @ 6:46pm 
Well, I love your dice roller. I just wish that it printed a sum of all the dice rolled, like Roll-O-Matic does.
MrStump  [author] 12 Apr, 2020 @ 4:01pm 
Yep! Just another in a long line of tools of dubious value. But you forgot to point out that it also looks pretty ugly, so I'm going to have to give your review a 4/5.
Quizzelbuck 12 Apr, 2020 @ 1:11pm 
This is literally no better than just hitting the R Key. If it doesn't hold the dice, and then spit them out on request permanently then whats the point?

I can just box 4 or what ever dice, with the mouse. This is the R key with extra steps.
Fingler 31 Dec, 2019 @ 8:19am 
These color changing dice need to be lifted and let go to update the colors after using your mod, would it be possible to have the roller somehow update the dice to force the color change? Gif [i.imgur.com]