Scripted effect
romance_target_gender_effect
romance_target_gender_effect = { SCOPE_NAME = … }game/common/scripted_effects/00_dummy_gender_effects.txt, line 20 (65 lines). Parameters: $SCOPE_NAME$.
romance_target_gender_effect is a scripted effect in Crusader Kings III, written at line 20 of its file. A call passes 1 parameter: SCOPE_NAME. The game's script calls it in 7 places, among them A Bloom In The Wilderness (event intrigue_temptation.3010), Behind a Locked Door (event feast_default.2008) and Divine Judgment (event witch.4002). Patch 1.20.1.2, from game/common/scripted_effects/00_dummy_gender_effects.txt.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (65 lines of game script)
romance_target_gender_effect = {
hidden_effect = {
if = {
limit = { NOT = { has_sexuality = asexual } }
random_list = {
50 = {
trigger = { is_attracted_to_women = yes }
dummy_female = { save_scope_as = $SCOPE_NAME$ }
}
50 = {
trigger = { is_attracted_to_men = yes }
dummy_male = { save_scope_as = $SCOPE_NAME$ }
}
}
}
else = {
#If this effect is used for content not blocked for asexual characters, we assume this effect is used to find out what gender society expects us to prefer.
save_temporary_scope_as = asexual_char
#If homosexuality seems to be accepted, there is a change of same gender attraction target
if = {
limit = {
NOR = {
trait_is_shunned_or_criminal_in_rite_trigger = {
RITE = scope:asexual_char.rite
TRAIT = trait:sodomite
GENDER_CHARACTER = dummy_female
}
trait_is_shunned_or_criminal_in_rite_trigger = {
RITE = scope:asexual_char.rite
TRAIT = trait:sodomite
GENDER_CHARACTER = dummy_male
}
}
}
random_list = {
10 = {
modifier = {
is_female = yes
add = 80
}
dummy_male = { save_scope_as = $SCOPE_NAME$ }
}
10 = {
modifier = {
is_male = yes
add = 80
}
dummy_female = { save_scope_as = $SCOPE_NAME$ }
}
}
}
#If homosexuality isn't accepted, we 100% go with opposite sex
else = {
if = {
limit = { is_female = yes }
dummy_male = { save_scope_as = $SCOPE_NAME$ }
}
else = {
dummy_female = { save_scope_as = $SCOPE_NAME$ }
}
}
}
}
}As written in game/common/scripted_effects/00_dummy_gender_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls romance_target_gender_effect.
Events (6)
- A Bloom In The Wilderness
intrigue_temptation.3010 - Behind a Locked Door
feast_default.2008 - Divine Judgment
witch.4002 - Showing Off
intrigue_temptation.3140 - The … of the …
legend_spread_events.8090 - The Beautiful Game: A Comely Spectator
yearly.7022
Scripted effects (1)
Source: game/common/scripted_effects/00_dummy_gender_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.