Tabletop Simulator

Tabletop Simulator

29 ratings
Improved Dice Roller
   
Award
Favorite
Favorited
Unfavorite
Assets: Dice
File Size
Posted
Updated
29.360 KB
18 Jun, 2020 @ 6:11pm
26 Jun, 2020 @ 9:05pm
2 Change Notes ( view )

Subscribe to download
Improved Dice Roller

Description
Multiple dice roller, based on this one (probably, it was included in the scripted Pathfinder mod).

Improvements:
  • Adding multiple save slots, allowing common rolls to be easily reused or added.
    Click on an empty one to save, right click to clear.
  • Probability calculator, enter a target and it'll show the percentage of the rolls exceeding the target.
  • Right click on a die button to remove one of those dice.
  • Added a "clear" button to reset the roller.

See the configuration section to disable or configure each feature.

The code is available on Github[github.com]
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?