The RPG Maker Resource Kit

RMRK RPG Maker Creation => VX Ace => VXA Scripts Database => Topic started by: vindaca on April 05, 2013, 06:02:42 AM

Title: V's Gambling Man v1.1
Post by: vindaca on April 05, 2013, 06:02:42 AM
V's Gambling Man
Written by Vindaca

Introduction

This script allows you to call a min-game via a script call. The mini-game is a very basic game, if the dealer ties or beats your hand you loose, otherwise "You Won!". I've allowed you to call the game whatever you want and select between the number of cards used(up to 5), set the costs, and the rewards, The card images and background can be found at the same link as the screenshot or you can download the demo. If you can't find the script call in the script then here it is SceneManager.call(GambleScene) . hope you have fun.

Features
Spoiler for:

- v1.0

In v1.0, this script allows you play a card mini-game

- v1.1   

In v1.1, I've added more to the winning and losing screens. I added a option
to show the lead party members face. I've also added winning/losing phrases.
you can add as many as you want, just remember to add "" marks before and
after each one and add a "," after every phrase except the last one.
 

Screenshots


Here is a link (http://imageshack.us/g/1/10092620/) to the window.


How to Use

Copy and paste the script under the Materials section and above the Main section and import the card images and bg from the link in the "Screenshot" spoilers into the Graphics/Pictures folder.  I will make a demo for it shortly if needed. You can access the game by using SceneManager(GambleScene)
in a script call.

Script

This script is too long for now, so here is a link (http://pastebin.com/msUy2evp) to the script

Demo

Here is a link (http://www.mediafire.com/?h9w13idugegcjrl) to the Demo

FAQ

Q: I keep getting an error?

A: Make sure you have imported all of the card and background pictures into the Graphics/Pictures folder.

Q: Where can I find the pictures I need to use this script?

A: http://imageshack.us/g/1/10092620/

Q: What is the script call to use this mini-game

A: SceneManager.call(GambleScene)
Credit and Thanks
- Vindaca here saying thank you to all who have inspired someone. If you plan on using this script please credit me in your games credits. This script was not intended for commercial use.

- Special Thanks to:

Diamondandplatinum3 on youtube for the great tutorials
Tsukihime for helping with a few questions


 
 
Quote
Most of the things we write down, we should say out loud. Most of the things we say out loud we shouldn't say at all.
Title: Re: V's Gambling Man v1.1
Post by: Caveras on April 05, 2013, 04:18:19 PM
Looks good! I wish you would just turn/expand this to a regular blackjack script, since I think many players would like to add blackjack instead of "some card game" (no offense, but even you haven't titled the game itself ;) to their projects =)
Title: Re: V's Gambling Man v1.1
Post by: vindaca on April 05, 2013, 05:50:10 PM
LOL. I'm going to make more types of card games, like 5 Card Poker, Blackjack, War, and maybe even Go Fish, that's why I didn't use "High or Low" for the title. I just wanted to see if I could do it, I like to challenge myself.
Now I need to focus on shorting my scripting code.
Title: Re: V's Gambling Man v1.1
Post by: Caveras on April 05, 2013, 09:26:21 PM
LOL. I'm going to make more types of card games, like 5 Card Poker, Blackjack, War, and maybe even Go Fish, that's why I didn't use "High or Low" for the title. I just wanted to see if I could do it, I like to challenge myself.
Now I need to focus on shorting my scripting code.
That's nice to hear (or read) !

I evented a whole functional blackjack game in a common event, but it's just such a hassle, especially if I think about the people who haven't had much experience with game creation software before and wanted to implement a game like this.
Title: Re: V's Gambling Man v1.1
Post by: vindaca on April 05, 2013, 09:34:14 PM
This game was actually a very complex common event, that i made when I first started making games. Now that i wanted to try scripting I figured I'd try to write a script for it. Like I said I'm still very new and I know a lot of it can be shortened, but I'm getting there. I'm still learning new things everyday. 
Title: Re: V's Gambling Man v1.1
Post by: Caveras on April 05, 2013, 09:53:12 PM
This game was actually a very complex common event, that i made when I first started making games. Now that i wanted to try scripting I figured I'd try to write a script for it. Like I said I'm still very new and I know a lot of it can be shortened, but I'm getting there. I'm still learning new things everyday.
That's the way to go =) I think those who use your scripts certainly appreciate that. The only thing keeping me from learning to script beyond my little bit of Ruby knowledge is that most scripts I would love to use are already out there and written by people who know what they're doing ^^

Sorry for spamming your thread, though! Will shut up now =)
Title: Re: V's Gambling Man v1.1
Post by: vindaca on April 06, 2013, 03:46:52 AM
I added a demo if anyone is interested.