Difference between revisions of "User:Toy Wylie/RLV Documentation/recvchat"

From Second Life Wiki
Jump to navigation Jump to search
(Created page with '{{Template:RLV_Documentation/Command |command=@recvchat|type=Restriction |usage=#@recvchat=y #@recvchat=n #@recvchat:<UUID>=rem #@recvchat:<UUID>=add |purpose=When prevented (@re...')
 
(usage fix)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Template:RLV_Documentation/Command
{{Template:RLV_Documentation/Command
|command=@recvchat|type=Restriction
|command=@recvchat|type=# Restriction
|usage=#@recvchat=y
# Exception
#@recvchat=n
|usage=# @recvchat=<y/n>
#@recvchat:<UUID>=rem
# @recvchat:<UUID>=<add/rem>
#@recvchat:<UUID>=add
|purpose=# When prevented (@recvchat=n), everything heard in public chat will be discarded except emotes.  
|purpose=When prevented (@recvchat=n), everything heard in public chat will be discarded except emotes. However, exceptions can be made too by using @recvchat:<UUID>=<rem/add>
# Exceptions can be made too by using @recvchat:<UUID>=<rem/add>.
|version=1.0b + 1.01 (exceptions)
|version=1.0b + 1.01 (exceptions)
|seealso=recvemote
|seealso=recvchat_sec recvemote recvemote_sec
|example=<lsl>default
|example=<lsl>default
{     
{     

Latest revision as of 11:15, 7 July 2010


@recvchat

Type

# Restriction
  1. Exception

Implemented

Implemented since RLV version 1.0b + 1.01 (exceptions)

Usage

# @recvchat=<y/n>
  1. @recvchat:<UUID>=<add/rem>

Purpose

# When prevented (@recvchat=n), everything heard in public chat will be discarded except emotes.
  1. Exceptions can be made too by using @recvchat:<UUID>=<rem/add>.


Example

<lsl>default

{

   touch_start(integer total_number)
   {
       if (llDetectedKey(0) != llGetOwner()) return;

       llSay(0, "Hiding the chat, will then send a test message.");
       llSleep(0.5);
       llOwnerSay("@recvchat=n");
       llSay(0, "The test message.");
       llSleep(0.5);
       llOwnerSay("@recvchat=y");
       llSay(0, "Chat is once again readable, but hiding the chat again, but this time, add an exception for this prim.");
       llSleep(0.5);
       llOwnerSay("@recvchat=n,recvchat:" + (string)llGetKey() + "=add");
       llSay(0, "Another test message.");
       llOwnerSay("@recvchat=y,recvchat:" + (string)llGetKey() + "=rem");
       llSay(0, "The restrictions are lifted.");
   }

}

</lsl>