scriptwriter: someone who writes scripts for plays or movies or broadcast dramas
writer: writes (books or stories or articles or the like) professionally (for pay)
reticular formation: a complex neural network in the central core of the brainstem; monitors the state of the body and functions in such processes as arousal and sleep and attention and muscle tone