Scripted effect
game_rule_inversed_gender_equality_effect
game_rule_inversed_gender_equality_effect = yesgame/common/scripted_effects/00_game_rule_effects.txt, line 470 (252 lines). No parameters.
game_rule_inversed_gender_equality_effect is a scripted effect in Crusader Kings III, written at line 470 of its file. It takes no parameters: game_rule_inversed_gender_equality_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
enable_and_run_succession_calculation = yes- Every religion global › Every faith › Every faith rite:
- If has the Male Dominated Doctrine:
change_rite_doctrine = doctrine_gender_female_dominated
- Else, if has the Female Dominated Doctrine:
change_rite_doctrine = doctrine_gender_male_dominated
- If has the Only Men Doctrine:
change_rite_doctrine = doctrine_clerical_gender_female_only
- Else, if has the Only Women Doctrine:
change_rite_doctrine = doctrine_clerical_gender_male_only
If
Then
- If has the Accepted Doctrine:
change_rite_doctrine = doctrine_adultery_women_accepted
- Else, if has the Shunned Doctrine:
change_rite_doctrine = doctrine_adultery_women_shunned
- Else, if has the Criminal Doctrine:
change_rite_doctrine = doctrine_adultery_women_crime
If
scope:doctrine_adultery_women = flag:doctrine_adultery_women_accepted
Then
change_rite_doctrine = doctrine_adultery_men_accepted
Else if
scope:doctrine_adultery_women = flag:doctrine_adultery_women_shunned
Then
change_rite_doctrine = doctrine_adultery_men_shunned
Else if
scope:doctrine_adultery_women = flag:doctrine_adultery_women_crime
Then
change_rite_doctrine = doctrine_adultery_men_crime
- If has the Accepted Doctrine:
- If has the Male Dominated Doctrine:
- Every ruler:
- Where: Highest held Title is at least County Rank
If
a check the game hides
Then
- If has the Male Monastic Order Law: Adopts the Female Monastic Order Law
- Else, if has the Female Monastic Order Law: Adopts the Male Monastic Order Law
- Every held title:
- Where:
If
has_title_law = male_only_law
Then
remove_title_law = male_only_lawadd_title_law = female_only_law
Else if
has_title_law = female_only_law
Then
remove_title_law = female_only_lawadd_title_law = male_only_law
- If has the Male Only Law:
- Adopts the Female Only Law
- Else, if has the Male Preference Law:
- Adopts the Female Preference Law
- Else, if has the Female Preference Law:
- Adopts the Male Preference Law
- Else, if has the Female Only Law:
- Every religion global › Every faith:
- Every culture global:
- If their Culture has the Men Only Cultural Pillar:
set_culture_pillar = martial_custom_female_only
- Else, if their Culture has the Women Only Cultural Pillar:
set_culture_pillar = martial_custom_male_only
- If their Culture has the Men Only Cultural Pillar:
disable_succession_calculation = yes
• 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)
game_rule_inversed_gender_equality_effect = {
enable_and_run_succession_calculation = yes
every_religion_global = {
every_faith = {
every_faith_rite = {
## DOCTRINE_GENDER
if = {
limit = { rite_has_doctrine = doctrine_gender_male_dominated }
change_rite_doctrine = doctrine_gender_female_dominated
}
else_if = {
limit = { rite_has_doctrine = doctrine_gender_female_dominated }
change_rite_doctrine = doctrine_gender_male_dominated
}
#Else: equal, do nothing
## DOCTRINE_CLERICAL_GENDER
if = {
limit = { rite_has_doctrine = doctrine_clerical_gender_male_only }
change_rite_doctrine = doctrine_clerical_gender_female_only
}
else_if = {
limit = { rite_has_doctrine = doctrine_clerical_gender_female_only }
change_rite_doctrine = doctrine_clerical_gender_male_only
}
#Else: either, do nothing
## DOCTRINE_ADULTERY_MEN & DOCTRINE_ADULTERY_WOMEN
# Men and women swap doctrine
if = {
limit = {
NOR = {
AND = {
rite_has_doctrine = doctrine_adultery_women_accepted
rite_has_doctrine = doctrine_adultery_men_accepted
}
AND = {
rite_has_doctrine = doctrine_adultery_women_shunned
rite_has_doctrine = doctrine_adultery_men_shunned
}
AND = {
rite_has_doctrine = doctrine_adultery_women_crime
rite_has_doctrine = doctrine_adultery_men_crime
}
}
}
# Save women's doctrine
if = {
limit = { rite_has_doctrine = doctrine_adultery_women_accepted }
save_scope_value_as = {
name = doctrine_adultery_women
value = flag:doctrine_adultery_women_accepted
}
}
else_if = {
limit = { rite_has_doctrine = doctrine_adultery_women_shunned }
save_scope_value_as = {
name = doctrine_adultery_women
value = flag:doctrine_adultery_women_shunned
}
}
else_if = {
limit = { rite_has_doctrine = doctrine_adultery_women_crime }
save_scope_value_as = {
name = doctrine_adultery_women
value = flag:doctrine_adultery_women_crime
}
}
# Give women mens' doctrine
if = {
limit = { rite_has_doctrine = doctrine_adultery_men_accepted }
change_rite_doctrine = doctrine_adultery_women_accepted
}
else_if = {
limit = { rite_has_doctrine = doctrine_adultery_men_shunned }
change_rite_doctrine = doctrine_adultery_women_shunned
}
else_if = {
limit = { rite_has_doctrine = doctrine_adultery_men_crime }
change_rite_doctrine = doctrine_adultery_women_crime
}
# Give men women' doctrine
if = {
limit = { scope:doctrine_adultery_women = flag:doctrine_adultery_women_accepted }
change_rite_doctrine = doctrine_adultery_men_accepted
}
else_if = {
limit = { scope:doctrine_adultery_women = flag:doctrine_adultery_women_shunned }
change_rite_doctrine = doctrine_adultery_men_shunned
}
else_if = {
limit = { scope:doctrine_adultery_women = flag:doctrine_adultery_women_crime }
change_rite_doctrine = doctrine_adultery_men_crime
}
}
}
}
}
## REALM LAW
every_ruler = {
limit = {
highest_held_title_tier >= tier_county
}
# trigger changed during processing so can not add this in limit
if = {
limit = {
NOT = { has_character_flag = gender_reversed }
}
if = {
limit = { has_realm_law = male_monastic_holy_order_succession_law }
add_realm_law_skip_effects = female_monastic_holy_order_succession_law
primary_title = {
remove_variable = male_order
set_variable = female_order
}
}As written in game/common/scripted_effects/00_game_rule_effects.txt.
The first 120 of its 252 lines; the rest is in game/common/scripted_effects/00_game_rule_effects.txt from line 470.
Where it is used
Every place in common/, events/ and history/ that calls game_rule_inversed_gender_equality_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.