Tabletop Simulator

Tabletop Simulator

Improved Dice Roller
17 Comments
Zio_F 🛵 22 Nov, 2023 @ 6:19pm 
Fantastic roller, someone know a way to a have the same result but with only one dice label? i'd like to use in my mod but i use only D6. any help will very appreciate
Minesteper 7 Aug, 2023 @ 10:52am 
Incredible roller,thank you so much!
Sir Loin of Cattlelot 14 Jan, 2023 @ 3:40pm 
Is there any way to increase the amount of rolling that happens? I can press it multiple times of course, but that also prints to the chat for each time I press it.
Ragic 14 Mar, 2022 @ 9:46am 
Love the roller. Any chance it can be made so that you can load your own dice into it?
boryssobur 30 Jul, 2021 @ 4:56pm 
This Dice Roller is GOLD! Thanks!
Thaydian 11 Apr, 2021 @ 7:50am 
In reference to Tadferd's problem below for not having custom dice save properly, changing the diceToText function to below seems to fix the issue. Looks like TTS grabs generic obj data (which results in nil for sides) when you don't tell it to find the specific name for each item in currentDice.

for _, obj in ipairs(currentDice) do
sides = tonumber(string.match(tostring(obj.getName()),"%d+"))
victorhurtado 14 Mar, 2021 @ 8:51am 
Hello there! I changed the dieColor from "default" to "tool", but the color of the die stays the same, it does not take the color of the tool. Is there a way to fix this? It seems the issue persists no matter the version of this tool.

dieColor = "tool"
Pazadaz 23 Feb, 2021 @ 3:31am 
Great mod, extremely useful! I was wondering if it is possible to edit the script to rotate the buttons so they read vertically? You can see in the link below what I am trying to do (hopefully) Thanks!

https://steamhost.cn/steamcommunity_com/profiles/76561198142865126/screenshots/?appid=286160
garbadthestrong 20 Feb, 2021 @ 7:06pm 
great dice roller. This works perfectly for all my players. Putting a new name on one, putting false in a bunch of the options, and moving it to a hidden area allowed me to have a DM dice roller. It keeps everything hidden as far as dice rolls go and doesn't display anything in the chat. Only thing is that was pretty handy not having to do any of the math. Is there a way you can get it to display to a text box or something that could be placed in a hidden area? Maybe a custom dice tray or something?
Tadferd 24 Jan, 2021 @ 2:33am 
Changed default dice using custom_dice url.

When attempting to save dice to save slot (1d6+1d8+4, though any combination throws same error), received this error:
"Error in Script (Click Roller Strip - 9682d6) function <save_2>: chunk_3:(572, 12-29): table index is nil"

Only added custom_dice url. Works fine prior to adding urls. Custom dice spawn, roll properly, and trigger chat results.

Here is the current block for the custom_dice. One url was left in, but others removed due to character limits.

ref_diceCustom = {
{url="url", name="", sides=4}, --Default: d4
{url="url", name="", sides=6}, --Default: d6
{url="url", name="", sides=8}, --Default: d8
{url="url", name="", sides=10}, --Default: d10
{url="url", name="", sides=12}, --Default: d12
{url="http://cloud-3.steamusercontent.com/ugc/1009314989608096037/E791E4B4BA2FFA4862BB7504EB97EF809575407D/" , name="", sides=20}, --Default: d20
}
Paskaloth 4 Jan, 2021 @ 3:29am 
Awesome Roller, it's been a great improvement over the more basic version for me!

I'm not sure if this is a project you are still working on or updating but I've noticed a few issues, maybe I'm doing something wrong, who knows!

Trying to change the dice color to "player" or "tint" doesn't seem to do anything it's just always the default dice colors.

Using the "disable" option on the probabilityCalculator causes the error "function <clearDice>:Object reference not set to an instance of an object" when using the Clear button. This error goes away once the ProbabilityCalculator is returned to "default".
64W4 8 Oct, 2020 @ 12:49pm 
Well designed. Nothing more to say.
nightsnake13 19 Jul, 2020 @ 3:06pm 
Also is there a way to change, or could you add a way to change the dice color or to assign a specialty dice to each slot
Azzy 28 Jun, 2020 @ 11:56pm 
Very nice! Is there any chance that you could add a percental/d100 die? It would be greatly appreciated.
Cuddly Llama 25 Jun, 2020 @ 5:17pm 
Wow really neat. Is there some portion of the code that I could add to the other Mr. Stump Click roller and gain the save slots?

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1108731141
Crystilac 19 Jun, 2020 @ 3:15am 
Hey, is there a way to change this so the results only appear for Black (DM)