|
Brent Upshaw
Registered User
Join date: 13 Feb 2007
Posts: 4
|
09-22-2007 05:49
I have an object rezzer with a variety of objects in its contents. when a person rezzes an object, I want to be able to record the key of that agent in the object in the original inventory, then rez the object with the key already in the object's description. Basically this is an inventory control mechanism. Even if I use linked messages to set the rezzed object's description, I would still like to set the description of the object in the inventory, rather than creating a massive list in the rezzer's description. Is that posible?
Thanks!
|
|
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
|
09-22-2007 06:34
You can only set the description of the object in which the script is running, and scripts can only run in objects rezzed in-world, so it's not possible to do what (I think) is desired. But if it's what I think, it wouldn't work anyway because the object when rezzed will get a new UUID, so it's not clear what would be accomplished by recording in an Inventory object the UUID of the last-rezzed copy of the object.
I'd guess that the "inventory control" objective might be better met by just recording in a script variable the UUIDs returned in the object_rez event (or handing them off to an external server for DB manipulation).
|
|
Brent Upshaw
Registered User
Join date: 13 Feb 2007
Posts: 4
|
clarification
09-22-2007 07:07
thanks for the reply. the script variable is a possibility. Just to clarify, I don;t want to change the object's id or key. What I want is to record the id or key of the person/agent who has rezzed the object into the object's description. This is part of a library system I'm trying to build. I want to keep track of who has an object, and manage the inventory by recording data (agent who has signed out book, date signed out, page marker) into the object (book) description.
|
|
Chrysala Desideri
Scarlet Scriptrix
Join date: 4 Mar 2007
Posts: 65
|
09-26-2007 14:44
ah -- very interested in this. you're saying that it returns the key of the newly rezed object?
i can't get in right now, if i rez a hotlinked bundle of prims, what will an object_rez obtain? can i have it get a bundle of keys and then mass llemail a newly generated channel to them for communications,something like that?
would it have multiple hits of the event? or return what, a list? i so want tot ry this out... grrr connecting to region forever
|