• 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.

Count of Reval

Colonel
7 Badges
Apr 14, 2009
911
31
  • Arsenal of Democracy
  • Deus Vult
  • Hearts of Iron III
  • Europa Universalis: Rome
  • 500k Club
  • Crusader Kings II: The Old Gods
  • 200k Club
I'm trying to understand one particular event trigger, but I'm not sure how to interpret it (especially the few lines after "or"-part). Have read some scripting threads, but not totally familiar with event-talk yet.

I would be grateful, if someone would explain briefly what kind of conditions this trigger sets. Thanks.


province_event = { # The clergy feel that the time is ripe to spread the word of God in this province

id = 9050
picture = "event_religion"

trigger = {
condition = { type = not value = { type = religion value = catholic } }
condition = { type = ruler_religion value = catholic }
condition = { type = or
condition = { type = capital value = yes }
condition = { type = and
condition = { type = clergy_power value = 0.15 }
condition = { type = clergy_loyalty value = 0.9 }
}
}
condition = { type = not value = { type = trait value = excommunicated } }
condition = { type = not value = { type = trait value = heretic } }
condition = { type = not value = { type = trait value = sceptical } }
}
 
condition = { type = not value = { type = religion value = catholic } }
Target province must not be Catholic
condition = { type = ruler_religion value = catholic }
Ruler's (province owner's) religion must be Catholic
condition = { type = or
condition = { type = capital value = yes }
condition = { type = and
condition = { type = clergy_power value = 0.15 }
condition = { type = clergy_loyalty value = 0.9 }
}
}
This is an OR check, so either of the below conditions must match:
Province must be the ruler's (province owner's) capital,
OR (this second condition has an AND check, so both conditions must match) clergy power in the province must be set to 0.15 or higher AND clergy loyalty in that province must be 0.9 or higher.
condition = { type = not value = { type = trait value = excommunicated } }
condition = { type = not value = { type = trait value = heretic } }
condition = { type = not value = { type = trait value = sceptical } }
Ruler (province owner) must not be excommunicated, and must not be heretic, and must not be sceptical.

So to summarize:
this event will fire for a non-Catholic province held by a Catholic, but only as long as the province is the ruler's capital OR the clergy power/loyalty in the province is high. If the ruler has any of the three listed traits, the event cannot fire.

HTH!
 
Last edited:
So to summarize:
this event will fire for a non-Catholic province held by a Catholic, but only as long as the province is the ruler's capital OR the clergy power in the province is high. If the ruler has any of the three listed traits, the event cannot fire.

HTH!

Yes, thanks for a quick help.