Gw Temp

Menu

Tutorial - 'How to make a Bank' by Zanifer

An item about RPGMaker 2000 posted on

Blurb

A great tutorial on making a bank for your game!

Body

This tutorial shows you how to make a bank and if you have a timer (Note I show you how to make one) you can easily make interest. Anyway this tutorial is so easy to understand that a bay could make it.

KEY
* = Optional
* Optional Section * = Optional (When above a certain section)

First of make these variables: Account Code, Enter Code, Deposit, Withdraw, Current Money, and Current Bank. Next make a switch and call it Created Account.

Show Message: Banker: Welcome to (Whatever you want the name of your bank to be) Bank, how may I help you.
Label #1
Show Choice: Create an account / Get info / Never mind
:[Create an account] Case
Show Message: Banker: I am going to have to see some ID and a signature.
Show Message: Banker: You are going to have to sign some forums and you will be on your way.
Show Message: Sign here.
Wait .5 Sec
Show Message: Here.
Wait .5 Sec
Show Message: and here.
Change Variable: Var [0001: Account Code] (Set)-Random (1000 to 9999)
Show Message: Banker: Here is your new ATM Card and your account code is v[0001]
Change Switch: Var [0001: Created Account]
Go to Label #1

:[Get info] Case
Label #2
Show Choice: I forgot my account code / What are the advantages to having an account / How much do I have in the bank / Go back
:[I forgot my account code] Case
Show message: Banker: I need to see your ID, ATM Card, and signature.
Wait 1.5 seconds
Show Message: Banker: this looks correct your account code is v[####: Account Code].
Go to Label #2

:[What are the advantages to having an account] Case
Show Message: Banker: Well every month that you have money in our bank you will get 100 (Whatever your currency is in your game).
Show Message: Banker: Plus you when you die all your money that you are carrying gets taken away but all the money that is in the bank will be safe.
Go to Label #2

:[How much do I have in the Bank} Case
Show Message: Banker: You have v[####: Current Bank] (Whatever your currency is in your game.) in your bank.
Go to Label #2

:[Go back] Case
Go to Label #1

:[Never mind] Case
Show Message: Banker: Good bye!
Move Event Hero: Down

Ok now create a new event and call it ATM Machine, and have the first page Same Level As Hero, and to start it Push Key. Now create an item called ATM Card make it common goods definition what ever you want it to be

PAGE 1

Show Message: ATM Machine Welcome to (Whatever you want the name of your bank to be) Bank, please insert your ATM card and enter your account code.
Input Number: (Digits=4) Var [####: Enter Code]

PAGE 2

Show Message: ATM Machine Welcome to (Whatever you want the name of your bank to be) Bank, please insert your ATM card and enter your account code.
Input Number: (Digits=4) Var [####: Enter Code]
Fork Condition: (####: Enter Code) V [####: Account Code] (=)
Show Message: ATM Machine: What would you like to do?
Label #3
Show Choice: Deposit / Withdraw / Nothing
:[Deposit] Case
Show Message: ATM Machine: How Much?
Input Number :(Digits=6) Var[####: Deposit]
Change Variable: Var[####:Current Money] (Set)-other, money have
Fork Option: (####: Deposit) V[####: Current Money] (
Show Message: ATM Machine: You’ve just deposited v[####: Deposit]
NOTE 1: Don’t put deposit in the message just put in the number for that variable.
Change Variable: Var[####: Current Bank] (+)- Var[Var[####: Deposit]]
Change Gold Held: $V[####: Deposit] (Remove)
Go to label #3

:Else Case
Show Message: ATM Machine: ERROR!
Go to label #3

:End Case

[Withdraw] Case
Show Message: ATM Machine: How much?
Input Number(Digits=6) Var[####: Withdraw]
Fork Condition(####: Withdraw) v[####: Current Bank](>)
Show Message: ATM Machine: You’ve just withdrew v[####: Withdraw]
NOTE 1: Don’t put withdraw in the message just put in the number for that variable.
Change Variable: Var[####: Current Money] (+)- Var[Var[####: Withdraw]
Change Gold Held: $V[####: Withdraw] (Add)
Go to label #3

:Else Case
Show Message: ATM Machine: ERROR!
Go to label #3

:End Case

[Nothing] Case
Show Message: ATM Machine: Good bye and come again.
Move Event: Hero-Down

:End Case

:Else Case
Show Message: Access Denied!

:End Case


Now for the in game timer. First make two common events and name the first one Time, and the second one View Time. Second make two switches Start Timer and Look at Timer. Then make 5 variables Timer Minutes, Timer Hours, Date Days, Date Months, and Date Years.

TIMER
Have it be a parallel process and switch on by Start Timer. Then make the coding look like this: (NOTE: don’t make any else cases unless I say otherwise)

Wait 0.5 seconds
Change Variable: Var[####: Timer Minutes] (+)- 1
Fork Condition: (####: Timer Minutes) (=) 60
Change Variable: Var(####: Timer Minutes) (Set)- 0
Change Variable: Var(####: Timer Hours) (+)- 1

:End Case
Fork Condition: (####: Timer Hours) (=) 24
Change Variable: Var(####: Timer Hours) (Set)- 1
Change Variable: Var(####: Date Days) (+)- 1

:End Case
Fork Condition: (####: Date Days) (>) 30
Change Variable: Var(####: Date Days) (Set)- 1
Change Variable: Var(####: Date Months) (+)- 1

:End Case
Fork Condition: (####: Date Months) (>) 12
Change Variable: Var(####: Date Months) (Set)- 1
Change Variable: Var(####: Date Years) (+)- 1

:End Case

* Optional Section *
(If you want you can make a wicked awesome day/night system that gradually gets dark)
(NOTE: If you do this put it under the end case of adding years yet it is still in Timer)

Fork Condition: (####: Timer Hours) (=) 17
Set Screen Tone: RGB (090, 090, 090),C(090),1.0 Seconds

:End Case
Fork Condition: (####: Timer Hours) (=) 18
Set Screen Tone: RGB (080, 080, 080),C(080),1.0 Seconds

:End Case
Fork Condition: (####: Timer Hours) (=) 19
Set Screen Tone: RGB (070, 070, 070),C(070),1.0 Seconds

:End Case
Fork Condition: (####: Timer Hours) (=) 20
Set Screen Tone: RGB (060, 060, 060),C(060),1.0 Seconds

:End Case
Fork Condition: (####: Timer Hours) (=) 5
Set Screen Tone: RGB (070, 070, 070),C(070),1.0 Seconds

:End Case
Fork Condition: (####: Timer Hours) (=) 6
Set Screen Tone: RGB (080, 080, 080),C(080),1.0 Seconds

:End Case
Fork Condition: (####: Timer Hours) (=) 7
Set Screen Tone: RGB (090, 090, 090),C(090),1.0 Seconds

:End Case
Fork Condition: (####: Date Days) (=) 30
Change Variable: Var[####: Current Bank] (+)- 100

:End Case

There we go that wasn’t so hard you just made interest possibly day/night and not to mention a bank but if you want you can take your game timer a step farther and that of course is what look at timer switch and time section of common events is for. Make it a Parallel Process and switched on by Look At Timer. Make the coding look like this:

Fork Condition: (####: Timer Minutes) (
Show Message: Time: v[####: Timer Hours]:0v[####: Timer Minutes]
Date: v[####: Date Months]/v[####: Date Days]/v[####: Date Years]

:Else Case
Show Message: Time: v[####: Timer Hours]:0v[####: Timer Minutes]
Date: v[####: Date Months]/v[####: Date Days]/v[####: Date Years]

:End Case

(NOTE: In the above message’s don’t put the variable name just put the variable number)

Walla you have just made a bank with interest, a day/night system, and a in game timer(fake time). The best part is that it wasn’t hard at all!!!

note i well am just coming back from being a newb ive been away now im a pro, i am also restoring some of my good tuts that are way in the back