I've built a prison with seven prisoncells. Every prisoncell has it's own lever that will unlock/open or close/lock the apropriate door. And there's a mainswitch which unlocks/opens or closes/locks EVERY door. So this is nothing special but the mainswitch also moves the other smaller levers to their correct positions. So if let's say 4 levers are deactivated and three are activated and you pull the big trigger (which was activated at default), then the three levers will more into their correct deactivated position ! Same works vice-versa, so if you manually move the smaller seven levers to a deactivated position, then also the mainswitch will move to its deactivated position automagically. There are two scripts, one for every lever and the one for the mainswitch.