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.

Difference between revisions of "v0.31:Lever"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m (rewrote introduction and activation section for grammar and syntax)
(Copied On/Off notes from D40 due to links here from DF2010:Machine component (I'm assuming nothing's changed))
Line 28: Line 28:
  
 
There is no way to de-link an object without disassembling either object or lever {{verify}}. 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 to reuse them - keep your permanent and one-time linkages to separate levers.
 
There is no way to de-link an object without disassembling either object or lever {{verify}}. 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 to reuse them - keep your permanent and one-time linkages to separate levers.
 +
 +
==On/Off vs Open/Close==
 +
Levers normally have an "on" and an "off" state, seen as whether the small tag at the top of the lever is to the left ("off" state) or the right ("on" state).  Upon being pulled, the state of the lever changes, and everything they're connected to updates to the ''corresponding'' state of that lever, and does not just ''change'' states ("toggle").  This becomes important if you have several levers attached to the same device, or one trigger attached to several systems.
 +
: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:
 +
 +
* "dash to the right" ( '''ó''' ) is '''on'''
 +
* "dash to the left" ( '''ò''' ) is '''off'''
 +
 +
Note, however, that gear assemblies are ''the sole exception'' to this: Instead of On/Off triggers, they indeed '''do''' toggle.
 +
 +
Several devices, such as {{L|floodgate}}s and {{L|bridge}}s, have a delayed response to all incoming signals, and will not respond to subsequent signals until the first has taken effect.  For instance, if you pull a lever attached to a floodgate on then off in rapid succession, the floodgate will only respond to the first signal, independent of the position the lever rests in eventually.
 +
 +
==On/Off states==
 +
Objects that can be controlled by levers include:
 +
 +
===== Multiple Uses =====
 +
 +
A "step" is not a step that a dwarf makes, and not based on {{L|Frames per second|FPS}}.  It's one "step" that the game advances.  When paused (via {{k|spacebar}} ), you can manually advance the game "1 step" by hitting the period ( {{k|.}} ) key.
 +
 +
* {{L|Bridge}} – Activates 100 steps after being triggered
 +
** '''On:''' Turns the bridge into either a raised drawbridge, or a retracted bridge, depending on which option was chosen when the the bridge was constructed.
 +
** '''Off:''' Returns the bridge to normal.
 +
 +
* {{L|Door}} – Activates instantly. Note that once you connect a door, it is either completely open or sealed shut. There is no "''closed, but can be opened by a dwarf''" state anymore.
 +
** '''On:''' Opens the door.
 +
** '''Off:''' Closes the door.
 +
 +
* {{L|Floodgate}} –  Activates 100 steps after being triggered.
 +
** '''On:''' Opens the floodgate.
 +
** '''Off:''' Closes the floodgate.
 +
 +
* {{L|Floor hatch}} – Activates instantly.  Note that, like doors, once you connect a hatch, it is either completely open or sealed shut.
 +
** '''On:''' Opens the hatch.
 +
** '''Off:''' Closes the hatch.
 +
 +
* {{L|Grate}} – Activates 100 steps after being triggered. When it is open, it just disappears. Liquids go through it just the same, but it cannot be walked on anymore. Anybody on it will fall.
 +
** '''On:''' Opens the grate.
 +
** '''Off:''' Closes the grate.
 +
 +
* {{L|Bars}} – Activates 100 steps after being triggered. When it is open, it just disappears. Liquids go through it just the same, but it cannot be walked on anymore. Anybody on it will fall.
 +
** '''On:''' Opens the bars.
 +
** '''Off:''' Closes the bars.
 +
 +
* {{L|Trap|Upright Spear/Spikes}} – Activates 40 steps after being triggered.
 +
** '''On:''' Retracts spears/spikes.
 +
** '''Off:''' Extends spears/spikes.
 +
 +
* {{L|Gear assembly}} – When it is disengaged, no power goes through it and anything that is being kept up by its presence (like a {{L|windmill}} right on top of it) falls down.
 +
** '''On:''' Toggles gear state.
 +
** '''Off:''' Toggles gear state.
 +
 +
===== One-Shot =====
 +
 +
These items, when activated, deconstruct, and/or cannot be triggered again until re-linked.
 +
 +
* {{L|Cage}} – Deconstructs the cage and releases all of its contents. The cage and its attached mechanism will be left on the floor nearby; you recover the {{L|mechanism}} used on the cage but you do not recover the mechanism used in the lever until you deconstruct the lever itself.
 +
* {{L|Restraint}} – Deconstructs the {{L|Restraint|chain/rope}} and releases whatever creature it held. The restraint's mechanism will be left on the floor nearby, and the restraint itself will remain attached to the creature's neck; again, you recover the {{L|mechanism}} used on the restraint but you do not recover the mechanism used in the lever until deconstructing the lever itself.
 +
