Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Help with listens!

Maeve Morgan
ZOMG Resmod!
Join date: 2 Apr 2004
Posts: 1,512
02-01-2005 22:10
Ok I am a lame scripter at best and I am trying to figure out listens I want something to listen to something you say then respond back, can someone help me?
_____________________


Located in Shark
Everything under $100L
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
02-02-2005 05:45
Yes, but what do you want?

You need to set up the listen - there are lots of threads about that at the moment, but a line somewhere saying:

listenID=llListen(90,"","","";);

or similar will do.

Then the listen event like:

listen(integer channel, string name, key ID, string message)
{
some code in here
}

The code works best with if statements, so you need to think about what might be said, and what replies you might want.

In order to reply you want to think about:

llSay()
llWhisper()
llShout()
llInstantMessage()
or
llEmail()

These will all make the object respond by saying, IMing etc. If you want to enter a more controlled logic tree the llDialog() command is useful too.

More advice on handling these from: http://secondlife.com/badgeo/wakka.php?wakka=Communications
Kyrah Abattoir
cruelty delight
Join date: 4 Jun 2004
Posts: 2,786
02-02-2005 07:15
do no forget to delete the listener once you are done !!! llListenRemove(Handler);
_____________________

tired of XStreetSL? try those!
apez http://tinyurl.com/yfm9d5b
metalife http://tinyurl.com/yzm3yvw
metaverse exchange http://tinyurl.com/yzh7j4a
slapt http://tinyurl.com/yfqah9u