Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Events

Kaylan Draken
Registered User
Join date: 2 Dec 2006
Posts: 127
01-19-2008 01:45
Hi Everybody,

I am searching for a event that triggers when a object is 'take' back to the
inventory by its owner.

I made a script which change the objectname and i want to set it back to the orginal
name when the owner takes it back. Is this posible?

I have searched at the wiki but can only find this for attached objects and not
for other objects.

Thanks,

Kaylan
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
01-19-2008 02:00
attach triggers when you take off a worn object... past that you'll want to stick it in the on_rez event
_____________________
|
| . "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...
| -
Kaylan Draken
Registered User
Join date: 2 Dec 2006
Posts: 127
01-19-2008 05:15
I don't attach the object (its a kind of signboard).

So far i know will the On_rez event only trigger if you rez something from the somewhere (inventory or other object) to 'in world' (but maybe i am wrong).

I am searching for some event that triggers when you take something back from 'in world' to your inventory.
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
01-19-2008 06:00
I take it you want the name to revert so it's right in inventory... not much help for that unless you change the name on the fly as needed, always reverting to the object name. AFAIK there is no other event that will fire on inventory take or derez...

you might try moving start/end or at_target (only a guess but since things seemt to register at <0,0,0> when first picked up by the sim, maybe they'd register there on leaving?)
_____________________
|
| . "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...
| -
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
01-19-2008 06:11
Why is the object name changed in the first place? For chat? Can you put the scripts that depend on the name change in a child prim and only change the name of that? That way the inventory name of the object (same as the root prim's name) won't be affected.
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
01-19-2008 06:53
Would it help any if you changed the Object Description instead?

Guess what we are all really asking is for more information from you. Then we should be able to come up with some better suggestions/workarounds.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Kaylan Draken
Registered User
Join date: 2 Dec 2006
Posts: 127
01-19-2008 10:13
I made a 1 prim sign with a picture of a person what say a oneliner/joke every time interval.
The owner can change the picture and time interval with a menu.

Depending on which picture the owner choice the name of the object change.

All works fine only i want to change the object name back to its original name so that sign always have the same name in the inventory.

Its a shame that there is no de_rez event:(

Thanks guys for your answers :)
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
01-19-2008 11:29
Perhaps you could change the name of the sign just long enough to chat, then change it back.
Kaylan Draken
Registered User
Join date: 2 Dec 2006
Posts: 127
01-19-2008 12:44
Thanks Hewee thats a great idea.
That i didn't think of that :(

but all thanks for your input :)