llSay/it

From Second Life Wiki
< LlSay
Revision as of 02:01, 30 May 2010 by Tia Myrtle (talk | contribs)
Jump to navigation Jump to search

Summary

Function: llSay( integer channel, string msg );

Dice in chat la strng msg nel canale specificato dall'integer channel.

• integer channel output chat channel, any integer valueCanale di uscita, accetta qualunque valore integer
• string msg message to be transmittedmessaggio che si vuole trasmettere
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.

Caveats

  • Messages sent on channel zero[1] 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/10sec for the previous 10 sec. Dropped messages, despite being dropped still count against the limit.
  • Il testo non è sentito oltre i 20 mt di raggio dalla sorgente.
  • La stringa usata può essere al massimo di 1024 bytes.
  • Lo script che usa questa funzione non può ascoltarla per problemi di ridondanza.
All Issues ~ Search JIRA for related Bugs

Examples

<lsl>default {

   state_entry()
   {
       llSay(0,"Ciao, Avatar!"); //riporterà in chat pubblica (canale 0) la scritta "Ciao, Avatar!"
   }

}</lsl>

Per evitare problemi di spam utilizzare le funzioni llInstantMessage o llOwnerSay.

Notes

  • Il canale 0 è PUBLIC_CHANNEL. Tutti possono parlare in questo canale. Tutti gli altri canali sono canali privati (Gli utenti non possono leggere su canali diversi dal PUBLIC_CHANNEL ad eccezione del DEBUG_CHANNEL).
  • Consider using llInstantMessage, llOwnerSay, or the DEBUG_CHANNEL for debugging purposes. If DEBUG_CHANNEL is used as channel, the script will say msg to the Script Warning/Error window.
  • Se un oggetto 'parla' spesso con un'altro oggeto (un bottone che, quando toccato, accende una lampada), è una buona idea usare canali negativi.

<lsl>

   llSay(-5243212,"turn on");

</lsl> I canali negativi sono molto popolari per l'ascolto tra oggeti, in quanto solo gli script possono comunicare su questi canali ("/-xxxx messaggio" non comunica il "message" nel canale "-xxxx", questo verrà comunicatonel canale pubblico (0)).

See Also

Events

•  listen                 Riceve la chat

Functions

•  llListen Richiesta per l'ascolto degli eventi
•  llInstantMessage Invia in chat il messaggio all'Owner (o ad altri utenti specifici) per evitare lo spam nel PUBLIC_CHANNEL
•  llOwnerSay Invia in chat il messaggio unicamente all'Owner per evitare lo spam nella PUBLIC_CHANNEL
•  llRegionSay Invia il messaggio all'intera Regione
•  llShout Invia il messaggio nel raggio di 100 Metri
•  llWhisper Invia il messaggio nel raggio di 10 Metri

Articles

•  Hello Avatar

Deep Notes

Search JIRA for related Issues

Footnotes

  1. ^ Channel zero is also known as: PUBLIC_CHANNEL, open chat, local chat and public chat

Signature

function void llSay( integer channel, string msg );