聊天

来自Terraria Wiki
跳转至: 导航搜索
此页面的(部分)内容需要被翻译。
你可以帮助我们来翻译此页面
电脑版 电脑版独有内容:此信息适用于电脑版泰拉瑞亚
Chat is the system by which players in a multiplayer game can talk to each other. 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 up and down arrow keys scroll through the history.

Version 1.3 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 cannot be used to enter messages or commands, but still displays announcements, such as that of a Blood Moon.

Commands[编辑 | 编辑源代码]

The following commands can be used by all players on vanilla servers. Mods, such as TShock, may add or remove commands.

  • /me action – sends a message as a third-person action. For example: * George sneezes.
  • /p message – if the user is on a party, sends the message only to fellow party members.
  • /players or /playing – gives a list of all players currently on the server.
  • /roll – gives a random integer between 1 and 100 inclusive.

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

English Deutsch Italiano Français Español
/me /me /me /me /me
/p /p /p /p /p
/players /spielen /in gioco /en train de jouer /jugando
/roll /wuerfeln /lancia /jet /tira

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 Announcement Boxes.

The options parameter is optional, and the tag name must be at most 10 letters.

The following tags currently exist:

  • color or c – displays the text parameter in a different color. The options parameter specifies the color RGB values as a hexadecimal number.
    For 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.
    For example, [i/p57:4] displays a Ruthless Iron Broadsword, and [i/s10:29] a stack of ten Life Crystals.
  • name or n – displays a player's name in angle brackets. This is prepended to all messages from players. [, ] and \ characters can be escaped using a backslash.
    For example: [n:Marcus] displays <Marcus>.
  • a – shows an achievement. Clicking on it shows the achievement the Achievements dialog. The text parameter specifies the achievement via its internal key.
    For 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.

Glyphs[编辑 | 编辑源代码]

Index Button Name
0 Template:G A
1 Template:G B
2 Template:G X
3 Template:G Y
4 Template:G Back
5 Template:G Start
6 Template:G Left shoulder button
7 Template:G Right shoulder button
8 Template:G Left trigger
9 Template:G Right trigger
10 Template:G Left stick
11 Template:G Right stick
12 Template:G Undefined stick
13 Template:G D-pad right
14 Template:G D-pad left
15 Template:G D-pad down
16 Template:G D-pad up
17 Template:G Left stick left
18 Template:G Left stick right
19 Template:G Left stick up
20 Template:G Left stick down
21 Template:G Right stick left
22 Template:G Right stick right
23 Template:G Right stick up
24 Template:G Right stick down
25 Template:G Left stick wiggling left and right

备注[编辑 | 编辑源代码]

  • The 'a' tag is also registered in the code with the name 'achievement'; however, at 11 letters, this doesn't work.
  • Using multiple tags within each other is not possible. For example: [c/ffffff:[n:Marcus]] will result as [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, you can color a closing bracket if it directly follows the semicolon, so to write [Marcus] You'd write [c/ffffff:[Marcus][c/ffffff:]]

历史[编辑 | 编辑源代码]

游戏机制
 
战斗 攻击速度 • 自动挥舞 • Desktop versionMobile version3DS version 战斗瞄准 • 暴击 • 伤害 • 击退 • 仆从 • 射速
环境 环境物体 • 日夜更替 • 环境 • 事件 • 地图大小 • 月亮 • 音乐 • NPC 消失 • NPC 生成 • 状态讯息 •  • 世界 • Desktop version 世界种子 • 液体
界面 小地图 • Logo • Desktop version 标题讯息 • Console versionMobile version3DS version 小贴士 • Desktop version 材质包
物品 消耗品 • 制作站(徒手) • 交叉内容 • 防爆物体 • 挖矿速度 • 修饰语 • NPC 掉落 • 放置 • 镐力 • 稀有度 • 收纳 • 工具提示 • 使用时间 • 价值
游戏 成就 • Desktop version 设置(电脑版) • Desktop version Config.json • Desktop version 相机模式 • 数据 ID • 难易度 • Desktop versionConsole version 专家模式 • 游戏控制 • 游戏平台 • 照明模式 • NPC 名字
多人模式 聊天 • 多人模式
玩家 仇恨 • 呼吸条 • 增益减益 • 人物 • 人物风格 • 死亡 • 防御 • 溺水 • 掉落伤害 • 鬼魂 • 发型 • 生命 • 生命再生 • 物品栏 • 魔力 • 玩家属性点 • 出生点
Promotional Content