Tabletop Simulator

Tabletop Simulator

Not enough ratings
Scripted Dice
   
Award
Favorite
Favorited
Unfavorite
Tags: 4+
File Size
Posted
Updated
8.295 KB
20 Feb, 2016 @ 2:19am
7 May, 2016 @ 12:26am
4 Change Notes ( view )

Subscribe to download
Scripted Dice

Description
A dice roller, that prints the results to the console.

Usage:
Enter the number of dice to throw with the number buttons.
Press 'Enter'.
(Optional ) Enter the modifier, that will be added to the result.
Press 'Enter' again.
The result will be printed to the console. The individual dice rolls will be listed also.

Currently the dice roller is for D6 only. (This can be changed by modifying the function throwD6.)
All output is shown to all players.
7 Comments
Banbury  [author] 7 May, 2016 @ 12:29am 
I have updated the script. If you experience any problems, please let me know.
Banbury  [author] 3 May, 2016 @ 11:18am 
I believe there are better dice rollers out there now. But if you want, I can update it.
digicube 3 May, 2016 @ 8:50am 
It no longer works?
Dark Tekken 27 Feb, 2016 @ 9:21am 
I noticed Scripted Dice has been updated in my Chat Window. Yea!!! :steamhappy: Now I have an example of the changes to API. I couldn't figure out the self part. Thank you very much!!! As I just started Lua last week and since the API update none of my practice scripts are working.
darleth 21 Feb, 2016 @ 1:06am 
Thanks a lot....
Banbury  [author] 20 Feb, 2016 @ 12:55pm 
I'll think about it. But I might wait a little to see, if Berserk Games improves the scripting API.
Richy_s 20 Feb, 2016 @ 12:18pm 
Such a simple idea, but well executed
I'd love to see an alternate self-contained version, for dropping into mods as-is. (But maybe that's just how I like scripted objects :P)