Scripted effect · By God Alone files
pam_increase_papabile_score_effect
pam_increase_papabile_score_effect = { VALUE = … }game/common/scripted_effects/pam_effects.txt, line 11532 (77 lines). Parameters: $VALUE$.
pam_increase_papabile_score_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 11532 of its file. A call passes 1 parameter: VALUE. The game's script calls it in 1 place, among them Increase Papabile Score (interaction). Its body carries 4 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.
What it does
If
scope:pam_papabile_gold_option = yes
Then
- … Papabile Score increases by +20 (as The Powerful candidate)
If
a check the game hides
Then
- Opinion: Grateful (+30)
Otherwise
- … Papabile Score increases by +10 (as The Powerful candidate)
If
a check the game hides
Then
- Opinion: Grateful (+15)
If
- scope:actor: The Personal Tenets unlock tenet apostolic succession papabile influence
Then
- … Papabile Score increases by a further +10, for Apostolic Succession (as The Powerful candidate)
If
a check the game hides
Then
- Cardinals who heed you will lean toward … when the College of Cardinals next votes (if they are your Vassals, fellow Vassals, Puppets, Family or have at least 40 Opinion of you)
• 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 (77 lines of game script)
pam_increase_papabile_score_effect = {
if = {
limit = { scope:pam_papabile_gold_option = yes }
custom_tooltip = {
text = pam_increase_papabile_score_effect_20_tt
if = {
limit = { exists = var:pam_papabile_score }
change_variable = {
name = pam_papabile_score
add = $VALUE$
}
}
else = {
set_variable = {
name = pam_papabile_score
value = $VALUE$
}
}
}
if = {
limit = { this != scope:actor }
add_opinion = {
target = scope:actor
modifier = grateful_opinion
opinion = 30
}
}
}
else = {
custom_tooltip = {
text = pam_increase_papabile_score_effect_10_tt
if = {
limit = { exists = var:pam_papabile_score }
change_variable = {
name = pam_papabile_score
add = $VALUE$
}
}
else = {
set_variable = {
name = pam_papabile_score
value = $VALUE$
}
}
}
if = {
limit = { this != scope:actor }
add_opinion = {
target = scope:actor
modifier = grateful_opinion
opinion = 15
}
}
}
# Both branches above have already created the variable
if = {
limit = {
scope:actor ?= {
has_personal_tenet_flag = tenet_apostolic_succession_papabile_influence
}
}
custom_tooltip = {
text = pam_increase_papabile_score_apostolic_succession_tt
change_variable = {
name = pam_papabile_score
add = pam_apostolic_succession_papabile_bonus_value
}
}
}
if = {
limit = { exists = scope:actor }
custom_tooltip = {
text = pam_papabile_leaning_tt
pam_spread_papabile_leaning_effect = { VALUE = $VALUE$ }
}
}
}As written in game/common/scripted_effects/pam_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls pam_increase_papabile_score_effect.
Character interactions (1)
Source: game/common/scripted_effects/pam_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.