Scripted effect · By God Alone files
pam_antipope_challenge_hof_victory_effect
pam_antipope_challenge_hof_victory_effect = yesgame/common/scripted_effects/pam_antipope_effects.txt, line 437 (64 lines). No parameters.
pam_antipope_challenge_hof_victory_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 437 of its file. It takes no parameters: pam_antipope_challenge_hof_victory_effect = yes. The game's script calls it in 1 place, among them Challenge Head of Faith (casus belli). Patch 1.20.1.2, from game/common/scripted_effects/pam_antipope_effects.txt.
What it does
pam_challenge_hof_war_save_participants_effect = yesscope:defender:pam_challenge_hof_war_persist_scopes_effect = { OUTCOME = flag:attacker_victory }
If
scope:attacker:pam_is_antipope_trigger = yes
Then
- scope:attacker.faith › Every religious head challenger:
- Where:
holder ?= scope:attacker
challenger_sponsor ?= { … }
- Where:
scope:attacker:pam_antipope_become_hof_effect = { WINNER = scope:attacker }
Else if
scope:attacker:
Then
If
a check the game hides
Then
pam_antipope_become_hof_effect = { WINNER = scope:antipope_winner }pam_antipope_sponsor_vassalize_hof_effect = { SPONSOR = scope:challenger_sponsor }
If
NOT = { scope:attacker.faith.religious_head ?= scope:defender }
Then
• 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 (64 lines of game script)
pam_antipope_challenge_hof_victory_effect = {
pam_challenge_hof_war_save_participants_effect = yes
scope:defender = {
pam_challenge_hof_war_persist_scopes_effect = {
OUTCOME = flag:attacker_victory
}
}
# Set before he takes office: that title change is what fires the succession reaction
if = {
limit = {
exists = scope:pam_ch_hof_challenger
exists = scope:pam_ch_hof_sponsor
}
scope:pam_ch_hof_challenger = {
set_variable = {
name = challenger_sponsor
value = scope:pam_ch_hof_sponsor
days = 7
}
}
}
if = {
limit = {
scope:attacker = { pam_is_antipope_trigger = yes }
}
scope:attacker.faith = {
every_religious_head_challenger = {
limit = { holder ?= scope:attacker }
challenger_sponsor ?= {
holder ?= { save_scope_as = challenger_sponsor }
}
}
}
scope:attacker = {
pam_antipope_become_hof_effect = { WINNER = scope:attacker }
}
}
else_if = {
limit = {
scope:attacker = { pam_is_antipope_sponsor_trigger = yes }
}
scope:attacker = { save_scope_as = challenger_sponsor }
scope:attacker.faith = {
every_religious_head_challenger = {
limit = {
challenger_sponsor ?= { holder ?= scope:attacker }
}
holder ?= { save_scope_as = antipope_winner }
}
}
if = {
limit = { exists = scope:antipope_winner }
pam_antipope_become_hof_effect = { WINNER = scope:antipope_winner }
pam_antipope_sponsor_vassalize_hof_effect = { SPONSOR = scope:challenger_sponsor }
}
}
# Only hold a judgment if the old Head of Faith actually lost the seat.
if = {
limit = {
NOT = { scope:attacker.faith.religious_head ?= scope:defender }
}
pam_challenge_hof_war_on_attacker_victory_events_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_antipope_challenge_hof_victory_effect.
Casus belli (1)
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.