Issarlk Chatnoir
Cross L. apologist.
Join date: 3 Oct 2004
Posts: 424
|
11-28-2004 06:29
Hello,
I am making a script that gives money to an avatar at the end of a transaction (which doesn't involve any "real" object). In the case my account doesn't hold the money necessary to pay the avatar I want to abort the transaction ; because it would be unfair to take without paying.
llGiveMoney doesn't return anything in the documentation, no success/failure code ; is there another way to know my account has enough L$ to pay ; or detect the money could not be given?
_____________________
Vincit omnia Chaos From: Flugelhorn McHenry Anyway, ignore me, just listen to the cow
|
Azelda Garcia
Azelda Garcia
Join date: 3 Nov 2003
Posts: 819
|
11-28-2004 06:33
Pas que je sache.
Azelda
|
Hank Ramos
Lifetime Scripter
Join date: 15 Nov 2003
Posts: 2,328
|
11-28-2004 07:59
Nope. If you don't have the money to give, it just spits out an error. LSL has very little capability to do error checking or to handle error conditions, which is a major limit in the scripting language.
|
blaze Spinnaker
1/2 Serious
Join date: 12 Aug 2004
Posts: 5,898
|
11-28-2004 08:02
Do internal accounting .. everytime you pay, deduct it from your total. Create an ALT if you are having a hard time keeping it updated.
_____________________
Taken from The last paragraph on pg. 16 of Cory Ondrejka's paper " Changing Realities: User Creation, Communication, and Innovation in Digital Worlds : " User-created content takes the idea of leveraging player opinions a step further by allowing them to effectively prototype new ideas and features. Developers can then measure which new concepts most improve the products and incorporate them into the game in future patches."
|
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
|
11-28-2004 11:25
From: Hank Ramos Nope. If you don't have the money to give, it just spits out an error. LSL has very little capability to do error checking or to handle error conditions, which is a major limit in the scripting language. In theory, if the error text is known and is broadcasted via object chat (on channel 0, for example), you *could* listen for it and then make the appropriate decision.
|
Issarlk Chatnoir
Cross L. apologist.
Join date: 3 Oct 2004
Posts: 424
|
11-28-2004 12:34
From: Christopher Omega In theory, if the error text is known and is broadcasted via object chat (on channel 0, for example), you *could* listen for it and then make the appropriate decision. The error open in a popup, I tried listening for it without success. But thanks for the suggestion, and also to all who replied. I'll just be careful.
_____________________
Vincit omnia Chaos From: Flugelhorn McHenry Anyway, ignore me, just listen to the cow
|