BlackJack
Version: 2.0
Author: modern algebra
Date: November 10, 2007
Version History
- Version 2.0: Converted to RMRK+ Format. Double option appears only on First draw. Proper reward for BlackJack given. Now possible to black out the screen with a switch. Numerous style and structure changes.
- Version 1.2: Bug fixes
- Version 1.0: Original. Included hit, stand, and double.
Description
This event system allows you to play BlackJack. To replace the default card set with your own, save over each card with the new graphic.
Features
- Includes Double, Hit and Stand
- Dealer stands on Hard 17
- Very easy to plug into your game (RMRK+ Format)
Download the demo. Make sure you have your maximum variable count in your project to greater then 546. Then, all you have to do is paste the event from the demo into your game at all the places you want to play BlackJack. You can also set the Self-Switch D to determine whether you want to black the screen out or not
Credit
Support
I will provide support here. Be sure to tell me of any bugs and I will fix them for the next release. I may not add a function, even if you request it.
Author's Notes
This is actually a very old script. Having to go through it for the purpose of converting it to RMRK+ Format, I changed a few things here and there, but was too lazy to fix the rather clumsy-ish structure. It still works very well though. It was my first event system that I released I believe.
RMRK+ Format
This script is
RMRK+ Format.
Variables Used
- 527-528:: Location X & Y: Tracks the pixel placement for drawing each card.
- 529-530:: Player & Dealer Score: Tracks the value of each hand
- 531-539:: Card Values: track each card already drawn. These ensure no cards are drawn more then once per game.
- 540:: Bet: The amount of Gold bet by the player
- 541-542:: Suit & Value: These represent the suit and value of the card currently to be drawn
- 543-544:: Player & Dealer Draws: Number of times each player has drawn. Convenience, mostly.
- 545-546:: Player & Dealer Aces: Number of aces each player has drawn. Makes it convenient to calculate score
Demo
Attached