Synthetic Reality Forums   
my profile | directory login | register | search | faq | forum home

  next oldest topic   next newest topic
» Synthetic Reality Forums » Our Archives » WoS World Developer Tips » A dillema.. and a good money making technique! Literally!

   
Author Topic: A dillema.. and a good money making technique! Literally!
Merlin
Compulsive Member
Member # 181

Member Rated:
5
Icon 1 posted      Profile for Merlin   Author's Homepage   Email Merlin   Send New Private Message       Edit/Delete Post 
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).]


Posts: 2797 | From: Atlanta, Georgia | Registered: Nov 1999  |  IP: Logged
samsyn
Administrator
Member # 162

Member Rated:
4
Icon 1 posted      Profile for samsyn   Author's Homepage   Email samsyn   Send New Private Message       Edit/Delete Post 
go to the Quest Dictionary, look up the SET command and scroll down to the "stock cookies"
http://www.synthetic-reality.com/wosquest.htm

(and crapola, it looks like I blew a bookmark setting on that page)

------

Anyway, I think you want:

#<lastAsk>

the first stock cookie on the list :-)


Posts: 10561 | From: California | Registered: Dec 1998  |  IP: Logged
samsyn
Administrator
Member # 162

Member Rated:
4
Icon 1 posted      Profile for samsyn   Author's Homepage   Email samsyn   Send New Private Message       Edit/Delete Post 
OK, fixed the bookmark, I hope...
http://www.synthetic-reality.com/wosquest.htm#SET
http://www.synthetic-reality.com/wosquest.htm#cookies

Posts: 10561 | From: California | Registered: Dec 1998  |  IP: Logged
Merlin
Compulsive Member
Member # 181

Member Rated:
5
Icon 1 posted      Profile for Merlin   Author's Homepage   Email Merlin   Send New Private Message       Edit/Delete Post 
Sorry for the waste of time, I need to make a habit of checking that page!

-Merlin


Posts: 2797 | From: Atlanta, Georgia | Registered: Nov 1999  |  IP: Logged
Ebag333
Verbose Member
Member # 238

Member Rated:
5
Icon 2 posted      Profile for Ebag333   Email Ebag333   Send New Private Message       Edit/Delete Post 
LAZY! LAAAAAAAAAAAAAAAAAAAAAZZZZZZZZZZZZZZZZZZZYYYYYYYYYYYYYYYYY!

Hey, this ICQ is so good I think I'll reply to that post!

(inside joke)


Posts: 1348 | From: Central Point, OR, USA | Registered: Mar 2000  |  IP: Logged
sndrsn
Healthy Member
Member # 1104

Rate Member
Icon 1 posted      Profile for sndrsn   Email sndrsn   Send New Private Message       Edit/Delete Post 
just bumping this sum1 needs it and the lags down

Posts: 274 | Registered: Jul 2001  |  IP: Logged
Magic Beans
Healthy Member
Member # 996

Rate Member
Icon 1 posted      Profile for Magic Beans   Email Magic Beans   Send New Private Message       Edit/Delete Post 
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
Merlin
Compulsive Member
Member # 181

Member Rated:
5
Icon 1 posted      Profile for Merlin   Author's Homepage   Email Merlin   Send New Private Message       Edit/Delete Post 
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).]


Posts: 2797 | From: Atlanta, Georgia | Registered: Nov 1999  |  IP: Logged
Magic Beans
Healthy Member
Member # 996

Rate Member
Icon 1 posted      Profile for Magic Beans   Email Magic Beans   Send New Private Message       Edit/Delete Post 
hahaha right on, thnx bro
Posts: 426 | From: port orchard, wa, usa | Registered: Jun 2001  |  IP: Logged
   

   Close Topic   Feature Topic   Move Topic   Delete Topic next oldest topic   next newest topic
 - Printer-friendly view of this topic
Hop To:


Contact Us | Synthetic Reality

Copyright 2003 (c) Synthetic Reality Co.

Powered by UBB.classic™ 6.7.3