TrainCarts/Signs/Detector [zh]

From BergerHealer Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:
* 检测器可检测多条轨道。
* 检测器可检测多条轨道。


你可以使用detector检测一段长度上的列车。举个例子:
可用检测器来检测某段长轨道上的某个列车。例如若轨道被占用,可用检测器来停止生成列车,或使列车驶入其他替代路线。
*假如轨道上有其它列车占用,你可以让列车停止自动生成。
*同样,如果detector检测到了某一条侧线上有其它列车占用,配合switcher控制牌可以让后续列车前往其它轨道。





Revision as of 03:06, 28 December 2025

Other languages:

介紹

檢測器與轉轍器非常相似,兩者的區別在於:

  • 檢測器不切換軌道。
  • 檢測器可檢測多條軌道。

可用檢測器來檢測某段長軌道上的某個列車。例如若軌道被佔用,可用檢測器來停止生成列車,或使列車駛入其他替代路線。


語法

第一行支持兩種寫法:

  • [train]檢測整列列車
  • [cart]單獨檢測列車中的某一輛礦車

第二行:detector<控制牌名稱> detector用於聲明控制牌類型,後面跟着的名稱不是必須的。

Third line: Statement 1

Fourth line: Statement 2

Signtemplate.png
[train]
detector (name)
o@player1
tag1


If the third and fourth lines are kept empty, it will toggle the lever whenever it finds a train. A name can optionally be put after the word detector, to make sure two detector signs can only find each other.

Placement

Two detector signs in operation

Placement is rather difficult, since you need to use pairs of detector signs, one on both ends of the track to detect. The detector signs have to face each other, or they will have a hard time finding each other. Both signs are operated simultaneously, so you can use both ends to toggle a lever, using 4 statements in total. By adding multiple detector signs underneath one track you can expand the amount of statements.

Statements

On the third and fourth lines you can put the statements to evaluate.