Tabletop Simulator

Tabletop Simulator

Yet Another Roller
38 Comments
JJ.Sch 8 Jun, 2023 @ 3:58am 
Is it also possible to use custom dice and display the legacy? When I use my HeroQuest dice, it also only shows 1-6 as a result!
Sabreman 24 Mar, 2022 @ 2:01pm 
The die-roll intensity may be governed by table gravity.
gmdmb3 24 Mar, 2022 @ 12:08pm 
Is there a way to increase the "intensity" of the rotational force of the rolling of dice itseems a little weak sometimes or is it possible to make this an option
Sabreman 29 Dec, 2021 @ 11:43am 
It does print the number in the chat sorted by results, so I've always found it easy to check rolls over or under a threshold.
Top Shagger 28 Dec, 2021 @ 10:39pm 
Is it possible for a dice roller to detect successes rather than adding up all the results? like it counts how many dice rolled 5 and up and broadcasts that number?
Boki 29 Aug, 2021 @ 12:10am 
My friends and i love this dice roller for our battletech rounds. I've added some bits of script for players to be able to use scripting shortcuts to roll 1 or 2 dice or clear them.
I had to script one for each player's color though, as otherwise everyone would've rolled everyone's dice, and i got an error for the object not being able to get the color when passing it to the callback function. Maybe someone can and actually want's to fix it and make it more flexible.

Here's the code snipped on Pastebin [pastebin.com]
Damien Thorn 3 Apr, 2021 @ 8:50pm 
Hey, I've edited your dice roller to add a unlocking line on the cloned die, so that we can lock the die inside the roller and still roll dice.

if die.getLock then
die.setLock(false)
end
msiggins 16 Mar, 2021 @ 5:52am 
Ideal. Thanks. Would like to turn off sound and keep print results until Clear. Is this possible? I haven't yet used scripting. Mike
rhinotekmn 16 Jan, 2021 @ 10:41pm 
Would like to pick your brain on a roller I am working on if you'd be willing.
Whyrocknodie 30 Mar, 2020 @ 6:55am 
Top notch.
I also have a question, is there a way to print the results in the chat in groups of values - say you roll six dice and get 1,2,2,2,5,6 - can it be made to say 1, 2 (x3), 5, 6 by some sorcery?
Lost Dream(lilcan) 25 Sep, 2019 @ 3:55am 
I really love this dice roller, though i have a few suggestions.

Can you make it easier to up the number. Doing like 1-10 dice is not too hard, however if i wanted to do 200 dice, its time consuming.

IDK if this is possible, but make the dice spawn relative to the roller at all times. When placed on a custom tray object, the dice regardless if its locked or not will spawn on the TOP of the trays hit box. This becomes a issue when you have a enlarged tray to handle a 200 dice roll, and the dice spawn crazy high.

A way to force clear the roller memory even when in the middle of a roll. I have had a few times where some of the dice accidentally land in a bag, and i have to delete the roller and the dice it spawned then make a new one.

Maybe a way to adjust the distant based on amount of dice rolled? so like 100 dice will make the distance x10 of the original or something or something.
bandrsntch 29 Jul, 2019 @ 8:23am 
The best Die roller available. Thanks for making it available. Only improvement I would want would be able to reset the number of dice being rolled back to "1" quicker. (e.g. you just rolled 24 shooting dice for hits and now you need to roll 1 dice for an effect). Even if you could just hover over the + or - button and hold the LMB down to scroll the number being rolled would help.
Sabreman 15 Mar, 2019 @ 5:46pm 
My favorite roller by far! Discovered that it doesn't like custom dice, though.
Lt. Dexter (Rune) 22 Feb, 2019 @ 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 ;)
BUCHA 15 Jan, 2019 @ 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 25 Apr, 2018 @ 3:31pm 
Hands down my favorite roller on TTS. Fantastic work!!!
BaconCatBug™ 24 Apr, 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] 24 Jul, 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] 24 Jul, 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 24 Jul, 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 10 Jun, 2017 @ 12:46pm 
Would love the ability to set modifiers, great roller!
DedMachine 5 Jun, 2017 @ 12:36pm 
okay, thanks anyways! It's still my favorite thing in the workshop right now :)
MrStump  [author] 5 Jun, 2017 @ 9:23am 
The flip and "shaking" action on dice both use quats under the hood to assign random rotation, so rest assured that a player shaking some dice and throwing them is as random as real life if not more so.

As for setting deck, there's a command for that (object.setValue(number)). But I am not familiar enough with the general concepts involved in the setting of those dice to design a tool around it.

And I can't add a sound effect only because I would have to re-do the thing as an asset bundle to add a sound effect and that would mean re-doing all the buttons and whatnot. Maybe on the inevitable next edition I do someday though
DedMachine 5 Jun, 2017 @ 6:07am 
One more small thing, if it's not hard to accomplish. Would it be possible to add a very brief sound effect when the dice are despawned from the timeout?
buddypun 5 Jun, 2017 @ 3:47am 
Hi MrStump. In "Flash Point: Fire Rescue scripted" (during the auto-setup) and "Star Wars: Rebellion (scripted)", the principle of rolling dice is generating the numbers then setting the dice to those numbers. I hope you can make a roller based on that principle (preferably works for custom dice as well). I'm really skeptical about the physics of tts and generating random results from physically rolling a die with more faces.
Kassar 4 Jun, 2017 @ 12:40am 
Awesome! Thanks a lot, This roller was the one thing I was missing in my campaign setup that I wasn't aware that I was missing until you provided. Thanks again!
DedMachine 3 Jun, 2017 @ 9:14pm 
That was fast! And it's perfect, thank you so much!
MrStump  [author] 3 Jun, 2017 @ 9:09pm 
Done
MrStump  [author] 3 Jun, 2017 @ 8:24pm 
Yeah, current plan is to make an auto-despawner with a timer delay (disabled by default but a simple toggle at the top of the script if you want it on) as well as a clearing button
DedMachine 3 Jun, 2017 @ 5:30am 
And Kassar proposed a similar thing to what I was thinking. I was curious if it was possible to make the dice automatically despawn if the roller is idle after X amount of time?
DedMachine 3 Jun, 2017 @ 5:12am 
Thank you for this. Really impressed and happy with it. I've included it in my Hero Quest mod. Great job and thanks for sharing!
MrStump  [author] 2 Jun, 2017 @ 6:29pm 
Makes sense. I will need to do some redesign on the graphic (move the top button over and squeen in a new one). Should be done in a couple of days.
Kassar 2 Jun, 2017 @ 9:28am 
I'm aware that it cleans up after another throw is made, tis absolutely fine and a welcome feature, It's just that after the last throw you have to manually collect and delete the dice, a minor inconvenience really but a button would be nice i think.
MrStump  [author] 2 Jun, 2017 @ 9:05am 
Rolling again cleans them up automatically. Is that not sufficient enough? I previously had an auto-cleanup on a different tool, would that be better as an options (cleans up the dice after, say, 5 seconds)
Kassar 2 Jun, 2017 @ 4:44am 
...could u add a cleanup button aswell? You know, click to delete spawned dice?
Kassar 2 Jun, 2017 @ 4:37am 
yup, progress! Thank You sir.
Not Sure 28 May, 2017 @ 7:22pm 
Ok so I saw this and thought the is a better dice roller then any I've seen before. I loaded it up spawned a custom d20 that I like to use to test how good it was and I liked the results. Then I feel in love with it when I set it to spawn 100 d20s.
Unreal Ed 28 May, 2017 @ 4:47pm 
I like this one !