I'm trying to use the set_pregnancy_gender in conjunction with the blood_legacy_4 effect;
I'm thinking it should be like this:
else_if = {
limit = {
scope:child.dynasty = {
exists = var:blood_legacy_4_intellect_good_1
}
NOR = {
has_trait = intellect_good
has_trait = intellect_bad
}
}
set_pregnancy_gender = female **********does not work. at all. very sad.
random = {
chance = blood_legacy_4_chance
modifier = {
add = blood_legacy_4_extra_player_chance
any_parent = { is_ai = no }
}
add_trait = intellect_good_1
}
}
What am I doing wrong?
Should the effect be in events instead? if so, how?
*EDIT*
if anyone is curious, I *think* I've found the solution:
I've put this code in; I'm not sure which one is the correct set, but it's not breaking anything and I'm not going to mess with it right now.
Code:
on_birth_child = {
events = {
middle_east_decisions.0012 #Saoshyant Descendants.
major_decisions.0101 #Divine/Consecrated Blood Descendants.
birth.8001 #Reincarnation
birth.8011 #Born in the Purple
trait_specific.0500 #To handle genetic traits not expressed until later in life
debug.0010 # Disease data tracking
}
hidden_effect = {
if = {
limit = {
scope:mother.dynasty = {
exists = var:blood_legacy_4_intellect_good_1
}
}
set_pregnancy_gender = female
}
}
hidden_effect = {
if = {
limit = {
scope:real_father.dynasty = {
exists = var:blood_legacy_4_intellect_good_1
}
}
set_pregnancy_gender = female
}
}
hidden_effect = {
if = {
limit = {
scope:mother.dynasty = {
exists = var:blood_legacy_4_intellect_good_1
}
}
gender = female
}
}
hidden_effect = {
if = {
limit = {
scope:real_father.dynasty = {
exists = var:blood_legacy_4_intellect_good_1
}
}
gender = female
}
}