Difference between revisions of "TrainCarts/Signs/Detector"

From BergerHealer Wiki
Jump to navigation Jump to search
(Prepared the page for translation)
(Marked this version for translation)
Line 1: Line 1:
 
<languages/>
 
<languages/>
 
<translate>
 
<translate>
 +
<!--T:1-->
 
[[Special:MyLanguage/TrainCarts/Signs|« Go back]]
 
[[Special:MyLanguage/TrainCarts/Signs|« Go back]]
  
  
== Introduction ==
+
== Introduction == <!--T:2-->
  
 +
<!--T:3-->
 
Detector signs are very similar to switcher signs, only difference being that:
 
Detector signs are very similar to switcher signs, only difference being that:
 
* They do not switch the tracks
 
* They do not switch the tracks
 
* They detect multiple tracks
 
* They detect multiple tracks
  
 +
<!--T:4-->
 
You can use detector signs to detect certain trains on a very long piece of track. You can use it, for example, to stop spawning trains if the track is currently in use. You can also use it to make trains take alternative routes if a certain track is in use.
 
You can use detector signs to detect certain trains on a very long piece of track. You can use it, for example, to stop spawning trains if the track is currently in use. You can also use it to make trains take alternative routes if a certain track is in use.
  
  
== Syntax ==
+
== Syntax == <!--T:5-->
  
 +
<!--T:6-->
 
'''First line:''' ''Whether to detect trains or single carts''
 
'''First line:''' ''Whether to detect trains or single carts''
  
 +
<!--T:7-->
 
'''Second line:''' ''detector (name)''
 
'''Second line:''' ''detector (name)''
  
 +
<!--T:8-->
 
'''Third line:''' ''Statement 1''
 
'''Third line:''' ''Statement 1''
  
 +
<!--T:9-->
 
'''Fourth line:''' ''Statement 2''
 
'''Fourth line:''' ''Statement 2''
  
Line 27: Line 34:
 
<translate>
 
<translate>
  
 +
<!--T:10-->
 
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 ''detector'', to make sure two detector signs can only find each other.
 
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 ''detector'', to make sure two detector signs can only find each other.
  
  
== Placement ==
+
== Placement == <!--T:11-->
  
 +
<!--T:12-->
 
[[Special:MyLanguage/Image:TrainCarts-detector.png|thumb|Two detector signs in operation]]
 
[[Special:MyLanguage/Image: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.
  
  
== Statements ==
+
== Statements == <!--T:13-->
  
 +
<!--T:14-->
 
On the third and fourth lines you can put the statements to evaluate.
 
On the third and fourth lines you can put the statements to evaluate.
  
 +
<!--T:15-->
 
[[Special:MyLanguage/TrainCarts/Signs/Statements|Statements]]
 
[[Special:MyLanguage/TrainCarts/Signs/Statements|Statements]]
 
</translate>
 
</translate>

Revision as of 17:36, 8 February 2021

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

« Go back


Introduction

Detector signs are very similar to switcher signs, only difference being that:

  • They do not switch the tracks
  • They detect multiple tracks

You can use detector signs to detect certain trains on a very long piece of track. You can use it, for example, to stop spawning trains if the track is currently in use. You can also use it to make trains take alternative routes if a certain track is in use.


Syntax

First line: Whether to detect trains or single carts

Second line: detector (name)

Third line: Statement 1

Fourth line: Statement 2

Signtemplate.png
[train]
detector
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 detector, to make sure two detector signs can only find each other.


Placement

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.


Statements

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

Statements