Jump to content

Trait to affect gender of newborn


Thurion

Recommended Posts

Posted

Hi, i would like to ask if some1 could make 2 traits that could affect what gender will be the babies a mother with the specific trait would birth

Posted

Baby's gender is handled in defines.

NChildbirth = {
#lots of other stuff in this segment I'm not pasting for brevity
FEMALE_CHANCE = 49
}
As far as I know this isn't possible. Someone more knowledgeable might know better.
Posted
3 hours ago, thuggins said:

As far as I know this isn't possible. Someone more knowledgeable might know better.

Judging by what I saw, I also share this opinion. Gender and DNA are hardcoded, only the number of children can be changed.

Posted

Yes this was confirmed in the paradox forums as well, there is not easy way to change the gender of an already existing character. The way someone would have to go about it would be to create a custom script that kills the actor of the opposite wanted gender, and create a whole new one with the correct gender. Probably using some sort of character pools.

Posted
6 hours ago, thuggins said:

Baby's gender is handled in defines.


NChildbirth = {
#lots of other stuff in this segment I'm not pasting for brevity
FEMALE_CHANCE = 49
}
As far as I know this isn't possible. Someone more knowledgeable might know better.


 i think it might be possible to hook on modifiers through the use of random = {} that add a multplier factor to the female_chance value thereby increasing it.  the modifiers would be based on the custom traits you make.

its a bit complicated since you need to define the parents and the child in question and whatnot.

its definitely doable imo not that i would personally spend my time on it

Posted

Yeah, I don't know if that would work. I was under the impression that defines were read once, at the time of the creation of the new game, and the values read at that time were used for the remainder of the game. I don't see modifiers used in this fashion anywhere else in the defines, so I don't know whether it would play ball with them in this definition. If it's going to be looking for a hard numerical value rather than a formula to apply every time a child is born, I would think it would fizzle.

  • 3 weeks later...
Posted
On 10/23/2020 at 2:23 PM, luffyboy said:


 i think it might be possible to hook on modifiers through the use of random = {} that add a multplier factor to the female_chance value thereby increasing it.  the modifiers would be based on the custom traits you make.

its a bit complicated since you need to define the parents and the child in question and whatnot.

its definitely doable imo not that i would personally spend my time on it

If this did work, it would apply to every character in the game. There doesn't appear to be a character specific attribute you can modify that influences child genders.

 

On 11/8/2020 at 12:08 AM, peruviandrawfag said:

wish there was a way to increase the number of sons on my character alone, I want to fill the world with my seed but then I get 5 girls in a row.

You can save right before the child is born and the reload that save to get a different gender or inherited traits. Kinda cheezy. But if you had a need you could do this to get the gender you want. Otherwise, just keep seducing the ladies to get more rolls on the baby RNG.

  • 3 weeks later...
Posted

If anyone was still wondering about this, it has been addressed in yesterday's update to the game.

 

Quote

- Added set_pregnancy_gender effect to overwrite the gender of an unborn child.

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...