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_strip_antipope_office_effect

pam_strip_antipope_office_effect = yes

game/common/scripted_effects/pam_antipope_effects.txt, line 267 (33 lines). No parameters.

pam_strip_antipope_office_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 267 of its file. It takes no parameters: pam_strip_antipope_office_effect = yes. The game's script calls it in 4 places, among them on_faith_created (on action), pam_challenge_hof_defeat_cleanup_effect (scripted effect) and pam_remove_antipope_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/pam_antipope_effects.txt.

The comment above it in the file

Root is the antipope losing the office

What it does

  • Their faith › Every religious head challenger:
    • Where:
      • holder ?= scope:pam_removed_antipope
    • scope:pam_removed_antipope:

• 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 (33 lines of game script)
pam_strip_antipope_office_effect = {
	save_temporary_scope_as = pam_removed_antipope
	faith = {
		save_temporary_scope_as = pam_removed_antipope_faith
		every_religious_head_challenger = {
			limit = { holder ?= scope:pam_removed_antipope }
			save_temporary_scope_as = pam_title_to_destroy
			# Release the sponsor's grip before the sponsorship record goes away
			hidden_effect = {
				scope:pam_removed_antipope_faith = { remove_religious_head_challenger = scope:pam_title_to_destroy }
			}
			scope:pam_removed_antipope = {
					clear_puppet_status = yes
					remove_puppet_modifiers_effect = yes
					destroy_title = scope:pam_title_to_destroy
			}
		}
	}
	# On rite-detach, code unregisters the challenger before any script runs
	# The marked office title is then all that is left of it
	hidden_effect = {
		every_held_title = {
			limit = { has_variable = pam_antipope_office }
			save_temporary_scope_as = pam_title_to_destroy
			scope:pam_removed_antipope = {
				clear_puppet_status = yes
				remove_puppet_modifiers_effect = yes
				destroy_title = scope:pam_title_to_destroy
			}
		}
	}
	remove_character_flag = antipope_flag
}

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

Where it is used

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

On actions (the game's own hooks) (1)

  • on_faith_created

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