Sorry, I did not see the replies. Yesterday was the first time in months that I actually had a chance to sit down and play for several hours at a time. It was great.
Yes, but going back to NonaMena's post, if my sim ate 3 watermelons then it'll be a 90% chance of getting a girl. So I only need to eat 4.
Has anybody tried it with less an 10? Like 7 or 6?
Eating 3 would only give you 80% chance, not 90%. 50% baseline plus 3 times 10% from 3 fruits.
Anyway, If you'd like to see the actual tuning information I can paste it here, or you can look at it yourself in S3PE/Packer/Postal. You'll find the GameplayData.package in Program Files \ Origin Games \ The Sims 3 \ Game \ Bin \ Gameplay \ GameplayData.package (actual path to the The Sims 3 base game installation may vary depending on how you installed the game and your OS). If you're afraid to look at original file, just make a copy of it and stick on your desktop or somewhere else. It's only like 7mb.
So, the hardcoded tuning in the actual script is different from the tuning in the Pregnancy XML (pretty normal). The hardcoded gender offset per food eaten is only 5% and the max gender offset is 15%. What this is means is that if you have something wrong in your game that messes up the loading process (such as an out of date mod), your results from eating fruit might be entirely unexpected because the game will use the hardcoded defaults.
I believe that the number 3 is floating around from old information where people looked at the pregnancy script but not the actual Pregnancy XML. The XML is what matters, assuming your game loads up properly.
The baby's gender is definitely determined when the baby is born, unless the sim has already asked a doctor. I'm not sure why someone who has no mods but eats 10 watermelons would get a boy, unless the save is corrupted in some way.