CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted effect

give_deviant_secret_or_trait_effect

give_deviant_secret_or_trait_effect = yes

game/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

• 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)

8 more

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.

Spotted a mistake on this page?