Is there a way to make it so that characters are only able to have children with other characters of the same culture or religion, or even better, only with certain cultures or religions?
on_pregnancy = {
events = {
400 # Pregnancy in matrimony
401 # Pregnancy out of wedlock
402 # Pregnancy in matrimony, with another father!
410 # Pregnancy as consort
412 # Pregnancy as consort, with another father!
HFP.20401 # Hidden event to set clock for regency during final months.
HFP.20556 # Umbrella event for positive pregnancy flavor.
}
}
on_pregnancy = {
effect = {
if = {
limit = {
father_of_unborn = {
NOT = { culture = ROOT }
}
}
cancel_pregnancy = yes
}
}
events = {
400 # Pregnancy in matrimony
401 #...
on_pregnancy = {
events = {
400 # Pregnancy in matrimony
401 # Pregnancy out of wedlock
402 # Pregnancy in matrimony, with another father!
410 # Pregnancy as consort
412 # Pregnancy as consort, with another father!
HFP.20401 # Hidden event to set clock for regency during final months.
HFP.20556 # Umbrella event for positive pregnancy flavor.
}
}
on_pregnancy = {
effect = {
if = {
limit = {
father_of_unborn = {
NOT = { culture = ROOT }
}
}
cancel_pregnancy = yes
}
}
events = {
400 # Pregnancy in matrimony
401 # Pregnancy out of wedlock
402 # Pregnancy in matrimony, with another father!
410 # Pregnancy as consort
412 # Pregnancy as consort, with another father!
HFP.20401 # Hidden event to set clock for regency during final months.
HFP.20556 # Umbrella event for positive pregnancy flavor.
}
}
I assume I should make a copy of this folder inside my mod folder structure and edit that instead of just editing the actual game files right?In common\on_actions\00_on_actions.txt you'll find this:
Code:on_pregnancy = { events = { 400 # Pregnancy in matrimony 401 # Pregnancy out of wedlock 402 # Pregnancy in matrimony, with another father! 410 # Pregnancy as consort 412 # Pregnancy as consort, with another father! HFP.20401 # Hidden event to set clock for regency during final months. HFP.20556 # Umbrella event for positive pregnancy flavor. } }
Try changing it to this, make adjustments as you see fit, and see if it works as desired.
Code:on_pregnancy = { effect = { if = { limit = { father_of_unborn = { NOT = { culture = ROOT } } } cancel_pregnancy = yes } } events = { 400 # Pregnancy in matrimony 401 # Pregnancy out of wedlock 402 # Pregnancy in matrimony, with another father! 410 # Pregnancy as consort 412 # Pregnancy as consort, with another father! HFP.20401 # Hidden event to set clock for regency during final months. HFP.20556 # Umbrella event for positive pregnancy flavor. } }
yes. on_actions merge, so just create new file containing only new content, no need to copy the existing contentI assume I should make a copy of this folder inside my mod folder structure and edit that instead of just editing the actual game files right?
on_pregnancy
.says the person updating the wikis and providing the majority of the feedback to update the validator...Glad we could help. Most of the credit goes to CFH1985, who thought to useon_pregnancy
.
says the person updating the wikis and providing the majority of the feedback to update the validator...