RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Bank system

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 89
I need the code to a good bank system for RPG maker 2000. It used to be on a site that directed me here. No luck now. Any help is appreciated...

*
Rep:
Level 97
Definitely better than Hitler.
2014 Best IRC Chatterbox2014 Best Musician2013 King of RMRK2013 Best Musician2013 Best Use of Avatar and Signature Space2013 Funniest MemberFor the great victory in the Breakfast War.2012 Best Username2012 Best MusicianFor frequent good quality Wiki writing [citation needed]2011 Funniest Member2011 Best MusicianMost entertaining member on the IRC2010 Most Missed Member
<>Branch: If Timer 1 is 0M 00S Less/Equal
<> Timer 1 Operation: Set 20M 00S
<> Timer 1 Operation: Start
<> Play SE (Whatever)
<>Variable Operation: [0001] Bank Interest Set, Var. 0004's Value
<> Variable Operation: [0001] Bank Interest: /, 10
<> Variable Operation: [0002] Savings Account + Var. 0001's Value
<>
End
<>

This will add 10% interest evey 20 minutes in your savings account after you have opened one. Now, for the actual bank or ATM or whatever, here is the code:
PAGE 1:
<> Message: Would you like to open a savings account?
<> Show Choices: Yes/No
: [Yes Handler]
<> Branch: If Money is 0 Less/Equal
<> Message: You don't have any money!
<>
Else Handler
<> Message: How much do you wish to deposit?
<> Input Number, 6 Digit, [0004] Savings Add]
<> Var. Operation: [0003] Money, Set Money
<> Branch: If [0003] Money, is [0004], Less
<> Message: You don't have that much money!
<>
Else Handler
<> Var. Operation: [0003] Money - Var. [0004]'s Value
<> Var. Operation: [0002] Savings Account + Var. [0004]'s Value
<> Change Money: V[0004] Remove
<> Message: Every 20 minutes, your account will gain 10% interest.
<> Switch Operation: 0001 Bank Account ON
<>
End
<>
End
[No] Handler
<>
End
<>

The switch you turned on should be the same switch as the Trigger Switch in the common event.

PAGE 2 (Preconditions: Switch 0001 ON)
<> Message: Do you wish to deposit or withdraw?
<> Show choices: Deposit, Withdraw, Cancel
[Deposit] Handler
Branch: If Money is 0 Less/Equal
<> Message: You don't have any money!
<>
Else Handler
<> Message: You have
V\[2]
In your account.
<> Message: How much do you wish to deposit?

From here, just copy and paste from the previous page. To do the withdraw:

[Withdraw] Handler:
<> Message: You have
\V[2]
in your account.
<> Message: How much do you with to withdraw?
<> Input Number: 6 Digit, [0004] Savings Add
Branch: If Var. [0002] Savings Account, is V[0004], Less
<> Message: You don't have that much in your account!
<>
Else Handler
<> Var. Operation: Var. [0002] Savings Account, - V[0004]'s Value
<> Change Money: Var. [0004] ADD
<>
End
[Cancel] Handler
<>
End
<>
:tinysmile:

*****
Rep:
Level 91
Captain Fucking Callahan
What exactl;y does it do really, i want to know? like money back?
"Always remember the best form of revenge is to better yourself." -ZV

*
? ? ? ? ? ? ? ? ? The nice kind of alien~
Rep:
Level 92
Martian - Occasionally kind
Here's an example:
Let's say I go over to this bank guy.
I have before doing anything exactly 1000.

I talk to the bank guy and select yes as I want to open an account.
I deposit 1000, which leaves me with 0.
I leave.

1000 in bank.
0 on me.

57 minutes later:

(1000*1.1)*1.1 = 1210 in the bank now (20 minutes have gone twice)
How did I get 1210?
First I had 1000.
 - 20 minutes later -
Savings in bank becomes 1000 + 100 = 1100
 - 20 minutes later -
Savings in bank becomes 1100 + 110 = 1210

I come back and have earned 990 in the mean time and now I want to deposit some more of my money.
Again I talk to the bank guy, select deposit and deposits 790. That leaves:

1210 + 790 = 2000 to the bank
990 - 790 = 200 to me

If I now wait 3 minutes I can withdraw up to 2200 totalling the money on me to 2400.

This happens because the timer once again becomes 0m 00s and the present money in the bank becomes 2000 + 200 = 2200.

So after 60 minutes (if I haven't withdrawn anything):

2200 on the bank
200 on me.



Do you understand what this does now or do you want a description of the event itself?

**
Rep:
Level 89
Which Event command is the Branch in RM2k? I Can't find it...

*
Rep:
Level 97
Definitely better than Hitler.
2014 Best IRC Chatterbox2014 Best Musician2013 King of RMRK2013 Best Musician2013 Best Use of Avatar and Signature Space2013 Funniest MemberFor the great victory in the Breakfast War.2012 Best Username2012 Best MusicianFor frequent good quality Wiki writing [citation needed]2011 Funniest Member2011 Best MusicianMost entertaining member on the IRC2010 Most Missed Member
Fork Condition, 3rd Event Page, Right Column
:tinysmile:

***
Rep:
Level 90
So, what your saying is, that you get interest? Cool dude!

**
Rep: +0/-0Level 89
I am a total newbie to this. Where would I put this script? I am using RPG Maker XP (Postality Knights Edition)

***
Rep: +0/-0Level 90
XD
you are a newb....

This isn't a script, just use it everytime you would use the bank in rm2k(3). or you could make it a common event and call it every time a char talks to the banker.



Unless I say so, I'm using RPG Maker XP.

**
Rep: +0/-0Level 89
ah... ah well... thanks n e way

*
Rep:
Level 97
Definitely better than Hitler.
2014 Best IRC Chatterbox2014 Best Musician2013 King of RMRK2013 Best Musician2013 Best Use of Avatar and Signature Space2013 Funniest MemberFor the great victory in the Breakfast War.2012 Best Username2012 Best MusicianFor frequent good quality Wiki writing [citation needed]2011 Funniest Member2011 Best MusicianMost entertaining member on the IRC2010 Most Missed Member
Yes, it's meant to be used as a common event in rm2k or 2k3.
:tinysmile:

**
Rep:
Level 89
Thanks to everyone who helped me. I learned alot from this example. I'm going to be posting the starting of my game right now in a new topic. If anyone would like to contribute in any way or make it a group project, get in touch with me. You can reach me the fastest on AIM: mikerz11988 is my sn.