Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Multiple Identical Scripts

Acex Steele
Registered User
Join date: 22 Dec 2004
Posts: 7
01-28-2005 19:07
Anyone have any idea if there is a way to make a script duplicate itself and also force the duplicate to have a different UUID then the original script..

llGiveInventory and llRemoteLoad both only copy the original script and the copy retains the old UUID.

Or maybe is there a way for a script to force itself to reset it's own UUID?
Hank Ramos
Lifetime Scripter
Join date: 15 Nov 2003
Posts: 2,328
01-28-2005 19:08
A new UUID would require the creation of a new script ( and in a similiar situation, a notecard), which isn't possible through LSL scripting.
Acex Steele
Registered User
Join date: 22 Dec 2004
Posts: 7
01-28-2005 19:19
Dangit!
Kurt Zidane
Just Human
Join date: 1 Apr 2004
Posts: 636
01-28-2005 19:36
Only one way, and it's probable not what you want. Put the script you want to have duplicated in an object, put that object in another object. Add a rezzing script. Then you can use the rez script to rez the object as many time as need. But then you have allot of objects, and have to deal with listens.

If you find a better way, will you let me know?
Acex Steele
Registered User
Join date: 22 Dec 2004
Posts: 7
01-28-2005 20:08
Yeah but that still doesn't fix the problem of the same UUID. The scripts in all of the rezzed objects all have the same UUID.
JustAnother Millhouse
Registered User
Join date: 26 Dec 2004
Posts: 31
01-28-2005 21:13
Would that still be the case if you click on the sub-object, and did new script, pasting in the same script but saving it inside there would give it a new UUID would it not?
Acex Steele
Registered User
Join date: 22 Dec 2004
Posts: 7
01-29-2005 17:31
Nope, not unless you recompiled the script after copying it.
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
01-29-2005 18:22
you would think they would have fixed this problem by now.

The scripts run but they don't recieve events properly.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey