Scripted effect
give_deviant_secret_or_trait_effect
give_deviant_secret_or_trait_effect = yesgame/common/scripted_effects/00_secret_effects.txt, line 236 (31 lines). No parameters.
give_deviant_secret_or_trait_effect is a scripted effect in Crusader Kings III, written at line 236 of its file. It takes no parameters: give_deviant_secret_or_trait_effect = yes. The game's script calls it in 19 places, among them … Pie (event host_dinner_events.3041), 'Celestial Hierarchy' (event pam_secular_faith_events.0049) and A Compromising Position (event fp2_yearly.1002). Patch 1.20.1.2, from game/common/scripted_effects/00_secret_effects.txt.
What it does
If
- Is an Adult
is_deviant_trigger = no
Then
If
- Is available
NOT = { knows_doctrine = doctrine_deviancy_accepted }
Then
add_known_doctrine = doctrine_deviancy_accepted
If
trait_is_shunned_or_criminal_in_my_or_lieges_rite_trigger = { TRAIT = trait:deviant GENDER_CHARACTER = scope:deviant_character }
Then
add_secret = { type = secret_deviant }shunned_or_criminal_sf_impact_effect = { TRAIT = trait:deviant }
- Else, if an Adult: Gains the Trait Deviant
• 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 (31 lines of game script)
give_deviant_secret_or_trait_effect = {
save_temporary_scope_as = deviant_character
if = {
limit = { #Not already a deviant
is_adult = yes
is_deviant_trigger = no
}
if = {
limit = {
is_available_quick = { advanced_ruler = yes }
NOT = { knows_doctrine = doctrine_deviancy_accepted }
}
add_known_doctrine = doctrine_deviancy_accepted
}
if = {
limit = {
trait_is_shunned_or_criminal_in_my_or_lieges_rite_trigger = { TRAIT = trait:deviant GENDER_CHARACTER = scope:deviant_character }
}
add_secret = {
type = secret_deviant
}
shunned_or_criminal_sf_impact_effect = { TRAIT = trait:deviant }
}
else_if = {
limit = {
is_adult = yes
}
add_trait = deviant
}
}
}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_deviant_secret_or_trait_effect.
Character interactions (1)
- Spread/Expose Secrets
Events (14)
- … Pie
host_dinner_events.3041 - 'Celestial Hierarchy'
pam_secular_faith_events.0049 - A Compromising Position
fp2_yearly.1002 - A Deviant on the Loose
yearly.8400 - A Little Experimentation
intrigue_temptation.3110 - A New Hobby
bp1_yearly.1000
8 more
- Alternative Taste
trait_specific.6001 - An Odd Request
bp1_yearly.9020 - Caught with My Pants Down
trait_specific_ongoing.6001 - Deviant Liege
trait_specific_ongoing.6002 - Every … for …
yearly.1030 - Experimenting
trait_specific.6002 - Raunchy Runestone
fp1_yearly.2500 - Sins of the …: In Flagrante
bp1_yearly.5707
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.