While we can't write the program for you - it is the job of consultant such as Albert Martinez - see some of his posts in this forum - I will try to point out some techniques:
To make sure that at a particular sequencer step only the relevant input matters, then do a logical AND between the sequential step and the input:
e.g.
In1 STEP1:1
|---| |------| |---------(OUT1)
In3 STEP1:5
|---| |------| |---------(OUT2)
In the above example, Input #1 will have no effect when the sequencer is not at Step 1.