Gw Temp

Menu

Tutorial - 'Superlative Bank' by Angroth

An item about RPGMaker 2000 posted on

Blurb

Want a simple yet highly effective bank? Then read on!

Body

Most bank tutorials I have read seemed not to work correctly for me. So I altered what different people said to get my own bank system.

It’s not too complex but if you are a new to Rm2k then you should just copy the following without question. If you are a hardcore Rm2k veteran then you might want to push your talents and make ‘interest’ and so on.

Well, I’ll shut up for now, here it is:



Message:Bank Man – What do you want to do?

Show Choice: Deposit/Withdraw/Leave

:[Deposit] Case



*For this point you will need to create a variable named ‘Current Money’*

Change Var: Var[0001:Current Money] (Set)-[$ Have]

Message:Bank Man – Deposit how much?

: :You have \v[01] gold.

Input Number(Digits=5) Var[0002:Entered Money]

If Var(0002:Entered Money) V[0001](>)

Change Var: Var[0002:Entered Money] (Set)- Var[0001]



:End Case

*This simply means the number you input into the 5 digits is stored into the variable ‘Entered Money’. If you enter a number greater than your current money then it changes the number you entered to your current money.*

Change Var: Var[0003:Bank Money] (+)- Var[0002]

Change Money: $V[0002] (Rem)

Message:Bank Man – You now have \v[03] gold in the bank.



*This next part adds the variable ‘Entered Money’ to ‘Bank Money’ therefore adding to any money you may have had in the bank already. It then removes the ‘Entered Number’ from your current money.*



:[Withdraw] Case

Message:Bank Man – Withdraw how much?

: :You have \v[03] gold in the bank.

Input Number(Digits=5) Var[0002:Entered Money]

If Var(0002:Entered Money) V[0003](>)

Change Var: Var[0002:Entered Money] (Set)- Var[0003]



:End Case

Change Money: $V[0002] (Add)

Change Var: Var[0003:Bank Money] (-)- Var[0002]

Message:Bank Man – You now have \v[03] gold in the bank.



:[Leave] Case



:End Case



*This second part is quite simple. After saying how much you want to withdraw it stores it into ‘Entered Number’ variable. And once again, just like before if it is greater than the ‘Bank Money’ then it will set it as the bank money.

Then the ‘Entered Money’ is added to your current money and then the ‘Entered Money’ is taken from the ‘Bank Money’.*



This bank is suprisingly easy to make and provides a nice addition to your game. The other bank tutorials I have seen merely let you withdraw all the money from the back or deposit all your money there. And this may be good but entering an exact amount is much cooler.