Peopleperson49 Posted December 22, 2012 Group: Members Topic Count: 219 Topics Per Day: 0.05 Content Count: 1181 Reputation: 141 Joined: 01/27/12 Last Seen: April 15 Share Posted December 22, 2012 (edited) 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 December 25, 2012 by Peopleperson49 Quote Link to comment Share on other sites More sharing options...
Euphy Posted December 22, 2012 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted December 22, 2012 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. 1 Quote Link to comment Share on other sites More sharing options...
Peopleperson49 Posted December 25, 2012 Group: Members Topic Count: 219 Topics Per Day: 0.05 Content Count: 1181 Reputation: 141 Joined: 01/27/12 Last Seen: April 15 Author Share Posted December 25, 2012 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 Quote Link to comment Share on other sites More sharing options...
pr3p Posted December 27, 2012 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 197 Reputation: 13 Joined: 05/14/12 Last Seen: October 29, 2024 Share Posted December 27, 2012 Is this file included the items and collection? any preview or video demo for this script or ss? Quote Link to comment Share on other sites More sharing options...
Peopleperson49 Posted December 27, 2012 Group: Members Topic Count: 219 Topics Per Day: 0.05 Content Count: 1181 Reputation: 141 Joined: 01/27/12 Last Seen: April 15 Author Share Posted December 27, 2012 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 Quote Link to comment Share on other sites More sharing options...
pr3p Posted December 28, 2012 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 197 Reputation: 13 Joined: 05/14/12 Last Seen: October 29, 2024 Share Posted December 28, 2012 Thank you very much Peopleperson49 i try to update it later and test it...good pm Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.