Difference between revisions of "TrainCarts/Signs/Trigger/zh-cn"

From BergerHealer Wiki
Jump to navigation Jump to search
(Created page with "== 语法 ==")
(Created page with "设置触发器的名称。该名称将应用于后面显示的获取信息。对于上面的语法示例,触发器会显示以下内容(SignLink 会自动更新): {|...")
Line 18: Line 18:
 
=== 第三行 ===
 
=== 第三行 ===
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
设置触发器的名称。该名称将应用于后面显示的获取信息。对于上面的语法示例,触发器会显示以下内容(SignLink 会自动更新):
Sets the trigger name. The name is used to show the gathered information on signs later on. For the syntax example above, the following things can be displayed on signs, which will be updated by SignLink automatically:
 
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! Variable on sign
+
! 变量
! What is displayed
+
! 显示内容
 
|-
 
|-
 
| %trigger1%
 
| %trigger1%
| The count-down from the time set on the fourth line
+
| 从第四行设定的时间开始倒计时。
 
|-
 
|-
 
| %trigger1T%
 
| %trigger1T%
| The same as the above
+
| 与上面相同。
 
|-
 
|-
 
| %trigger1D%
 
| %trigger1D%
| The destination of the train
+
| 列车的目的地。
 
|-
 
|-
 
| %trigger1N%
 
| %trigger1N%
| The train name
+
| 列车的名称。
 
|-
 
|-
 
| %trigger1V%
 
| %trigger1V%
| The speed of the train
+
| 列车的速度。
 
|}
 
|}
</div>
 
  
  

Revision as of 17:31, 17 September 2024

Other languages:
English • ‎中文(中国大陆)‎

« 返回


介绍

触发器用于显示列车的信息。它也可以显示列车进站的倒计时,内部通过计时器来进行测量。记得用红石激活触发器,若想始终激活触发器,请使用 [+train]


语法

Signtemplate.png
[train]
trigger
trigger1
00:26


第二行:trigger


第三行

设置触发器的名称。该名称将应用于后面显示的获取信息。对于上面的语法示例,触发器会显示以下内容(SignLink 会自动更新):

变量 显示内容
%trigger1% 从第四行设定的时间开始倒计时。
%trigger1T% 与上面相同。
%trigger1D% 列车的目的地。
%trigger1N% 列车的名称。
%trigger1V% 列车的速度。


Fourth line

It sets the count-down time that is used when a train activates the trigger. You can use the common ':'-notation to make hour:minute:seconds, or minute:seconds, or just seconds. If you leave it empty, it will go into 'record mode'.


Record mode

This means that the plugin is going to calculate the duration itself. As soon as one minecart activates the trigger, it keeps track of this minecart while measuring the time. As soon as the minecart stops or is destroyed, the time is stopped and put on the sign.