Tabletop Simulator

Tabletop Simulator

Scripted Hold'em Poker Table
This topic has been locked
Skor  [developer] 16 Apr, 2017 @ 1:33pm
Update: 04-16-2017
Scripts updated: global (new functions: onObjectDropped, onObjectPickedUp, evaluateHand, getSevenCards, getConvertedName, nameToValue, valueToName; new global table: handsshown)

- Added hand evaluator. When a player drops face-up card(s) onto their own bet square, it evaluates their hand based on the cards in that zone, and cards on the board, and prints the result in chat. Note that both of their hole cards should fall into the bet square, or it may exclude a card from the evaluation. This only works for Texas Hold'em. This can only be done once per player per hand. For this to work, the deck's cards must have their names filled out with the card rank (numbers and work for 2-10, so 5 or Five (capitalized first letter)will work), and their descriptions with the suits (Spades, Clubs, Hearts, or Diamonds). I added these to the default deck, and also included Xeno's popular four-color deck. Please let me know if you notice any incorrect evaluations, provide screenshots if possible.

- If a non-admin player attempts to pick something up that is in the dealer's area, the object will be dropped and the host notified. This works by checking the coordinates of the picked-up object. If you have changed the size of your dealer area, you may need to adjust these in the script. Search for the onObjectPickedUp function.

- If a non-admin player attempts to pick up an object that is on another player's table or bet square, and not in their own (because sometimes large chip stacks fall over and are half in another player's zone), the object will be dropped and the host notified. This also applies to dealer and blind buttons, which I may have to change in the future if it's an issue.

Please let me know if you find any bugs, errors, or anything you think should be changed.