### Author Topic: Bank System with Interest  (Read 2008 times)

#### G_G

• Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
• Global Moderator
• Chaos Ultimate
• Posts: 6591
• LV: 407
• Gender:
##### Bank System with Interest
« on: August 13, 2008, 11:03:55 PM »
Ok here is a bank system made by me with interest every 150 frames.

First make these 3 variables, [xxxx:Current Money] [xxxx:Bank Money] [xxxx:Input]
Now make a guy who is the banker and enter this

VarOper:[xxxx:Current Money] set = Current Gold
ShowChoicesDeposit/Withdraw/Nothing
Deposit Handler
InputNumber[xxxx:Input]
Branch if [xxxx:Input] greater than[xxxx:Current Money]
Sorry you dont have that much money
Else
VarOper[xxxx:Bank Money] set = [xxxx:Input]'s Value
Change Money Decrease by [xxxx:Input]'s value
VarOper[xxxx:Input] set = 0
End
Withdraw Handler
InputNumber[xxxx:Input]
Branch if [xxxx:Input] greater than [xxxx:Bank Money]
Sorry you don't have that much in your account.
Else
VarOper[xxxx:Bank Money] minus - [xxxx:Input]'s valuej
Change Money Increase by [xxxx:Input]'s Value
VarOper[xxxx:Input] set = 0
End
Nothing Handler

Ok so theres the withdraw/deposit part, now into the interest, go to common events and make this

Label 1
Wait 150 Frames
Branch if [xxxx:Bank Money] = 0
Else
End

Note there is alot more that can be done like in the else have a branch if Bank Money greater than 100
then VarOper add 25 to bank money. I hope you get the point but I hope you like it!

#### Sally

• Sallygirl :P
• Chaos User
• Posts: 1283
• LV: 12
• Gender:
##### Re: Bank System with Interest
« Reply #1 on: August 15, 2008, 03:50:56 PM »
nice, do you think you will let me add interest to?

#### Blizzard

• This sexy
• has over 9000 posts
• Posts: 20016
• LV: 651
• Gender:
• Magic midgets.
##### Re: Bank System with Interest
« Reply #2 on: August 15, 2008, 04:25:19 PM »
Ok here is a bank system made by me with interest every 150 frames.
Check out Daygames and our games:

 King of Booze King of Booze: Never Ever Pet Bots Drinking Game for Android Never have I ever for Android Pet Bots for Android Drinking Game for iOS Never have I ever for iOS Pet Bots for iOS Drinking Game on Steam

Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson