Terraria Wiki
注册
Advertisement
此页面的(部分)内容需要被翻译。
你可以帮助我们来翻译此页面。

电路是在1.1更新后引入泰拉瑞亚的一个特性。电线没有打开和关闭两种状态,而是遵循切换规则;打开一个开关将触发所有经由电线连接到它的输出。

基本

File:Basic Wiring.png

一个基本的电路示例。

最基本的电路是很简单的。一个电路的两个主要组件是输入和输出。输入是产生电流的东西,输出是接受电流的东西。最重要的一点是要记住没有东西可以产生一个持续电流。对于大多数输入来说,没有这样的可以处在开或关两种状态的东西。当它们被激活时,它们将在同一时间内激活连接到它们的每一个输出。这意味着你不能将开关连接在一个雕像上并且使它不断产生物品;你必须反复开关开关或者增加一个计时器

从版本1.3.1开始, 游戏中有颜色不同的四种电线, 这四种电线可以用对应的四种扳手、五彩扳手或者精密线控仪来连接。所有的扳手使用同样规格的电线,且在被放置的同时会被方便地漆上颜色。四种扳手在功能上是相通的, 但是不同颜色的电线不会相互连接,例如黄线不会与红绿蓝线中的任意一种项连; 这样的四种电线让玩家能够建造更加紧凑复杂的电路。外加上分线盒的出现,允许同色电线交叉而不相连, 使得电线的排布可以千变万化。

输入

开关及控制杆

开关控制杆都是输入。它们每次切换时都会发出一道电流。它们扳到哪个方向并不重要。 如果将火把连接到开关,在第一次扳开关时它将被关闭,在第二次扳开关时将打开,即使火把连接到开关上时它正处于关闭位置也是如此。

压力板

一个压力板会在每次被踩踏时产生电流。踩上时激活它。探测敌人是压力板最有效的使用方式,可以用来制作陷阱或是单纯的提醒你做好准备。(注意:一些压力板只能用来探测玩家。)不同颜色的压力板会在不同情况下被激活使用。

感应器

当满足一定条件的时候,感应器就会产生电流。从1.3.1版本开始,你可以使用三种感应器。它们分别是逻辑感应器(夜), 逻辑感应器(昼)与逻辑感应器(玩家出入上方)。在夕阳西下时 (7:29 到 7:30) 逻辑感应器(夜)会产生一次电流。相对的逻辑感应器(昼)会在黎明破晓之际(4:29 到 4:30)产生一次电流。逻辑感应器(玩家出入上方)在玩家踏入和踏出其探测区域的时候产生一次电流。不过请注意逻辑感应器不会产生恒定电流,昼夜感应器都只会在特定时段产生一次电流,逻辑感应器(玩家出入上方)的探测区域也是如此。

输出

火把及其他照明物

许多光源(但不是全部)可以被经由电线连接的输入所操控。它们的状态将会在收到一股电流后被切换。

门将在收到电流后切换其状态。尽管门只算是一种转轴机关, 你还是可以用电线连接打开的门并触发电路去关闭它。当一扇大门紧闭时,它将无法接受电流并且不会因为电流而打开 。这个特性对于一道需要自动关闭的安全出口十分有用, 并且你还不用担心因误触开关而导致门意外打开的窘境发生。请注意,站在门缝中间然后触发电路关闭门的愚蠢行径可能会使门连同其物品突然消失。

雕像

雕像在收到由电线传递的一股电流后会激活一次, 不过一次雕像的激活必须上一次的激活之后过去足够的时间。并非所有雕像都有功能,有功能的雕像则通常用于刷怪。 不过由雕像刷出的敌怪不会掉落金钱且掉落物的掉率通常会更低.。由雕像生成的小动物不能被捕捉。

致动器

在接收到电流后,制动器将会改变其所在物块的虚实状态。你可以用它来建造一扇靠开关或者拉杆来开合的门来代替普通的门,这样的门不会被敌怪攻破,也能在。它也可以用来创造陷阱门来在不需要的时候遮盖熔岩或者其他的陷阱。在血月发生时,用制动器与方块来阻挡门被攻破是一种明智的选择。

飞镖机关

当电流到达飞镖机关且飞镖机关未进入冷却时,飞镖机关会射出一枚飞镖。这些射出的飞镖在制造轻微伤害的同时能够让被击中的目标100%进入中毒状态,还能清理杂草丛生的草地。这些飞镖能够到达很远的距离,直到离机关1600x800的边界处才会消失.

其他机关

