Disabling whispering
|
|
MadamG Zagato
means business
Join date: 17 Sep 2005
Posts: 1,402
|
04-05-2006 07:12
Does anyone have a solution to disable whispering in an object or set of objects? I know that they can be muted but I am looking for something scripted where I can say 'whipser off' and 'whisper on' So that the object(s) will obey. =)
|
|
Michael Martinez
Don't poke me!
Join date: 28 Jul 2004
Posts: 515
|
04-05-2006 07:38
That would have to be some feature in the script. If programmed for llWhisper, then it will do that, but if script have the ability to turn off that whisper then you could, so if you can modify the script you can turn it off, other wise only way is to mute it 
_____________________
There are no significant bugs in our released software that any significant number of users want fixed. (Bill Gates)
|
|
Crush Gable
Registered User
Join date: 4 Apr 2006
Posts: 10
|
04-05-2006 11:57
Got it michael. I figured it out! =)
|
|
MadamG Zagato
means business
Join date: 17 Sep 2005
Posts: 1,402
|
04-05-2006 12:05
From: Michael Martinez That would have to be some feature in the script. That's what I am asking. For a solution or procedure to use in a script that will enable MY SCRIPT to turn whisper off and on. If anyone has a solution, idea, or script that would be useful. Please post! =) Smiles
|
|
Static Sprocket
Registered User
Join date: 10 Feb 2006
Posts: 157
|
04-05-2006 12:18
I wrote this directly here in the forum, and have not tested it in-world. But it should work.
integer iWhisperEnabled = TRUE;
MyWhisper( string msg ) { if( iWhisperEnabled ) { llWhisper(0,msg); } }
default { state_entry() { llListen(1, "", llGetOwner(), ""); }
listen(integer channel, string name, key id, string message) { if( message == "whisper" ) { if( iWhisperEnabled ) { iWhisperEnabled = FALSE; llOwnerSay("Whisper Disabled"); } else { iWhisperEnabled = TRUE; llOwnerSay("Whisper Enabled"); } } }
touched( integer num ) { MyWhisper( "I've been touched!" ); } }
|
|
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
|
04-05-2006 12:27
Yes, that looks pretty much like what I was thinking. Replace all llWhisper calls with MyWhisper calls and you're set.
|
|
Exile Loudon
Aspiring Scripter
Join date: 10 Dec 2005
Posts: 122
|
04-05-2006 13:28
touched( integer num ) { MyWhisper( "I've been touched!" ); } I think you meant: touch_start( integer num_detected ) { MyWhisper( "I've been touched!" ); } }
|
|
Static Sprocket
Registered User
Join date: 10 Feb 2006
Posts: 157
|
04-05-2006 13:36
num vs num_detected makes no difference  It's just a variable name. In my own scripts, I usually just use touched( integer num_agents ) <shrug>
|
|
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
|
04-05-2006 13:39
From: Exile Loudon touched( integer num ) { MyWhisper( "I've been touched!" ); } I think you meant: touch_start( integer num_detected ) { MyWhisper( "I've been touched!" ); } } no, 'cos that's got one too many }s
|
|
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
|
04-05-2006 13:43
I think Exile was referring to using 'touch_start' instead of 'touched'. It's funny how 3 people look at the same thing and see 3 different things 
|
|
Static Sprocket
Registered User
Join date: 10 Feb 2006
Posts: 157
|
04-05-2006 17:20
Oh, heh... ya, "touched" won't work.
But:
touch_start( integer num ) touch( integer num ) touch_end( integer num )
Should all work in this case.
|
|
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
|
04-05-2006 17:25
Oh yeah, fair enough (though it still has too many }s)
|
|
Exile Loudon
Aspiring Scripter
Join date: 10 Dec 2005
Posts: 122
|
04-05-2006 18:56
Lol, okay. w/e. =p
|