Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Easy way to make a bank system

Involved things needed for this event:
Variables (4 variables total: 1 bank balance, 1 deposit, 1 withdraw and 1 gold)
Conditional branch (also conditional branch part "else")
Text and choices
input number
wait (it used so it dont jump over parts it shouldnt)
change gold

(all pictures is hidden in a spoil and use pictures as a check if done it right or wrong. If wrong then try replicate the picture in your rpg maker) (and create all variables before you start with this event)

Hi here is a easy way to make a bank system (i wasnt the guy doing this tutorial from the beginning
but i fixed the bugs in it)
What to do here is just so you can see how much you have in the bank, take whatever you want as graphic
and then just do as it is on the picture (this \v[6] is just to tell wich variable it says to be used so if your
varible for this is 1 then just put 1 there instead of 6)(variable you use here is bank balance)(and put in direction fix just to make sure that its the same graphic all the time)
30ud9ue.jpg
what we do next is to create a new event and then choose a graphic for the bank i took a guy as graphic, ok i take
it step by step
1. text:hi how can i help you?(you can put whatever you want)

2. Choices:make a choice and call the choices Withdraw gold, Deposit gold, Oh nothing (you make this so you can choose what to do in the game withdraw, deposit or just cancel and cancel is there if you dont want to withdraw or deposit)

3.variable: make a control variable - choose variable withdraw and set it equel to 0 (and earlier you made three choices then this one is under withdraw choice)

4.Conditional branch: make a conditional branch wich say that variable "bank balance" greater than 0

5.text: How much do want to withdraw? (you dont have to have a text here but i have just for fun :P

6.input number: here choose the variable "withdraw" and then the number of digits (1 digits = 9 max 2 digits = 99max and so on
but this is only at the time you can ofcourse put how many 99 gold in the bank as you want but thats not a easy way to
put the gold there tip: set the digits higher set it on something like 6 becouse you never know how much you want
to deposit at the time 6 digits = 999999 gold max in one deposit)

7.Conditional branch: this says that if variable "withdraw" is greater than variable "bank balance" you can withdraw but if
smaller the withdraw is succesful so make this withdraw greater than bank balance now

8.text: sorry but you dont have enough gold in bank to withdraw (if you try withdraw more than what you have in the
bank for the moment then you that text coming up)

9.Variable: the latest conditional branch you made there is a else also under that on you put in a "control variable"
Variable "bank balance - sub - withdraw (then it should be so that you take gold from bank) 

10.wait: then put in a wait 2 frame(s)

11.change gold: here choose change gold and put it on add and then variable "withdraw"
 
12.wait: wait 2 frame(s)

13.text: just put something thats says that you got the gold (still under choice "yes" next is "no")(branch end here)

14.Text: under choice "no" you put some text phrase that say "good bye" or "cya later"
(there is on the picture a else in the end thats from the first conditional brach we did comes on next picture)
214tx6h.jpg

15.Text: ok here under the "else" from the first conditional branch a text like "sorry but you dont have any gold to withdraw
from bank

16.Variable: under choice "deposit" then put a control variable saying variable "deposit" equel to 0

17.text: hi would you like to deposit some gold?

18.choice: make a choice "yes" and "no" cancel can be on choice "2"

19.conditional branch: under "yes" make a conditional branch 1 gold or more (look on picture for (not that one under 14. next one) details how the conditional branch should look finished)

20.input number: make a input number just like for withdraw but take variable deposit instead of withdraw

21.wait: wait 2 frame(s)

22.Variable: we also need a variable called "GP" or "gold" make a control variables - choose variable "gp"(it depends on what you named it) and set it equel to gold (look on picture)

23.wait: wait 2 frame(s)

24.Conditional branch: make a new conditional branch saying that variable "GP" less or equel to variable "deposit"

25.wait: wait 2 frame(s)

26.text: make a new text saying that the deposit was succesful

27.text: under (from the latest conditional branch) else make a new text saying that you tried to deposit to much
ekiwcy.jpg

28.Text: under the last else put a new text saying that you dont have enough to deposit

29.text: Then under the choice "no" put a text saying something like "ok bye" anything you want

30:the last thing is that i havent put a text under the choice "Oh nothing" but you can put a text like
"ok... well i hope you come by later" and the choice "oh nothing" can be called other things to but if you play the
game you need to understand what the will happen if you choose that choice just by looking on the choice
20f3g3r.jpg



Edit: change the "conditional branch: Variable [0008: GP] <= Variable [0007: Deposit]"
to "conditional branch: Variable [0008: GP] >= Variable [0007: Deposit]".
so change from "Less or equel" into "Greater or equel" instead. Otherwise you will be able to deposit a endless amount of money, and then withdraw it. With this small change you can fix that.
 

Jason

Awesome Bro

You know what would be best for something like this ? To make it into a Common Event, and on the banker event just call common event.

Looks good though, you'll have to make a demo for people :thumb:
 
I created my own banking system that is a lot simpler and neater.  I've also created an interest system for it (although this is not necessary).  Anyhow, I'm willing to share it with anyone who wants to check it out (including matte12 since I would like to help you all to improve your event skills as well).  Anyhow, if you would like to see it, just PM me.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top