User:Toy Wylie/RLV Documentation/chatnormal: Difference between revisions

From Second Life Wiki
Jump to navigation Jump to search
Created page with '== {{{command}}} == {{#if:{{{deprecated|}}}| <div id="box" style="margin-top: 2em; clear: both; color: red;"><h2>DEPRECATED</h2> <div style="padding: 0.5em;"> '''This function i...'
 
Toy Wylie (talk | contribs)
m don't need a numbered list with one single usage
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== {{{command}}} ==
{{Template:RLV_Documentation/Command
|command=@chatnormal|type=Restriction
|usage=@chatnormal=<y/n>
|purpose=When prevented (@chatnormal=n), the avatar will whisper even when the user tries to shout or chat normally. This does not change the message in any way, only its range.
|version=1.15
|seealso=chatshout chatwhisper
|example=<lsl>integer normalChat = TRUE;


{{#if:{{{deprecated|}}}|
default
<div id="box" style="margin-top: 2em; clear: both; color: red;"><h2>DEPRECATED</h2>
{
<div style="padding: 0.5em;">
    touch_start(integer total_number)
'''This function is DEPRECATED - Do not use it!'''
    {
</div></div>
        if (llDetectedKey(0) != llGetOwner()) return;
|}}
       
 
        normalChat = 1-normalChat;
<div id="box" style="margin-top: 2em; float: right;"><h2>Type</h2>
       
<div style="padding: 0.5em;">
        if(normalChat)
{{{type|<noinclude>"Restriction", "Force", "Exception" or "General"</noinclude>}}}
        {
</div></div>
            llOwnerSay("@chatnormal=y");
 
        }
<div id="box" style="margin-top: 2em; margin-right: 2em; float: right;"><h2>Implemented</h2>
        else
<div style="padding: 0.5em;">
        {
Implemented since RLV version {{{version|<noinclude>NUMBER</noinclude>}}}
            llOwnerSay("@chatnormal=n");
</div></div>
        }
 
    }
<div id="box" style="margin-top: 2em; float: left;"><h2>Usage</h2>
}
<div style="padding: 0.5em;">
</lsl>
{{{usage|<noinclude>Usage here</noinclude>}}}
}}
</div></div>
 
<div id="box" style="margin-top: 2em; clear: both;"><h2>Purpose</h2>
<div style="padding: 0.5em;">
{{{purpose|<noinclude>Purpose of this command here</noinclude>}}}
</div></div>
 
<div id="box" style="margin-top: 2em;"><h2>See Also</h2>
<div style="padding: 0.5em;">
{{#if:{{{seealso|}}}|
 
{{#vardefine:path|User:Toy_Wylie/RLV_Documentation/}}
{{#vardefine:commands|{{{seealso}}}}}
 
{{#vardefine:cmd|{{#explode:{{#var:commands}}| |0}}}}
{{#if:{{#var:cmd|}}|[[{{#var:path}}{{#var:cmd|}}|@{{#var:cmd|}}]]
{{#vardefine:cmd|{{#explode:{{#var:commands}}| |1}}}}
{{#if:{{#var:cmd|}}| [[{{#var:path}}{{#var:cmd|}}|@{{#var:cmd|}}]]
{{#vardefine:cmd|{{#explode:{{#var:commands}}| |2}}}}
{{#if:{{#var:cmd|}}| [[{{#var:path}}{{#var:cmd|}}|@{{#var:cmd|}}]]
{{#vardefine:cmd|{{#explode:{{#var:commands}}| |3}}}}
{{#if:{{#var:cmd|}}| [[{{#var:path}}{{#var:cmd|}}|@{{#var:cmd|}}]]
{{#vardefine:cmd|{{#explode:{{#var:commands}}| |4}}}}
{{#if:{{#var:cmd|}}| [[{{#var:path}}{{#var:cmd|}}|@{{#var:cmd|}}]]
{{#vardefine:cmd|{{#explode:{{#var:commands}}| |5}}}}
{{#if:{{#var:cmd|}}| [[{{#var:path}}{{#var:cmd|}}|@{{#var:cmd|}}]]
{{#vardefine:cmd|{{#explode:{{#var:commands}}| |6}}}}
{{#if:{{#var:cmd|}}| [[{{#var:path}}{{#var:cmd|}}|@{{#var:cmd|}}]]
{{#vardefine:cmd|{{#explode:{{#var:commands}}| |7}}}}
{{#if:{{#var:cmd|}}| [[{{#var:path}}{{#var:cmd|}}|@{{#var:cmd|}}]]
{{#vardefine:cmd|{{#explode:{{#var:commands}}| |8}}}}
{{#if:{{#var:cmd|}}| [[{{#var:path}}{{#var:cmd|}}|@{{#var:cmd|}}]]
{{#vardefine:cmd|{{#explode:{{#var:commands}}| |9}}}}
{{#if:{{#var:cmd|}}| [[{{#var:path}}{{#var:cmd|}}|@{{#var:cmd|}}]]
}} }} }} }} }} }} }} }} }} }}
 
|<noinclude>List of related commands here</noinclude>}}
{{#if:{{{seealsoalso|}}}|
 
{{{seealsoalso}}}|<noinclude> - Further notes here</noinclude>}}
</div></div>
 
<div id="box" style="margin-top: 2em;"><h2>Example</h2>
<div style="padding: 0.5em;">
{{{example|<noinclude>Example LSL code here</noinclude>}}}
</div></div>
 
[[Category:RestrainedLove]]
[[Category:RestrainedLove/Documentation]]
[[Category:RestrainedLove/Documentation/Command]]

Latest revision as of 08:38, 7 July 2010


@chatnormal

Type

Restriction

Implemented

Implemented since RLV version 1.15

Usage

@chatnormal=<y/n>

Purpose

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


Example

<lsl>integer normalChat = TRUE;

default {

   touch_start(integer total_number)
   {
       if (llDetectedKey(0) != llGetOwner()) return;
       
       normalChat = 1-normalChat;
       
       if(normalChat)
       {
           llOwnerSay("@chatnormal=y");
       }
       else
       {
           llOwnerSay("@chatnormal=n");
       }
   }

}

</lsl>