Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Taking rez'd objects into an object's inventory

Siannah Ihnen
My script did WHAT?
Join date: 8 May 2007
Posts: 4
03-07-2008 23:10
As some background to this query I have a standard 512m block with 117 prims and too many things to have out at once. To overcome this I spent a couple of hours creating a prim that contains configuration files (notecards) that lists the objects I want to rez at different times. The objects in the prim are:
- A number of notecards with object names, locations and rotations on each line
- A number of objects (named as per the notecard)
- Scripts (identical) with the same name as the different notecards

I name the notecards and scripts things like lounge, kitchen, patio etc and the notecard contains the objects I want in each room.

When the prim rezzes it runs the scripts, each script reading the notecard with the same name. This gives it the list of items to place in the room. The scripts listen on a channel and when I issue the command (for example) "/10 lounge unpack" the script checks that it is the lounge script and if the lounge is currently still in the box it positions each of the lounge objects according to the notecard configuration. To put the items back in the box I say (e.g.) "/10 lounge pack" and if the lounge is unpacked it sends a script to the objects which delete themselves.

My problem is this only works for objects I have copy and modify rights to, which is pretty much only the objects I have created . Rather than delete the rez'd objects I'd rather do something like take the rez'd object and put it back into the prim's inventory. I can't find anything that seems to do this. Is it possible to do? I'm getting desperate and frustrated. Any help would be gratefully received.

Siannah
_____________________
"Wow, I didn't expect the script to do that!"
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
03-07-2008 23:58
unfortunately the is no way to take an inworld object to another objects inventory, the closest is the pie menu command to save back to inventory, but I don't know if that would work at all on no-copy objects... the only thing you can do is manually take the objects to your inventory and then dump them into your rezzor again...

yet another reason I don't buy no copy furniture
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Siannah Ihnen
My script did WHAT?
Join date: 8 May 2007
Posts: 4
I thought it was too much to hope for
03-10-2008 01:48
Thanks for answering. I'm off shopping for copy/mod furniture.

Hopefully a llTakeObjectIntoInventory(key ObjectKey) function will make its way into LSL one day.
_____________________
"Wow, I didn't expect the script to do that!"