• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Pixelforest

Recruit
11 Badges
Oct 25, 2019
8
1
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Monks and Mystics
  • Age of Wonders III
  • Crusader Kings II: Holy Fury
  • Prison Architect
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sons of Abraham
First time trying to build a mod, so I'm rather lost. I wanted to create a trait (and then an event) that only becomes available when certain conditions are met. In short, I want something to counteract the female ruler and female heir malus when a pagan religion has reformed and taken the Equality doctrine (as I understand the malus is removed with the Enatic Clans doctrine) and provide a small opinion boost to those who truly follow the New Ways (and really piss of those who still follow the Old Ways).

But I have two problems:
1. I can't seem to find any way to make a trait conditional to doctrines of a reformed religion
2. I can't seem to figure out how to make an opinion bonus apply to female rulers and heiresses.

Here's what I have so far (basic, I know):

faithful = {

has_religion_features = yes
is_reformed_religion = yes

inherit_chance = 20
personality = yes
religious = yes
virtue = yes

same_opinion_if_same_religion = 5
unreformed_tribal_opinion = -10

ai_zeal = 10
}
 
1. I can't seem to find any way to make a trait conditional to doctrines of a reformed religion
Use random = no and assign it by event/descion. Also you cant have conditions directly in the trait, they need to be in a potential = { }, this also doesnt stop people getting the trait, just new characters who dont match the potential if random = no isn't specified.

2. I can't seem to figure out how to make an opinion bonus apply to female rulers and heiresses.
You can do female_opinion, if you want anything more specific it would have to be an opinion moddfier assigned by event.
 
Thanks for the info. I do want it to be partially random. I was thinking of an event right after a character switches to the reformed pagan religion that includes equality as a doctrine which gives the choice of accepting the New Ways (gain the trait) or cling to traditions (don't gain the trait).

But people of reformed religions with the equality doctrine might randomly acquire it throughout their lives, too.

And then, with the trait, the malus against female rulers and rulers with heiresses would be compensated against a bit.

But it seems I have a lot more to learn first.