Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Can an object detect names and say a message to certain ones?

Ilianexsi Sojourner
Chick with Horns
Join date: 11 Jul 2004
Posts: 1,707
04-09-2007 19:49
Hello! I'm curious whether a certain object I have in mind would be possible to script. I'm a complete novice when it comes to scripting, so I thought I'd ask here.

What I'd like to make is an object that will have a list of names-- people who are allowed to be in a certain private area. If the object detects anyone whose name isn't on that list, it says something-- some sort of set message. It wouldn't do anything to them, just say the message.

Is it possible to script something like this? I don't want to make any kind of obnoxious security thing with it, more of a joke item to amuse friends. Can it be done? Thanks! :)
_____________________
Everything's impossible,'till it ain't. --Ben Hawkins, Carnivale

Help build a Utopian Playland-- www.doctorsteel.com. Music, robots, fun times!
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
04-09-2007 23:19
Yes, what you are looking for is easily possible.

For detection of avatars, you'll want to look at:

llVolumeDetect(); (preferred)

and

llSensorRepeat(); (sometimes necessary)


For filtering a list:

llListFindList();

For saying a message:

llWhisper();
llSay();
llShout();
llInstantMessage();
_____________________
--AeonVox--

Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.
Ilianexsi Sojourner
Chick with Horns
Join date: 11 Jul 2004
Posts: 1,707
04-09-2007 23:20
Awesome, thanks! I'll do some searching for those.
_____________________
Everything's impossible,'till it ain't. --Ben Hawkins, Carnivale

Help build a Utopian Playland-- www.doctorsteel.com. Music, robots, fun times!