Triggered wardrobe

Left door 1 step to the right = ld1r
Left door 2 steps to the right = ld2r
Left door closed = ldc

Middle door 1 step to the right = md1r
Middle door 1 step to the left = md1l
Middle door closed = mdc

Right door 1 step to the left = rd1l
Right door 2 steps to the left = rd2l
Right door closed = rdc

Close all doors = close