You need two three ways and one 4 way.
The 4 way has to be in the middle of the 3 ways.
You also need to use nonmetalic sheath 12/3 wire
commonly call 12/3 sheathed electrical cable.From their if you cant
figure out your commons or any other electrical
problems let me know on the switchs if you need it I can send you a diagram