Short summary of your issue "trait_is_criminal_in_faith_trigger" is broken, always returning true if adultery is illegal
Game Version 1.0.3
What OS are you playing on?
Windows
What platform are you using?
Steam
Do you have mods enabled? No
Have you tried verifying your game files (Steam only)?
Yes
How much "pain" is this causing you?
2
Please explain the issue you experienced in the most condensed way possible
I noticed the issue when I was given the witchcraft secret instead of the witch trait, but I was able to determine the reason why, which was a bit deeper than that.
The problem lies with the trait_is_criminal_in_faith_trigger in common\scripted triggers\00_religious_triggers.txt. I won't copy the whole thing, since it's long, just the problem section:
This is one of a series of AND sections within a larger OR block; if any of them evaluate to true, the trait being checked is treated as illegal (causing, for witchcraft, the secret to be assigned instead of the trait). Note however that in this case the criminal_trait_check lines are commented out, meaning that even if we're actually checking for the legality of witchcraft (or deviancy, or sodomy, or cannibalism, or whatever), the code will effectively say "yes, it's criminal" if adultery is criminal for someone of the relevant person's gender.
Uncommenting the criminal_trait_check lines and removing the "always=yes" fixes the problem, allowing the witch trait to be assigned properly and also fixing bugs with, e.g., deviancy and homosexuality being improperly treated as illegal.
Please explain how to reproduce the issue
Is there anything else you think could help us identify/replicate the issue?
Game Version 1.0.3
What OS are you playing on?
Windows
What platform are you using?
Steam
Do you have mods enabled? No
Have you tried verifying your game files (Steam only)?
Yes
How much "pain" is this causing you?
2
Please explain the issue you experienced in the most condensed way possible
I noticed the issue when I was given the witchcraft secret instead of the witch trait, but I was able to determine the reason why, which was a bit deeper than that.
The problem lies with the trait_is_criminal_in_faith_trigger in common\scripted triggers\00_religious_triggers.txt. I won't copy the whole thing, since it's long, just the problem section:
Code:
...
AND = {
OR = {
always = yes
#scope:criminal_trait_check = flag:adulterer
#scope:criminal_trait_check = flag:fornicator
}
OR = {
AND = {
$FAITH$ = { has_doctrine_parameter = adultery_female_crime }
$GENDER_CHARACTER$ = { is_female = yes }
}
AND = {
$FAITH$ = { has_doctrine_parameter = adultery_male_crime }
$GENDER_CHARACTER$ = { is_male = yes }
}
}
}
...
This is one of a series of AND sections within a larger OR block; if any of them evaluate to true, the trait being checked is treated as illegal (causing, for witchcraft, the secret to be assigned instead of the trait). Note however that in this case the criminal_trait_check lines are commented out, meaning that even if we're actually checking for the legality of witchcraft (or deviancy, or sodomy, or cannibalism, or whatever), the code will effectively say "yes, it's criminal" if adultery is criminal for someone of the relevant person's gender.
Uncommenting the criminal_trait_check lines and removing the "always=yes" fixes the problem, allowing the witch trait to be assigned properly and also fixing bugs with, e.g., deviancy and homosexuality being improperly treated as illegal.
Please explain how to reproduce the issue
Is there anything else you think could help us identify/replicate the issue?
- 3