Tabletop Simulator

Tabletop Simulator

29 个评价
Improved Dice Roller
   
奖励
收藏
已收藏
取消收藏
Assets: Dice
文件大小
发表于
更新日期
29.360 KB
2020 年 6 月 18 日 下午 6:11
2020 年 6 月 26 日 下午 9:05
2 项改动说明 ( 查看 )

订阅以下载
Improved Dice Roller

描述
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 条留言
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?