Tabletop Simulator

Tabletop Simulator

Universal Blackjack Table
Showing 1-8 of 8 entries
Update: 24 Mar, 2017 @ 2:25pm

Update: 17 Feb, 2017 @ 8:27pm

-Added temporary fix for buttons attached to the scripting zones. An update from today changed how those buttons are created, causing scale issues. I cannot currently adjust them. I will be assessing if this continues to be an issue in the near future and, if it is, I will figure out an alternative solution that isn't so ugly.

Update: 14 Oct, 2016 @ 11:20am

- Corrected a bug where it would only count 1 figurine. I also corrected the logic running when no cards/decks/figurines are present in a zone. All changes were contained to findCardsToCount() for this fix. You can also have displays read as blank ("") or dashes or whatnot ("---") by updating the line in findCardsToCount() which handles it not finding decks/cards/figurines in a zone.

- Added clearing cards to PLAYERS as well as dealer when the deal button is pressed. This will handle players who tie the dealer (push), clearing their cards and figurines.

- If you so desired, you could make a button just to clear cards. The logic to make the other 2 buttons is already there. Just copy it to add a 3'rd button, position it, and copy the card clearing logic out of the deal click function into your new one. Personally, I feel like 1 less click is better, but perhaps you have reason to clear the table (IE: minigame)

Update: 14 Oct, 2016 @ 10:53am

- Temporary Upload, notes for which are in the next entry up

Update: 12 Oct, 2016 @ 7:18am

- Added back in support for counting figurines as + or - value "cards". This was an oversight. I made the following changes to correct it.

- Added a new find function findFigurinesInZone(zone)

- Added 4 lines to findCardsToCount(). 1 was calling findFigurinesInZone and the other 3 were a for loop which appends any found figurines onto the end of cardList

Update: 11 Oct, 2016 @ 8:50am

- Added support for more possible people to use the buttons. Now the host, the person seated in the Black seat (dealer) and anyone who is promoted will all have permission to use all buttons.

- Added a hit function to the card value display buttons. Clicking one will add a card to the zone the counter represents (including dealer). To disable this, go to the bottom of the script where the buttons are created and look for click_function="hitCard". Change it to click_function="none" and the feature is then disabled fully.

Update: 10 Oct, 2016 @ 11:55am

- Rewrote the entire card counting section to bring it up to date with the rest of the code quality. This also corrects occasional odd errors with the blackjack finding script. It should work perfectly now. I added a short delay before it declares blackjack too, for fanciness. Thanks to Luke and Tom for pointing out the potential bug.

- Added a new function, findDecksInZone(zone). Does what it says, used in card counting but could be used elsewhere by you if you were scripting new functions.

- Changed a function trigger in onload from countCards() to timerStart()

- Added some spacing around the section titles to make it easier to scroll through and find the right section. If you use Atom, get the code map plugin. Makes life so much easier.

Update: 8 Oct, 2016 @ 10:59pm

- Uploaded to Workshop