sauce93 Posted April 14, 2021 Posted April 14, 2021 Was wondering if anyone has seen or made a mod creating a trait where a character could only produce female children. Was thinking it would be cool to set up some sort of Amazonian custom race and/or trait. Also open to suggestion on how to start a mod like this. I've successfully made body morph custom traits and simple shit like custom hair/eyes but I've never messed with custom events.
vocon Posted April 15, 2021 Posted April 15, 2021 This is not possible. You could make an evet that disposes of male children when they are born, but you can't influence the gender using code.
sauce93 Posted April 15, 2021 Author Posted April 15, 2021 I might be able to make that work. I saw another mod out there where someone successfully increased twins chance. Which could offset fertility issues from killing half your offspring. The only thing that might get annoying is if the removed kids show up as deceased. I'm sure there's a way to completely remove them.
Karis_Wettiams Posted April 15, 2021 Posted April 15, 2021 There should be a command to set the gender similiar to CK2 ( set_gender = female <- CK2 example) Put it in the birth event(s) or create a new on_action event.
whateverdontcare Posted April 15, 2021 Posted April 15, 2021 I heard there's something that lets you change the gender of a child that will be born. You'd just tie that to the event that gives the pregnancy trait. I think there's already a mod that modifies the percentage of female children born. Regula Magestri has a holy site effect which says it causes more female children.
disposabletemp Posted April 16, 2021 Posted April 16, 2021 It's possible to do. You can fire an event using on_pregnancy_mother then call scope:mother = { set_pregnancy_gender = female } You'll want to create a custom trait then check for it otherwise every single baby in the game will be a girl.
Sakhmeth Posted April 16, 2021 Posted April 16, 2021 18 hours ago, sauce93 said: I saw another mod out there where someone successfully increased twins chance. The built in debug mode can force multiple pregnancies.
sauce93 Posted April 20, 2021 Author Posted April 20, 2021 On 4/15/2021 at 7:49 PM, disposabletemp said: It's possible to do. You can fire an event using on_pregnancy_mother then call scope:mother = { set_pregnancy_gender = female } You'll want to create a custom trait then check for it otherwise every single baby in the game will be a girl. On 4/15/2021 at 12:22 PM, whateverdontcare said: I heard there's something that lets you change the gender of a child that will be born. You'd just tie that to the event that gives the pregnancy trait. I think there's already a mod that modifies the percentage of female children born. Regula Magestri has a holy site effect which says it causes more female children. Thanks. I was successfully able to make the custom trait with y'alls advice. Was simpler than I thought it'd be. For anyone that stumbles upon these comments, see below for how I did it. namespace = custom_event custom_event.2000 = { hidden = yes trigger = { OR = { has_trait = custom_trait } } immediate = { random = { chance = 100 set_pregnancy_gender = female } } } } On action below. on_pregnancy_mother = { events = { custom_event.2000 } }
Mythaltir Posted April 20, 2021 Posted April 20, 2021 8 hours ago, sauce93 said: immediate = { random = { chance = 100 set_pregnancy_gender = female } } is equivalent to immediate = { set_pregnancy_gender = female } so you should be able to remove the random
Recommended Posts
Archived
This topic is now archived and is closed to further replies.