Ok thanks for pointing that I promise that I wasn't trying to make up conditions, I simply did not understand the scripting language and only had (amateur, not professional) basic C and Objective-C exposure.
So what I gathered is that the "=" sign is not an operator, just a very unintuitive (in my view) to initiate a function or command - this was my major source of confusion - I was treating it like a C-based language.
Most of the logic and syntax this language is done in reverse.. or at least when compared to what I'm used to, which was another source of confusion.
After revising the code, I think I now have the syntax right based on the way conditions are listed. It's a bit odd that the condition is marked as not met, but the decision can be clicked.
Additionally, I think I still have the syntax for copy_name wrong.
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 = {
ROOT = { copy_name = father }
ROOT = { piety = 100 }
}
revoke_allowed = {
always = no
}
ai_will_do = {
factor = 1
# modifier = {
# factor = 0
# }
}
}
}
View attachment 265142 View attachment 265143