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

antipope_requirements_trigger

antipope_requirements_trigger = { AMOUNT = … }

game/common/scripted_triggers/pam_antipope_triggers.txt, line 198 (81 lines). Parameters: $AMOUNT$.

antipope_requirements_trigger is a scripted trigger in Crusader Kings III, in the By God Alone files, written at line 198 of its file. A call passes 1 parameter: AMOUNT. The game's script calls it in 2 places, among them Declare an Anti… (decision) and Proclaim Yourself Anti… (decision). Its body carries 8 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_triggers/pam_antipope_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 (81 lines of game script)
antipope_requirements_trigger = {
	calc_true_if = {
		amount >= $AMOUNT$
		has_trait = herald
		trigger_if = {
			limit = { religion = religion:islam_religion }
			# Sayyids get a free pass.
			has_trait = sayyid
		}
		trigger_else_if = {
			limit = { religion = religion:zoroastrianism_religion }
			OR = {
				has_trait = saoshyant
				has_trait = saoshyant_descendant
			}
		}
		# to prevent "false" visible, but you should not get this as a potential antipope since this can only be granted to a HoF
		trigger_else = {
			has_trait = savior
		}
		has_trait_xp = {
			trait = lifestyle_scholar
			value >= 100
		}
		custom_description = {
			text = is_head_of_rite_tt
			subject = root
			rite.head_of_rite ?= this
		}
		# has_relation_rival has no first-person trigger localization, so describe it explicitly
		custom_description = {
			text = declare_yourself_antipope_decision_hof_rival_tt
			has_relation_rival = faith.religious_head
		}
		custom_description = {
			text = appoint_a_righteous_caliph_decision.caliph_not_in_diplo_range
			NOT = { in_diplomatic_range = faith.religious_head }
		}
		# Having a holy site.
		custom_description = {
			text = appoint_a_righteous_caliph_decision.control_one_holy_site
			faith = {
				any_holy_site_barony = {
					count >= 1
					holder ?= { target_is_same_character_or_above = root }
				}
			}
		}
		# Having *2* holy sites.
		custom_description = {
			text = appoint_a_righteous_caliph_decision.control_two_holy_sites
			faith = {
				any_holy_site_barony = {
					count >= 2
					holder ?= { target_is_same_character_or_above = root }
				}
			}
		}
		# Having a higher-than-minimum piety level.
		piety_level >= very_high_piety_level
		custom_description = {
			text = declare_yourself_antipope_decision_hof_piety_level_tt
			piety_level > faith.religious_head.piety_level
		}
		# And just having a caliph who doesn't live up to the root's faith's ideals.
		custom_description = {
			text = appoint_a_righteous_caliph_decision.caliph_has_x_or_more_traits_sinful_to_your_faith
			faith.religious_head = {
				num_sinful_traits = {
					value >= 2
					target = root.rite
				}
			}
		}
		# Has planned to schism off for a *while*.
		custom_description = {
			text = appoint_a_righteous_caliph_decision.has_wishes_to_schism_caliphate_flag
			has_character_flag = wishes_to_schism_caliphate_flag
		}
	}
}

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

Where it is used

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

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