posted
Okay, I just finished, more or less, Coding the Everspace Intergalactic Bank (Tm) for golden souls only, of course :-D.
Here is the code, and I'm lacking one key element: Last Answer Given. You'll see in the code. Is there a way to do this currently or can it be added? ;--------- SCENE 207 bank, SCENE, "Everspace Intergalactic Bank" ACTOR 1, "Bank Guard", act3, 3, 50, 70 IF GS, @continue 1: You are not a Golden Soul, and therefore cannot use the Everspace Intergalactic Bank. END @continue 1: Welcome to the bank, %1. COMPARE a, "1" IF= @normal 1: Here, you can deposit any amount of money. SET money, "0" SET a, "0" 1: When you enter the bank after this, you will have a few choices. 1: The first is to deposit. You mearly type "Deposit" To give money to the bank. 1: The second option is to "Withdraw". This allows you to take money *out* of the bank. SET a, "1" @normal 1: Your current balance is #<money>. 1: Would you like to "DEPOSIT" or "WITHDRAW"? ASK 99999999 IF QDeposit, @deposit IF QWithdraw, @withdraw GOTO @normal END @deposit 1: How much money would you like to deposit? (Enter the amount) ASK 9999999 SET deposit, "0" [b]SET deposit, "#<lastAsk>" IF G#<deposit>, @continued 1: You do not have that much money. GOTO @deposit END @continued 1: You would like to deposit #<deposit>? (YES/NO) IF NO, @no 1: Okay, please wait a moment.. TAKE G#<deposit> ADD money, "#<deposit>" 1: Thank you for your deposit. GOTO @normal END @withdraw 1: How much money would you like to withdraw? (Enter the amount) ASK 99999 SET withdraw, "0" SET withdraw, "#<lastAsk>" ; COMPARE #<money>, #<withdraw> IF> @continuew IF= @continuew 1: You do not have that much money deposited. Your current balance is #<money>. GOTO @withdraw END @continuew 1: You would like to withdraw #<withdraw> Gold? (YES/NO) IF No, @no 1: Okay, one moment please. GIVE G#<withdraw> SUB money, #<withdraw> 1: Thank you for using our bank! GOTO @normal END @no 1: No? Okay. GOTO @continue END ;---------------- [Edited in the #lastask part so as not to confuse anyone]
[This message has been edited by Merlin (edited 09-15-2001).]
posted
hey merl, would you mind if i stole your idea, modified it, and added it to my world? hehehe =) (ide give you the credit ofcaurse) =)
Posts: 426 | From: port orchard, wa, usa | Registered: Jun 2001
| IP: Logged
posted
Steal all you want. You can steal credit or not credit me or credit me if you want, I dont care. All of my scripts are for the good of Synthetic-Realitarians everywhere :-D
-Merlin [Okay.. I had to add a *comma*! Okay? OKAY? LEAVE ME ALONE :-D]
[This message has been edited by Merlin (edited 09-18-2001).]