Scripted trigger
is_unprotected_hostile_faith
is_unprotected_hostile_faith = yesgame/common/scripted_triggers/00_religious_triggers.txt, line 1879 (25 lines). No parameters.
is_unprotected_hostile_faith is a scripted trigger in Crusader Kings III, written at line 1879 of its file. It takes no parameters: is_unprotected_hostile_faith = yes (or no). The game's script calls it in 2 places, among them … Nights (event fp2_yearly.9005) and Point of View (event fp2_yearly.9006). Patch 1.20.1.2, from game/common/scripted_triggers/00_religious_triggers.txt.
What it checks
- Their faith:
faith_hostility_level = { target = prev.holder.top_liege.faith value >= 2 }
- Their holder:
NOT = { vassal_contract_has_flag = religiously_protected }
If
- Their holder › Any liege or above:
faith = prev.faith
Then
- Their holder › Any liege or above:
NOT = { vassal_contract_has_flag = religiously_protected }
- Their holder › Any liege or above:
• 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 (25 lines of game script)
is_unprotected_hostile_faith = { # Checks if the faith is at least hostile but not protected by a contract, used in a county scope
faith = {
faith_hostility_level = {
target = prev.holder.top_liege.faith
value >= 2
}
}
holder = {
NOT = { vassal_contract_has_flag = religiously_protected }
}
trigger_if = { # Does anyone in the hierarchy have religious protection?
limit = {
holder = {
any_liege_or_above = {
faith = prev.faith
}
}
}
holder = {
any_liege_or_above = {
NOT = { vassal_contract_has_flag = religiously_protected }
}
}
}
}As written in game/common/scripted_triggers/00_religious_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls is_unprotected_hostile_faith.
Events (2)
- … Nights
fp2_yearly.9005 - Point of View
fp2_yearly.9006
Source: game/common/scripted_triggers/00_religious_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.