@KristenNMartin, locking the doors will only keep out some Vampires, because others can have the ability to go through locked doors. This will make more sense if you ever play a Vampire. If you go into a Vampire's info panel you can find out Vampire level and if they have any abilities (or weaknesses). As your Vampire levels up in power and Vampire lore, they can gain more abilities, such as being able to go through locked doors. Weaknesses will compensate for these abilities. I assume that Townie Vampires will have random abilities assigned to them.🤔 Pre-made Vampires such as Count Vlad and the Vitore siblings already have assigned abilities, weaknesses, power and skill level. But even with a Vampire that doesn't have the ability to go through locked doors, it is still best to have all doors locked before he or she appears on your lot!
Garlic can be helpful, but some Vampires aren't affected by garlic (another ability). But many are, so you can purchase garlic braids, garlands, and wreaths to ward them off. They are best placed near doorways and/or near bedrooms (children can't be bit). You can also harvest garlic (in the wild or through purchased seeds) and if you have enough skill in Vampire Lore, you can make your own garlic braids, garlands, & wreaths! 🙂
Whatever you do, if you don't want Vampire visitors, make sure your lot does not have the "Vampire Nexus" trait! 😮 Likewise, an added level of protection can be the "Private Dwelling" trait 🤫 ... it won't prevent a Vampire from visiting that I know of, but it should make it less likely 😉 -- however, you won't get many of any type of visitors either! 😮😉
I hope this is of some help to you!
Happy Simming! ❤️