Scripted effect · By God Alone files
pam_antipope_sponsor_vassalize_hof_effect
pam_antipope_sponsor_vassalize_hof_effect = { SPONSOR = … }game/common/scripted_effects/pam_antipope_effects.txt, line 405 (31 lines). Parameters: $SPONSOR$.
pam_antipope_sponsor_vassalize_hof_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 405 of its file. A call passes 1 parameter: SPONSOR. The game's script calls it in 1 place, among them pam_antipope_challenge_hof_victory_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/pam_antipope_effects.txt.
What it does
If
scope:sponsor != scope:new_hof- scope:sponsor: Is landed
- scope:new_hof: Is landed
scope:sponsor.highest_held_title_tier > scope:new_hof.highest_held_title_tier
Then
scope:new_hof:change_liege = { liege = scope:sponsor change = scope:antipope_hof_vassal_change }
• 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 (31 lines of game script)
pam_antipope_sponsor_vassalize_hof_effect = {
$SPONSOR$ = { save_scope_as = sponsor }
if = {
limit = {
exists = scope:sponsor
exists = scope:new_hof
scope:sponsor != scope:new_hof
scope:sponsor = {
is_alive = yes
is_landed = yes
}
scope:new_hof = {
is_alive = yes
is_landed = yes
}
scope:sponsor.highest_held_title_tier > scope:new_hof.highest_held_title_tier
}
scope:new_hof = {
create_title_and_vassal_change = {
type = swear_fealty
save_scope_as = antipope_hof_vassal_change
add_claim_on_loss = no
}
change_liege = {
liege = scope:sponsor
change = scope:antipope_hof_vassal_change
}
resolve_title_and_vassal_change = scope:antipope_hof_vassal_change
}
}
}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_sponsor_vassalize_hof_effect.
Scripted effects (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.