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 v0.31:Fluid logic

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 "v0.31"). 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 338: Line 338:
  
 
This increases the water consumption a bit, but it still remains relatively low.
 
This increases the water consumption a bit, but it still remains relatively low.
 
==Edge Detector==
 
In some situations, it is beneficial to have logic that triggers during a state ''transition'' rather than based on steady states - for example, turning a lever "on" could trigger one brief event while turning the lever "off" would trigger a different event (or possibly the same event).
 
 
{| style="border-spacing: 0"
 
|colspan="7"| Z+0
 
|-
 
|{{H2O}}
 
|{{RTF|╠}}
 
|{{RTF|═}}
 
|{{RTF|═}}
 
|{{RTF|═}}
 
|{{RTF|╗}}
 
|{{000}}
 
|-
 
|{{H2O}}
 
|{{RT|X|#FFF|#800}}
 
|{{000}}
 
|{{RT|╬|#800}}
 
|{{000}}
 
|{{RTF|║}}
 
|{{000}}
 
|-
 
|{{H2O}}
 
|{{RTF|╚}}
 
|{{RTF|═}}
 
|{{RTF|╦}}
 
|{{RTF|═}}
 
|{{RTF|╣}}
 
|{{000}}
 
|-
 
|{{H2O}}
 
|{{RT|╬|#800}}
 
|{{H2O}}
 
|{{RT|X|#FFF|#800}}
 
|{{000}}
 
|{{RTF|║}}
 
|{{000}}
 
|-
 
|{{H2O}}
 
|{{RTF|╔}}
 
|{{RTF|═}}
 
|{{RTF|╩}}
 
|{{RTF|═}}
 
|{{RTF|╝}}
 
|{{000}}
 
|-
 
|colspan="7"| Z=-1
 
|-
 
|{{000}}
 
|{{000}}
 
|{{000}}
 
|{{RTF|╔}}
 
|{{RTF|═}}
 
|{{RTF|═}}
 
|{{RTF|╗}}
 
|-
 
|{{000}}
 
|{{000}}
 
|{{000}}
 
|{{RTF|║}}
 
|{{RT|^|5:1}}
 
|{{RTF|#}}
 
|{{RTF|║}}
 
|-
 
|{{000}}
 
|{{000}}
 
|{{000}}
 
|{{RTF|╠}}
 
|{{RTF|═}}
 
|{{RTF|═}}
 
|{{RTF|╣}}
 
|-
 
|{{000}}
 
|{{000}}
 
|{{000}}
 
|{{RTF|║}}
 
|{{RT|^|5:1}}
 
|{{RTF|#}}
 
|{{RTF|║}}
 
|-
 
|{{000}}
 
|{{000}}
 
|{{000}}
 
|{{RTF|╚}}
 
|{{RTF|═}}
 
|{{RTF|═}}
 
|{{RTF|╝}}
 
|}
 
 
Both pressure plates should trigger on depth 2-6. Link the bottom pressure plate to machines you wish to activate on ''positive'' transitions (e.g. stepping onto a pressure plate, or pulling a lever) and the upper pressure plate to machines you wish to activate on ''negative'' transitions (e.g. stepping off of the pressure plate, or pulling the lever again), then link the trigger itself (a lever or pressure plate) to both floodgates and both raising bridges.
 
 
Each time the input trigger is toggled, the appropriate pressure plate will activate, remain active until the water finishes flowing, then deactivate after about 100 steps.
 
  
 
{{Category|Constructions}}
 
{{Category|Constructions}}
 
{{Category|Computing}}
 
{{Category|Computing}}

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)