CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted effect

game_rule_sexuality_distribution_reroll_effect

game_rule_sexuality_distribution_reroll_effect = yes

game/common/scripted_effects/00_game_rule_effects.txt, line 1044 (26 lines). No parameters.

game_rule_sexuality_distribution_reroll_effect is a scripted effect in Crusader Kings III, written at line 1044 of its file. It takes no parameters: game_rule_sexuality_distribution_reroll_effect = yes. The game's script calls it in 3 places, among them on_game_start_after_lobby (on action), child_sexuality_distribution_effect (scripted effect) and game_rule_sexuality_distribution_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_game_rule_effects.txt.

What it does

  • If

    • Is at least 10 years old
    • NOT = { is_from_ruler_designer = yes }

    Then

    • 1 of 4 things will happen:
      • 0 (base chance; changed in play):
        • set_sexuality = heterosexual
      • 0 (base chance; changed in play):
        • set_sexuality = bisexual
      • 0 (base chance; changed in play):
        • set_sexuality = homosexual
      • 0 (base chance; changed in play):
        • set_sexuality = asexual

• 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 (26 lines of game script)
game_rule_sexuality_distribution_reroll_effect = {
	if = {
		limit = { 
			age >= 10
			NOT = { is_from_ruler_designer = yes }
		}
		random_list = {
			0 = {
				modifier = { add = heterosexuality_chance }
				set_sexuality = heterosexual
			}
			0 = {
				modifier = { add = bisexuality_chance }
				set_sexuality = bisexual
			}
			0 = {
				modifier = { add = homosexuality_chance }
				set_sexuality = homosexual
			}
			0 = {
				modifier = { add = asexuality_chance }
				set_sexuality = asexual
			}
		}
	}
}

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_reroll_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.

Spotted a mistake on this page?