Matthew
RPG Town Newbie
<<BANNED USER>>
Posts: 9
|
Post by Matthew on Jan 22, 2003 15:45:27 GMT -5
TEXTi set up a bank but but i wanna set it up so in order 2 withdraw u need 2 enter a password sorta like ur acount number........and also i dont understand how to show how much money is in the bank...im sorry but this is the last one i got it so u can deposit and then withdraw but if u deposit lets say ......700 dollars......u can then withdraw 100,000....ahhhh help! please....and thank you for helping the newbie out ;D
|
|
Kiel
RPG Townie
Bad to the bone. Heh. Ahem......mwahahahaha!!!
Posts: 362
|
Post by Kiel on Jan 22, 2003 21:35:04 GMT -5
[glow=red,2,300]Okay man I've helped you out a lot, and I'm happy to do it again. You better understand Variables. Ok, at the start of the game, or when the bank is introduced to your hero, make a change Variable-"your money in account" set it to 0. Now make another Variable. Call it "amount entered into bank." Then set it to 0. Ok, now.[/glow]
[glow=green,2,300]Show Choice-Withdraw, Deposit, Show account Balance, Cancel. (cancel case=4)[/glow]
WITHDRAW CASE Show message: How much do you wish to withdraw? Input Number: However many digits you want, and store it into the variable you made earlier called "amount entered into bank." Fork Option (with else case):If variable "amount entered into bank" is higher than then variable "your money in account." If so, then show message: Not enough money in the bank. Change variable: "amount entered into bank, set to 0. ELSE CASE Change Gold held: increase it by Variable: "amount entered into bank." Now change variable: "your money in account", decrease it by variable: "amount entered into bank." Now change the variable: "amount entered into bank", change set to 0. Then play sound effect: Success2. Then show message, Transaction Complete. (or something)
DEPOSIT CASE Show message: How much do you wish to Deposit? Input Number: Same amount of digits as Withdrawal, store it into variable: "amount entered into bank." Fork Option: If variable "amount entered into bank" is higher than the parties money, than show message: Not enough gold held to deposit. Change Variable:"amount entered into bank", set to 0. ELSE CASE Change gold held: decrease it by variable: "amount entered into bank." Now change the variable: "your money in account", increase it by variable: "amount entered into bank". Then change variable: "amount entered into bank", set it to 0. Wait 0.2sec, now play a sound effect Success2, wait 0.2sec, and show message: Deposit completed (or something).
SHOW ACCOUNT BALANCE CASE Set message options to however you want, the show message: You currently have \V[XXXX] (the number of the variable: "your money in account") gold in your account.
CANCEL CASE No coding
[glow=red,2,300]Okay I hope I said all of this correct, and I hope I didn't leave anything out. And if you need anymore help, just message me in MSN MESSENGER. And I really, REALLY hope that your not copying this word for word, I hope that you are actually learning it, I can't wait for your first game.....heh.[/glow]
|
|
|
Post by zanifer on Feb 7, 2003 18:10:18 GMT -5
go to gamingw.net i have it compleatally programed out with account code and how to get a new card when you forget the number you need an atm card and yata yata yata.
|
|