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

From BergerHealer Wiki
Jump to navigation Jump to search
(Created page with "« 返回")
 
(9 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
== 介绍 ==
 
== 介绍 ==
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
跳过牌使用类似于转辙器的语句来使列车跳过前方一个或多个控制牌。
Skip sign causes the train to skip one or more signs further up ahead based on statements similar to the switcher sign.
+
例如,当某辆列车未设置目的地时,跳过牌可用于让列车跳过车站。
It can be used to make trains skip a station sign when a certain destination is not set, for example.
 
</div>
 
  
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
== 语法 ==
== Syntax ==
 
</div>
 
  
 
{{sign|[train]|skip 2 1|<statement 1>|<statement 2>}}
 
{{sign|[train]|skip 2 1|<statement 1>|<statement 2>}}
  
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
* 第一行:[train] [cart]。当需要以每辆矿车为基础跳过时,使用 [cart] 会比使用 [train] 更好。不过一般都使用 [train] 就行了。与其他控制牌相同,需要红石激活。你可以使用 [+train] [+cart] 来让跳过牌始终运作。
* First line: [train] or [cart]. When the sign to be skipped works on a per-cart basis, using [cart] instead of [train] can be better. In general [train] is all you'll need. Like with other signs, redstone power matters. This means the skip sign is only active when powered by redstone. You can use [+train] or [+cart] to always power it.
+
* 第二行:''skip'',如果不添加其他参数,则会让列车跳过下一个控制牌。如果后只跟一个数值,则该数值表示列车在跳过前要经过的控制牌数量(经过多少个控制牌才执行跳过)。如果后跟两个数值,则第二个数值表示要跳过的控制牌数量(要跳过多少个控制牌)。示例中,列车要经过两个控制牌,在第三个控制牌选择跳过。你还可以指定非数字符号过滤。
* Second line: ''skip'', which without further arguments will skip the very next sign the train crosses. When followed by one number, the number sets the number of signs the train has to cross until the sign is skipped. When followed by a second number, the second number sets the number of signs to skip. In the example, a single sign will be skipped after having crossed two signs. A non-numeric sign filter can also be specified.
+
* 第三行和第四行:[[Special:MyLanguage/TrainCarts/Signs/Statements|语句]](默认使用“和逻辑”)决定何时激活跳过牌。可以将“|”写在第二条语句的前面,这样两条语句将通过“或逻辑”连接在一起。若两行留空,则跳过牌始终运作。
* Third and fourth lines: [[Special:MyLanguage/TrainCarts/Signs/Statements|statements]] (AND-ed together) for when to activate the skip sign. It is possible to put | in front of the second statement so that the two are OR-ed together instead. Leaving both lines empty makes the skip sign activate all the time.
 
</div>
 
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
=== 过滤 ===
=== Filter ===
+
在跳过牌的第二行,可以在任何经过/跳过控制牌的数量前面设置过滤。这可以让跳过操作忽略第二行指定的控制牌类型。过滤不区分大小写。例如,下面的跳过牌会跳过下一个车站,但忽略非车站的控制牌:
On the second line of the skip sign a filter can be added before any skip offsets/counts. This makes the skip mechanism only ignore signs whose second line starts with the filter specified. The filter is case-insensitive. For example, the following skip sign skips the very next station sign, but ignores non-station signs:
 
</div>
 
  
<div lang="en" dir="ltr" class="mw-content-ltr">
 
 
{{sign|[+train]|skip station 0 1|}}
 
{{sign|[+train]|skip station 0 1|}}
</div>
 
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
== 示例 ==
== Example ==
 
</div>
 
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
[[File:Skip sign example.png|thumb|1220x1220px|列车从左侧驶来,首先经过运作的([+train])跳过牌。当列车未设置目的地 ''square_west'' 或(''<nowiki>|</nowiki>'')列车不是空列车时(有乘客或物品),跳过牌就会让这辆列车跳过下一个控制牌。在这个示例中,下一个控制牌是车站。因此,不打算开往该车站的列车不会在车站停留 5 秒,而是会直接穿过车站。]]
[[File:Skip sign example.png|thumb|1220x1220px|Trains come from the left and first hit the powered ([+train]) skip sign. When the train does not have destination ''square_west'' set or ( ''<nowiki>|</nowiki>'' ) is empty, the skip sign is activated and skips the very next sign. In this case that's the station sign. As a result, trains not meant for this station will cross the station sign without being stopped for 5 seconds.]]
 
</div>
 

Latest revision as of 13:20, 15 September 2024

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

« 返回


介绍

跳过牌使用类似于转辙器的语句来使列车跳过前方一个或多个控制牌。 例如,当某辆列车未设置目的地时,跳过牌可用于让列车跳过车站。


语法

Signtemplate.png
[train]
skip 2 1
<statement 1>
<statement 2>


  • 第一行:[train] 或 [cart]。当需要以每辆矿车为基础跳过时,使用 [cart] 会比使用 [train] 更好。不过一般都使用 [train] 就行了。与其他控制牌相同,需要红石激活。你可以使用 [+train] 或 [+cart] 来让跳过牌始终运作。
  • 第二行:skip,如果不添加其他参数,则会让列车跳过下一个控制牌。如果后只跟一个数值,则该数值表示列车在跳过前要经过的控制牌数量(经过多少个控制牌才执行跳过)。如果后跟两个数值,则第二个数值表示要跳过的控制牌数量(要跳过多少个控制牌)。示例中,列车要经过两个控制牌,在第三个控制牌选择跳过。你还可以指定非数字符号过滤。
  • 第三行和第四行:语句(默认使用“和逻辑”)决定何时激活跳过牌。可以将“|”写在第二条语句的前面,这样两条语句将通过“或逻辑”连接在一起。若两行留空,则跳过牌始终运作。

过滤

在跳过牌的第二行,可以在任何经过/跳过控制牌的数量前面设置过滤。这可以让跳过操作忽略第二行指定的控制牌类型。过滤不区分大小写。例如,下面的跳过牌会跳过下一个车站,但忽略非车站的控制牌:

Signtemplate.png
[+train]
skip station 0 1

示例

列车从左侧驶来,首先经过运作的([+train])跳过牌。当列车未设置目的地 square_west 或(|)列车不是空列车时(有乘客或物品),跳过牌就会让这辆列车跳过下一个控制牌。在这个示例中,下一个控制牌是车站。因此,不打算开往该车站的列车不会在车站停留 5 秒,而是会直接穿过车站。