I am not sure if legal/not legal has been found or can't remember.
D3...... 0001 if player 1 is other than ring
d1...... ..... if player 1 is legal man
81...... ..... player 1 is tagged out
d1...... ..... player 1 is tagged out
81...... ..... player 2 is legal
D3...... 0001 if player 2 is other than ring
d1...... ..... if player 2 is legal man
81...... ..... player 2 is tagged out
d1...... ..... player 2 is tagged out
81...... ..... player 1 is legal
D3...... 0001 if player 3 is other than ring
d1...... ..... if player 3 is legal man
81...... ..... player 3 is tagged out
d1...... ..... player 3 is tagged out
81...... ..... player 4 is legal
D3...... 0001 if player 4 is other than ring
d1...... ..... if player 4 is legal man
81...... ..... player 4 is tagged out
d1...... ..... player 4 is tagged out
81...... ..... player 3 is legal
might be able to be shortened to depending how the engine reads legal/non legal partner
D3...... 0001 if player 1 is other than ring
d1...... ..... if player 1 is legal man
81...... ..... player 2 is legal
D3...... 0001 if player 2 is other than ring
d1...... ..... if player 2 is legal man
81...... ..... player 1 is legal
D3...... 0001 if player 3 is other than ring
d1...... ..... if player 3 is legal man
81...... ..... player 4 is legal
D3...... 0001 if player 4 is other than ring
d1...... ..... if player 4 is legal man
81...... ..... player 3 is legal