Scripted effect
give_incest_secret_or_nothing_effect
give_incest_secret_or_nothing_effect = yesgame/common/scripted_effects/00_secret_effects.txt, line 112 (24 lines). No parameters.
give_incest_secret_or_nothing_effect is a scripted effect in Crusader Kings III, written at line 112 of its file. It takes no parameters: give_incest_secret_or_nothing_effect = yes. The game's script calls it in 2 places, among them give_incest_secret_or_nothing_with_target_effect (scripted effect) and give_secret_and_save_as_secret_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_secret_effects.txt.
What it does
If
- Does not have the Trait: Incestuous
- No secret:
- Is an Adult
trait_is_shunned_or_criminal_in_my_or_lieges_rite_trigger = { TRAIT = trait:incestuous GENDER_CHARACTER = scope:incest_character }
Then
If
- Is available
NOT = { knows_doctrine = doctrine_consanguinity_unrestricted }
Then
add_known_doctrine = doctrine_consanguinity_unrestricted
add_secret = { type = secret_incest }shunned_or_criminal_sf_impact_effect = { TRAIT = trait:incestuous }
• 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 (24 lines of game script)
give_incest_secret_or_nothing_effect = {
save_temporary_scope_as = incest_character
if = {
limit = {
NOR = {
has_trait = incestuous
any_secret = { type = secret_incest }
}
is_adult = yes
trait_is_shunned_or_criminal_in_my_or_lieges_rite_trigger = { TRAIT = trait:incestuous GENDER_CHARACTER = scope:incest_character }
}
if = {
limit = {
is_available_quick = { advanced_ruler = yes }
NOT = { knows_doctrine = doctrine_consanguinity_unrestricted }
}
add_known_doctrine = doctrine_consanguinity_unrestricted
}
add_secret = {
type = secret_incest
}
shunned_or_criminal_sf_impact_effect = { TRAIT = trait:incestuous }
}
}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_incest_secret_or_nothing_effect.
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.