Blackjack minigame

● ARCHIVED · READ-ONLY
Started by Mac15001900 51 posts Page 3 of 3 View original ↗
  1. Mac15001900 said:
    Have you specified which variable do you want updated in the Outputs section in plugin parameters?
    im not quite sure with one to change, is it just the main "Outputs"?

    Never mind, i wound it! thanks for the help tho
  2. Thanks a lot for this mini game ! I love mini games.
  3. Hello Mr. Mac, I would like to know if I can translate this plugin into Chinese and share it on a Chinese forum? Currently, there are almost no MV plugins for poker games on Chinese forums. I hope to fill this gap with your plugin, but I'm not sure if it's possible. Of course, I will indicate the source of your and Mr. Kenney's information. Because I am only a college student, I am not sure if my expression is appropriate, so I used translation tools. Please don't take offense.
  4. HashibaHayashi said:
    Hello Mr. Mac, I would like to know if I can translate this plugin into Chinese and share it on a Chinese forum? Currently, there are almost no MV plugins for poker games on Chinese forums. I hope to fill this gap with your plugin, but I'm not sure if it's possible. Of course, I will indicate the source of your and Mr. Kenney's information. Because I am only a college student, I am not sure if my expression is appropriate, so I used translation tools. Please don't take offense.
    You are allowed to. So is anyone else by the way, that's what the MIT licence is for :)
  5. hello! this is a great plugin :) i'm having an issue though, with the output variables...

    you can see in these screenshots there should be a win and a blackjack counted, but it's still 0. (it's not an issue with the message variables i checked those, they match)
    screenshots
    screenshot001_2025-04-28.pngscreenshot002_2025-04-28.pngscreenshot003_2025-04-28.png
  6. Update 1.1.1 is now available

    Bugfixes:
    • Player's performance variables (number of rounds won/lost) were incorrectly set to 0 after shorter games



    Thanks you @PinkPrincessGames for the report! This bug was so easy to encounter, I wonder how did I manage to miss it in the first place. Basically, the number of rounds won would default to 0 is there were no blackjacks, and the number of rounds lost would default to 0 if there were no busts. Which is definitely not how it's supposed to work :p

    You should be able to download the fixed version from itch now.
  7. Mac15001900 said:

    Synopsis

    This plugin adds a Blackjack minigame. It will fit right in inside any casino in your game, but it's also customisable enough to not look out of place when played in a medieval tavern or on a futuristic spaceship.

    Features

    • A fully functional Blackjack minigame: including animated cards, and a helpful window explaining what various actions do.
    • An optional luck system: allows you to determine how lucky the player should be. Finally something to make use of that luck stat!
    • Simple to use: all you need is the "Blackjack" plugin command, which will start the game using the party's gold.
    • Extremely customisable: while it works just fine out of the box, there are 80 plugin parameters allowing you to customise nearly everything: all the text, sounds and colours, as well as things like animation speed or spacing between game's windows. And if there is anything you'd like to customise but you can't, please let me know ;)
    • Custom cards: you can not only replace the card graphics with your own, but even create completely unique decks. Want your fantasy version of Blackjack to have 7 card suits, kings to be worth 12 instead of 10, jacks to be worth -10 instead of 10, and queens to be worth either 5 or 15, depending on player's choice? This plugin has got you covered!
    • All parameters are dynamic: as usual with my minigames, every plugin parameter can be modified with a plugin command mid-game, all numerical parameters can instead use a variable, and all boolean (true/false) parameters can instead use a switch. So if one table/casino is not enough for you, you can make more of them, each working completely differently - changing things like the background, wager sizes, sounds, cards, action descriptions and so on. An underground dwarven casino that uses stone tablets as cards perhaps?
    • A bunch of outputs: Various stats from the game are saved to variables of your choice - this is needed when you want to update how many tokens the player now has (if you're not using gold), but can also be used to have NPCs react to how the game went.

    Download

    This plugin requires an image with cards, as well as a bunch of sound effects for various animations. Those come provided in the assetPack.zip file - big thanks to Kenney for providing these assets under CC0 so that they can be redistributed like this. To use the plugin, you'll need to unpack that zip, place the images inside img/pictures, and the sound effects inside audio/se.

    Even if you're planning on using your own sounds and graphics for the cards, I recommend downloading the pack to get an idea of how the card spritesheet should look like.

    Download on Itch

    Terms

    This plugin (MAC_Blackjack.js) is available under the MIT Licence. You're free to use it in any games, commercial or not, or use the code in your own plugins. Credit is appreciated, but not required. If you wish to give credit, do so for "Mac15001900" or link to https://mac15001900.itch.io/.

    The attached asset pack (assetPack.zip) is available under the Creative Commons 0 licence, and is free to use for any purpose with no credit. If you wish to include credits for it (which I highly recommend you do), credit "Kenney" or "www.kenney.nl".

    What’s really cool, though, is the integration with the game’s economy, like using gold or tokens to place wagers. Plus, NPCs reacting to the outcomes adds an extra layer of immersion. I think this could make a great addition to a larger RPG or simulation game.
  8. I set up card values using arrays and used variables to track hand totals. Conditional branches handle checking for busts or wins after each draw. Randomizing draws makes it feel pretty real.
  9. JoeIXn said:
    I set up card values using arrays and used variables to track hand totals. Conditional branches handle checking for busts or wins after each draw. Randomizing draws makes it feel pretty real.
    You randomizes the next card drawn?

    If you want to make it real-real, you shuffle the array only once when the player joins the game, and only draw index[0] all the time, while the used cards go in the back. That is how they play in casinos too.

    I don't know how it is handled now, but drawing them in order is more realistic than random.
  10. Problem: plugin does not start

    Solution:

    Issue is a version incompatibility:
    MV 1.5.0 does not work with this plugin
    1.6.3 works fine.
  11. Just came across this plugin as I was having issues with a previous Blackjack set-up, which was using a common event from many years ago, and it started to cause issues overall. With affecting the calendar system and adds way too much value-wise. Looking forward to customising it for my game!

    Does anyone have advice on how to get varibles working as using gold kinda breaks the game lol (have to adjust player econ for it)