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

Scripted effect

child_secret_faith_conversion_critical_failure_effect

child_secret_faith_conversion_critical_failure_effect = yes

game/common/scripted_effects/00_religious_interaction_effects.txt, line 1366 (79 lines). No parameters.

child_secret_faith_conversion_critical_failure_effect is a scripted effect in Crusader Kings III, written at line 1366 of its file. It takes no parameters: child_secret_faith_conversion_critical_failure_effect = yes. The game's script calls it in 2 places, among them Hidden Knowledge (event secret_faith.1003) and The Age of Knowing (event secret_faith.1002). Patch 1.20.1.2, from game/common/scripted_effects/00_religious_interaction_effects.txt.

What it does

  • scope:child:
    • scope:guardian_secret_faith_secret:
      • expose_secret = scope:child
    • Opinion: Hatred (-30)
  • scope:guardian › Otherwise: Opinion: Hatred (-30)

• 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 (79 lines of game script)
child_secret_faith_conversion_critical_failure_effect = {
	hidden_effect = {
		# Save and reveal secret
		scope:guardian = {
			random_secret = {
				type = secret_crypto_religionist
				save_scope_as = guardian_secret_faith_secret
				if = {
					limit = { NOT = { is_known_by = scope:child } }
					reveal_to = scope:child
				}
			}
		}
		scope:child = {
			# Inform the child's liege if relevant
			if = {
				limit = {
					is_ruler = yes
					NOR = {
						liege = this
						liege ?= scope:guardian
					}
				}
				liege = {
					send_interface_message = {
						type = event_religious_neutral
						title = child_secret_faith_conversion_critical_failure_effect.liege.desc
						left_icon = scope:child
						right_icon = scope:guardian
						show_as_tooltip = {
							scope:guardian_secret_faith_secret = { expose_secret = scope:child }
							scope:child = {
								add_opinion = {
									target = scope:guardian
									modifier = hate_opinion
									opinion = -30
								}
							}
						}
					}
				}
			}
		}
	}
	scope:child = {
		# Inform the child
		send_interface_toast = {
			type = event_religious_neutral
			title = child_secret_faith_conversion_critical_failure_effect.desc
			left_icon = scope:child
			right_icon = scope:guardian
	 		scope:guardian_secret_faith_secret = { expose_secret = scope:child }
		 	add_opinion = {
				target = scope:guardian
				modifier = hate_opinion
				opinion = -30
			}
		}
	}
	scope:guardian = {
		if = {
			limit = { this = root }
			hidden_effect = {
				add_opinion = {
					target = scope:child
					modifier = hate_opinion
					opinion = -30
				}
			}
		}
		else = {
			add_opinion = {
				target = scope:child
				modifier = hate_opinion
				opinion = -30
			}
		}
	}
}

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

Where it is used

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

Events (2)

Source: game/common/scripted_effects/00_religious_interaction_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?