Scripted effect
select_scapegoat_faith_effect
select_scapegoat_faith_effect = yesgame/common/scripted_effects/00_regional_scripted_effects.txt, line 531 (339 lines). No parameters.
select_scapegoat_faith_effect is a scripted effect in Crusader Kings III, written at line 531 of its file. It takes no parameters: select_scapegoat_faith_effect = yes. The game's script calls it in 1 place, among them Plague Trials: Bringers of Pestilence (event epidemic_events.1060). Patch 1.20.1.2, from game/common/scripted_effects/00_regional_scripted_effects.txt.
The comment above it in the file
Plague effect, get a regionally appropriate faith for people to scapegoat
What it does
- 1 of 4 things will happen:
- 32%: Nothing else happens
- 32%: Nothing else happens
- 32%: Nothing else happens
- 3% › 1 of 12 things will happen:
- 9%: Nothing else happens
- 9%: Nothing else happens
- 9%: Nothing else happens
- 9%: Nothing else happens
- 9%: Nothing else happens
- 9%: Nothing else happens
- 9%: Nothing else happens
- 9%: Nothing else happens
- 9%: Nothing else happens
- 9%: Nothing else happens
- 9%: Nothing else happens
- 0%: Nothing else happens
• 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 (120 lines of game script)
select_scapegoat_faith_effect = {
random_list = {
100 = { # Courtier in your realm with hostile faith
trigger = {
any_courtier_or_guest = {
save_temporary_scope_as = courtier_to_check
root.faith = {
faith_hostility_level = {
target = scope:courtier_to_check.faith
value >= faith_hostile_level
}
}
}
}
random_courtier_or_guest = {
limit = {
save_temporary_scope_as = courtier_to_check
root.faith = {
faith_hostility_level = {
target = scope:courtier_to_check.faith
value >= faith_hostile_level
}
}
}
faith = { save_scope_as = faith_to_blame }
}
}
100 = { # Vassal in your realm with hostile faith
trigger = {
top_liege ?= {
any_vassal_or_below = {
save_temporary_scope_as = courtier_to_check
root.faith = {
faith_hostility_level = {
target = scope:courtier_to_check.faith
value >= faith_hostile_level
}
}
}
}
}
top_liege = {
random_vassal_or_below = {
limit = {
save_temporary_scope_as = courtier_to_check
root.faith = {
faith_hostility_level = {
target = scope:courtier_to_check.faith
value >= faith_hostile_level
}
}
}
faith = { save_scope_as = faith_to_blame }
}
}
}
100 = { # Neighbouring hostile faith
trigger = {
any_neighboring_and_across_water_top_liege_realm_owner = {
any_sub_realm_county = {
save_temporary_scope_as = county_to_check
root.faith = {
faith_hostility_level = {
target = scope:county_to_check.faith
value >= faith_hostile_level
}
}
}
}
}
random_neighboring_and_across_water_top_liege_realm_owner = {
limit = {
any_sub_realm_county = {
save_temporary_scope_as = county_to_check
root.faith = {
faith_hostility_level = {
target = scope:county_to_check.faith
value >= faith_hostile_level
}
}
}
}
random_sub_realm_county = {
limit = {
save_temporary_scope_as = county_to_check
root.faith = {
faith_hostility_level = {
target = scope:county_to_check.faith
value >= faith_hostile_level
}
}
}
faith = { save_scope_as = faith_to_blame }
}
}
}
10 = { # Regional, fallback
random_list = {
1000 = { # Judaism
trigger = {
capital_province ?= {
OR = {
geographical_region = world_europe
geographical_region = world_asia_minor
geographical_region = world_middle_east
geographical_region = world_africa_east
geographical_region = world_africa_north
}
}
# Jewish faiths shouldn't blame themselves
NOT = { root.faith.religion = religion:judaism_religion }
# Account for Syncretics and the like
root.faith = {
NOT = { has_doctrine_parameter = jewish_syncretic_actor }
}
}
religion:judaism_religion = {
random_faith = {
limit = {
NOR = { # Regional faiths should be excludedAs written in game/common/scripted_effects/00_regional_scripted_effects.txt.
The first 120 of its 339 lines; the rest is in game/common/scripted_effects/00_regional_scripted_effects.txt from line 531.
Where it is used
Every place in common/, events/ and history/ that calls select_scapegoat_faith_effect.
Events (1)
- Plague Trials: Bringers of Pestilence
epidemic_events.1060
Source: game/common/scripted_effects/00_regional_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.