| Variable Name | Value | Notes | 
|---|---|---|
| NWNX_CHAT_CHAT_SCRIPT | string | Set the nwscript that receives all the chat messages | 
| Files | |
| file | nwnx_chat.nss | 
| Functions | |
| int | NWNX_Chat_SendMessage (int channel, string message, object sender=OBJECT_SELF, object target=OBJECT_INVALID) | 
| Sends a chat message.  More... | |
| void | NWNX_Chat_RegisterChatScript (string script) | 
| Registers the script which receives all chat messages.  More... | |
| void | NWNX_Chat_SkipMessage () | 
| Skips a chat message.  More... | |
| int | NWNX_Chat_GetChannel () | 
| Gets the chat channel.  More... | |
| string | NWNX_Chat_GetMessage () | 
| Gets the message.  More... | |
| object | NWNX_Chat_GetSender () | 
| Gets the sender of the message.  More... | |
| object | NWNX_Chat_GetTarget () | 
| Gets the target of the message.  More... | |
| void | NWNX_Chat_SetChatHearingDistance (float distance, object listener=OBJECT_INVALID, int channel=NWNX_CHAT_CHANNEL_PLAYER_TALK) | 
| Sets the distance with which the player hears talks or whispers.  More... | |
| float | NWNX_Chat_GetChatHearingDistance (object listener=OBJECT_INVALID, int channel=NWNX_CHAT_CHANNEL_PLAYER_TALK) | 
| Gets the distance with which the player hears talks or whisper.  More... | |
| int NWNX_Chat_SendMessage | ( | int | channel, | 
| string | message, | ||
| object | sender = OBJECT_SELF, | ||
| object | target = OBJECT_INVALID | ||
| ) | 
Sends a chat message.
| channel | The channel to send the message. | 
| message | The message to send. | 
| sender | The sender of the message. | 
| target | The receiver of the message. | 
Definition at line 80 of file nwnx_chat.nss.
| void NWNX_Chat_RegisterChatScript | ( | string | script | ) | 
Registers the script which receives all chat messages.
| script | The script name to handle the chat events. | 
Definition at line 90 of file nwnx_chat.nss.
| void NWNX_Chat_SkipMessage | ( | ) | 
Skips a chat message.
Definition at line 96 of file nwnx_chat.nss.
| int NWNX_Chat_GetChannel | ( | ) | 
Gets the chat channel.
Definition at line 101 of file nwnx_chat.nss.
| string NWNX_Chat_GetMessage | ( | ) | 
Gets the message.
Definition at line 107 of file nwnx_chat.nss.
| object NWNX_Chat_GetSender | ( | ) | 
Gets the sender of the message.
Definition at line 113 of file nwnx_chat.nss.
| object NWNX_Chat_GetTarget | ( | ) | 
Gets the target of the message.
Definition at line 119 of file nwnx_chat.nss.
| void NWNX_Chat_SetChatHearingDistance | ( | float | distance, | 
| object | listener = OBJECT_INVALID, | ||
| int | channel = NWNX_CHAT_CHANNEL_PLAYER_TALK | ||
| ) | 
Sets the distance with which the player hears talks or whispers.
| distance | The distance in meters. | 
| listener | The listener, if OBJECT_INVALID then it will be set server wide. | 
| channel | The channel to modify the distance heard. Only applicable for talk and whisper. | 
Definition at line 125 of file nwnx_chat.nss.
| float NWNX_Chat_GetChatHearingDistance | ( | object | listener = OBJECT_INVALID, | 
| int | channel = NWNX_CHAT_CHANNEL_PLAYER_TALK | ||
| ) | 
Gets the distance with which the player hears talks or whisper.
| listener | The listener, if OBJECT_INVALID then will return server wide setting. | 
| channel | The channel. Only applicable for talk and whisper. | 
Definition at line 133 of file nwnx_chat.nss.
| const int NWNX_CHAT_CHANNEL_PLAYER_TALK = 1 | 
Definition at line 13 of file nwnx_chat.nss.
| const int NWNX_CHAT_CHANNEL_PLAYER_SHOUT = 2 | 
Definition at line 14 of file nwnx_chat.nss.
| const int NWNX_CHAT_CHANNEL_PLAYER_WHISPER = 3 | 
Definition at line 15 of file nwnx_chat.nss.
| const int NWNX_CHAT_CHANNEL_PLAYER_TELL = 4 | 
Definition at line 16 of file nwnx_chat.nss.
| const int NWNX_CHAT_CHANNEL_SERVER_MSG = 5 | 
Definition at line 17 of file nwnx_chat.nss.
| const int NWNX_CHAT_CHANNEL_PLAYER_PARTY = 6 | 
Definition at line 18 of file nwnx_chat.nss.
| const int NWNX_CHAT_CHANNEL_PLAYER_DM = 14 | 
Definition at line 19 of file nwnx_chat.nss.
| const int NWNX_CHAT_CHANNEL_DM_TALK = 17 | 
Definition at line 20 of file nwnx_chat.nss.
| const int NWNX_CHAT_CHANNEL_DM_SHOUT = 18 | 
Definition at line 21 of file nwnx_chat.nss.
| const int NWNX_CHAT_CHANNEL_DM_WHISPER = 19 | 
Definition at line 22 of file nwnx_chat.nss.
| const int NWNX_CHAT_CHANNEL_DM_TELL = 20 | 
Definition at line 23 of file nwnx_chat.nss.
| const int NWNX_CHAT_CHANNEL_DM_PARTY = 22 | 
Definition at line 24 of file nwnx_chat.nss.
| const int NWNX_CHAT_CHANNEL_DM_DM = 30 | 
Definition at line 25 of file nwnx_chat.nss.