* {{L|Support}} – Deconstructs the support, ideally without a dwarf next to it. Most commonly used to cause controlled {{L|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).
  
 
==Labeling==
 
==Labeling==
There is no built-in indication of what a lever does, and pulling them to see what will happen can be immensely {{L|fun}}. Using the {{L|note}} function is the most foolproof way of labeling levers; colour-coding of levers can give some indication too.
+
There is no built-in indication of what a lever does, and pulling them to see what will happen can be immensely {{L|fun}}. Using the {{L|note}} function is the most foolproof way of labeling levers; color-coding of levers can give some indication too.
  
 
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.
 
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.

Revision as of 01:40, 12 May 2011

This article is about an older version of DF.


A lever is a building constructed from one Template:L on an empty tile. Once in place, it can be linked to one or more devices such as Template:Ls, Template:Ls or Template:Ls, permitting you to control these other devices remotely. Order the lever to be pulled through its q menu. A free dwarf 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 Template:L.

Template:Ls 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 Template:L, a pressure plate may be a better choice. There is more information on trap design Template:L.

Activation of the devices

When a lever is pulled, the connected device(s) activates. What happens during activation depends on the linked device:

  • Template:Ls and Template:Les open and close.
  • Template:Ls collapse, potentially causing a cave-in (pulling the lever again won't re-assemble the support, cave-in or not).
  • Template:Ls raise and lower, or retract and extend, depending on the type of bridge.
  • Template:Ls open and close.
  • Template:L engage and disengage (disengaged assemblies can't support other machinery).
  • Template:Ls release the creature assigned to them (leaving the restraint attached to the creature and, at present, unrecoverable).
  • Template:Ls are deconstructed, releasing their occupants (needless to say, this is irreversible!)
  • Template:Ls raise and lower.

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 Template:L to cover more than a few tiles.

Linking

One Template:L is required to construct a lever, and then two more are required to link the lever with a device. The link is made by selecting the lever with q, choosing the type of object you want to link the lever to, and then using - and + 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.

Then 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 Template:L.

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 [Verify]. 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 to reuse them - keep your permanent and one-time linkages to separate levers.

On/Off vs Open/Close

Levers normally have an "on" and an "off" state, seen as whether the small tag at the top of the lever is to the left ("off" state) or the right ("on" state). Upon being pulled, the state of the lever changes, and everything they're connected to updates to the corresponding state of that lever, and does not just change states ("toggle"). This becomes important if you have several levers attached to the same device, or one trigger attached to several systems.

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:

  • "dash to the right" ( ó ) is on
  • "dash to the left" ( ò ) is off

Note, however, that gear assemblies are the sole exception to this: Instead of On/Off triggers, they indeed do toggle.

Several devices, such as Template:Ls and Template:Ls, have a delayed response to all incoming signals, and will not respond to subsequent signals until the first has taken effect. For instance, if you pull a lever attached to a floodgate on then off in rapid succession, the floodgate will only respond to the first signal, independent of the position the lever rests in eventually.

On/Off states

Objects that can be controlled by levers include:

Multiple Uses

A "step" is not a step that a dwarf makes, and not based on Template:L. It's one "step" that the game advances. When paused (via spacebar ), you can manually advance the game "1 step" by hitting the period ( . ) key.

  • Template:L – Activates 100 steps after being triggered
    • On: Turns the bridge into either a raised drawbridge, or a retracted bridge, depending on which option was chosen when the the bridge was constructed.
    • Off: Returns the bridge to normal.
  • Template:L – Activates instantly. Note that once you connect a door, it is either completely open or sealed shut. There is no "closed, but can be opened by a dwarf" state anymore.
    • On: Opens the door.
    • Off: Closes the door.
  • Template:L – Activates 100 steps after being triggered.
    • On: Opens the floodgate.
    • Off: Closes the floodgate.
  • Template:L – Activates instantly. Note that, like doors, once you connect a hatch, it is either completely open or sealed shut.
    • On: Opens the hatch.
    • Off: Closes the hatch.
  • Template:L – Activates 100 steps after being triggered. When it is open, it just disappears. Liquids go through it just the same, but it cannot be walked on anymore. Anybody on it will fall.
    • On: Opens the grate.
    • Off: Closes the grate.
  • Template:L – Activates 100 steps after being triggered. When it is open, it just disappears. Liquids go through it just the same, but it cannot be walked on anymore. Anybody on it will fall.
    • On: Opens the bars.
    • Off: Closes the bars.
  • Template:L – Activates 40 steps after being triggered.
    • On: Retracts spears/spikes.
    • Off: Extends spears/spikes.
  • Template:L – When it is disengaged, no power goes through it and anything that is being kept up by its presence (like a Template:L right on top of it) falls down.
    • On: Toggles gear state.
    • Off: Toggles gear state.
One-Shot

These items, when activated, deconstruct, and/or cannot be triggered again until re-linked.

  • Template:L – Deconstructs the cage and releases all of its contents. The cage and its attached mechanism will be left on the floor nearby; you recover the Template:L used on the cage but you do not recover the mechanism used in the lever until you deconstruct the lever itself.
  • Template:L – Deconstructs the Template:L and releases whatever creature it held. The restraint's mechanism will be left on the floor nearby, and the restraint itself will remain attached to the creature's neck; again, you recover the Template:L used on the restraint but you do not recover the mechanism used in the lever until deconstructing the lever itself.
  • Template:L – Deconstructs the support, ideally without a dwarf next to it. Most commonly used to cause controlled Template:Ls. The support's building material and its attached mechanism can both be recovered (unless they happen to get destroyed in said cave-in).

Labeling

There is no built-in indication of what a lever does, and pulling them to see what will happen can be immensely Template:L. Using the Template:L function is the most foolproof way of labeling levers; color-coding of levers can give some indication too.

However, it is possible to ascertain whether or not a building has been linked to a lever by finding the building under R "View Rooms/Buildings" and then selecting 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.

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.


Rooms
Furniture
Animal trapAnvilArmor standBedBinBoxBucketCabinetCageCoffinRestraintSeatStatueTableWeapon rack

Access
DoorFloodgateBarsGrateFloor hatchBridgeRoadWindow
Constructions
Machine & Trap parts
Other Buildings
Related Articles