|
Phaedra Varriale
Registered User
Join date: 30 Sep 2007
Posts: 12
|
10-25-2007 17:59
I have just recently started my first project using LSL , and I wanted to ask what function to use if an avatar has clicked on an inanimate object that then requests that the avatar type one of two options in the chat , how can I get the object to realise if the avatar types this in chat and to then carry out the process that is associated with that word? Thank You
|
|
Anti Antonelli
Deranged Toymaker
Join date: 25 Apr 2006
Posts: 1,091
|
10-25-2007 19:30
llListen http://www.lslwiki.net/lslwiki/wakka.php?wakka=llListenThe example down a bit on that page does very much what you're after - it listens for avatar chat, then if the chat matches a key word it performs a particular process.
|
|
Saskia McLaglen
Registered User
Join date: 18 Jan 2007
Posts: 21
|
10-26-2007 01:09
Hi Phaedra Please consider using a non-zero channel (i.e. not in open chat, on a private channel) for your object to listen for a reply on. The wiki does mention this but then it proceeds to use channel zero in the examples. You should use llListenRemove to deactivate the listen once your answer has been received, or in a timer should your user walk away from the device without giving an answer. Also, you could use llDialog to present your user with some menu choices (blue on screen menu) with buttons to press to give their response with. http://rpgstats.com/wiki/index.php?title=LlDialog
|