|
Django Yifu
Beat Island Gaffer
Join date: 7 May 2007
Posts: 189
|
03-12-2008 16:31
I'm trying to discover a way to check if an avatar is wearing one of two attachments when they access an llDialogue call. The dialogue has two options "Repair" and "Sabotage" I am using some whispers to check if the objects are being worn and that seems to work as a sensor won't. The problem I have is getting the script to tell the avatar if they are not wearing the correct object. Eg. "Sorry your spanner is not attached" what check can be used if a message is not received. I have tried else's and else ifs and the script always seems to Spit out my "No spanner" and "No sabotage" messages whether the objects are being worn or not Any suggestions along the else (message != "Spanner!"  lines (obviously this doesn't work but you get the idea of what I want to do I hope)
_____________________
Tread softly upon the Earth for you walk on my face.
|
|
Nyoko Salome
kittytailmeowmeow
Join date: 18 Jul 2005
Posts: 1,378
|
03-12-2008 16:51
humm!! sounds like you've found channels you were not expected to find otherwise...
_____________________
 Nyoko's Bodyoils @ Nyoko's Wears http://slurl.com/secondlife/Centaur/126/251/734/ http://home.comcast.net/~nyoko.salome2/nyokosWears/index.html "i don't spend nearly enough time on the holodeck. i should go there more often and relax." - deanna troi
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
03-12-2008 17:58
I would probably make use of a reasonable timeout. If the expected message isn't received in 0.5 seconds (or maybe 1-2 seconds; whatever you think is reasonable for the application and the sim load and such), then assume the attachment isn't worn. (If there is no tree falling noise in the forest, then did no tree fall, or was there no one there to hear it?  )
|