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

Scripted trigger · By God Alone files

lunacy_support_trigger

lunacy_support_trigger = yes

game/common/scripted_triggers/pam_scripted_triggers.txt, line 6540 (62 lines). No parameters.

lunacy_support_trigger is a scripted trigger in Crusader Kings III, in the By God Alone files, written at line 6540 of its file. It takes no parameters: lunacy_support_trigger = yes (or no). The game's script calls it in 3 places, among them Puppet Clerical Ruler (interaction), Puppet Realm Priest (interaction) and Puppet Secular Ruler (interaction). Its body carries 3 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_triggers/pam_scripted_triggers.txt.

What it checks

• 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 (62 lines of game script)
lunacy_support_trigger = {
	#AI precautions
	trigger_if = {
		limit = {
			is_ai = yes
		}
		ai_compassion <= medium_negative_ai_value
		ai_rationality <= low_positive_ai_value
		ai_sociability <= low_positive_ai_value
		ai_boldness <= low_positive_ai_value
		OR = {
			custom_tooltip = {
				text = witch_secret_unlock_tt
				any_secret = {
					type = secret_witch
				}
			}
			has_trait = witch
			has_trait = schemer
			has_trait = torturer
			ai_compassion <= high_negative_ai_value
		}
	}

	scope:recipient = {
		intrigue < mediocre_skill_rating
	}
	OR = {
		custom_tooltip = {
			text = witch_secret_unlock_tt
			any_secret = {
				type = secret_witch
			}
		}
		has_trait = witch
		has_trait = schemer
		has_trait = lifestyle_herbalist
		has_trait = torturer
		custom_tooltip = {
			text = high_trickster_xp_unlock_tt
			has_trait = gallowsbait
			has_trait_xp = {
				trait = gallowsbait
				track = trickster
				value >= 40
			}
		}
	}
	scope:recipient = {
		OR = {
			has_trait = eccentric
			has_trait = lunatic
			has_trait = possessed
			has_trait = drunkard
			has_trait = hashishiyah
			has_trait = withering_mind
			has_trait = ergotism
			has_trait = bubonic_plague
			is_adult = no
		}
	}
}

As written in game/common/scripted_triggers/pam_scripted_triggers.txt.

Where it is used

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

Source: game/common/scripted_triggers/pam_scripted_triggers.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?