Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Multiple triggers with a single target.  (Read 404 times)

billw

  • Bay Watcher
    • View Profile
Multiple triggers with a single target.
« on: July 09, 2010, 09:06:34 pm »

Say I attach multiple pressure plates targeting a single door/bridge/whatever, is the state of the target set to the ORed state of the pressure plates? i.e. if any one of them is active the target is active?
Also, with delayed targets (e.g. bridges), if the pressure plate is pressed then released again before the target activates, does the target activate for an instant then deactivate, or just never activate?
Thanks!
Logged

Sphalerite

  • Bay Watcher
    • View Profile
    • Drew's Robots and stuff
Re: Multiple triggers with a single target.
« Reply #1 on: July 09, 2010, 09:19:15 pm »

Every time a pressure plate triggers, it sends an 'open' signal.  It then sends no other signal until it de-triggers, at which point it sends a 'close' signal.  A device with no delay will simply assume the state of the latest signal it received.  A device with a delay will ignore any signals it receives during the delay period between getting a signal and acting on it.  Pressure plates seem to have a built-in 100 step delay on deactivation, so a pressure plate which is only active for a moment will still cause an attached door or bridge to open and close.  It is possible for a bridge linked to a pressure plate that's fluctuating between on and off to end up stuck in the wrong state because of signals received during the delay period being ignored.  You can also easily end up with signals being ignored when multiple pressure plates are all attached to a single target.
Logged
Any intelligent fool can make things bigger and more complex... It takes a touch of genius --- and a lot of courage to move in the opposite direction.

Noble Digger

  • Bay Watcher
    • View Profile
Re: Multiple triggers with a single target.
« Reply #2 on: July 09, 2010, 10:16:37 pm »

Hi Billw;

Check out Beandagger (http://www.mkv25.net/dfma/map-9107-beandagger) the default POI depicts a machine like the one you describe. In the screenshot it's just 3 pressure plates set for 3\7 magma triggering each linked to a single drawbridge, this design did not work well at all. I redesigned it so each side had the following 6 triggers:

1-2 Magma
2-3 Magma
3-4 Magma
4-5 Magma
5-6 Magma
6-7 Magma

Each of these triggers is linked to all three drawbridges on that given side. The effect of this setup is that as the magma flows in, the plates trigger one after another and the drawbridges flap up and down like albatross wings. As the magma is destroyed beneath them, the magma on the triggers flows back to replace it and causes more of the triggers to go off. Sometimes with incredible luck, it will fill to 5\7 depth without triggering, but I plan to put in a manual switch for each drawbridge just in case it does ever manage to gum up somehow. The signals being sent DO conflict with each other, but the system seems to be able to handle it by sending numerous open and close signals.
Logged
quib·ble
1. To evade the truth or importance of an issue by raising trivial distinctions and objections.
2. To find fault or criticize for petty reasons; cavil.