6 const string NWNX_Chat =
"NWNX_Chat";
35 int NWNX_Chat_SendMessage(
int channel,
string message,
object sender = OBJECT_SELF,
object target = OBJECT_INVALID);
80 int NWNX_Chat_SendMessage(
int channel,
string message,
object sender = OBJECT_SELF,
object target = OBJECT_INVALID)
82 NWNXPushObject(target);
83 NWNXPushObject(sender);
84 NWNXPushString(message);
86 NWNXCall(NWNX_Chat,
"SendMessage");
92 NWNXPushString(script);
93 NWNXCall(NWNX_Chat,
"RegisterChatScript");
98 NWNXCall(NWNX_Chat,
"SkipMessage");
103 NWNXCall(NWNX_Chat,
"GetChannel");
109 NWNXCall(NWNX_Chat,
"GetMessage");
110 return NWNXPopString();
115 NWNXCall(NWNX_Chat,
"GetSender");
116 return NWNXPopObject();
121 NWNXCall(NWNX_Chat,
"GetTarget");
122 return NWNXPopObject();
127 NWNXPushInt(channel);
128 NWNXPushObject(listener);
129 NWNXPushFloat(distance);
130 NWNXCall(NWNX_Chat,
"SetChatHearingDistance");
135 NWNXPushInt(channel);
136 NWNXPushObject(listener);
137 NWNXCall(NWNX_Chat,
"GetChatHearingDistance");
138 return NWNXPopFloat();
const int NWNX_CHAT_CHANNEL_DM_SHOUT
const int NWNX_CHAT_CHANNEL_SERVER_MSG
const int NWNX_CHAT_CHANNEL_DM_DM
int NWNX_Chat_GetChannel()
Gets the chat channel.
void NWNX_Chat_RegisterChatScript(string script)
Registers the script which receives all chat messages.
const int NWNX_CHAT_CHANNEL_DM_TELL
const int NWNX_CHAT_CHANNEL_PLAYER_TALK
string NWNX_Chat_GetMessage()
Gets the message.
const int NWNX_CHAT_CHANNEL_PLAYER_DM
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.
const int NWNX_CHAT_CHANNEL_PLAYER_PARTY
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.
int NWNX_Chat_SendMessage(int channel, string message, object sender=OBJECT_SELF, object target=OBJECT_INVALID)
Sends a chat message.
const int NWNX_CHAT_CHANNEL_PLAYER_SHOUT
const int NWNX_CHAT_CHANNEL_PLAYER_WHISPER
void NWNX_Chat_SkipMessage()
Skips a chat message.
object NWNX_Chat_GetTarget()
Gets the target of the message.
const int NWNX_CHAT_CHANNEL_DM_TALK
const int NWNX_CHAT_CHANNEL_DM_WHISPER
object NWNX_Chat_GetSender()
Gets the sender of the message.
const int NWNX_CHAT_CHANNEL_PLAYER_TELL
const int NWNX_CHAT_CHANNEL_DM_PARTY