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_witch_conversion_critical_failure_effect

child_witch_conversion_critical_failure_effect = yes

game/common/scripted_effects/00_witch_effects.txt, line 93 (66 lines). No parameters.

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

What it does

  • scope:guardian:
    • scope:child: Opinion: Hatred (-30)
    • scope:child › scope:guardian › One random secret:
      • If

        • NOT = { is_known_by = scope:child }

        Then

        • reveal_to = scope:child
      • If

        • None of these

          • is_known_by = scope:child.liege
          • scope:child: Is a ruler

        Then

        • scope:child.liege › scope:guardian_witch_secret:
          • reveal_to = scope:child.liege
    • 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 (66 lines of game script)
child_witch_conversion_critical_failure_effect = {
	scope:guardian = {
		send_interface_toast = {
			type = event_witchcraft_bad
			title = child_witch_conversion_critical_failure_effect.desc
			left_icon = scope:child

			scope:child = {
			 	add_opinion = {
					target = scope:guardian
					modifier = hate_opinion
					opinion = -30
				}
			}
		}
		scope:child = {
			scope:guardian = {
				random_secret = {
					type = secret_witch
					save_scope_as = guardian_witch_secret
					if = {
						limit = { NOT = { is_known_by = scope:child } }
						reveal_to = scope:child
					}
					if = {
						limit = {
							exists = scope:child.liege
							NOR = {
								is_known_by = scope:child.liege
								scope:child = { is_ruler = yes }
							}
						}
						scope:child.liege = {
							send_interface_message = {
								type = event_witchcraft_bad
								title = child_witch_conversion_critical_failure_effect.liege.desc
								left_icon = scope:guardian
								right_icon = scope:child
								scope:guardian_witch_secret = { reveal_to = scope:child.liege }
							}
						}
					}
				}
			}
		}
		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_witch_effects.txt.

Where it is used

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

Events (2)

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