<>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
<>