|
Landing Normandy
Proposing 4968
Join date: 28 Nov 2005
Posts: 240
|
08-31-2008 14:52
I have a need for a script that can set the description of an item in its contents; a particular item and a particular description. The script should then delete itself. Is this possible? And if so, can someone point me in the right direction? Thanks
_____________________
<VOTE PROPOSITION 4968/> http://jira.secondlife.com/browse/VWR-4968 For SecondLife Builders who need better mapping for better building
|
|
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
|
08-31-2008 15:04
For all I know it can not be done in LSL llSetObjectName() can change the name of the prim it is in, that's it. See: http://www.lslwiki.net/lslwiki/wakka.php?wakka=llSetObjectName
_____________________
From Studio Dora
|
|
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
|
08-31-2008 15:30
Nope, can't affect object inventory in this way.
Likewise, you can't read or write to an inventory item's description.
Nor can you get/set script description. nor can you (sadly) GetText. Meaning that the only space you have to store information, is in the mother object's name and description, and in script memory.
_____________________
 ● Inworld Store: http://slurl.eclectic-randomness.com ● Website: http://www.eclectic-randomness.com ● Twitter: @WinterVentura
|
|
Landing Normandy
Proposing 4968
Join date: 28 Nov 2005
Posts: 240
|
08-31-2008 15:49
Hmm, OK, never mind. The story is basically that I have done an LSL-to-Web-to-LSL script for a friend where all he does is set an ID in an objects description. When it's rezzed it gets all its configuration from the web and sets all the necessary values for him. It makes setting up individual items for sale a breeze and updating them doesn't require any more than changing a value or two externally, without ever entering SL. What I wanted to do was to allow him to set a single value on his vendor and it would load all the parameters and configure the content. I know there are other ways but it's not ideal for his purpose. He'll just have to manually set the descripion himself.
Still need to know how to delete a script after it's done with though... Thanks for the help
_____________________
<VOTE PROPOSITION 4968/> http://jira.secondlife.com/browse/VWR-4968 For SecondLife Builders who need better mapping for better building
|
|
Cheree Bury
ChereeMotion Owner
Join date: 6 Jun 2007
Posts: 666
|
08-31-2008 16:25
From: Landing Normandy Still need to know how to delete a script after it's done with though...
llRemoveInventory(llGetScriptName()); will delete itself;
_____________________
Visit ChereeMotion - Life's Best Pinup Poses http://slurl.com/secondlife/Wild%20Rice/38/230/51
|
|
Landing Normandy
Proposing 4968
Join date: 28 Nov 2005
Posts: 240
|
08-31-2008 16:28
Ah, perfect, thank you
_____________________
<VOTE PROPOSITION 4968/> http://jira.secondlife.com/browse/VWR-4968 For SecondLife Builders who need better mapping for better building
|