Is there a way to have the pump relay turn on only for specific zones

I made a simple script that can run a zone with the pump off. You can also connect a small relay in parallel with the ‘drip’ solenoid, with a normally closed contact that breaks the circuit to the pump relay.