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

piety_support_trigger

piety_support_trigger = yes

game/common/scripted_triggers/pam_scripted_triggers.txt, line 6403 (59 lines). No parameters.

piety_support_trigger is a scripted trigger in Crusader Kings III, in the By God Alone files, written at line 6403 of its file. It takes no parameters: piety_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 4 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 (59 lines of game script)
piety_support_trigger = {
	#AI precautions
	trigger_if = {
		limit = {
			is_ai = yes
		}
		ai_zeal >= 0
		ai_boldness >= low_negative_ai_value
	}

	NOT = {
		has_trait = excommunicated
	}
	rite = scope:recipient.rite
	custom_tooltip = {
		text = comparable_piety_to_recipient_req_tt
		piety_level >= scope:recipient.piety_level
	}
	OR = {
		has_trait = saint
		has_trait = herald
		has_trait = saoshyant
		has_trait = paragon
		has_trait = savior
		has_trait = crusader_king
		has_trait = divine_blood
		has_trait = faith_warrior
		has_trait = theologian
		has_trait = zealous
		custom_tooltip = {
			text = you_are_head_of_faith_req_tt
			trigger_if = {
				limit = { exists = scope:recipient.faith.religious_head }
				this = scope:recipient.faith.religious_head
			}
		}
		custom_tooltip = {
			text = pilgrim_xp_req_tt
			has_trait = pilgrim
			has_trait_xp = {
				trait = pilgrim
				value >= 50
			}
		}
		custom_tooltip = {
			text = scholar_xp_req_tt
			has_trait = lifestyle_scholar
			has_trait_xp = {
				trait = lifestyle_scholar
				value >= 50
			}
		}
	}
	scope:recipient = {
		NOT = {
			has_trait = cynical
		}
	}
}

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

Where it is used

Every place in common/, events/ and history/ that calls piety_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?