CASINO SETUP
Setting up a casino like in all those pokemon games.
rm2k3_rulez- 05/07/2008 12:00 AM
- 4532 views
Ok first you need a few variables. Create a variable called Coins. Then go to the common events. You need to do what I do in order for your character to buy coins. We will use 100 Coins and 1000 Coins. Enter this.
Message:How many coins would you like to buy?
Show Choices:100/1000/None
100 Handler
Branch If money is 1000 or more
Message:You got 100 Coins.
Varible Oper:+100
xxxx is the variable #
Change Money:1000 Remove
Else Handler
You dont have enough money.
End
1000 Handler
Branch if Money is 10000 or more
Message:You got 1000 Coins.
Variable Oper:+1000
Change Money:10000 Remove
else Handler
Message:You dont have enough money.
End
None Handler
End
It should look like this give or take a few mistakes of course. It is a common event and it needs to be called. Now go to a map and make an event and chose your graphic. In the event commands call the event Buy Coins. Thats what you should call the COmmon Event. Now make a new common event called parallel process name it Coin Case. have the switch COin Case turn it on. Now in the events command put this.
Message:You have \v Coins.
xxxx=Variable number of what you put for the variable Coins. Now turn Coin Case off. Now it should look like this
Message:You have \v Coins
Switch Operation: Turn Coin Case OFF
Go to items and make a new Item called Coin Case and make it a switch item and turn on the Switch Coin Case ON and it will tell you how many coins you own. Ok on to a very simple slot machine tutorial. Its not like any of those fancy ones you have all might of seen before.
Slot Machine: Just make a variable called Slot Machine. Now enter the following:By the way it is a common event turn it to a call event.
Message:Would you like to play the slot machine?
Show Choices:Yes/No
Handler Yes
Branchi if Var is 50 or more (NOTE YOU DONT HAVE TO MAKE IT 50 IT IS JUST AN EXAMPLE)
Variable Oper:-50
Play BGM Bar
Wait 5.0 Seconds
Turn BGM OFF
Variable Oper:Set rnd
Message:You got \vCoins (The # of the variable Slot Machine)
Variable Oper:+'s value.
Variable Oper:Set set 0
Else Handler
Message:You dont have enough coins.
No Handler
End
rm2k3_rulez next tutorial a log in #. Ever wanted to login in a # for a password? Well tune into my next tutorial to see it. AlsO any thing that doesnt work or that doesnt make sense in this tutorial post a comment and I'll help you with anything possible. Also on the next tutorial making a cheat sheet where you enter a code and you get 10000 gold or set character's level to 99 or something like that so tune in to another rm2k3_rulez's tutorials!
Message:How many coins would you like to buy?
Show Choices:100/1000/None
100 Handler
Branch If money is 1000 or more
Message:You got 100 Coins.
Varible Oper:+100
xxxx is the variable #
Change Money:1000 Remove
Else Handler
You dont have enough money.
End
1000 Handler
Branch if Money is 10000 or more
Message:You got 1000 Coins.
Variable Oper:+1000
Change Money:10000 Remove
else Handler
Message:You dont have enough money.
End
None Handler
End
It should look like this give or take a few mistakes of course. It is a common event and it needs to be called. Now go to a map and make an event and chose your graphic. In the event commands call the event Buy Coins. Thats what you should call the COmmon Event. Now make a new common event called parallel process name it Coin Case. have the switch COin Case turn it on. Now in the events command put this.
Message:You have \v Coins.
xxxx=Variable number of what you put for the variable Coins. Now turn Coin Case off. Now it should look like this
Message:You have \v Coins
Switch Operation: Turn Coin Case OFF
Go to items and make a new Item called Coin Case and make it a switch item and turn on the Switch Coin Case ON and it will tell you how many coins you own. Ok on to a very simple slot machine tutorial. Its not like any of those fancy ones you have all might of seen before.
Slot Machine: Just make a variable called Slot Machine. Now enter the following:By the way it is a common event turn it to a call event.
Message:Would you like to play the slot machine?
Show Choices:Yes/No
Handler Yes
Branchi if Var is 50 or more (NOTE YOU DONT HAVE TO MAKE IT 50 IT IS JUST AN EXAMPLE)
Variable Oper:-50
Play BGM Bar
Wait 5.0 Seconds
Turn BGM OFF
Variable Oper:Set rnd
Message:You got \vCoins (The # of the variable Slot Machine)
Variable Oper:+'s value.
Variable Oper:Set set 0
Else Handler
Message:You dont have enough coins.
No Handler
End
rm2k3_rulez next tutorial a log in #. Ever wanted to login in a # for a password? Well tune into my next tutorial to see it. AlsO any thing that doesnt work or that doesnt make sense in this tutorial post a comment and I'll help you with anything possible. Also on the next tutorial making a cheat sheet where you enter a code and you get 10000 gold or set character's level to 99 or something like that so tune in to another rm2k3_rulez's tutorials!
Posts 

Pages:
1
Pages:
1














