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_antiking_victory_effect

pam_antiking_victory_effect = yes

game/common/scripted_effects/pam_antipope_effects.txt, line 892 (39 lines). No parameters.

pam_antiking_victory_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 892 of its file. It takes no parameters: pam_antiking_victory_effect = yes. The game's script calls it in 1 place, among them Depose Challenger Head of Faith (casus belli). Patch 1.20.1.2, from game/common/scripted_effects/pam_antipope_effects.txt.

What it does

• 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 (39 lines of game script)
pam_antiking_victory_effect = {
	pam_remove_sponsored_antipope_effect = {
		SPONSOR = scope:defender
		FAITH = scope:defender.faith
	}
	scope:attacker = {
		add_piety = major_piety_gain
		add_piety_level = 1
		if = {
			limit = {
				faith = {
					exists = religious_head
					religious_head != scope:attacker
				}
			}
			faith.religious_head = {
				add_opinion = {
					modifier = grateful_opinion
					target = scope:attacker
					opinion = 30
				}
			}
			add_hook_if_possible_default_length_effect = {
				TARGET = faith.religious_head
				TYPE = deposed_antipope_hook
			}
		}
		if = {
			limit = {
				has_personal_tenet_flag = tenet_apostolic_succession_antipope_opposition
			}
			add_legitimacy_effect = {
				LEGITIMACY = medium_legitimacy_gain
			}
			change_spiritual_fulfillment = medium_spiritual_fulfillment_value
		}
	}
	pam_antipope_removed_catalyst_effect = yes
}

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_antiking_victory_effect.

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?