收到电流之后,这些机关将会被启动,然后从中伸出长矛或者是喷出火舌。一定要提防附近可能出现的机关,因为它们会对游戏早期玩家是极其致命的,这些机关每一下都能对有20点防御的玩家造成大约70点的伤害。

炸药

Explosives detonate when a current is received. The explosion they cause is slightly stronger than that of a Dynamite. They can be placed tactically and detonated from a safe distance, making them a more accurate, yet not as simple to set up solution than other block-damaging explosives.

There are two kinds of pumps that can be crafted to move large quantities of Water, Lava, or Honey. the Inlet Pump sucks in a liquid (as long as it is touching the liquid), and the Outlet Pump sends it out (until the pump is completely submerged). The two pumps need to be connected with a wire which acts like a "pipe". Each time either pump is activated, the Inlet Pump will transfer up to four tiles of liquid to the Outlet Pump. For continuous automated pumping, a Timer must be connected to the wire. This method may also be used in a trap manner in defending your crafted home if used correctly. It should be noted that over time, the amount of liquid pumped out will be greater than the amount of liquid pumped in. (See: Guide:Making liquid.)

计时器

There are three types of timers: one second, three second, and five second. Timers are both an input and an output, making them uniquely capable of sending close to a constant current. If a timer is active, it will send a current every 1, 3 or 5 seconds, depending on which type is used. If a timer receives a current, it will change its state. Timers can be used with statues to activate them as often as possible. Unfortunately, timers can't be placed sequentially to create longer intervals between activations unless you use a special technique. Two one second timers will not add up to two seconds. However, if you link timers together with different colored wire, it will make a cascade that will make a custom length of time kind of timer. See https://www.youtube.com/watch?v=KhVgnlOidpY for how to build it. A current will be sent at the interval of the shortest timer on the circuit. A simple use for timers would be making a disco room or mob area.

引擎

开关、拉杆和计时器不是保持农场、灯光及一系列陷阱运作唯一的方式。只需Crab Statue或是Bird Statue以及压力版,就可以简单地制作出一个引擎,可以比一秒timer更频繁地激活。原理是先生成和捕获螃蟹或鸟,再让它踩压力版。引擎因此成为hooksgelbanner农场的理想选择。

建造引擎有多种方法。The Bird Engine with multiple pressure plates is more efficient to use and is much more compact compared to the Crab Engine, which requires a path for crabs to walk to the pressure plates.

There is a guide in the forums that advanced players may find helpful An Introduction to Hoiktronics "Hoiktronic is intended to communicate the key use of the 'hoik' glitch (with sloped blocks) to control the movement of NPCs so rapidly and precisely that they become somewhat like big, fat electrons, facilitating rapid digital mechanisms." Another useful guide is Fastest Engines, which includes: Hoiktronic Counter (Video), Crab Engine (Compact), Hoik Engines, House Hoik Engine, Teleporter Engines (Standard, Hoik Hybrid (Guide Engine, Hoik Hybrid (Ultimate, 1 Step)), Minecart Engines, Bird Engines, Rainstick Engines (Video included) (Stumps, Repeater, Spear Trap Batteries, Continuous Drop), 1.3 Update Notes (Including 'Ghost Dummy' Engines).

其他

引爆器

Detonators are special wiring objects added in version 1.3.0.1. They are different from most other wiring devices due to being both an input and output (timers being the only other device like it). They are also a combination of pre-existing inputs, namely the Switch and Pressure Plate. They are a 2x2 object that, when stepped on by the player (but not other entities) produces current, and can also be right-clicked to do the same. When a current runs through a Detonator, it switches states, and also is unable to be right-clicked to switch states until a second current is received by it.

二极管

Timers often "backfire" onto a mechanism, but with the Teal Pressure Pad and a Dart Trap it is possible to create a "diode," a wiring function which only works in one direction. Wire the source up to the Dart Trap, place the Teal Pressure Pad directly in line (you may need to do some hammering of the trap or plate to make sure the dart will hit), and wire the output up to the Pressure Pad. This means that when the source is activated, the Dart Trap fires, causing the Teal Pressure Pad to register a hit. However, because there is no continuous wire then whatever is rigged up to the Teal Pressure Pad will not re-activate the source.

A simpler form of diode can be constructed out of most Logic Gates (except XOR) with a single Lamp on top. Wire the source to the lamp and the sink to the gate.

计数器

It is possible to construct a mechanism out of a series of Logic Gates whose output signal will be triggered on every other input signal. Such mechanisms can be concatenated to produce a machine with the ability to count the number of inputs signals it receives. This may be used, for example, to count the number of days by attaching such a machine to a Logic Sensor (Day).

Template:Translation project

Advertisement