Anything other than llInstantMessage?
|
Archaegeo Platini
Ancient Earth University
Join date: 12 Aug 2004
Posts: 152
|
08-17-2004 14:48
If i want to have an object respond to the owner only, i know there is llWhisper and llInstantMessage, but the former can be heard by others nearby, and the latter puts the script on a 10sec delay. Is there no way to message(key, <message>  ; or somethign similiar? Thanks
|
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
|
Re: Anything other than llInstantMessage?
08-17-2004 15:11
From: someone Originally posted by Archaegeo Platini If i want to have an object respond to the owner only, i know there is llWhisper and llInstantMessage, but the former can be heard by others nearby, and the latter puts the script on a 10sec delay.
Is there no way to message(key, <message> ; or somethign similiar?
Thanks Actually, its only 1 second, since... 1.1 I think  You could spawn a dialog using llDialog, but that has its own delay as well. ==Chris
|
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
|
08-17-2004 16:40
Ehm, back up sparky. If you want it to respond to the owner only there are two ways to do it: 1) Selective Listener:Example: llListen(0,"",llGetOwner(),""  ; 2) A password via convenient, private channelExample: llListen(123,"","","open sesame"  ; The owner would then say "/123 open sesame" to have it respond. Note this does NOT print in local chat, or any chat interface for that matter, unless someone else knows what channel to have a listener listen on. Or, combine the two: llListen(123,"",llGetOwner(),""  ; ... though that's usually overkill. Now, if you'd like the sucker to respond back to the user? llInstantMessage works, as does llDialog, or a simple attachment that whispers a heard command on another channel, or... Hope that helps. 
|
Upshaw Underhill
Techno-Hobbit
Join date: 13 Mar 2003
Posts: 293
|
08-18-2004 00:12
Sounds like he was asking for a private message from the script to the AV. llDialog(llGetOwner(),"message",[],1); The channel doesn't matter since you aren't looking for feedback. The list is blank so you just get OK and Ignore. In a quick test in an unloaded sim I got 2 seconds + overhead from an llInstantMessage and a 1 second + overhead with an llDialog. One major difference is that llIM is recorded to chat history. llDialog isn't. UU
|
Azelda Garcia
Azelda Garcia
Join date: 3 Nov 2003
Posts: 819
|
08-18-2004 01:10
Well, probably over 80% of what you want said doesnt need to be confidential?
Why not do this: - use llInstantMessage for stuff that needs to be confidential - use llWhisper for general debug stuff - use SetText for high-performance, spamfree messages
SetText is spam-free and very fast. It's also great when you want to monitor multiple objects at once.
Of course SetText is a little harder to set up than just a pure llWhisper, so you can use llWhisper for general easy-to-impliment debug messages.
Just my two RMB...
Azelda
|
Archaegeo Platini
Ancient Earth University
Join date: 12 Aug 2004
Posts: 152
|
08-19-2004 09:12
The problem with whisper is that it is sloppy (to me) and annoying to anyone near enough to hear it who doesnt care.
Case in point, a lot of the dancemachines whisper whenever someone joins em, and all the dancers and anyone not dancing near the machine have to be told.
So for now just going with llMessageLinked and a seperate script that handles the IM'ing so the 2 sec pause doesnt affect the primary script execution.
There should be a llMessage function of the format....
void llMessage(int MESSAGE_CATAGORY, string message, key target, {keys notell});
|
Azelda Garcia
Azelda Garcia
Join date: 3 Nov 2003
Posts: 819
|
08-19-2004 09:54
Yes, you're right, getting messages from objects does suck. It's one reason we need a really fast non-delayed way of writing to a notecard or to a temporary debug file.
Some other options that we didnt cover: - click the dancemachine to turn messages on/off - send messages as a shout in a secret channel. You wear an attachment when you want to hear them, or translate them into settext, or convert them into IMs.
But yeah it'd be nice to be able to receive the messages in different windows according to the category/channel of message. Receiving messages via an attachment does help a little because you can configure it at runtime to only send you messages of your choice.
Azelda
|
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
|
08-20-2004 01:48
Ahhh, just what we need... a SL binary morse code machine. Sorry, someone had to say it.  I wonder if there would be sufficient interest in such a widget. I think IM kinda bests it... but it would be a nifty addition to a WW2 simulator. ... that doesn't involve Rausch, anyway.
|