Suffering from the skin disease psoriasis and a crippling arthritis, detective novelist Dan Dark (Robert Downey Jr.) is in such pain in a hospital that he begins to delve into fantasy. He begins to confuse himself with the his a character in his book, a detective investigating the murder of a prostitute.