The RPG Maker Resource Kit

RMRK RPG Maker Creation => VX => VX Tutorials => Topic started by: wizard576 on January 21, 2010, 08:26:02 PM

Title: Bank system with labels and interest
Post by: wizard576 on January 21, 2010, 08:26:02 PM
I have recently edited the system and added interest. Everything that is underlined is what was added.Here is a bank system that has labels and interest. The reason for the labels is so you don't have to keep talking to the banker if you want to do multiple things. Like check your balance before you make a withdraw or make a deposit and then check your balance.

Ok what you are going to need is four control variables. They should look like this.
Spoiler for:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi375.photobucket.com%2Falbums%2Foo197%2Fwizard576%2FRPG%2520MAKER%2FBankSystemVariablesEdit.jpg&hash=bd5204e69d6e83517edc32baec2567f87e22e709)
The first four are the only ones you will need. Pay no attention to the others. Two more variables have been added for the interest. They are nuber 10 and 11.

Ok now after that. You will need to make two common events. One for deposits and one for withdraws. The deposit one should look like this. One line has been added and is circled in black.
Spoiler for:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi375.photobucket.com%2Falbums%2Foo197%2Fwizard576%2FRPG%2520MAKER%2FBankSystemDepositEdit.jpg&hash=5099e0c630f5fad4b8d92cb8b06adbd16f48c09c)

The withdraw one should look like this.
Spoiler for:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi375.photobucket.com%2Falbums%2Foo197%2Fwizard576%2FRPG%2520MAKER%2FBankSystemWithdraw.jpg&hash=c0a60564b9e68258baed506e5d8c1aa368791323)

Another common event has been added for the interest and it should look like this.
Spoiler for:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi375.photobucket.com%2Falbums%2Foo197%2Fwizard576%2FRPG%2520MAKER%2FBankSystemInterest.jpg&hash=42625bb8b11e087e75f3d9af07b82b4aa63b6a10)
Going by this picture your interest would go up about every 3 minutes. You can change either the wait time or the conditional branch. The easiest way to figure out the time you want is every 20 frames is equal to 1 second. Also dividing by 7 will give you about 14% interest. If you like a diferent amount just change the divided by number. 11 = about 9% and 14 = about 7%

After all that is done, you can make the banker event. It should look like this.
Spoiler for:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi375.photobucket.com%2Falbums%2Foo197%2Fwizard576%2FRPG%2520MAKER%2FBankSystem.jpg&hash=2fac30cb9e853fa4ba6a76c09fdc167869c16403)
Make sure that gold in inventory=gold and deposit amount and withdraw amount both = 0.
Also at the bottom were it says Label:exit bank put some kind of text in after that that says something like thank you come again or whatever. Well thats it hope this helps someone out.  ;)
Title: Re: Bank system with labels
Post by: Grafikal on January 21, 2010, 10:49:26 PM
Labels are always helpful. I think everyone should always use labels. lol
Title: Re: Bank system with labels
Post by: Kidfox70 on January 22, 2010, 03:44:06 AM
I made a Tut for a Bank a while ago, it used Labels. Mine really went into alot of stuff. But I'm going to redo the Tut soon and repost it. But the point I was going to make is that you could actually do everything in one Common Event. I myself did things a bit differently. I made a bank teller. This was for the player to make an account and also get a Banking Card. I then made an ATM event one that I could Copy and Paste it any where. Also, I ran into this problem when I frist wrote my Tut, there is no need for a Bank if the player can have just about unlimted Gold (the limit is actually 9999999). But that was my second point. But it would be nice to have some reason to use a Bank. The way your Bank is set up (mine as well) you could use the Bank to store other things other than Gold. You would have to add somethings (Text, Variables, etc). I also wrote a Gold Limit Tutorial (to limit your Gold using an Event. Mainly it was to cut the Gold limit for the player down to what ever I wanted. If i ever wanted to higher the limit I could any time. Say the player gets a bigger wallet? It's based off of Zelda), but because I'm rewritting my Bank Tutorial, I'm just going to included it. Other than that it's a wonderful use of everything you used. It works well and is very striped down. Good job Wizard576. My hat is tiped to you. *tips hat* 
Title: Re: Bank system with labels
Post by: Grafikal on January 22, 2010, 06:05:10 AM
To repost something, you have to have had at first posted it at least once. You never posted a Tut here.
Title: Re: Bank system with labels
Post by: wizard576 on January 22, 2010, 08:03:36 AM
Thanks for the feedback kidfox70 I took what you had to say to heart
Quote
But it would be nice to have some reason to use a Bank.
and worked on it for a while. Now there is an interest system added.  :)
Title: Re: Bank system with labels and interest
Post by: Grafikal on January 22, 2010, 08:14:59 AM
That's a really odd way to make an interest system and isn't customizable after the game begins, but at least it works lol
Title: Re: Bank system with labels and interest
Post by: Kidfox70 on January 22, 2010, 03:59:51 PM
I'm glad I could lend some foresight. Intrest is a good idea. I had that in mine as well. But I reworked it and it will be in the rewritten Tutorial. I hope to see more stuff from you Wizard576.