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 40d Talk: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.

You are editing a page for an older version of Dwarf Fortress ("Main" is the current version, not "40d"). Please make sure you intend to do this. If you are here by mistake, see the current page instead.

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 161: Line 161:
 
I might be misunderstanding the goal of this (and, for the record, I do think it's really cool), but wouldn't hooking up the lever to the thing you want non-inverted, then flipping the switch, and then hooking it up to the inverted thing accomplish the same thing? That way you have two things hooked up to the lever that are in opposite states of each other..... [[User:Zardus|Zardus]] 05:09, 26 February 2009 (EST)
 
I might be misunderstanding the goal of this (and, for the record, I do think it's really cool), but wouldn't hooking up the lever to the thing you want non-inverted, then flipping the switch, and then hooking it up to the inverted thing accomplish the same thing? That way you have two things hooked up to the lever that are in opposite states of each other..... [[User:Zardus|Zardus]] 05:09, 26 February 2009 (EST)
 
:A 'Pull the lever' task is not a logical toggle. It toggles the lever, and then activates the lever to signal its current state to its linkages... That is, if the lever is in the 'open' position, pulling it flips it to 'closed' and then sends 'closed' to all its linked buildings. Anything which is, for whatever reason, currently in the 'closed' state will simply remain closed. The case you describe is such a situation. It can also arise where a lever is pulled twice in less time than it takes for the first signal to produce its effect. That is: A dwarf pulls a lever linked to a bridge. The dwarf takes 2 steps away, pauses to decide what to do, and notices that there's a pull the lever task on a lever 2 steps away. The dwarf returns to pull the lever again. The bridge has not yet raised when the second signal is sent... A little bit later, the bridge will raise, but unless the lever is pulled again, to get it into the 'raise' state, and then a fourth time to get it to the 'lower' state, the bridge will not lower.--[[User:Wattj|wattj]] 11:03, 26 February 2009 (EST)
 
:A 'Pull the lever' task is not a logical toggle. It toggles the lever, and then activates the lever to signal its current state to its linkages... That is, if the lever is in the 'open' position, pulling it flips it to 'closed' and then sends 'closed' to all its linked buildings. Anything which is, for whatever reason, currently in the 'closed' state will simply remain closed. The case you describe is such a situation. It can also arise where a lever is pulled twice in less time than it takes for the first signal to produce its effect. That is: A dwarf pulls a lever linked to a bridge. The dwarf takes 2 steps away, pauses to decide what to do, and notices that there's a pull the lever task on a lever 2 steps away. The dwarf returns to pull the lever again. The bridge has not yet raised when the second signal is sent... A little bit later, the bridge will raise, but unless the lever is pulled again, to get it into the 'raise' state, and then a fourth time to get it to the 'lower' state, the bridge will not lower.--[[User:Wattj|wattj]] 11:03, 26 February 2009 (EST)
Something like this? [[http://dwarf.lendemaindeveille.com/images/4/48/LeverInvert.gif]] --[[User:Grek|Grek]]
+
Something like this? [[http://dwarf.lendemaindeveille.com/images/4/48/LeverInvert.gif]] --[[Grek]]
  
 
== how to disconnect levers? ==
 
== how to disconnect levers? ==

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!

Please sign comments with ~~~~

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

Cancel Editing help (opens in new window)