Scripted effect
game_rule_randomize_faith_effect
game_rule_randomize_faith_effect = yesgame/common/scripted_effects/00_game_rule_effects.txt, line 951 (62 lines). No parameters.
game_rule_randomize_faith_effect is a scripted effect in Crusader Kings III, written at line 951 of its file. It takes no parameters: game_rule_randomize_faith_effect = yes. The game's script calls it in 1 place, among them on_game_start_after_lobby (on action). Patch 1.20.1.2, from game/common/scripted_effects/00_game_rule_effects.txt.
What it does
- Every in list:
- Every in list:
- Every in list:
- Every in list:
- Every in list:
- Every in list:
set_character_rite = liege.rite
• 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 (62 lines of game script)
game_rule_randomize_faith_effect = {
#Build faith list
every_religion_global = {
every_faith = {
add_to_list = faiths_list
}
}
#Save all rulers in tiered lists
every_ruler = {
if = {
limit = { highest_held_title_tier = tier_barony }
add_to_list = random_faith_barony_list
}
else_if = {
limit = { highest_held_title_tier = tier_county }
add_to_list = random_faith_county_list
}
else_if = {
limit = { highest_held_title_tier = tier_duchy }
add_to_list = random_faith_duchy_list
}
else_if = {
limit = { highest_held_title_tier = tier_kingdom }
add_to_list = random_faith_kingdom_list
}
else_if = {
limit = { highest_held_title_tier = tier_empire }
add_to_list = random_faith_empire_list
}
else_if = {
limit = { highest_held_title_tier = tier_hegemony }
add_to_list = random_faith_hegemony_list
}
}
#Apply random faiths top-down (for conversion trickle down)
every_in_list = {
list = random_faith_hegemony_list
game_rule_randomize_faith_randomization_effect = yes
}
every_in_list = {
list = random_faith_empire_list
game_rule_randomize_faith_randomization_effect = yes
}
every_in_list = {
list = random_faith_kingdom_list
game_rule_randomize_faith_randomization_effect = yes
}
every_in_list = {
list = random_faith_duchy_list
game_rule_randomize_faith_randomization_effect = yes
}
every_in_list = {
list = random_faith_county_list
game_rule_randomize_faith_randomization_effect = yes
}
every_in_list = {
list = random_faith_barony_list
set_character_rite = liege.rite
}
}As written in game/common/scripted_effects/00_game_rule_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls game_rule_randomize_faith_effect.
On actions (the game's own hooks) (1)
- on_game_start_after_lobby
Source: game/common/scripted_effects/00_game_rule_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.