Classic Blackjack Game

:game_die: Dynamic Betting Bet a specific amount or let the script randomly select a bet if none is specified.
:star: Special Win Conditions Instant wins for a 5‑card Charlie or three 7s.
:warning: Tie-Breaker Logic If you tie with the dealer, a backup card can be drawn to determine the outcome.
:moneybag: Configurable Payouts Natural blackjack pays 3:2; standard wins pay 1:1, with some multipliers.
:arrow_forward: Multi-Platform Support Compatible with Twitch, YouTube, and Trovo.
:lock: Singleplayer Game Every user has it’s own Game instance!


CBJG may not work properly with alpha version of SB!

Import Files

:inbox_tray: CBJG.sb (GitHub)


Installation

:warning: Prerequisite: A working point system is required.

  1. Import the script into Streamer.bot.
  2. Adjust arguments if needed
  3. Start playing Blackjack!

(Optional) Add the OBS overlay

  1. Drop the ‘cards’ folder into the root folder of SB
  2. Install Source Copy | OBS Forums
  3. In OBS: Tools > Source Copy > Load scene > blackjack-OBS-import.json
  4. Check if the images are still intakt

Commands

  • !blackjack <bet>: Start a new game with your bet (or leave out the bet to use a random amount).
  • hit: Draw an additional card.
  • stand: End your turn and let the dealer play.
  • repeat: for crowded chats so you can see your current cards again.

Changelogs

v6

  • Added an optional graphical overlay for OBS.
    • Overlay is always locked to one running game.
    • Installation instructions in the zip file
  • Reworked some code structure.
  • Refined Log levels.
  • Fixed: Rare cases special moves aren’t recognized correctly.
  • Fixed: Rare case users with no points variable (new users) weren’t able to play a free game.
Older Changelogs

Hotfix v5.4

  • Fixed: Cooldown sometimes stopped working in rare cases.
  • Fixed: Game stopped from proceeding in rare cases.
  • Should fixed some unnecessary API Calls.
  • Bots now are also ignored by the inbuilt cooldown.
  • Moderators are exempt from cooldown.

v5.3

  • Took care about some background stuff that could lead to some issues
  • Inbuild cooldown now should properly work for all platforms
  • Added allowBots as an true/false argument in General - Settings if you want to use your bot account for the game.
  • Added knownBots in General - Settings, now you can add or remove external bots if there is an issue

v5.2

  • Fixed: negative points or other funny stuff isn’t possible anymore.
  • Added %defaultBet% args to set a fixed default bet if users don’t specify in Points Settings.
  • Removed herobrine.
  • Added an inbuilt cooldown system in General Settings. (Moderators are exempt from cooldown)
    • %cooldownSeconds% set the cooldown per user in seconds (default is 60).
    • %cooldownMessage% define a custom message and add {userName} and {timeLeft} to show the target users name and the remaining cooldown time of the user.
  • Updated Bot detection so no bot accidentally triggers the game or a command.
  • Added fallback logic for future updates.

v5.1

  • Fixed: On tie, dealer hand now gets correctly calculated and dealer hand is shown.
  • Rearangement of some lines and fixed some typos.
  • Added a “one-time” tutorial message that show up only once per stream. You can use cleartut to have the tutorial triggered again if a user plays blackjack. (script doesn’t respond to it to keep it more like a “admin” command)
  • A basic OBS implementation is done. CBJG automatically creates a .txt file at C:\Streamer.bot\Extensions that can be used to be shown as text source in OBS.
    • The text source needs to look like this:
    • You need a font like Segoe UI Symbol that can display the cards correclty.
  • Fixed some messages regarding free games
  • If users don’t have points (0) while freeGame = ‘false’, CBJG will start automatically a free game for the users. (Only if a user doesn’t explicitly add a bet or don’t has a point-system variable at all)

v4

  • Fix: Script now starts correctly only on “!blackjack” command
  • Added more special win moves
  • Script got enhanced to feature the correct card emotes to the numbers/names

v3
Probably a minor step for others, but a big step for me in understanding SB stuff

  • Script now knows by itself from which platform a message comes from. (you could basically play simultaniously on all three at the same time :D)
  • Removed now deprecated arguments
  • Added some emotes to messages to look a little more like a blackjack game :cool_doge:

v2.1

  • New option in ‘Points - Settings’: freeGame let users play without using any points.
  • Bugfix: Points are now getting deducted correctly again if available

v2

  • Fixed: “Final hands” messages are now always displayed correctly.
  • For crowded chats, a new command is added: “repeat”. Now you can see the last dealer message in a running game.

v1

  • initial release
    (hookers not included)

How can we see how many points we have and can we award them like 50 to start is it based off watch time?

As mentioned in the opener: you need a points system in SB like “currency core” to be able to see your points. But i already updated the game now, so people can play it without using points.