Alan Dean Foster wrote the story for Star Trek: The Motion Picture.