Difference between revisions of "TrainCarts/Signs/Detector/zh"
Saionji Rin (talk | contribs) (Created page with "» 控制牌") |
(Updating to match new version of source page) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 9: | Line 9: | ||
*它们可以同时检测多个轨道。 | *它们可以同时检测多个轨道。 | ||
− | + | 你可以使用detector检测一段长度上的列车。举个例子: | |
− | + | *假如轨道上有其它列车占用,你可以让列车停止自动生成。 | |
− | + | *同样,如果detector检测到了某一条侧线上有其它列车占用,配合switcher控制牌可以让后续列车前往其它轨道。 | |
− | + | == 语法 == | |
− | = | ||
− | |||
− | + | 第一行支持两种写法: | |
− | + | *[train]检测整列列车 | |
− | + | *[cart]单独检测列车中的某一辆矿车 | |
− | <div | + | <div class="mw-translate-fuzzy"> |
− | + | 第二行:detector<控制牌名称> | |
+ | detector用于声明控制牌类型,后面跟着的名称不是必须的。 | ||
</div> | </div> | ||
Line 34: | Line 33: | ||
</div> | </div> | ||
− | {{sign|[train]|detector | + | {{sign|[train]|detector (name)|o@player1|tag1}} |
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
Line 45: | Line 44: | ||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
− | [[ | + | [[File:TrainCarts-detector.png|thumb|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. | 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. | ||
</div> | </div> | ||
− | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> |
Latest revision as of 12:39, 3 September 2024
简介
探测器控制牌(Detector)与Switcher控制牌在探测列车的功能上比较类似,但是detector有如下几个特性:
- 它们不会像switcher一样对轨道进行操作。
- 它们可以同时检测多个轨道。
你可以使用detector检测一段长度上的列车。举个例子:
- 假如轨道上有其它列车占用,你可以让列车停止自动生成。
- 同样,如果detector检测到了某一条侧线上有其它列车占用,配合switcher控制牌可以让后续列车前往其它轨道。
语法
第一行支持两种写法:
- [train]检测整列列车
- [cart]单独检测列车中的某一辆矿车
第二行:detector<控制牌名称> detector用于声明控制牌类型,后面跟着的名称不是必须的。
Third line: Statement 1
Fourth line: Statement 2
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
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.