Tabletop Simulator

Tabletop Simulator

Improved Dice Roller
17 条留言
Zio_F 🛵 2023 年 11 月 22 日 下午 6: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 2023 年 8 月 7 日 上午 10:52 
Incredible roller,thank you so much!
Sir Loin of Cattlelot 2023 年 1 月 14 日 下午 3: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 2022 年 3 月 14 日 上午 9:46 
Love the roller. Any chance it can be made so that you can load your own dice into it?
boryssobur 2021 年 7 月 30 日 下午 4:56 
This Dice Roller is GOLD! Thanks!
Thaydian 2021 年 4 月 11 日 上午 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 2021 年 3 月 14 日 上午 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 2021 年 2 月 23 日 上午 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://psteamcommunity.yuanyoumao.com/profiles/76561198142865126/screenshots/?appid=286160
garbadthestrong 2021 年 2 月 20 日 下午 7: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 2021 年 1 月 24 日 上午 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 2021 年 1 月 4 日 上午 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 2020 年 10 月 8 日 下午 12:49 
Well designed. Nothing more to say.
nightsnake13 2020 年 7 月 19 日 下午 3: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 2020 年 6 月 28 日 下午 11:56 
Very nice! Is there any chance that you could add a percental/d100 die? It would be greatly appreciated.
Cuddly Llama 2020 年 6 月 25 日 下午 5: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://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=1108731141
Crystilac 2020 年 6 月 19 日 上午 3:15 
Hey, is there a way to change this so the results only appear for Black (DM)