These forums are CLOSED. Please visit the new forums HERE
Problems with llGiveMoney() |
|
|
Aqua Therian
Registered User
Join date: 6 Jul 2004
Posts: 8
|
11-28-2004 04:49
An associate and I are midway through writing a fairly large system that uses a lot of llGiveMoney() calls. Our problem is that the object needs to be able to know when one of these calls has failed. This could easily be handled by making llGiveMoney()'s return variable be an integer that is given a TRUE or FALSE value. Another possible solution to the problem would be to allow the object to get its owner's current balance of $L.
|
|
LordJason Kiesler
imperfection inventor.
Join date: 30 May 2004
Posts: 215
|
11-28-2004 05:26
An associate and I are midway through writing a fairly large system that uses a lot of llGiveMoney() calls. Our problem is that the object needs to be able to know when one of these calls has failed. This could easily be handled by making llGiveMoney()'s return variable be an integer that is given a TRUE or FALSE value. Another possible solution to the problem would be to allow the object to get its owner's current balance of $L. W00T agreed 100 * 1.1; _____________________
"no, my alt is clean on crashing any sims"
|
|
Timeless Prototype
Humble
Join date: 14 Aug 2004
Posts: 216
|
11-28-2004 07:08
...
transId = llGiveMoney(theAgentId, amount); } money (key transactionId, key agentId, integer amount, integer reponse) { if (response == MONEY_GIVE_FAILED) { ... } else if (response == MONEY_GIVE_SUCCESS) { ... } } (over simplified, but you get the idea) Think about how the data service features currently work. _____________________
|
|
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
|
11-28-2004 11:01
... transId = llGiveMoney(theAgentId, amount); } money (key transactionId, key agentId, integer amount, integer reponse) { if (response == MONEY_GIVE_FAILED) { ... } else if (response == MONEY_GIVE_SUCCESS) { ... } } (over simplified, but you get the idea) Think about how the data service features currently work. I think it would be better just to change the return value of llGiveMoney. Currently, LL cant overload events, so adding a new argument to money() would kill all currently running scripts that use the old event. Not only that, but I think adding new arguments to money() that are concerned with giving money, when the event is currently only concerned with recieving money, creates a confusing situation. ==Chris |
|
Issarlk Chatnoir
Cross L. apologist.
Join date: 3 Oct 2004
Posts: 424
|
11-28-2004 15:28
Totally for, the TRUE/FALSE return value would be great. I just had the same problem with a script.
_____________________
Vincit omnia Chaos
Anyway, ignore me, just listen to the cow |
|
Cross Lament
Loose-brained Vixen
Join date: 20 Mar 2004
Posts: 1,115
|
11-28-2004 16:27
A lot of LSL functions could use a TRUE/FALSE return value, I think...
_____________________
- Making everyone's day just a little more surreal -
Teeple Linden: "OK, where did the tentacled thing go while I was playing with my face?" |
|
Khamon Fate
fategardens.net
Join date: 21 Nov 2003
Posts: 4,177
|
11-28-2004 19:51
A lot of LSL functions could use a TRUE/FALSE return value, I think... /double stamp in triplicate _____________________
Visit the Fate Gardens Website @ fategardens.net
|
|
blaze Spinnaker
1/2 Serious
Join date: 12 Aug 2004
Posts: 5,898
|
11-29-2004 00:13
Yeah, this is terribly necessary.
_____________________
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." |