Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Simple Question

Dahlia Genira
Registered User
Join date: 29 May 2009
Posts: 8
08-26-2009 00:13
When you take an item back into inventory is there a way to have it change its name.

For example: On rez it sets a new name, when it is picked up can it change its name back to the default name?
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
08-26-2009 00:20
If I understand what you are asking, I don't think so. When you pick the object up, SL puts the entire object and all of its scripts "on ice". Consequently scripts can't know when they are "picked up" and placed into your inventory. Even if they could, they don't run in your inventory, so they couldn't react to it anyway.

They can only know when they rez, when the on_rez event fires.
Dahlia Genira
Registered User
Join date: 29 May 2009
Posts: 8
08-26-2009 01:21
Tha'ts what I figured but I had to ask.

Thank you Talarus
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
08-26-2009 02:20
exception would be attachments... two effects in play there...

effect one:
object name changes on worn attachments are ignored when they go back to inventory

effect two:
you may be able to get the attach event to fire when an object is taken off, but most people can't get this to happen consistently before the objects goes to inventory
_____________________
|
| . "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...
| -
ElQ Homewood
Sleeps Professionally
Join date: 25 Apr 2007
Posts: 280
08-26-2009 04:22
From: Void Singer
exception would be attachments... two effects in play there...

effect one:
object name changes on worn attachments are ignored when they go back to inventory

effect two:
you may be able to get the attach event to fire when an object is taken off, but most people can't get this to happen consistently before the objects goes to inventory

Yes, it works for attachments. I've not run into a problem with this not happening, but I've had customers tell me that once in a while it keeps the name when it goes back into inventory but then the next time it works correctly, and works most of the time.