How do you even script 15-20 plays in the first place when you don't know what the down and distance will be?

They have a play for all situations.
John Madden wrote in a book that Bill Wash (former Niners coach) scripted 3 quarters every game toward the end of his career.
And the PC wasn't anything quike like today in the late 80s.