Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Q: firing changed() ?

Jexx Rayner
Registered User
Join date: 30 Jun 2006
Posts: 16
07-17-2006 10:25
Just a quick question. Suppose an object is contained in the inventory of another object scripted so that when it comes into contact with an agent it offers to give the inventory object to that person. If the person accepts that inventory object will this fire the changed() with CHANGED_OWNER?

I am trying to test this myself but since I am the original owner I cannot see it firing...

Thanks,
Jexx
Catherine Omega
Geometry Ninja
Join date: 10 Jan 2003
Posts: 2,053
07-17-2006 11:43
I suspect that it probably won't trigger changed() with CHANGED_OWNER, but if the inventory item is no-copy, it should change CHANGED_INVENTORY when the item is removed.

Let us know what you find out.
_____________________
Need scripting help? Visit the LSL Wiki!
Omega Point - Catherine Omega's Blog
Jexx Rayner
Registered User
Join date: 30 Jun 2006
Posts: 16
07-17-2006 15:44
Nope, the no-copy flag was already set but nothing in the changed event was firing...

So am I to assume there is no way for a script to know/act when a transferrable object is picked up? Anyone have a workaround for this?

Thanks
-Jexx
Joannah Cramer
Registered User
Join date: 12 Apr 2006
Posts: 1,539
07-17-2006 19:04
From: Jexx Rayner
Anyone have a workaround for this?

Store owner key in a variable, retrieve/compare with last value in the on_rez event, if they differ then the owner has changed, update the variable and react accordingly..? ^^;
Angela Salome
Registered User
Join date: 6 Oct 2005
Posts: 224
07-18-2006 03:15
From: Jexx Rayner
Just a quick question. Suppose an object is contained in the inventory of another object scripted so that when it comes into contact with an agent it offers to give the inventory object to that person. If the person accepts that inventory object will this fire the changed() with CHANGED_OWNER?


Yes, once the object is rezzed.
Seagel Neville
Far East User
Join date: 2 Jan 2005
Posts: 1,476
07-18-2006 19:28
From: Jexx Rayner
Nope, the no-copy flag was already set but nothing in the changed event was firing...

So am I to assume there is no way for a script to know/act when a transferrable object is picked up? Anyone have a workaround for this?

Thanks
-Jexx
I guess that what Catherine told was no-copy object, not no-copy flag for the next owner. But I admit that it is very incovenient in all purposes. And I've reported that no-copy objects disappear completely when someone refuse to take it. Has that been solved yet?
_____________________
:) Seagel Neville :)
Angela Salome
Registered User
Join date: 6 Oct 2005
Posts: 224
07-19-2006 02:30
From: Seagel Neville
And I've reported that no-copy objects disappear completely when someone refuse to take it. Has that been solved yet?


I recall seeing that on Linden's defect list somewhere. They said the no-copy item should go in the receiver's trash, instead of vanishing.
Seagel Neville
Far East User
Join date: 2 Jan 2005
Posts: 1,476
07-19-2006 03:51
From: Angela Salome
I recall seeing that on Linden's defect list somewhere. They said the no-copy item should go in the receiver's trash, instead of vanishing.
Did you confirm it by yourself? I lost an object worth L$2,500 to test this! :eek: :mad:
Oh, sorry, I forgot it. It happened in the preview grid. :D
Linden might have promised to fix it after 1.13.x or later. ;)
_____________________
:) Seagel Neville :)
Angela Salome
Registered User
Join date: 6 Oct 2005
Posts: 224
07-19-2006 04:05
From: Seagel Neville
Did you confirm it by yourself? I lost an object worth L$2,500 to test this! :eek: :mad:
Oh, sorry, I forgot it. It happened in the preview grid. :D
Linden might have promised to fix it after 1.13.x or later. ;)


"They" meaning the Lindens.
Seagel Neville
Far East User
Join date: 2 Jan 2005
Posts: 1,476
07-19-2006 04:13
Sorry, it was because of my poor Englsih. :o
What I said "Linden" meant "the Lindens" as well as you said.
I knew what you were talking about and it was just a joke.
I just wanted everyone to know that it had not been fixed yet.
It was just the attention preventing to lose your items.
_____________________
:) Seagel Neville :)