Tabletop Simulator

Tabletop Simulator

Not enough ratings
Initiative Calculator Tool for Players and NPC/Monsters
   
Award
Favorite
Favorited
Unfavorite
Assets: Scripting
Tags: Misc
File Size
Posted
Updated
26.379 KB
May 30, 2016 @ 10:07am
Apr 4, 2017 @ 7:21pm
8 Change Notes ( view )

Subscribe to download
Initiative Calculator Tool for Players and NPC/Monsters

Description
THIS TOOL HAS BEEN REPLACED!
I am leaving this version up for those who might prefer it, or use it as a scripting example. But I have created a new version that I feel is a lot easier to use. You can find it here.

MAJOR UPDATE 6/13:

Version 2.0 of the scripted initiative tool. For use in tabletop RPGs (DnD, etc), this tool does the following:
  • Lets you set initiative modifiers for all players at table then roll 1d20 for each of them.
  • Lets you set initiative modifiers for any number of NPCs or monsters then roll 1d20 for each of them.
  • Lets you name the monsters by entering their name into the description of the tool before pressing Roll for them.
  • Prints all player rolls to Notes (to the right of the screen) in descending order so all players can reference their initiative.
  • Prints all monster/npc rolls privately onto a notecard for GM use alongside the player rolls, in descending order.
  • Handings up to 6 players (seated) and as many monster/NPC rolls that the notecard will handle.
  • Uses player names on the notecard/note sections, if it is available. if not, for players it will print their color. For monsters, M1, M2, M3 etc.
  • The tool remembers the notecard, and the notecard/notes keep your roll information between loads. That means you can save/load and not break the tool TOO badly.
  • Simple reset button after each encounter is concluded.

Possible update ideas:
  • If there is any interest, I may add a feature that spawns an additional card if one is needed. So if you have 6 players and need a dozen NPC initiative rolls, the tool could accommodate you. If you are interested in this feature, please let me know.
  • Commented code. I was a bit lazy in my commenting this time around.
  • You tell me, what would you like to see? I made this to make life easier for people in Tabletop.

Known Bugs:
  • Deleting the notecard will break the code, unsurprisingly. Reloading the tool will correct this. But how about you don't try to break all the nice things?
  • Do not roll for monster/NPC initiative more than once per second. This is due to how LUA allows me to get random numbers. Clicking the button more than once per second will result in repeating numbers. This is because the number randomizer is tied to your system clock, and only goes by whole seconds. But this is the best option I have found in LUA to get us nice, randomized numbers.

Have you found any other bugs? Any features you would like to see added? Feeling the urge to shower me with praise or derision? Leave a comment.
17 Comments
MrStump  [author] Apr 4, 2017 @ 10:42pm 
Cool, I'm working on it now. Here's a sneak peak. https://www.screencast.com/t/mf8WQgTN5

It'll be done in a day or two. I'll post here when it is.
Stragin Apr 4, 2017 @ 9:06pm 
Thanks it's working again now.

The medallion idea sounds really nice, since I'm currently DM'ing d&d 5e and looking for tools to help speed up some of the less interesting parts of the game.

I appreciate that the current tool shows the names and rolls on the right side of the screen as a reminder, but it would be nice if my players could input their character names instead of their steam names to appear there.
MrStump  [author] Apr 4, 2017 @ 7:22pm 
UPDATE: Well, It was a dumb mistake on my part, I saw it when I was trying to explain the bug in a forum post. =P I have updated the tool, fixing it.
MrStump  [author] Apr 4, 2017 @ 7:16pm 
Oh, another concept idea was to use medalions with a + and - button on them and a display showing their initiative modifier. The DM has a tablet which can spawn them for players or monsters, you put a name on them and the DM hits ROLL on their tablet. Any medalions out on the table get rolled. A DM could also set up monster medalions in advance, keeping them in bags and pulling them out as play goes on.
MrStump  [author] Apr 4, 2017 @ 7:12pm 
To have a version that posts all roll results, see my below comment on the 1 line of code to edit to make it happen =)

Secondly, I intend to make an updated version of this tool. I am on the lookout for ideas on how to clearly present ideas. My thinking was to use 2 notecards, one for players and one for creatures. You put a number and their name on each line, the number being their modifier. Then a central "roll" button to roll initiative on all of those options. If you (or anybody) has some better ideas, I'm open to them.

Finally, as for the bug, I confirmed I got the same thing. However, my code hasn't changed and I was unable to figure out why this is happening. By all accounts, it SHOULD be creating the roll button. But it isn't. I'm posting a bug report on the forums and will let you guys know if I figure out more.
Stragin Apr 4, 2017 @ 3:21pm 
I have a problem where the roll button is missing after i hit reset.
4 players and a GM, notecard still there. (Side note, I too would like a version that made monster rolls public in the notes)
Either way I can always just keep reloading new ones each initiative, thanks for making such a useful tool :)
MrStump  [author] Feb 13, 2017 @ 12:15pm 
Possibly. I've been considering improvement, but I think I'm waiting for some improvements to how we can display text. The notecards are pretty limiting, and the notebook is borked. Maybe I'll make a version where all results are printed onto the device using buttons, but then I need to worry about it going too long if you have a crazy amount of initiative going on, plus buttons show through hidden zones =/
H3xx Feb 13, 2017 @ 11:35am 
I don't suppose you could update this to handle up to 10 seated players? I'm putting together a high capacity player table, but this counter (which is honestly the easiest to use such device there is) only handles up to 6.
Elder Jan 25, 2017 @ 7:22pm 
super excited, man!