Scripted effect · By God Alone files
pam_the_christian_church_county_conversion_catalysts_effect
pam_the_christian_church_county_conversion_catalysts_effect = yesgame/common/scripted_effects/pam_effects.txt, line 4797 (65 lines). No parameters.
pam_the_christian_church_county_conversion_catalysts_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 4797 of its file. It takes no parameters: pam_the_christian_church_county_conversion_catalysts_effect = yes. The game's script calls it in 1 place, among them on_county_faith_change (on action). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.
The comment above it in the file
County conversion Catalysts
What it does
If
faith != scope:old_faith- scope:old_faith: Their religion is Christianity
- Their religion is Christianity
- The Christian Church: The current phase counts “County is converted to Christianity”
Then
- The Christian Church: Counts toward the situation's next phase: “County is converted to Christianity”
If
faith != scope:old_faith- scope:old_faith: Their religion is Christianity
- Their religion is Christianity
- The Christian Church: The current phase counts “County is converted away from Christianity”
Then
- The Christian Church: Counts toward the situation's next phase: “County is converted away from Christianity”
If
- scope:old_faith: Their religion is Christianity
- Their religion is Christianity
- The Christian Church: The current phase counts “Jerusalem is no longer Christian”
Then
- The Christian Church: Counts toward the situation's next phase: “Jerusalem is no longer Christian”
If
- scope:old_faith: Their religion is Christianity
- Their religion is Christianity
- Any county province › Their barony:
is_holy_site_of = scope:old_faith
- The Christian Church: The current phase counts “A Christian Holy Site is no longer Christian”
Then
- The Christian Church: Counts toward the situation's next phase: “A Christian Holy Site is no longer Christian”
• the game's own tooltip text · ◦ our reading of the script line · code the script where neither exists
“They” is whatever it runs on (the scope it is called in). The scripted triggers and effects it calls link to their own pages; $PARAMETERS$ stay as written: each call fills them in.
The script as written (65 lines of game script)
pam_the_christian_church_county_conversion_catalysts_effect = {
if = { # PAM - Catalysts if non-Christian county is converted to Christianity
limit = {
faith != scope:old_faith
scope:old_faith = {
religion != religion:christianity_religion
}
faith.religion = religion:christianity_religion
situation:the_christian_church ?= {
situation_top_has_catalyst = catalyst_county_converted_to_faith
}
}
situation:the_christian_church = {
trigger_situation_catalyst = catalyst_county_converted_to_faith
}
}
if = { # PAM - Catalyst when Christian county is converted away from Christianity
limit = {
faith != scope:old_faith
scope:old_faith = {
religion = religion:christianity_religion
}
faith.religion != religion:christianity_religion
situation:the_christian_church ?= {
situation_top_has_catalyst = catalyst_county_converted_from_faith
}
}
situation:the_christian_church = {
trigger_situation_catalyst = catalyst_county_converted_from_faith
}
}
if = { # PAM - Jerusalem county is no longer Christian
limit = {
this = title:c_jerusalem
scope:old_faith = {
religion = religion:christianity_religion
}
faith.religion != religion:christianity_religion
situation:the_christian_church ?= {
situation_top_has_catalyst = catalyst_lose_jerusalem
}
}
situation:the_christian_church = {
trigger_situation_catalyst = catalyst_lose_jerusalem
}
}
if = { # PAM - Other Christian holy site county is no longer Christian
limit = {
NOT = { this = title:c_jerusalem }
scope:old_faith = {
religion = religion:christianity_religion
}
faith.religion != religion:christianity_religion
any_county_province = {
barony = { is_holy_site_of = scope:old_faith }
}
situation:the_christian_church ?= {
situation_top_has_catalyst = catalyst_lose_holy_site
}
}
situation:the_christian_church = {
trigger_situation_catalyst = catalyst_lose_holy_site
}
}
}As written in game/common/scripted_effects/pam_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls pam_the_christian_church_county_conversion_catalysts_effect.
On actions (the game's own hooks) (1)
- on_county_faith_change
Source: game/common/scripted_effects/pam_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.