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

pam_can_expand_clerical_region_after_war_trigger

pam_can_expand_clerical_region_after_war_trigger = { HEATHEN = … }

game/common/scripted_triggers/pam_scripted_triggers.txt, line 3561 (96 lines). Parameters: $HEATHEN$.

pam_can_expand_clerical_region_after_war_trigger is a scripted trigger in Crusader Kings III, in the By God Alone files, written at line 3561 of its file. A call passes 1 parameter: HEATHEN. The game's script calls it in 2 places, among them pam_incite_holy_war_effect (scripted effect) and pam_notify_holy_war_instigator_effect_win (scripted effect). Patch 1.20.1.2, from game/common/scripted_triggers/pam_scripted_triggers.txt.

What it checks

  • Any held title:
    • Is a Clerical Title
    • Any county in clerical region:
      • If

        • scope:target: Title tier exactly County

        Then

        • Any neighboring county:
        • scope:target › Their duchy › Every de jure county:
          • One of these

            • this = scope:target
            • or

              None of these

              • Their holder: Their faith is the same as that of puppet or actor

        Else if

        • scope:target: Title tier exactly Duchy

        Then

        • Any neighboring county:
          • duchy = scope:target
        • scope:target › Every de jure county › Their holder:
          • One of these

            • this = $HEATHEN$
            • or

              target_is_liege_or_above = $HEATHEN$
            • or

              Their faith is the same as that of puppet or actor

        Otherwise

        • Any neighboring county:
          • kingdom = scope:target
        • scope:target › Any direct de jure vassal title:
          • Every de jure county › Their holder:
            • One of these

              • this = $HEATHEN$
              • or

                target_is_liege_or_above = $HEATHEN$
              • or

                Their faith is the same as that of puppet or actor
          • Any de jure county:

• 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 (96 lines of game script)
pam_can_expand_clerical_region_after_war_trigger = {
	exists = scope:target
	#You hold a clerical region that neighbors or is within target
	save_temporary_scope_as = archbishop_temp
	any_held_title = {
		has_clerical_region = yes
		save_temporary_scope_as = clerical_region_title_temp
		any_county_in_clerical_region = {
			trigger_if = {
				limit = {
					scope:target = {
						tier = tier_county
					}
				}
				any_neighboring_county = {
					this = scope:target
					NOT = { exists = clerical_region_title }
				}
				#The rest of the duchy needs to be ready
				scope:target = {
					duchy = {
						#All counties must have no clerical region
						#All counties must be within recipient's realm OR held by a same-faith ruler
						any_de_jure_county = {
							count >= all
							NOT = { exists = clerical_region_title }
							OR = {
								this = scope:target
								NOT = {
									holder = {
										faith = scope:puppet_or_actor.faith
									}
								}
							}
						}
					}
				}
			}
			trigger_else_if = {
				limit = {
					scope:target = {
						tier = tier_duchy
					}
				}
				any_neighboring_county = {
					duchy = scope:target
					NOT = { exists = scope:clerical_region_title }
				}
				scope:target = {
					#All counties must have no clerical region
					#All counties must be within recipient's realm OR held by a same-faith ruler
					any_de_jure_county = {
						count >= all
						NOT = { exists = clerical_region_title }
						holder = {
							OR = {
								this = $HEATHEN$
								target_is_liege_or_above = $HEATHEN$
								faith = scope:puppet_or_actor.faith
							}
						}
					}
				}
			}
			trigger_else = {
				any_neighboring_county = {
					kingdom = scope:target
					NOT = { exists = clerical_region_title }
					save_temporary_scope_as = county_temp
				}
				scope:target = {
					any_direct_de_jure_vassal_title = {
						#All counties must have no clerical region
						#All counties must be within recipient's realm OR held by a same-faith ruler
						any_de_jure_county = {
							count >= all
							NOT = {
								exists = clerical_region_title
							}
							holder = {
								OR = {
									this = $HEATHEN$
									target_is_liege_or_above = $HEATHEN$
									faith = scope:puppet_or_actor.faith
								}
							}
						}
						any_de_jure_county = {
							this = scope:county_temp
						}
					}
				}
			}
		}
	}
}

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

Where it is used

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