For writer George Lucas, there was a lot of pressure to make the second episode of Star Wars even better than the first. The first had received many mixed reviews, including some pretty rough criticism. The criticism made Lucas hesitant to start writing.
When he did begin writing he gave the piece the working title "Jar Jar's Big Adventure" as a sarcastic response to the public’s dislike of the character Jar Jar. Lucas’ original premise included Lando Calrissan being used as a clone template. What that means is that there would have been hundreds of clones made after Lando’s image.
Lucas later changed his mind, choosing to use clone shocktroopers from a completely different planet instead of Lando clones. Eventually, just three months before the start of filming, Lucas managed to finish the first draft for the film. He brought on the help of Jonathan Hales to help edit the third draft.
Hales had helped with The Young Indiana Jones Chronicles, but this would be his first time helping out with a full-length film. The two would finish the final draft just a week before the beginning of principal photography.