Gw Temp

Menu

Tutorial - 'Banking Tutorial' by bluemoogle

An item about RPGMaker 2000 posted on

Blurb

Have you ever played Earthbound, and sued that ATM machine? Hopefully you have! Well, now you can make that ATM machine yourself!

Body

--------------------------
Banking Tutorial
By Blue Moogle
--------------------------

Have you ever played Earthbound, and used that ATM machine? Well, you must of! But, there is always that problem of trying to figure out how make one in RM2k. Well, I’m here to help! Lets start with the basics!

+++Basics+++

Have you read my switchs and variable and Gaming World’s fork conditions tutorial? If not, I would! Ok, you got that out of the way. Here is the timeline one what we will be covering:

1. Creating the bank event
2. Making the script
3. Ending and celebrating

+++Step 1+++

Banks can be either an ATM maching, or a person at a bank! You can do either, just change some of the messages and the character graphic! We’ll do an ATM machine in this tutorial. Click event mode, and double click on the ground where you want the machine to be.

An event will open up. Call it “ATM MACHINE”. For a graphic, use something that looks like an ATM machine. So far so good! Make sure it does not move, and for animation, make it stay still (fixed graphix). Make it a “push key” event and have it be “Same level as Hero”.

+++Step 2+++

Ok, you can now see your pretty little ATM machine.. but it is useless now. We’ll make it useful! First make a message. (add what is in bold)

()Msg: ATM Machine:
What would you like to do?

Now we need to make the choices. Make them Deposit, Withdraw, and Nothing. It should look like this now:


()Messg: ATM Machine:
: : What would you like to do?
()ShowChoice: Deposit/Withdraw/Nothing
:[Deposit] Case
()
:[Withdraw] Case
()
:[Nothing]Case
()

You that far now? Good! Lets work on the deposit choice first! We need another message! Make it look like this:

()Messg: ATM Machine:
: : What would you like to do?
()ShowChoice: Deposit/Withdraw/Nothing
:[Deposit] Case
()Messg: ATM Machine:
: : How much would you like to deposit?
()
:[Withdraw] Case
()Messg: ATM Machine:
: : How much would you like to withdraw?
()
:[Nothing]Case
()Messg: ATM Machine:
: : Good bye.
()

Ok, now we need some input commands! But to do so, we need some variables. Call them: Deposit, Withdraw, Current Money, Current Bank. Ok, now make an Input command on Deposit and Withdraw. For the variable on deposit, choose the deposit variable, and same with withdraw, only with the withdraw variable!

()Messg: ATM Machine:
: : What would you like to do?
()ShowChoice: Deposit/Withdraw/Nothing
:[Deposit] Case
()Messg: ATM Machine:
: : How much would you like to deposit?
()Input Number: 6Dg.(0001:Deposit)
()
:[Withdraw] Case
()Messg: ATM Machine:
: : How much would you like to withdraw?
()Input Number: 6Dg.{0002:Withdraw)
()
:[Nothing]Case
()Messg: ATM Machine:
: : Good bye.
()

Now we need an event to check if the input is reasonable. We’ll need a fork command. Make it look like this. We’ll also need to make a variable to set to the current amount of money in your hand for deposit.

()Messg: ATM Machine:
: : What would you like to do?
()ShowChoice: Deposit/Withdraw/Nothing
:[Deposit] Case
()Messg: ATM Machine:
: : How much would you like to deposit?
()Input Number: 6Dg.(0001:Deposit)
()Variable Ch:[0003:Current Money] Set, Money#
()Fork Optn:Varbl[0001:Deposit]-V[0003]less
()
:ELSE Case
()
:END Case
()
:[Withdraw] Case
()Messg: ATM Machine:
: : How much would you like to withdraw?
()Input Number: 6Dg.{0002:Withdraw)
()Fork Optn:Varbl[0002:Withdraw]-V[0004]less
()
:ELSE Case
()
:END Case
()
:[Nothing]Case
()Messg: ATM Machine:
: : Good bye.
()

Ok, now lets add the final variable changes and messages. Make it looks someone like this! (You can change the messages to look the way you want them to be.)

()Messg: ATM Machine:
: : What would you like to do?
()ShowChoice: Deposit/Withdraw/Nothing
:[Deposit] Case
()Messg: ATM Machine:
: : How much would you like to deposit?
()Input Number: 6Dg.(0001:Deposit)
()
:[Withdraw] Case
()Messg: ATM Machine:
: : How much would you like to withdraw?
()Input Number: 6Dg.{0002:Withdraw)
()
:[Nothing]Case
()Messg: ATM Machine:
: : Good bye.
()

Now we need an event to check if the input is reasonable. We’ll need a fork command. Make it look like this. We’ll also need to make a variable to set to the current amount of money in your hand for deposit.

()Messg: ATM Machine:
: : What would you like to do?
()ShowChoice: Deposit/Withdraw/Nothing
:[Deposit] Case
()Messg: ATM Machine:
: : How much would you like to deposit?
()Input Number: 6Dg.(0001:Deposit)
()Variable Ch:[0003:Current Money] Set, Money#
()Fork Optn:Varbl[0001:Deposit]-V[0003]less
()Messg: ATM Machine:
: : You just deposited \v[0001]. You now have
: : \v[0003] in your pocket and \v[0004] in the bank.
()Variable Ch:[0004:Current Bank]+ ,Var.[0001]val.
()Change Money: Money V[0001] Decr.
()
:ELSE Case
()Messg: ERROR!
()
:END Case
()
:[Withdraw] Case
()Messg: ATM Machine:
: : How much would you like to withdraw?
()Input Number: 6Dg.{0002:Withdraw)
()Fork Optn:Varbl[0002:Withdraw]-V[0004]less
()Messg: ATM Machine:
: : You just deposited \v[0001]. You now have
: : \v[0003] in your pocket and \v[0004] in the bank.
()Variable Ch:[0004:Current Bank]- ,Var.[0002]val.
()Change Money: Money V[0002] Incr.
()
:ELSE Case
()Messg: ERROR!
:END Case
()
:[Nothing]Case
()Messg: ATM Machine:
: : Good bye.
()

Congrats! You just finished making a bank! You can touch up on the messages if you want, but besides that, you made a banking system never the less! Now with this you can make more interesting things, like when you die, you lose half the money that you carry, but the rest in the bank is safe!

++++By blue Moogle!