The most complex trap I ever made was a lever that used pumps to pull water up 3 z-levels, then another opened a floodgate that filled up a (raised) bridge-box which drowned enemies. You can then pull another lever that opens it up and flushes them down a 10 z-level drop onto pointy spikes, where the water is then pumped off the map.