Cynthia Nixon says the rule for writers on HBO’s “Sex and the City” was that all their wildest stories had to be real.

“They had a rule . . . Nothing can be written that didn’t literally happen to someone in the writers’ room or someone they knew firsthand,” Nixon told IMDb Asks. “It couldn’t be my father’s brother’s sister’s shoe repair guy — the outlandish physical, sexual things that happened . . . really did happen.”

When she landed a part on the show, “I was just like, ‘Wow . . . I am on a TV show that I don’t have to fly to California for.”