Scripted effect · By God Alone files
update_syncretism_personal_tenet_effect
update_syncretism_personal_tenet_effect = yesgame/common/scripted_effects/pam_effects.txt, line 11783 (60 lines). No parameters.
update_syncretism_personal_tenet_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 11783 of its file. It takes no parameters: update_syncretism_personal_tenet_effect = yes. The game's script calls it in 1 place, among them on_faith_conversion (on action). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.
What it does
If
- Is available
scope:old_faith.religion != faith.religion
Then
scope:old_faith:- If has the Sinitic Doctrine › prev:
add_known_tenet_if_not = { TENET = tenet_sinitic_syncretism }
- Else, if has the Dharmic Doctrine › prev:
add_known_tenet_if_not = { TENET = tenet_eastern_syncretism }
- Else, if has the Pagan Doctrine › prev:
add_known_tenet_if_not = { TENET = tenet_unreformed_syncretism }
- Else, if all of these hold:
- Conditions:
religion_tag = christianity_religion
- Then › prev:
add_known_tenet_if_not = { TENET = tenet_christian_syncretism }
- Conditions:
- Else, if all of these hold:
- Conditions:
religion_tag = islam_religion
- Then › prev:
add_known_tenet_if_not = { TENET = tenet_islamic_syncretism }
- Conditions:
- Else, if all of these hold:
- Conditions:
religion_tag = judaism_religion
- Then › prev:
add_known_tenet_if_not = { TENET = tenet_jewish_syncretism }
- Conditions:
- If has the Sinitic Doctrine › prev:
- Their faith:
- If has the Sinitic Doctrine › prev:
remove_personal_tenet_if_has = { TENET = tenet_sinitic_syncretism }
- Else, if has the Dharmic Doctrine › prev:
remove_personal_tenet_if_has = { TENET = tenet_eastern_syncretism }
- Else, if has the Pagan Doctrine › prev:
remove_personal_tenet_if_has = { TENET = tenet_unreformed_syncretism }
- Else, if all of these hold:
- Conditions:
religion_tag = christianity_religion
- Then › prev:
remove_personal_tenet_if_has = { TENET = tenet_christian_syncretism }
- Conditions:
- Else, if all of these hold:
- Conditions:
religion_tag = islam_religion
- Then › prev:
remove_personal_tenet_if_has = { TENET = tenet_islamic_syncretism }
- Conditions:
- Else, if all of these hold:
- Conditions:
religion_tag = judaism_religion
- Then › prev:
remove_personal_tenet_if_has = { TENET = tenet_jewish_syncretism }
- Conditions:
- If has the Sinitic Doctrine › prev:
• 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 (60 lines of game script)
update_syncretism_personal_tenet_effect = {
if = {
limit = {
is_available_quick = { advanced_ruler = yes }
scope:old_faith.religion != faith.religion
}
scope:old_faith = {
if = {
limit = { has_doctrine = sinitic_hostility_doctrine }
prev = { add_known_tenet_if_not = { TENET = tenet_sinitic_syncretism } }
}
else_if = {
limit = { has_doctrine = eastern_hostility_doctrine }
prev = { add_known_tenet_if_not = { TENET = tenet_eastern_syncretism } }
}
else_if = {
limit = { has_doctrine = pagan_hostility_doctrine }
prev = { add_known_tenet_if_not = { TENET = tenet_unreformed_syncretism } }
}
else_if = {
limit = { religion_tag = christianity_religion }
prev = { add_known_tenet_if_not = { TENET = tenet_christian_syncretism } }
}
else_if = {
limit = { religion_tag = islam_religion }
prev = { add_known_tenet_if_not = { TENET = tenet_islamic_syncretism } }
}
else_if = {
limit = { religion_tag = judaism_religion }
prev = { add_known_tenet_if_not = { TENET = tenet_jewish_syncretism } }
}
}
faith = {
if = {
limit = { has_doctrine = sinitic_hostility_doctrine }
prev = { remove_personal_tenet_if_has = { TENET = tenet_sinitic_syncretism } }
}
else_if = {
limit = { has_doctrine = eastern_hostility_doctrine }
prev = { remove_personal_tenet_if_has = { TENET = tenet_eastern_syncretism } }
}
else_if = {
limit = { has_doctrine = pagan_hostility_doctrine }
prev = { remove_personal_tenet_if_has = { TENET = tenet_unreformed_syncretism } }
}
else_if = {
limit = { religion_tag = christianity_religion }
prev = { remove_personal_tenet_if_has = { TENET = tenet_christian_syncretism } }
}
else_if = {
limit = { religion_tag = islam_religion }
prev = { remove_personal_tenet_if_has = { TENET = tenet_islamic_syncretism } }
}
else_if = {
limit = { religion_tag = judaism_religion }
prev = { remove_personal_tenet_if_has = { TENET = tenet_jewish_syncretism } }
}
}
}
}As written in game/common/scripted_effects/pam_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls update_syncretism_personal_tenet_effect.
On actions (the game's own hooks) (1)
- on_faith_conversion
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.