Jump to content

Help Regarding NPC Birth.


TriggerBlade

Recommended Posts

Posted

Does anyone know of a code or can make a code that determines the ratio of births by gender? I want to create a race/culture like the Gerudo from Legend of Zelda and for those who haven't played the game, they only give birth to a male child like every 100 years.

I'd be grateful for any aid.

Posted
1 hour ago, TriggerBlade said:

Does anyone know of a code or can make a code that determines the ratio of births by gender? I want to create a race/culture like the Gerudo from Legend of Zelda and for those who haven't played the game, they only give birth to a male child like every 100 years.

I'd be grateful for any aid.

I wish as well!  That seems to be hardcoded somewhere.  I haven't found anything in any of the defines that control m/f child ratio or twin chance.  As you have seen from NDPA, taking over pregnancy by event can be tricky and disastrous, but it can be done.  You would then need to use a fake pregnancy and a create_character event 9 months later.  (That is how I got MPREG to work right.)

  • 2 weeks later...
Posted

You'd also want the race to be infertile, but program a birth event somehow. It sounds like it'd be a nightmare to code though, if it even works. Everytime I tried coding around the hard-coding for various things, something would always bite me in the ass.

Posted

The trick is to be flexible.  Let the children be born, but only 1 male every hundred years survives past infancy.  Then you just need a culling event to kill most males of a specific culture at the ratio you desire.  You can even fire it on_birth for the culture of your choice, then you've simplified the whole thing down to one event.

 

Of course that means sacrificing by allowing the child to be born first.

Posted

Culling would probably be the easiest way to go, yes. You'd probably also want to increase fertility, so they don't die out - which is really going to be the potential issue for such a race in practical terms, depending on how heritable the racial trait is.

Archived

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

  • Recently Browsing   0 members

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