Tabletop Simulator

Tabletop Simulator

Improved Dice Roller
17 kommentarer
Zio_F 🛵 22. nov. 2023 kl. 18:19 
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 kl. 10:52 
Incredible roller,thank you so much!
Sir Loin of Cattlelot 14. jan. 2023 kl. 15:40 
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 kl. 9:46 
Love the roller. Any chance it can be made so that you can load your own dice into it?
boryssobur 30. juli 2021 kl. 16:56 
This Dice Roller is GOLD! Thanks!
Thaydian 11. apr. 2021 kl. 7:50 
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 kl. 8:51 
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 kl. 3:31 
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://gtm.steamproxy.vip/profiles/76561198142865126/screenshots/?appid=286160
garbadthestrong 20. feb. 2021 kl. 19:06 
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 kl. 2:33 
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 kl. 3:29 
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. okt. 2020 kl. 12:49 
Well designed. Nothing more to say.
nightsnake13 19. juli 2020 kl. 15:06 
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. juni 2020 kl. 23:56 
Very nice! Is there any chance that you could add a percental/d100 die? It would be greatly appreciated.
Cuddly Llama 25. juni 2020 kl. 17:17 
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://gtm.steamproxy.vip/sharedfiles/filedetails/?id=1108731141
Crystilac 19. juni 2020 kl. 3:15 
Hey, is there a way to change this so the results only appear for Black (DM)