Submit Your Article Guild Wars 2 Forum RPG Maker VX.com
 
RPG Maker
 

 Username:
 Password:
   Not a member? Register!



Home > Tutorials > RPG Maker 2003 > The Dark Spire's "Luck-Pair-A-Dice" Gambling game Version 1

The Dark Spire's "Luck-Pair-A-Dice" Gambling game Version 1


This event was used in the game the dark spire and is a fun feature I myself added in my projects. It can be played in real life even, I will explain how it plays before eventing it.

You and an AI player or Opponent take a turn throwing 2 dice. You look at the 2 dice you throw and add up the total numbers of both and that is your score. Your opponent does the same and adds his/her score. Whoever's score is highest wins the game and the gold wagered. For this event you can select the amount of gold unless you want to take that and make a specific amount on your own.

Here you will need:
Variables:
One for each dice thats 4 your 2 dice and the AI's 2 dice.
One for how much gold you own if you don't already have that in your game.
One for the amount stored in the "INPUT NUMBER" event and 2 for you and the opponent's dice totals.
Which is 7 Variables total, don't be discouraged I'll hold your hand through this...

First make a message if you want to asking if they wanna play or hear the rules i just explained to you. Then make an input that holds a number in a variable named "GOLD WAGERING" this number is how much you wanna bet on one game of dice.
Next!!!
Make fork conditional branch to make sure that the number held in that variable isn't more than the variable that keeps track of your gold so you don't bet more than you have.
*Gambling debts are not condoned...!*
THIRDLY: choose who goes first you or him then set that players dice variables to random numbers between 1-6.
*Wow thats how many numbers are on actual DICE!*
Then add those numbers from both variables to that players "Total Score" variable. Thats why you had to make this many variables you see?
Show a message using those \v[VARIABLES NUMBER] in a message adding it so the player knows the game isn't rigged by RMing Mafia.
Now repeat this step with the AI opponent's variables.
This being shortened because I'd just have to write this over with maybe only 3 different words in the tutorial.
Now lastly you have to use a conditional fork branch to see whether you do or do not have a higher score than the AI opponent. If you do he should get mad and give you gold with the number held in the "WAGER" variable to you if not he should take gold from you with the number held and that variable and laugh in your face for losing such a simple game of chance.

With all this being done I think you should be able to grasp the concept of how this game is played and enjoy it as an easy way to make or lose money. I owe credit for this to Atlus and The Dark Spire a lovely game for the Nintendo DS. Credit me too if you like. This can also be used in all other RPG Makers. 
Details
Tutorial: The Dark Spire's "Luck-Pair-A-Dice" Gambling game Version 1
Date Listed: Mon, 12 Jul 2010 20:00:16 -0400
Author: Puck
Total Hits: 948


Embed
Short URL:

HTML:
" />
BB Code:



RPG RPG Revolution
RPG RPG Revolution is your #1 stop for game development and console RPG games, as well as those created by people like you. Link to us to support us, so we may grow to be better website community for you.

RPG RPG Revolution is an Privacy Policy and Legal