Scripted effect · By God Alone files
pam_make_antipope_clerical_puppet_effect
pam_make_antipope_clerical_puppet_effect = { ANTIPOPE = … SPONSOR = … }game/common/scripted_effects/pam_antipope_effects.txt, line 43 (23 lines). Parameters: $ANTIPOPE$, $SPONSOR$.
pam_make_antipope_clerical_puppet_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 43 of its file. A call passes 2 parameters: ANTIPOPE and SPONSOR. The game's script calls it in 1 place, among them pam_establish_antipope_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/pam_antipope_effects.txt.
What it does
If
scope:antipope != scope:sponsor
Then
scope:sponsor:If
NOT = { scope:antipope.puppeteer ?= this }
Then
puppet:external_theological_agent_puppet ?= { clear_puppet_status = yes }set_puppet = { target = scope:antipope type = external_theological_agent_puppet }
• 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 (23 lines of game script)
pam_make_antipope_clerical_puppet_effect = {
$ANTIPOPE$ = { save_scope_as = antipope }
$SPONSOR$ = { save_scope_as = sponsor }
if = {
limit = {
exists = scope:antipope
exists = scope:sponsor
scope:antipope != scope:sponsor
}
scope:sponsor = {
if = {
limit = {
NOT = { scope:antipope.puppeteer ?= this }
}
puppet:external_theological_agent_puppet ?= { clear_puppet_status = yes }
set_puppet = {
target = scope:antipope
type = external_theological_agent_puppet
}
}
}
}
}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_make_antipope_clerical_puppet_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.