Ok great, I think i'm understanding the script languge logic much better now.
So I scoped it to the father then try to copy_name = THIS, which seems correct based on the samples I can find, but it's not working; it is still trying to copy his own name.
I suspect this is something to do with the fact that the condition is listed as not being met, even though the decision is enabled.
Can anyone help take a look?
EDIT: can anyone also help me with creating a line-break in the effect description for OCD's sake? (see screenshot)
Code:
decisions = {
adopt_patronym = {
potential = {
is_female = no
higher_tier_than = COUNT
}
allow = {
primary_title = {
any_previous_holder = {
is_father = ROOT
}
}
custom_tooltip = {
text = "Succeed Father's Legacy"
}
}
effect = {
father_even_if_dead = {
ROOT = { copy_name = THIS }
}
# custom_tooltip = { text = "" }
ROOT = { piety = 100 }
}
revoke_allowed = {
always = no
}
ai_will_do = {
factor = 1
# modifier = {
# factor = 0
# }
}
}
}
View attachment 265227