Tot ! Chat V2 Enhanced
This library will not function if your server doesn't have the Tot ! Chat mod installed.
WARNING
The functions outlined on this page will only function on Conan Exiles Enhanced.
For Legacy version, see Tot ! Chat.
Headers
Some functions accept an optional headers table.
For the full list of options, please refer to Tot API docs.
GetGlobalChannelId function
Returns the ID of the server's main global channel.
Syntax:
int TotChat.GetGlobalChannelId()GetLocalChannelId function
Returns the ID of the server's main local channel.
Syntax:
int TotChat.GetLocalChannelId()SendLocal function
Sends a message as a player into the main local channel.
Syntax:
void TotChat.SendLocal( Character player, string message [, table headers ] )SendGlobal function
Sends a message as a player into the main global channel.
Syntax:
void TotChat.SendGlobal( Character player, string message [, table headers ] )Broadcast function
Sends a server notification (not tied to any player) into a channel.
Syntax:
void TotChat.Broadcast( int channelId, string message [, string level = "Info" ] )Level controls the notification style and can be any of: Info, Warning, Error, Success.
Notify function
Sends a notification to a single player, in the context of a channel.
Syntax:
void TotChat.Notify( Character player, int channelId, string message [, string level = "Info" ] )Level controls the notification style and can be any of: Info, Warning, Error, Success.
Send function
Sends a message as a player into any channel by ID.
Syntax:
void TotChat.Send( Character player, int channelId, string message [, table headers ] )SendInRadius function
Sends a message into a channel, but only to players within a radius of a position.
Syntax:
void TotChat.SendInRadius( Vector position, float radius, int channelId, string message [, table headers ] )GetPlayerLanguages function
Syntax:
table TotChat.GetPlayerLanguages( Character player )| Field | Type |
|---|---|
guid | GUID |
knowledge | number |
SetPlayerLanguage function
Syntax:
void TotChat.SetPlayerLanguage( Character player, GUID language, float knowledge )RemovePlayerLanguage function
Syntax:
void TotChat.RemovePlayerLanguage( Character player, GUID language )GetServerLanguages function
Returns a list of all languages configured on the server.
Syntax:
table TotChat.GetServerLanguages()| Field | Type |
|---|---|
guid | GUID |
name | string |
adminOnly | boolean |
universal | boolean |
startingKnowledge | number |
GetServerRanges function
Returns a list of all chat ranges configured on the server.
Syntax:
table TotChat.GetServerRanges()| Field | Type |
|---|---|
guid | GUID |
name | string |
range | number |
eavesdrop | number |
color | Color |