Chat

Chat is the system by which players in a multiplayer game can communicate. Chat messages received are shown near the bottom left corner of the screen. Players can press to open the chat box, type a message, then press  again to send it. It is also possible to cut, copy and paste entire messages being entered, using +, + , and + respectively. The alternative shortcuts +, + and + , respectively, also work.

While the chat box is open, a log of received messages is shown. Up to 500 messages can be remembered, and the and  arrow keys scroll through the history.

introduced tags, which can be used to display items in chat messages. To do this, have the inventory open before opening the chat box, and hold while clicking an item in the main inventory to enter it into the message.

The server admin can use the "say" command to chat with their players from the console.

The chat display is functional in single player. It can still be used to enter messages or commands, though it is mainly used to display status messages, e.g. the beginning of an event or boss fight.

Commands
The following commands can be used by all players on vanilla servers. Mods, such as TShock or TerrariaPatcher, allow the player to use other, more advanced commands.


 * – sends a message as a third-person action, for example: "* George sneezes."
 * – if the user is on a party, sends the message only to fellow party members.
 * or  – gives a list of all players currently on the server.
 * – gives a random integer between 1 and 100 (inclusive).

If the server is using a language other than English, some commands will be different:

Tags
Since version 1.3, chat messages can now contain tags. Tags change the way parts of messages are displayed. They are parts of a message in the format  or.

Tags can also be used in.

The options parameter is optional, and the tag name must not exceed 10 letters.

The following tags currently exist:


 * color or c – displays the text parameter in a different color. The options parameter specifies the color values as a  number.
 * Example: [c/FF0000:This text is red.]


 * item or i – displays an item. Moving the mouse over the item shows its normal tip text. The text parameter specifies the item type, either as a numeric ID or a name. The options parameter contains a comma-separated list of options that consist of a letter followed by a number. p specifies a modifier; s or x specify the number of stacked items.
 * Examples: [i/p57:4] displays a Ruthless (item ID 4); [i/s10:29] a stack of ten s (item ID 29).


 * name or n – displays a player's name in angle brackets. This is prepended to all messages from players. The characters [, ], and \ can be escaped using a backslash.
 * Example: [n:Marcus] displays "&lt;Marcus&gt;". [n:\Ma\[rc\]us] displays "&lt;\Ma[rc]us&gt;".


 * a – shows an achievement. Clicking on it shows the achievements dialog. The text parameter specifies the achievement via its internal key.
 * Example: [a:NO_HOBO].


 * glyph or g – displays a controller button. See the Glyphs section below for possible values.

Invalid tags (for example, a non-existent achievement), are displayed with the text parameter as normal text.

History
Tchat 聊天