v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Editing Lever

Jump to navigation Jump to search

Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.

If you are creating a redirect to the current version's page, do not use any namespace. For example: use #REDIRECT [[Cat]], not #REDIRECT [[Main:Cat]] or #REDIRECT [[cv:Cat]]. See DF:Versions for more information.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
{{Quality|Exceptional}}
+
{{migrated article}}
{{V50 machine|name=Lever|key=l
+
{{Quality|Unrated}}
|icon=[[File:lever_icon.png]]
 
|construction=
 
* 1 [[Mechanism]]
 
|construction_job=
 
* [[Mechanic|Mechanics]]
 
|power=Uses 0 power.
 
}}
 
 
{{av}}
 
{{av}}
[[File:lever_anim_v50.gif|right]]A '''lever''' is a building constructed from one [[mechanism]] on an empty tile. It can be built from the Workshops menu, Machines/fluids, Lever ({{Menu icon|b|m|l|sep=-}}).  Once in place, it can be linked to one or more devices such as [[door]]s, [[bridge]]s or [[support]]s, permitting you to control these other devices remotely. Order the lever to be pulled by clicking on it and selecting the Pull lever button. A dwarf with the [[lever operation]] labor will get assigned the job of pulling the lever. This dwarf might be a long way away, and the delay in pulling the lever can result in [[Fun]]. Like workshops, levers can be assigned to a specific dwarf, which will prevent other dwarves from pulling the lever. Levers also make good furniture choices when constructed with high-quality mechanisms.
+
 
 +
 
 +
A '''lever''' is a building constructed from one [[mechanism]] on an empty tile. It can be built with {{k|b}},{{k|T}},{{k|l}}.  Once in place, it can be linked to one or more devices such as [[door]]s, [[bridge]]s or [[support]]s, permitting you to control these other devices remotely. Order the lever to be pulled through its {{k|q}} menu. A dwarf with the [[lever operation]] labor will get assigned the job of pulling the lever. This dwarf might be a long way away, and the delay in pulling the lever can result in [[Fun]]. Levers also make good furniture choices when constructed with high-quality mechanisms.
  
 
[[Pressure plate]]s are like levers, but are triggered by creatures or fluids directly rather than by giving an order to a dwarf. If levers are too much [[fun]], a pressure plate may be a better choice. There is more information on trap design [[trap design|here]].
 
[[Pressure plate]]s are like levers, but are triggered by creatures or fluids directly rather than by giving an order to a dwarf. If levers are too much [[fun]], a pressure plate may be a better choice. There is more information on trap design [[trap design|here]].
Line 16: Line 11:
 
When a lever is pulled, the connected device(s) activate. What happens during activation depends on the linked device:
 
When a lever is pulled, the connected device(s) activate. What happens during activation depends on the linked device:
  
* [[Door]]s, [[hatch]]es, and [[floodgate]]s open and close.
+
* [[Door]]s and [[hatch]]es open and close.
 
