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

Scripted effect · By God Alone files

pam_incite_holy_war_effect

pam_incite_holy_war_effect = yes

game/common/scripted_effects/pam_effects.txt, line 9879 (302 lines). No parameters.

pam_incite_holy_war_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 9879 of its file. It takes no parameters: pam_incite_holy_war_effect = yes. The game's script calls it in 3 places, among them … Conquest of … (event pam_interactions_events.0071), A War for the … (event pam_interactions_events.0070) and ecclesiastic_incite_holy_war_interaction_effect (scripted effect). Its body carries 8 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.

What it does

  • scope:puppet_or_actor:
    • If

      • top_participant_group:the_christian_church:
        • has_participant_group_parameter = the_christian_church_incite_holy_war_interaction
      • Does not have the Trait: Forgiving
      • Does not have the Trait: Compassionate

      Then

      • change_spiritual_fulfillment = { … }
  • scope:secondary_recipient:
    • add_piety = { … }
    • If

      • scope:puppet_or_actor › top_participant_group:the_christian_church:
        • has_participant_group_parameter = the_christian_church_incite_holy_war_interaction
      • Does not have the Trait: Forgiving
      • Does not have the Trait: Compassionate

      Then

      • change_spiritual_fulfillment = { … }
  • scope:recipient:
    • If

      • NOT = { root ?= scope:secondary_recipient }

      Then

  • If

    • root ?= scope:secondary_recipient

    Then

    • … attack … in a Holy War for …
    • scope:recipient: Opinion: Declared War

    Otherwise

    • scope:recipient: Is attacked by … in a Holy War for …
  • scope:puppet_or_actor:
  • scope:recipient: Event pam_interactions_events.0072 (after 3 days)
  • scope:puppet_or_actor:
    • If

      • scope:target.tier >= tier_kingdom
      • Any character situation:
        • situation_type = the_christian_church
      • The Christian Church: The current phase counts “A major Holy War is incited by the Clergy”

      Then

      • Counts toward the situation's next phase: “A major Holy War is incited by the Clergy”

      Else if

      • scope:target.tier >= tier_duchy
      • Any character situation:
        • situation_type = the_christian_church
      • The Christian Church: The current phase counts “A Holy War is incited by the Clergy”

      Then

      • Counts toward the situation's next phase: “A Holy War is incited by the Clergy”

      Otherwise

      • limit = { … }
      • Counts toward the situation's next phase: “A minor Holy War is incited by the Clergy”

• 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 (120 lines of game script)
pam_incite_holy_war_effect = {
	scope:puppet_or_actor = {
		if = {
			limit = {
				top_participant_group:the_christian_church ?= {
					has_participant_group_parameter = the_christian_church_incite_holy_war_interaction
				}
				NOR = {
					has_trait = forgiving
					has_trait = compassionate
				}
			}
			change_spiritual_fulfillment = {
				value = miniscule_spiritual_fulfillment_value
				multiply = {
					value = scope:target.tier
					subtract = 1
				}
			}
		}
	}
	
	scope:secondary_recipient = {
		save_scope_as = sponsored_holy_war_attacker
		add_piety = {
			value = medium_piety_value
			multiply = {
				value = scope:target.tier
				subtract = 1
			}
		}
		if = {
			limit = {
				scope:puppet_or_actor = {
					top_participant_group:the_christian_church ?= {
						has_participant_group_parameter = the_christian_church_incite_holy_war_interaction
					}
				}
				NOR = {
					has_trait = forgiving
					has_trait = compassionate
				}
			}
			change_spiritual_fulfillment = {
				value = minor_spiritual_fulfillment_value
				multiply = {
					value = scope:target.tier
					subtract = 1
				}
			}
		}
	}
	scope:recipient = {
		save_scope_as = sponsored_holy_war_defender
		if = {
			limit = {
				NOT = {
					root ?= scope:secondary_recipient
				}
			}
			add_opinion = {
				target = scope:puppet_or_actor
				modifier = incited_holy_war_opinion
				opinion = -50
			}
		}
	}
	if = {
		limit = {
			root ?= scope:secondary_recipient
		}
		custom_tooltip = interaction_holy_war_attacker_tt
		show_as_tooltip = {
			scope:recipient = {
				add_opinion = {
					modifier = declared_war
					target = scope:secondary_recipient
				}
			}
		}
	}
	else = {
		scope:recipient = {
			custom_tooltip = interaction_holy_war_attacked_tt
		}
	}
	
	scope:sponsored_holy_war_attacker = {
		add_character_flag = {
			flag = holy_war_incited
			days = 10
		}
		if = {
			limit = {
				scope:sponsored_holy_war_target.tier = tier_kingdom
			}
			hidden_effect = {
				start_war = {
					casus_belli = major_religious_war
					target = scope:sponsored_holy_war_defender
					target_title = scope:sponsored_holy_war_target
				}
			}
		}
		else_if = {
			limit = {
				scope:sponsored_holy_war_target.tier = tier_duchy
			}
			hidden_effect = {
				start_war = {
					casus_belli = religious_war
					target = scope:sponsored_holy_war_defender
					target_title = scope:sponsored_holy_war_target
				}
			}
		}
		else = {
			hidden_effect = {
				start_war = {
					casus_belli = minor_religious_war

As written in game/common/scripted_effects/pam_effects.txt.

The first 120 of its 302 lines; the rest is in game/common/scripted_effects/pam_effects.txt from line 9879.

Where it is used

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

Events (2)

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