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_random_likely_secret_effect

give_random_likely_secret_effect = yes

game/common/scripted_effects/00_secret_effects.txt, line 2157 (235 lines). No parameters.

give_random_likely_secret_effect is a scripted effect in Crusader Kings III, written at line 2157 of its file. It takes no parameters: give_random_likely_secret_effect = yes. The game's script calls it in 9 places, among them A Heavy Crown (event learning_medicine.2030), A Shady Discussion (event yearly.5040) and A Sweet Farewell (event intrigue_temptation.3000). Patch 1.20.1.2, from game/common/scripted_effects/00_secret_effects.txt.

What it does

  • 1 of 8 things will happen:
    • 7% (base chance; changed in play):
      • ai_value_modifier = { ai_boldness = tiny_chance_impact_positive_ai_value ai_honor = tiny_chance_impact_negative_ai_value ai_zeal = medium_chance_impact_negative_ai_value }
      • give_deviant_secret_or_trait_effect = yes
    • 15% (base chance; changed in play):
    • 11%:
      • ai_value_modifier = { ai_boldness = tiny_chance_impact_positive_ai_value ai_greed = tiny_chance_impact_positive_ai_value ai_compassion = low_chance_impact_negative_ai_value }
      • add_secret = { type = secret_murder_attempt target = scope:victim }
    • 7% (base chance; changed in play):
    • 15% (base chance; changed in play):
    • 30% (base chance; changed in play):
      • ai_value_modifier = { ai_compassion = medium_chance_impact_positive_ai_value }
      • set_random_lover_reason = { TARGET = scope:lover }
    • 7% (base chance; changed in play) › One random close family member:
    • 7% (base chance; changed in play):
      • ai_value_modifier = { ai_greed = tiny_chance_impact_positive_ai_value ai_zeal = medium_chance_impact_negative_ai_value ai_compassion = tiny_chance_impact_negative_ai_value }
      • add_secret = { type = secret_witch }

• 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 (120 lines of game script)
give_random_likely_secret_effect = {
	save_temporary_scope_as = secret_getter
	random_list = {
		100 = { #DEVIANT
			trigger = {
				is_adult = yes
				secret_deviant_is_valid_trigger = { OWNER = this }
				NOR = {
					has_trait = chaste
					has_trait = celibate
				}
				NOT = { any_secret = { type = secret_deviant } }
				trait_is_shunned_or_criminal_in_my_or_lieges_rite_trigger = { TRAIT = trait:deviant GENDER_CHARACTER = scope:secret_getter }

			}
			modifier = {
				has_trait = lustful
				add = 200
			}
			ai_value_modifier = {
				ai_boldness = tiny_chance_impact_positive_ai_value #+50 for high positive boldness
				ai_honor = tiny_chance_impact_negative_ai_value #+50 for high negative honor
				ai_zeal = medium_chance_impact_negative_ai_value #-200 for high positive zeal
			}
			give_deviant_secret_or_trait_effect = yes
		}
		200 = { #HOMOSEXUAL
			trigger = {
				is_adult = yes
				trait_is_shunned_or_criminal_in_my_or_lieges_rite_trigger = { TRAIT = trait:sodomite GENDER_CHARACTER = scope:secret_getter }
				OR = {
					has_sexuality = homosexual
					has_sexuality = bisexual
				}
				NOT = { any_secret = { type = secret_homosexual } }
			}
			modifier = {
				any_relation = { type = lover sex_opposite_of = prev }
				factor = 0.1
			}
			give_homosexual_secret_or_nothing_effect = yes
		}
		150 = { #MURDER ATTEMPT
			trigger = {
				is_adult = yes
				save_temporary_scope_as = murderer
				OR = {
					any_relation = {
						type = rival
						give_random_likely_secret_murder_attempt_victim_trigger = yes
					}
					any_close_or_extended_family_member = {
						reverse_opinion = {
							target = prev
							value <= -10
						}
						give_random_likely_secret_murder_attempt_victim_trigger = yes
					}
				}
			}
			ai_value_modifier = {
				ai_boldness = tiny_chance_impact_positive_ai_value #+50 for high positive boldness
				ai_greed = tiny_chance_impact_positive_ai_value #+50 for high positive greed
				ai_compassion = low_chance_impact_negative_ai_value #-100 for high positive compassion
			}

			save_temporary_scope_as = murderer

			every_relation = {
				type = rival
				limit = {
					give_random_likely_secret_murder_attempt_victim_trigger = yes
				}
				add_to_list = victim_options
			}
			every_close_or_extended_family_member = {
				limit = {
					reverse_opinion = {
						target = prev
						value <= -10
					}
					give_random_likely_secret_murder_attempt_victim_trigger = yes
				}
				add_to_list = victim_options
			}

			random_in_list = {
				list = victim_options
				save_temporary_scope_as = victim
			}

			add_secret = {
				type = secret_murder_attempt
				target = scope:victim
			}
		}
		100 = { #CANNIBAL
			trigger = {
				secret_cannibal_is_valid_trigger = { OWNER = this }
				NOT = { any_secret = { type = secret_cannibal } }
				trait_is_shunned_or_criminal_in_my_or_lieges_rite_trigger = { TRAIT = trait:cannibal GENDER_CHARACTER = scope:secret_getter }
			}
			ai_value_modifier = {
				ai_boldness = tiny_chance_impact_positive_ai_value #+50 for high positive boldness
				ai_greed = tiny_chance_impact_positive_ai_value #+50 for high positive greed
				ai_zeal = low_chance_impact_negative_ai_value #-100 for high positive zeal
				ai_compassion = medium_chance_impact_negative_ai_value #-200 for high positive compassion
			}
			modifier = {
				is_adult = no
				add = -80
			}

			give_cannibal_secret_or_trait_effect = yes
		}
		200 = { #HERETIC
			trigger = {
				NOT = { any_secret = { type = secret_non_believer } }
			}
			modifier = {

As written in game/common/scripted_effects/00_secret_effects.txt.

The first 120 of its 235 lines; the rest is in game/common/scripted_effects/00_secret_effects.txt from line 2157.

Where it is used

Every place in common/, events/ and history/ that calls give_random_likely_secret_effect.

Character interactions (1)

  • Spread/Expose Secrets

Events (7)

1 more

Scripted effects inside an event file (1)

  • ach_coronation_0011_coward_setup_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.

Spotted a mistake on this page?