Traincarts插件/控制牌/探測器

From BergerHealer Wiki
Revision as of 12:39, 3 September 2024 by TC Bot (talk | contribs) (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Other languages:
English • ‎中文 • ‎中文(中國大陸)‎

» 控制牌


簡介

探測器控制牌(Detector)與Switcher控制牌在探測列車的功能上比較類似,但是detector有如下幾個特性:

  • 它們不會像switcher一樣對軌道進行操作。
  • 它們可以同時檢測多個軌道。

你可以使用detector檢測一段長度上的列車。舉個例子:

  • 假如軌道上有其它列車佔用,你可以讓列車停止自動生成。
  • 同樣,如果detector檢測到了某一條側線上有其它列車佔用,配合switcher控制牌可以讓後續列車前往其它軌道。


語法

第一行支持兩種寫法:

  • [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.