* [[Support]]s collapse, potentially causing a cave-in (pulling the lever again won't re-assemble the support, cave-in or not).
 
* [[Support]]s collapse, potentially causing a cave-in (pulling the lever again won't re-assemble the support, cave-in or not).
 
* [[Bridge]]s raise and lower, or retract and extend, depending on the type of bridge.
 
* [[Bridge]]s raise and lower, or retract and extend, depending on the type of bridge.
 +
* [[Floodgate]]s open and close.
 
* [[Gear assembly|Gear assemblies]] toggle between engaged and disengaged (disengaged assemblies can't support other machinery).
 
* [[Gear assembly|Gear assemblies]] toggle between engaged and disengaged (disengaged assemblies can't support other machinery).
 
* [[Restraint]]s release the creature assigned to them (leaving the restraint attached to the creature and, at present, unrecoverable).
 
* [[Restraint]]s release the creature assigned to them (leaving the restraint attached to the creature and, at present, unrecoverable).
 
* [[Cage]]s are deconstructed, releasing their occupants (needless to say, this is irreversible!)
 
* [[Cage]]s are deconstructed, releasing their occupants (needless to say, this is irreversible!)
 
* [[Spike]]s raise and lower.
 
* [[Spike]]s raise and lower.
* [[Bars]] retract and extend.
 
  
 
Different objects take different amounts of time to respond to activation; generally this is only a brief pause, but it can be enough for a charging [[goblin]] to cover more than a few tiles.
 
Different objects take different amounts of time to respond to activation; generally this is only a brief pause, but it can be enough for a charging [[goblin]] to cover more than a few tiles.
  
 
==Linking==
 
==Linking==
One [[mechanism]] is required to construct a lever, and then two more are required to '''link''' the lever with a device. You need a dwarf with the [[Mechanic]] labor enabled to link a lever to a device. The link is made by first selecting the lever with the mouse and choosing '''Link lever''', which will bring up a window showing the mechanisms which will be used and which end of the link they will be used on.  Then use the mouse to select the object the lever is to be linked to.
+
One [[mechanism]] is required to construct a lever, and then two more are required to '''link''' the lever with a device. You need a dwarf with the [[Mechanic]] labor enabled to link a lever to a device. The link is made by selecting the lever with {{k|q}}, choosing the type of object you want to link the lever to, and then using {{k|-}} and {{k|+}} to choose the particular object. The list is chronological by order of construction, most recently designated last, and the map will recenter on each object as you scroll through the list.
  
The linkage interface will give you the warning '''Cannot link to <object name>''' if the object is already linked, or tasked to be linked, to the lever in question. Buildings that are currently forbidden will also show the same warning message. A lever cannot be successfully linked to a locked door, as the dwarves must stand on the door to complete the link. The task will be suspended with a message that they cannot find a path.
+
In addition, you can choose the building to link to with the cursor, moving via arrow keys and up/down. The interface will offer and highlight the nearest applicable building. This choice by cursor was introduced in DF 0.40 and is only available when linking to levers, not pressure plates.  
  
Currently (as of 50.04) you cannot choose which specific mechanisms you want to use to connect the device to the lever; they will be automatically chosen in order of the oldest available mechanisms. The quality of a mechanism affects the accuracy of traps, but not the speed of activation. The first mechanism listed is for the device end, the second for the lever end. This is important when working with [[magma]]. One workaround is to order levers be constructed with mechanisms as you build them, but pause the construction of the lever as soon as the mechanism is delivered to the lever location. Then, when you want to use specific mechanisms, you can cancel the lever to make that lever's mechanism drop on the floor and become available for use. Alternatively you can forbid all of the mechanisms you do not want to use before linking the lever.
+
The linkage interface will not give you the option to link buildings already linked to the trigger in question, or tasked to be linked. Buildings that are currently forbidden aren't offered, either. This allows limiting the choices offered to you by deliberately forbidding buildings you don't wish to link.  
  
A single lever can be linked to any number of valid objects, and each object can have any number of levers controlling it.
+
Once a building is picked, you can choose what specific mechanisms you want to use to connect the device to the lever. The quality of a mechanism affects the accuracy of traps, but not the speed of activation. The first mechanism you choose is for the device end, the second for the lever end. This is important when working with [[magma]].
  
There is no way to de-link an object without disassembling either object or lever. When using a lever for a single-use purpose (cages or supports), the mechanism in the lever will remain in the lever, but the object and its mechanism will deconstruct. In this manner, a single lever might accumulate many mechanisms. Deconstructing the lever will free all these mechanisms and allow their reuse, so it is advisable to keep your permanent and one-time linkages to separate levers.
+
A lever cannot be successfully linked to a locked door, the dwarves must stand on the door to complete the link. The task will be suspended with a message that they cannot find a path.
 +
 
 +
A lever can be linked to any number of objects, and each object can have any number of levers controlling it.
 +
 
 +
There is no way to de-link an object without disassembling either object or lever. When using a lever for a single-use purpose (cages or supports), the mechanism in the lever will remain in the lever, but the object and its mechanism will deconstruct. In this manner, a single lever might accumulate many mechanisms. Deconstructing the lever will free all these mechanisms and allow their reuse - keep your permanent and one-time linkages to separate levers.
  
 
In contrast with [[pressure plate]]s, build order does not affect the timing of levers whatsoever.  In any given tick, any levers will send their signals before any furniture receives those signals, so it as if levers are always considered to be built after the furniture they link to.  In rare cases, it is possible for the order of arrival of the dwarf pulling the lever to affect the precise timing of lever-linked devices, as when using a hatch to drop a dwarf-- if the falling dwarf arrived later than the lever pulling dwarf, the dropping dwarf will take an extra tick to fall.
 
In contrast with [[pressure plate]]s, build order does not affect the timing of levers whatsoever.  In any given tick, any levers will send their signals before any furniture receives those signals, so it as if levers are always considered to be built after the furniture they link to.  In rare cases, it is possible for the order of arrival of the dwarf pulling the lever to affect the precise timing of lever-linked devices, as when using a hatch to drop a dwarf-- if the falling dwarf arrived later than the lever pulling dwarf, the dropping dwarf will take an extra tick to fall.
Line 44: Line 43:
 
:Example: 2 levers (both in "off" position) are connected to a drawbridge. After pulling the first lever, the bridge will lift. Pulling the second lever tells the bridge to "open", which it already has done - no visible effect. When it is pulled a second time it will let the bridge down. This in turn requires the ''first'' lever (still in "open/lift" position) to be pulled twice to trigger a change (lift again), and so on.
 
:Example: 2 levers (both in "off" position) are connected to a drawbridge. After pulling the first lever, the bridge will lift. Pulling the second lever tells the bridge to "open", which it already has done - no visible effect. When it is pulled a second time it will let the bridge down. This in turn requires the ''first'' lever (still in "open/lift" position) to be pulled twice to trigger a change (lift again), and so on.
  
"On" and "off" state is fixed and dependent on the lever, not the object that lever is linked to
+
"On" and "off" state is fixed and dependent on the lever, not the object that lever is linked to:
 
 
In DF Premium,
 
 
 
* "lever to the left" is '''on'''
 
* "lever to the right" is '''off'''
 
 
 
While in DF Classic,
 
  
 
* "dash to the right" ( '''ó''' ) is '''on'''
 
* "dash to the right" ( '''ó''' ) is '''on'''
Line 113: Line 105:
 
* [[Support]] &ndash; Deconstructs the support, ideally without a dwarf next to it. Most commonly used to cause controlled [[cave-in]]s. The support's building material and its attached mechanism can both be recovered (unless they happen to get destroyed in said cave-in).
 
* [[Support]] &ndash; Deconstructs the support, ideally without a dwarf next to it. Most commonly used to cause controlled [[cave-in]]s. The support's building material and its attached mechanism can both be recovered (unless they happen to get destroyed in said cave-in).
  
==Keeping track of levers==
+
==Labeling==
Since pulling the wrong lever can lead to lots of [[fun]], it's worth making sure you know what your levers do.
+
There is no built-in indication of what a lever does, and pulling them to see what will happen can be immensely [[fun]]. Naming the levers using {{k|Ctrl}}-{{k|n}} is the most foolproof way of labeling levers; color-coding of levers can give some indication too. If you really don't want to name your levers, using the [[note]] function can fulfill the same purpose.
 +
 
 +
However, it is possible to ascertain whether or not a building has been linked to a lever by finding the building under {{k|R}} "View Rooms/Buildings" and then selecting {{k|t}} "Zoom to building items".  A device that is actuated by a lever not only lists the components of the building but will also include a mechanism item.  Viewing the lever itself this way will display one mechanism for each building the lever is linked to (plus one mechanism from the construction of the lever itself).
 +
 
 +
There is way to ascertain which lever is linked to what, but it becomes very hard when you have many linkable items. Find the lever, use "q" and then select "add new task". Try for every linkable thing in your fortress, to link the lever to it. If an object isn't available for linking, that's because it is already linked. Though this method isn't very usable to find the single linked item in all of them, it is useful when you forgot whether the left or the right lever was linked to the support.
  
* From a building controlled by a lever, you can go to "Show linked buildings" to locate the lever it is controlled by;
+
Finally, the utility [[Utility:DFHack|DFHack]] provides a new GUI command "gui/mechanisms" (bound to {{k|ctrl}}-{{k|m}} by default) which allows you to list and navigate mechanical connections from inside the game itself. This is by far the easiest and least tedious method to review your levers.
* From a lever, you can go to "Show linked buildings" to locate the buildings it controls;
 
* Finally, it's helpful to give your levers descriptive names to make them easier to locate.
 
  
 
==Toggling Passages==
 
==Toggling Passages==

Please note that all contributions to Dwarf Fortress Wiki are considered to be released under the GFDL & MIT (see Dwarf Fortress Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)

Templates used on this page:

This page is a member of 1 hidden category: