Scripted effect
game_rule_sexuality_distribution_effect
game_rule_sexuality_distribution_effect = yesgame/common/scripted_effects/00_game_rule_effects.txt, line 1071 (29 lines). No parameters.
game_rule_sexuality_distribution_effect is a scripted effect in Crusader Kings III, written at line 1071 of its file. It takes no parameters: game_rule_sexuality_distribution_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 ruler:
game_rule_sexuality_distribution_reroll_effect = yes- Every courtier or guest:
- Every held title:
title_tier = county- Every pool character:
province = scope:pool_province
- Every in list:
set_generated_homosexuality_chance = homosexuality_chanceset_generated_bisexuality_chance = bisexuality_chanceset_generated_asexuality_chance = asexuality_chance
• 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 (29 lines of game script)
game_rule_sexuality_distribution_effect = {
every_ruler = {
game_rule_sexuality_distribution_reroll_effect = yes
every_courtier_or_guest = {
game_rule_sexuality_distribution_reroll_effect = yes
}
every_held_title = {
title_tier = county
title_province = { save_scope_as = pool_province }
every_pool_character = {
limit = { NOT = { is_in_list = pool_characters } }
province = scope:pool_province
add_to_list = pool_characters
}
}
}
every_in_list = {
list = pool_characters
game_rule_sexuality_distribution_reroll_effect = yes
}
# Sets the values for future generated characters
set_generated_homosexuality_chance = homosexuality_chance
set_generated_bisexuality_chance = bisexuality_chance
set_generated_asexuality_chance = asexuality_chance
}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_sexuality_distribution_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.