Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(2 edits)

Updated it with the new code, made some another babeh. Still inherited a trait I'd marked "never_inherit", and got some sexual traits but that could have been incidental. Got homosexual which I'm not sure spawns independently of other stuff and prude which was an additional trait not an inherited one. Ganna have a couple more so I have a better metric there.


Edit#1: Alright Can confirm, sexual traits and traits marked never_inherit are still inherited. Might be I'm doing it wrong though of course. I just dropped the the code into globals and added a tab to each line and it didn't crash, I than went to the traits and added never_inherit to some; no crashing but every thing seems to be working as normal.

I found out what was going wrong with the code by testing it repeatedly, so unless you have altered something it should be working. Make sure you replaced all 3 lines from the original for loop.

If you have the Debug mod, then you can get some runtime feedback using detailed trace statements. I added

print("Attempt trait: ", i)

just under the for loop.

print("chance: ", chance, "  roll:", roll)

Just before the final if statement in the loop.

print("Inherited trait")

Just after the baby inherits a trait

I added a couple more trace statements for clarity.

An edited trait for testing. I start a sandbox custom game with a male MC and female starting slave. You can usually date and impregnate her on the first day.