Tabletop Simulator

Tabletop Simulator

Not enough ratings
Unsorted Click Roller Strip + True Random Scripted Dice Roller
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
32.596 KB
14 Jun, 2020 @ 5:39pm
1 Change Note ( view )

Subscribe to download
Unsorted Click Roller Strip + True Random Scripted Dice Roller

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

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=761709015

and

https://steamhost.cn/steamcommunity_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 Comments
Niki  [author] 24 Mar, 2021 @ 2:59am 
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  [author] 18 Jan, 2021 @ 3:42am 
@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 18 Jan, 2021 @ 1:24am 
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  [author] 30 Sep, 2020 @ 5:34am 
@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 29 Sep, 2020 @ 8:27pm 
@ Findanniin

If your using Math.random then it's not true random and the title is misleading.
Niki  [author] 16 Jun, 2020 @ 8:50am 
@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 15 Jun, 2020 @ 7:12pm 
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 15 Jun, 2020 @ 3:08am 
Awesome job!
Kudos to you and to Mr. Stumps!