Gw Temp

Menu

Tutorial - 'Slot Machines for Dummies' by ElementZero

An item about RPGMaker 2000 posted on

Blurb

Slot machines for dummies, like the title says

Body

Hello again! This time I will be talking about how to make the Easy/Hard slot machines for dummies!

First, start by hitting F8, going to common events, and making a new event called 'Easy Slots'. Set its Event Start Condition to 'Call'.

Now, the code should look like this.

< >Variable Ch:[####:Money]Set, Money
< >Label: 1No.
< >Messg: \$Place your bet.
< >Input Number: 2 digits[####:Slots Gold]
< >FORK Optn:Varb[####:Slots Gold]-Varb[####:Money]-Above-Add Else Case
< >Messg: You don't have that much money.
< >GOTOLabel: 1No.
< >
:ELSE Case
< >Variable Ch:[####:Slots1]Set, Random[1*3]
< >Variable Ch:[####:Slots2]Set, Random[1*3]
< >Variable Ch:[####:Slots3]Set, Random[1*3]
< >Messg:Spinning\|.\|.\|.\|\^
< >Messg:\|\V[# of Slots1] \|\V[# of Slots2] \|\V[# of Slots3]
< >FORK Optn:Varb[####:Slots1]-[####:Slots2]Equal-Add Else Case
< >FORK Optn:Varb[####:Slots2]-[####:Slots3]Equal-Add Else Case
< >Messg: You win!
< >Variable Ch:[####:Slots Gold]* 5
< >Messg: Got \V[# of Slots Gold] GP!
< >Change Money: Money V[####:Slots Gold]Increase
< >
:ELSE Case
< >Messg: You Lose!
< >Change Money: Money V[####:Slots Gold]Decrease
< >
:END Case
< >
:ELSE Case
< >Messg: You Lose!
< >Change Money: Money V[####:Slots Gold]Decrease
< >
:END Case
< >
:End Case
< >

Whew. Now that that is done, make another common event. Don't worry, this is easy. Call it 'Hard Slots' because it will be harder to win than the 'Easy Slots'. Now, make everything in it EXACTLY the same, except when the code says
< >Input Number: 2 digits[####:Slots Gold]
change it to
< >Input Number: 6 digits[####:Slots Gold]
(we want to be able to bet more on the hard slots)
and when the code says
< >Variable Ch:[####:Slots1]Random, 1*3
< >Variable Ch:[####:Slots2]Random, 1*3
< >Variable Ch:[####:Slots3]Random, 1*3
Change it to
< >Variable Ch:[####:Slots1]Random, 1*9
< >Variable Ch:[####:Slots2]Random, 1*9
< >Variable Ch:[####:Slots3]Random, 1*9
Or however many numbers you feel is hard to win. (These numbers are the numbers that have to match to win.)
Now, for one more thing. When the code says
< >Variable Ch:[####:Slots Gold]* 5
change it to
< >Variable Ch:[####:Slots Gold]* 50
Because we want people to win 50 times as much as they bet on the hard slots, because they're so incredibly hard. You dont have to make it 50, you can change all this stuff around.

Now all we have to do is do the Slot Machines! They are easy, don't worry!

Now, make a new event, give it a good slot machine look, same level as hero, and make it fixed graphic or fixed direction. (We don't want it to start changing directions when we talk to it).

Now, the code in it should be

< >Variable Ch:[####:Money]Set, Money#
< >FORK Optn:Hero - Right Face Direction
< >
:END Case
< >FORK Optn:Hero - Left Face Direction
< >
:END Case
< >FORK Optn:Hero - Down Face Direction
< >
:END Case
< >FORK Optn:Hero - Up Face Direction
< >Messg: Do you want to play the Easy Slots?
< >Show Choice: Yes/No
:[YES] Case
< >FORK Optn:Varb[####:Money]1, above-Add Else Case
< >Call Event: Easy Slots
< >
:ELSE Case
< >Messg: Not enough money.
< >
:END Case
< >
:[No] Case
< >
:END Case
< >
:END Case
< >

There. Almost done. Incase you're wondering, we made it under 'Hero Up Face Direction' because I'm assuming that the slot machine is facing down, therefore the hero should face up to play it, he shouldn't be playing it from behind or the sides.

Now, do the EXACT same thing for the other slot machine, but instead of saying 'Do you want to play the Easy Slots?' make it say 'Do you want to play the Hard Slots?', and also instead of 'Call Event: Easy Slots' make it 'Call Event: Hard Slots'.

Voila! You're done!

If you would like to download an in-game tutorial click here.
If the above link doesn't work, go to http://www.gamingw.net/file/ez_tuts.zip