Jump to content

BlackJack Scratchcard


Recommended Posts


  • Group:  Members
  • Topic Count:  218
  • Topics Per Day:  0.05
  • Content Count:  1180
  • Reputation:   141
  • Joined:  01/27/12
  • Last Seen:  

File Name: BlackJack Scratchcard

File Submitter: Peopleperson49

File Submitted: 17 Dec 2012

File Category: Scripts

Content Author: Peopleperson49

Blackjack script that designed to work like a scratchcard. It is based on using eight decks or cards and both numbers and suits determine winning hands. Buster prize for scoring a 30 or 31, which can only be done if you already have a 20 or 21 adding one more element of gambling to it. Item data is included at the bottom of the script. Uses easily customizable prize amounts.

Click here to download this file

Edited by Peopleperson49
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

This script could be written in a very small fraction of your lines.

  • Instead of repeatedly copying the same code to get card names, call a function.
  • You really don't need conditionals for all 13 card cases to begin with.
  • Instead of re-summing point total each draw, store the previous value.

Since this is a paid script, also, you should make it easier to edit prizes, or at least explain in the description what they are.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  218
  • Topics Per Day:  0.05
  • Content Count:  1180
  • Reputation:   141
  • Joined:  01/27/12
  • Last Seen:  

I updated it with easy to set prize values. Also added some more color visualizations. I'm not sure about rewriting it to use a function is the best way to go with this script. It is dependant on the previous card values and suits too much. I know that I could do a function and then return, but with also causes other issues. I will rewrite it when I get a chance and see how it works out. However, you didin't say how fun it was, lol. Thanks again.

Peopleperson49

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  197
  • Reputation:   13
  • Joined:  05/14/12
  • Last Seen:  

Is this file included the items and collection? any preview or video demo for this script or ss?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  218
  • Topics Per Day:  0.05
  • Content Count:  1180
  • Reputation:   141
  • Joined:  01/27/12
  • Last Seen:  

The item data is included at the bottom of the script. It uses sprites already in the data.grf. I have no clue how to make a youtube video so thats out, sorry. This is just one hand played till its busted, I hope it helps.

Peopleperson49

post-1850-0-27251700-1356620396_thumb.jpg

post-1850-0-31046100-1356620398_thumb.jpg

post-1850-0-92033800-1356620399_thumb.jpg

post-1850-0-36493700-1356620402_thumb.jpg

post-1850-0-87470100-1356620403_thumb.jpg

post-1850-0-39671300-1356620405_thumb.jpg

post-1850-0-25506300-1356620407_thumb.jpg

post-1850-0-00834000-1356620409_thumb.jpg

post-1850-0-93522700-1356620410_thumb.jpg

post-1850-0-53807600-1356620412_thumb.jpg

post-1850-0-66427800-1356620444_thumb.jpg

post-1850-0-83627700-1356620446_thumb.jpg

post-1850-0-58666900-1356620448_thumb.jpg

post-1850-0-43248800-1356620450_thumb.jpg

post-1850-0-84379000-1356620451_thumb.jpg

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  197
  • Reputation:   13
  • Joined:  05/14/12
  • Last Seen:  

Thank you very much Peopleperson49 i try to update it later and test it...good pm

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...