Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Need to find my friend's UUID (very new to scripting)

Phil Moore
Sweet Piece
Join date: 30 Apr 2006
Posts: 32
05-21-2006 14:01
More like a huge fan of the Scripting Library. :) Thanks to the smart folks!

I have Timeless's Door Script, from the Wiki. It works well. I just can't figure out how to get my buddy's UUID - to allow him entrance through the locked door.

I read that there are several free objects in game that will do this for me. I'm new enough (21 days), that I still haven't found anything like this.

If someone could point me to a "Key(UUID, not avatar name) Detector, or a piece of script that a novice could use to accomplish this, I would be eternally grateful.

Thanks in advance,
Phil
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
05-21-2006 14:13
CODE

default
{
touch_start(integer t)
{
llOwnerSay((string)llDetectedKey(0));
}
}
Phil Moore
Sweet Piece
Join date: 30 Apr 2006
Posts: 32
Wow, thanks.
05-21-2006 14:24
Thanks for responding so quickly.

I went to compile the script - and it's giving me a syntax error on line 2, char 16. Any ideas?

Thanks again.
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
05-21-2006 14:34
i changed it, just wasnt thinking about it heh sry
Phil Moore
Sweet Piece
Join date: 30 Apr 2006
Posts: 32
Oops
05-21-2006 14:35
2,24 - sorry.

(And yes I am looking at the WIKI right now trying to learn about "integer touch".) :)
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
05-21-2006 14:37
touch cant be used becuase its an event, thus the error

the (integer whatever) can be used to determine how many times the object was touched, so if you have a dozen ppl hammering the script it can keep track of who and when
Phil Moore
Sweet Piece
Join date: 30 Apr 2006
Posts: 32
Weird
05-21-2006 14:40
That compiled successfully, but it doesn't give a touch option in the menu.

Sorry to be a PITA. I obviously don't have a clue . . .
Phil Moore
Sweet Piece
Join date: 30 Apr 2006
Posts: 32
Oops part 2
05-21-2006 15:11
Duh. The script works perfectly.

I guess it was a total noob mistake on my part. I had put the script into a cone, not a cube. I didn't think it would matter what shape I added it to. And maybe it shouldn't. Whatever - it works and my day isn't wasted.

Thanks so much, Os. This little script might be helpful in the Library. I won't presume to put it over there, because I couldn't even hope to write it! :)

IM me in game and come see if there's anything at my store you might like to have as a comp.
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
05-21-2006 18:44
well, it shouldnt matter what the prim is, probally what happened is, when you save a script with a error in it, the little running box gets turned off (lower right hand of the window)

thats kinda screwy in itself ... you cant save while having the error, but if you close the scripting window, it will shut off the script and save...

anyway glad to be some help, and dont worry bout comps or anything, that little snippet of code is common :)