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

From Second Life Wiki
Jump to navigation Jump to search
m (usage fix)
 
Line 1: Line 1:
{{Template:RLV_Documentation/Command
{{Template:RLV_Documentation/Command
|command=@chatshout|type=Restriction
|command=@chatshout|type=Restriction
|usage=@chatshout=y
|usage=@chatshout=<y/n>
 
@chatshout=n
|purpose=When prevented (@chatshout=n), the avatar will chat normally even when the user tries to shout. This does not change the message in any way, only its range.
|purpose=When prevented (@chatshout=n), the avatar will chat normally even when the user tries to shout. This does not change the message in any way, only its range.
|version=1.15
|version=1.15
|seealso=chatnormal chatwhisper
|seealso=chatnormal chatwhisper
|example=<lsl>integer     shoutChat = TRUE;
|example=<lsl>integer shoutChat = TRUE;


default
default

Latest revision as of 07:39, 7 July 2010


@chatshout

Type

Restriction

Implemented

Implemented since RLV version 1.15

Usage

@chatshout=<y/n>

Purpose

When prevented (@chatshout=n), the avatar will chat normally even when the user tries to shout. This does not change the message in any way, only its range.


Example

<lsl>integer shoutChat = TRUE;

default {

   touch_start(integer total_number)
   {
       if (llDetectedKey(0) != llGetOwner()) return;
       
       shoutChat = 1-shoutChat;
       
       if(shoutChat)
       {
           llOwnerSay("@chatshout=y");
           llSay(0, "Chat restrictions are lifted.");
       }
       else
       {
           llOwnerSay("@chatshout=n");
           llSay(0, "Chat is now restricted to normal.");
       }
   }

}

</lsl>