Difference between revisions of "Template:LSL Function/chat"

From Second Life Wiki
Jump to navigation Jump to search
(This is the one reason I like refering to it as PUBLIC_CHANNEL. There is no debate as to what you are referring to.)
Line 12: Line 12:
{{#var:constants_nb}}}}
{{#var:constants_nb}}}}


{{#vardefine:p_{{{1|none}}}_desc|{{#if:{{{input|}}}|input|output}} {{LSLGC|Chat|chat}} channel, any integer value {{#if:{{#var:fc-neither}}|except {{#var:PUBLIC_CHANNEL}} and {{#var:DEBUG_CHANNEL}}|{{#if:{{{np|}}}|except [[PUBLIC_CHANNEL|0]]}}{{#if:{{{nd|}}}|except {{#var:DEBUG_CHANNEL}}}}}}}}
{{#vardefine:p_{{{1|none}}}_desc|{{#if:{{{input|}}}|input|output}} {{LSLGC|Chat|chat}} channel, any integer value {{#if:{{#var:fc-neither}}|except [[PUBLIC_CHANNEL|zero]] and {{#var:DEBUG_CHANNEL}}|{{#if:{{{np|}}}|except [[PUBLIC_CHANNEL|zero]]}}{{#if:{{{nd|}}}|except {{#var:DEBUG_CHANNEL}}}}}}}}


{{#vardefine:p_{{{1|none}}}_hover|{{#if:{{{input|}}}|input|output}} chat channel, any integer value {{#if:{{#var:fc-neither}}|except PUBLIC_CHANNEL and DEBUG_CHANNEL|{{#if:{{{np|}}}|except PUBLIC_CHANNEL}}{{#if:{{{nd|}}}|except DEBUG_CHANNEL}}}}}}
{{#vardefine:p_{{{1|none}}}_hover|{{#if:{{{input|}}}|input|output}} chat channel, any integer value {{#if:{{#var:fc-neither}}|except zero (PUBLIC_CHANNEL) and DEBUG_CHANNEL|{{#if:{{{np|}}}|except zero}}{{#if:{{{nd|}}}|except DEBUG_CHANNEL}}}}}}


{{#ifeq:{{#var:fc-neither}}{{{1|<noinclude>{{{1}}}</noinclude>}}}{{{dialog|}}}|{{{1}}}|
{{#ifeq:{{#var:fc-neither}}{{{1|<noinclude>{{{1}}}</noinclude>}}}{{{dialog|}}}|{{{1}}}|
{{#vardefine:caveats|{{#var:caveats}}
{{#vardefine:caveats|{{#var:caveats}}
*Messages sent on {{#if:{{{np|}}}||{{#var:PUBLIC_CHANNEL}} {{#if:{{{nd|}}}||and}}}} {{#if:{{{nd|}}}||{{#var:DEBUG_CHANNEL}}}} are throttled to a rate of <200/10sec, per region, per owner/user.
*Messages sent on {{#if:{{{np|}}}||[[PUBLIC_CHANNEL|channel zero]] {{#if:{{{nd|}}}||and}}}} {{#if:{{{nd|}}}||{{#var:DEBUG_CHANNEL}}}} are throttled to a rate of <200/10sec, per region, per owner/user.
**Once the rate is exceeded, all following messages on {{#if:{{{np|}}}||{{#var:PUBLIC_CHANNEL}} {{#if:{{{nd|}}}||or}}}} {{#if:{{{nd|}}}||{{#var:DEBUG_CHANNEL}}}} will be dropped until the send rate is again below 200/2sec for the previous 2 sec. Dropped messages, despite being dropped still count against the limit.}}
**Once the rate is exceeded, all following messages on {{#if:{{{np|}}}||[[PUBLIC_CHANNEL|channel zero]] {{#if:{{{nd|}}}||or}}}} {{#if:{{{nd|}}}||{{#var:DEBUG_CHANNEL}}}} will be dropped until the send rate is again below 200/2sec for the previous 2 sec. Dropped messages, despite being dropped still count against the limit.}}
}}
}}



Revision as of 19:02, 9 January 2014

#var value
caveats
  • Messages sent on channel zero and DEBUG_CHANNEL are throttled to a rate of <200/10sec, per region, per owner/user.
    • Once the rate is exceeded, all following messages on channel zero or DEBUG_CHANNEL will be dropped until the send rate is again below 200/2sec for the previous 2 sec. Dropped messages, despite being dropped still count against the limit.
p_none_desc output chat channel, any integer value
p_none_hover output chat channel, any integer value
p_none__desc message to be transmitted
constants_nb
Channel Constant Description
DEBUG_CHANNEL 0x7FFFFFFF Chat channel reserved for script debugging and error messages, broadcasts to all nearby users.
PUBLIC_CHANNEL 0x0 Chat channel that broadcasts to all nearby users. This channel is sometimes referred to as: open chat, local chat and public chat.