Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Script to rez and derezz objects from inventory

Betwixt Epsilon
Registered User
Join date: 22 Aug 2005
Posts: 3
09-25-2005 14:42
I have a first land plot and as you all know a very small prim allotment comes with that :-) Therefore I cannot fully furnish the two-floor house I am building. So my simple idea is that I only really need furniture on the floor I am on. So I would like to write (preferrably adapt) a script that will allow me to de-rezz a list of named objects into my inventory and a separate script to rezz a list of named objects from my inventory to precise locations. That way, I can basically invoke these scripts as I teleport from floor to floor always having furniture on the floor I am on. Is there anything close to this that exists already? Is there some reason why this cannot be done? Thanks in advance for your help.

(My first post to the forums folks... so be gentle :-)

P.S. And also a thanks to Teneo Hope whose personal teleporter script I am using to save on the prims needed for stairs.
Zapoteth Zaius
Is back
Join date: 14 Feb 2004
Posts: 5,634
09-25-2005 14:47
From: Betwixt Epsilon
I have a first land plot and as you all know a very small prim allotment comes with that :-) Therefore I cannot fully furnish the two-floor house I am building. So my simple idea is that I only really need furniture on the floor I am on. So I would like to write (preferrably adapt) a script that will allow me to de-rezz a list of named objects into my inventory and a separate script to rezz a list of named objects from my inventory to precise locations. That way, I can basically invoke these scripts as I teleport from floor to floor always having furniture on the floor I am on. Is there anything close to this that exists already? Is there some reason why this cannot be done? Thanks in advance for your help.

(My first post to the forums folks... so be gentle :-)

P.S. And also a thanks to Teneo Hope whose personal teleporter script I am using to save on the prims needed for stairs.


Well.. You can rezz objects from an objects inventory, so you'd take them from your personal inventory and add them to the "contents" tab of an object, and have a script in there to rez them.. But to de-rez you'd have to delete them I believe, since there is no "take" script function. So you'd have to have copiable furniture..

So you'd need to send a message out when you teleport, to rez the furniture on the level you are traveling to, and delete the furniture on the floor your leaving or the remaing floors.

I don't think theres a script like this that currently exists.. So you'd probably have to write it yourself or commision someone to do it for you, but I have a feeling it'd be a pretty laggy script.. But it might be able to be helped with how its written, I'm not a very acomplished scripter, as you might have guessed :p

Quick! I need a clever scripter to come and tell me I'm wrong/right ;)
_____________________
I have the right to remain silent. Anything I say will be misquoted and used against me.
---------------
Zapoteth Designs, Temotu (100,50)
---------------
Gabrielle Assia
Mostly Ignorant
Join date: 22 Jun 2005
Posts: 262
09-25-2005 14:49
Perhaps you could have a box (single prim) on each floor
which contains all the furniture you want on that floor.

It would have a touch event that would rez and place the
items where you want. Perhaps also derez the items
on the other floors first? Or, one click to rez, and another
click to derez.

Gabrielle
Gabrielle Assia
Mostly Ignorant
Join date: 22 Jun 2005
Posts: 262
09-25-2005 14:52
Looks like Zapoteth was posting at the same time I was.

After reading his post I thought that perhaps each piece'
of furniture could also contain a script that contained a
"listen" event which would derez the items when a certain
word was spoken from the owner.

Since we are talking about a small plot of land and so not
many pieces of furniture, I think this should not be too laggy.

Gabrielle
Zeno Concord
To infinity, and beyond!
Join date: 28 Mar 2005
Posts: 51
Hide-a-room
09-25-2005 17:11
I have been working on a vendor that rezzes several objects at once, and removes them before rezzing another set. Sounds like this could be adapted to your need for a Hide-a-room.

It also tracks where you move the objects to so that the next time they are rezzed, they are put back in the same place.

Zapoteth is correct that the objects must be copyable since there is no way to Take the objects back (rezzing a non-copyable object removes it from the inventory or contents where it came from). So this is a major deficiency; LSL must be changed if this is ever going to work. It is ok for my application because the objects are all freely copyable.
Ben Bacon
Registered User
Join date: 14 Jul 2005
Posts: 809
09-26-2005 02:01
From: Gabrielle Assia
Since we are talking about a small plot of land and so not
many pieces of furniture, I think this should not be too laggy.
... remember that the more pieces of furniture you can link to each other, the fewer listens you will need.