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.
Command 	Ingame descriptionDescription from command	Notes 	Text color	Example
<message> 	 	If the user is in a team, the message is only sent to fellow team members. The color of the text will be the same as the team's color.If the player is not in any team, informs them with a status message.	 	<Player_name> message
<message> 	 	Displays text starting with an asterisk, followed by the player's name and the message. 	 	* Player_name message
 	 	Gives a list of player names, divided by commas. 	 	Player_name1, Player_name2
 	 	Gives a random integer between 1 and 100 (inclusive). 	 	* Player_name 83
<emote> <emote>	 	Makes the player use the respective emote, similar to directly using emote commands. 	 	and both sends the "Emotion Love" emote.
 	 	List all commands and their description. 	 	
 	 	Makes the player randomly use an emote among "RPS Rock", "RPS Paper", and "RPS Scissors". 	 	
 	 	Displays the current character's total death count. This death count, as well as the following counts, is tracked per character. 	 	
 	 	Displays the current character's total PvP death count (i.e. deaths caused by other players). 	 	
 	 	Displays death count of all the players in the server. 	 	
 	 	Displays PvP death count of all the players in the server. 	 	
If the server is using a language other than English, some commands will be different:
English	German	French	Italian	Polish	Portuguese	Russian	Chinese
== 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 [tag:text] or [tag/options:text].
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 – displays the text parameter in a different color. The options parameter specifies the color values as a number.
: Example: 
 Status message colors
Color	Usage 	Example
 	Player chat messages. Using an Announcement Box,the text will be indistinguishable from an actual player's input.	
 	When most events begin. 	""""
 	When an invasion begins, or when a boss is defeated or summoned. 	""
 	When a player dies. 	""
 	When a town NPC or pet dies. 	""
 	When a town NPC or pet arrives. 	""
 	General status messages. 	""""
 	When an NPC throws a Party. 	""
=== Item ===
* or – 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. specifies a modifier; or specify the number of stacked items.
: Examples: displays a Ruthless (item ID 4); a stack of ten s (item ID 29).
=== Name ===
* or – 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: displays "<Marcus>". displays "<\Ma[rc]us>".
=== Achievement ===
* – shows an achievement. Clicking on it shows the achievements dialog. The text parameter specifies the achievement via its internal key.
: Example: .
{| class="terraria sortable lined"
! Achievement
! Internal name
|}
=== Glyphs ===
* or – 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.
* Example: displays 
* Example: displays the classic : 
Index	Button	Name
0 	 	A
1 	 	B
2 	 	X
3 	 	Y
4 	 	Back
5 	 	Start
6 	 	Left shoulder button
7 	 	Right shoulder button
8 	 	Left trigger
9 	 	Right trigger
10 	 	Left stick
11 	 	Right stick
12 	 	Undefined stick
13 	 	D-pad right
14 	 	D-pad left
15 	 	D-pad down
16 	 	D-pad up
17 	 	Left stick left
18 	 	Left stick right
19 	 	Left stick up
20 	 	Left stick down
21 	 	Right stick left
22 	 	Right stick right
23 	 	Right stick up
24 	 	Right stick down
25 	 	Left stick wiggling left and right
== Notes ==
* Using multiple tags within each other is not possible; for example, [c/ff0000:[n:Marcus]] will result in "[n:Marcus]" with the last bracket not accepting the color. In addition, the name tag will not complete because of how the outside bracket was supposed to be used rather than the inside – order of operations, basically. However, it is possible to color a closing bracket if it directly follows the colon, so the output "[Marcus]" can be received by typing [c/ff0000:[Marcus][c/ff0000:]].
* The tag can work when it comes to renaming chests. However, with very limited characters, the player can only type 20 characters, including the characters for changing the color.
* The tag is also registered in the code with the name ; however, at 11 letters, this does not work.
== History ==