Jump to content
trivis

changing object description of inventory object

Recommended Posts

Dear scripters,

I am looking for a way to change the object description of an item i have in the content tab of a giver object.

The idea is that when someone touches the main object the description of the object to give away will be changed first, so i can make the gift more personalized.

Havent found a way yet to do so. Was wondering if it is possible, and if yes, how so?

 

Thanks in advance!

Share this post


Link to post
Share on other sites

Unfortunately, there's no way to change the description field of an object while it is in the giver object's inventory, so you'll need a way to do it after it leaves there. Rachel's suggestion will be fine if the giver object is actually going to rez the new object and the intended recipient is going to somehow be able to take ownership of it. If the giver object simply sends the new object directly to the new owner, however, it will never be in world to receive the giver object's message, so that suggestion won't work.

Depending on what sort of "personalization" you want to put in the Description field, you could write a short one-time script that contains a canned message to be written the first time the new object is rezzed. Something like ....
 

default
{
    on_rez(integer startup)
    {
        llSetObjectDescription("This object was rezzed for the first time on " + llGetDate() );
        llRemoveInventory(llGetScriptName());
    }
}

 

Edited by Rolig Loon
  • Like 1

Share this post


Link to post
Share on other sites

It's not stated whether the object is intended to be worn, so don't forget that if you do change the description of an attachment it will revert to the original when it's detached.

  • Like 2

Share this post


Link to post
Share on other sites

what you could is have the object giver rez the object, tell the object what to change the description to, and who to give it to. the object can then change the description and request to attach to the recipient essentially giving it to them

  • Like 1

Share this post


Link to post
Share on other sites

Thank you all for your response! Highly appriciated.

In the most simple version it would be nice to give the gift a 'unique' number of a sequence... That is: the first recipient will get numer 1, the second numer 2, the third nr3 and so on... But it is clear to me that i have to find another way :-)

Thanks again!

trivis

Edited by trivis

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...