Tabletop Simulator

Tabletop Simulator

评价数不足
Unsorted Click Roller Strip + True Random Scripted Dice Roller
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
32.596 KB
2020 年 6 月 14 日 下午 5:39
1 项改动说明 ( 查看 )

订阅以下载
Unsorted Click Roller Strip + True Random Scripted Dice Roller

描述
All credit goes to MrStump's amazing work on both of these - you can find his original work here:

https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=761709015

and

https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=1092390834

I have simply made small changes to the Luascript to remove the sorting functionality from the Click Roller Strip (so you can make multiple attacks if you call out the order in advance), and removed the Operating System as seed for the scripted Dice roller, as this would cause double-clicks or other 'quick succesive rolls to be identical.
8 条留言
Niki  [作者] 2021 年 3 月 24 日 上午 2:59 
Hey Areo - not sure what a regular broadcast message is!

It sends it to chat, which you can set to not auto-hide, making working with roll results fairly straightforward and not time sensitive.
Not sure where to print to if not the notes to the right, or the chat to the left.
Niki  [作者] 2021 年 1 月 18 日 上午 3:42 
@Toubi - If I knew how to, I'd make it happen.

I'm a total amateur and just did some quick and dirty hacks to make the original mods work at my table. Adding a new function is just outside of what I know how to do, sorry.
Toubi 2021 年 1 月 18 日 上午 1:24 
Heya, ty for this! Any way to get the roller to print the "saved" label when you roll it? Would be great for tracking the rolls after saving them and doing multiple rolls fast
Niki  [作者] 2020 年 9 月 30 日 上午 5:34 
@Kasa.
Fair enough. It's certainly random enough for a tabletop RPG though, which the original roller wasn't.
If it bothers you enough - feel free to script and link here.
Kasa 2020 年 9 月 29 日 下午 8:27 
@ Findanniin

If your using Math.random then it's not true random and the title is misleading.
Niki  [作者] 2020 年 6 月 16 日 上午 8:50 
@Mister Maf

I simply use math.random() without seed for pseudo-random generation. Since reloading for dicerolls isn't really a thing in tabletop RPGs, I figure 'who cares'.

I simply based myself on this guide:

http://lua-users.org/wiki/MathLibraryTutorial

Replacing it yourself with one of the seeds found there is trivial - paste the script into notepad++, ctrl+f for 'math.random' and replace with whichever seeded code from the link above.
Mister Maf 2020 年 6 月 15 日 下午 7:12 
Very good—the unordered numbers for the click roller will be very useful for my table.

Out of curiosity, what are you using for the random seed instead?
raultiberiu 2020 年 6 月 15 日 上午 3:08 
Awesome job!
Kudos to you and to Mr. Stumps!