Code:
children_bestowed_by_gods_decision = {
picture = "gfx/interface/illustrations/decisions/decision_personal_religious.dds"
is_shown = {
is_female = yes
}
is_valid = {
age >= 60
prestige_level >= 5
piety_level >= 5
NOT = { has_trait = pregnant}
}
effect = {
custom_tooltip = children_bestowed_by_gods_decision_effect_tooltip
scope:actor = {
make_pregnant = {
father = scope:recipient
}
}
}
ai_check_interval = 0
}
This is my code, of course, It's not work.
As my plan, I want to add a decision for those warmonger。
Due to war, sometimes they may forget to arrange a spouse to their mc. The decision can help them.
The child, as the decision' s name, is a gift when your ruler pray to the god, but the god can't reply everyone, the one want to reply must has enough glory and piety, so the god will pleased their chosen champion, and more people will fight for the god.
But I fail……maybe the effect code has some unknown problems, I try to find it, and correct it for many times……
The most suspicious place is "make_pregnant", I think.
Now I want to do is correct it, and add a judge code for "has spouse or not".
As a new modder, I want help.