Written by: Vaporate23
This is how I did it. Script does not include interest being paid.
Basic Bank system:
PART ONE: The script below is for bank clerk only
Make 7 Variables: 1.Account number, 2.amount deposited, 3.account money, 4.ATM access, 5.current money, 6.amount withdrawal, 7.created account
Event Editor:
Trigger condition: action key
Event commands:
Change face graphic: faces 2, 7, left Message: Bank clerk: Welcome to the bank of Arcadias, how may I help you? Label 1 Show Choices: create account/get account number/get current bank balance/never mind [Create Account] Handler Branch if variable [account number] is 1000 or greater Change face graphic: faces2, 7, left Message: bank clerk: you already have an account with us. Change face graphics: hero1, 1, left Message: oh, ok. Sorry! Jump to Label 1 ELSE Handler Change face graphic: faces2, 7, left Message: bank clerk: you can only create a new account or check your account number/bank balance here ECT. Change face graphic: faces2 ect Message: bank clerk: gives tutorial of how bank works. Change face graphic: faces2 ect Message: bank clerk: so do you wish to open a bank account? Change face graphics: hero. Show choices: Yes/No [YES] Handler Change face graphic: faces2 ect Message: bank clerk: please complete this form. (enter a full dialogue here) Message: Sign here... Wait 0.5 Sec Message: Here... Wait: 0.5 sec Message: and here... Variable operation: [account number] Set, Rnd [1000-9999] Message: bank clerk: here is your new ATM Card and your new account number is /v [0002] (put account number variable here in bold) Change item: ATM card 1 add Change face graphics: bank clerk face Message: bank clerk: thank you ect Hero face graphic Message: bye Jump to label 1. [NO] Handler Face graphic Message: bank clerk: ok well bye. Jump to label 1 END [Get Account Number] Handler Branch if ATM card possessed Change face graphic Message: bank clerk: I need top see your ATM card first please. Hero face graphic Message: here you go. Bank face graphic Message: Thanks, I just need to swipe the ATM Card and... Play sound: Item 1 Wait: 1.0 sec Face graphic Message: Bank Clerk: Done! Your account number is /v[put account number variable here] Face graphic Jump to label 1 ELSE Handler Bank face graphic Message: Bank Clerk: Sorry, but you do not possess an ATM card. Please create an account first. Jump to label 1 END Get current bank balance] Handler Branch if ATM card possessed Bank Face graphic Message: your current account balance is /v [put account money variable number here]. Jump to label 1. ELSE Handler Bank face graphic Message: Sorry, you do not possess an ATM card/account. Please create one first ect Jump to label 1 END [Never Mind] Handler Bank face graphic Message: Good bye Hero face graphic Message: Bye Move event: Hero, move down. END
PART TWO
ATM MACHINE (choose ATM Graphic, get one from casino chip set or something)
I kept the ATM machine in the bank, but you can distribute these things everywhere in towns, cities ect.
Trigger condition: Action key
Event Command:
Message Display options normal Message: Welcome to the ATM service Message: please enter your ATM card Branch if ATM card possessed Play sound: Item1 Message: Thank You Message: Please enter your account number Input number: 4 digit [store in ATM ACCESS variable] Branch if Var [ATM ACCESS] is [use account number variable] equal Play sound: Item 1 Variable Operation: [use current money variable] Set, Money Message: Welcome to your private ATM facility. You currently have [Use current money variable here] Message: which service would you like? Label 1 Show Choice: Make a deposit?/make a withdrawal?/Check Balance?/Nothing [Make a deposit?] Handler Message: How much would you like to deposit? Input number: 7 digit [store amount in amount deposited variable] Branch if var [use current money variable] is [use amount deposited variable here] Message: you have deposited /v [use amount deposited variable here] gil. Change money: /v [use deposited variable here] Remove Variable operation [use account money variable here] +, var [use deposited variable here.] Value Jump to label 1 ELSE Handler Play sound: failure 1 Message: Error, you have insufficient funds Jump to label 1 END [Make a withdrawal] Handler Message: how much would you like to withdraw? Input number: 7 digit [use amount withdrawal variable here] Branch if var [use account money variable here] is [use amount withdrawal variable] or more Message: You have withdrawn /v [enter amount withdraw variable number here] Change money: /v[enter amount withdraw variable number here] add Variable operation: [account money] -, var [amount withdrawal] value Jump to label 11 END [Check balance] handler Message: Your current balance is /v [enter account money variable number here] Gil. Jump to label 1 [Nothing] Handler Move event: move down END ELSE Handler Play sound: failure1 Message: access denied. Invalid account number. Move event: hero, move down END ELSE Handler Play sound: failure1 Message: access denied Message: please...go to bank create account blah blah Move event: hero, move down END
FINISHED!!