Scripted effect
give_homosexual_secret_or_nothing_effect
give_homosexual_secret_or_nothing_effect = yesgame/common/scripted_effects/00_secret_effects.txt, line 317 (25 lines). No parameters.
give_homosexual_secret_or_nothing_effect is a scripted effect in Crusader Kings III, written at line 317 of its file. It takes no parameters: give_homosexual_secret_or_nothing_effect = yes. The game's script calls it in 10 places, among them Every … for … (event yearly.1030), fund_inspiration.6513 (event) and Inspiration: Up Late (event fund_inspiration.2120). Patch 1.20.1.2, from game/common/scripted_effects/00_secret_effects.txt.
What it does
If
- Is available
NOT = { knows_doctrine = doctrine_homosexuality_accepted }
Then
add_known_doctrine = doctrine_homosexuality_accepted
If
- Is an Adult
- Does not have the Trait: Sodomite
- No secret:
is_male = yestrait_is_shunned_or_criminal_in_my_or_lieges_rite_trigger = { TRAIT = trait:sodomite GENDER_CHARACTER = scope:homosexual_character }
Then
add_secret = { type = secret_homosexual }shunned_or_criminal_sf_impact_effect = { TRAIT = trait:sodomite }
• 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 (25 lines of game script)
give_homosexual_secret_or_nothing_effect = {
save_temporary_scope_as = homosexual_character
if = {
limit = {
is_available_quick = { advanced_ruler = yes }
NOT = { knows_doctrine = doctrine_homosexuality_accepted }
}
add_known_doctrine = doctrine_homosexuality_accepted
}
if = {
limit = { #Not already a known/secret sodomite and can become one
is_adult = yes
NOR = {
has_trait = sodomite
any_secret = { type = secret_homosexual }
}
is_male = yes
trait_is_shunned_or_criminal_in_my_or_lieges_rite_trigger = { TRAIT = trait:sodomite GENDER_CHARACTER = scope:homosexual_character }
}
add_secret = {
type = secret_homosexual
}
shunned_or_criminal_sf_impact_effect = { TRAIT = trait:sodomite }
}
}As written in game/common/scripted_effects/00_secret_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls give_homosexual_secret_or_nothing_effect.
Character interactions (1)
- Spread/Expose Secrets
Events (4)
- Every … for …
yearly.1030 - fund_inspiration.6513
- Inspiration: Up Late
fund_inspiration.2120 - The Oldest Joke In The Book
yearly.1060
Source: game/common/scripted_effects/00_secret_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.