Scripted effect · By God Alone files
pam_generic_set_puppet_interaction_side_effects
pam_generic_set_puppet_interaction_side_effects = yesgame/common/scripted_effects/pam_effects.txt, line 13674 (257 lines). No parameters.
pam_generic_set_puppet_interaction_side_effects is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 13674 of its file. It takes no parameters: pam_generic_set_puppet_interaction_side_effects = yes. The game's script calls it in 5 places, among them Puppet Clerical Ruler (interaction), Puppet Realm Priest (interaction) and Puppet Secular Ruler (interaction). Its body carries 6 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:hook ?= yes
Then
use_hook = scope:recipient
If
scope:skill_support ?= yes
Then
scope:recipient:If
scope:actor:highest_skill = diplomacy
Then
- Gains the modifier “Advised by Political Puppetmaster”
- Diplomacy +4
- Martial +1
- Stewardship +1
- Intrigue +1
- Learning +1
Else if
scope:actor:highest_skill = martial
Then
- Gains the modifier “Advised by Strategic Puppetmaster”
- Diplomacy +1
- Martial +4
- Stewardship +1
- Intrigue +1
- Learning +1
Else if
scope:actor:highest_skill = stewardship
Then
- Gains the modifier “Advised by Shrewd Puppetmaster”
- Diplomacy +1
- Martial +1
- Stewardship +4
- Intrigue +1
- Learning +1
Else if
scope:actor:highest_skill = intrigue
Then
- Gains the modifier “Advised by Cunning Puppetmaster”
- Diplomacy +1
- Martial +1
- Stewardship +1
- Intrigue +4
- Learning +1
Else if
scope:actor:highest_skill = learning
Then
- Gains the modifier “Advised by Erudite Puppetmaster”
- Diplomacy +1
- Martial +1
- Stewardship +1
- Intrigue +1
- Learning +4
Otherwise
- Gains the modifier “Advised by Skillful Puppetmaster”
- Diplomacy +2
- Martial +2
- Stewardship +2
- Intrigue +2
- Learning +2
- … will Behave somewhat more rationally and acquisitively
If
scope:piety_support ?= yes
Then
scope:recipient:- If a member of the Clergy:
- Gains the modifier “Puppeted Toward Salvation”
- Personal Tenets +1
- Character starting spiritual fulfillment +10
- Character spiritual fulfillment gain +25%
- Gains the modifier “Puppeted Toward Salvation”
- Otherwise:
- Gains the modifier “Puppeted Toward Salvation”
- Prowess per Level of Devotion +1
- Character starting spiritual fulfillment +10
- Character spiritual fulfillment gain +25%
- Stress Loss per Level of Devotion +10%
- Gains the modifier “Puppeted Toward Salvation”
- … will Behave more zealously and boldly
If
scope:dread_support ?= yes
Then
scope:recipient:- Gains the modifier “Enthralled by Wicked Master”
- Character starting spiritual fulfillment -10
- Character spiritual fulfillment loss +25%
- Character spiritual fulfillment gain -25%
- Dread +0.25/month
- Natural Dread +10
- Tyranny Gain +33%
- … will Behave more ruthlessly, dishonorably, and cynically
If
scope:friendly_support ?= yes
Then
scope:recipient:- Gains the modifier “Entrusted to Another”
- Stress Gain -10%
- … (more in the script below)
- … (more in the script below)
- … (more in the script below)
- … (more in the script below)
• 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 (120 lines of game script)
pam_generic_set_puppet_interaction_side_effects = {
if = {
limit = { scope:hook ?= yes }
use_hook = scope:recipient
}
if = {
limit = {
scope:skill_support ?= yes
}
scope:recipient = {
if = {
limit = {
scope:actor = {
highest_skill = diplomacy
}
}
add_character_modifier = {
modifier = skilled_puppeteer_modifier_diplomacy
desc = skilled_puppeteer_behavior_tt
}
}
else_if = {
limit = {
scope:actor = {
highest_skill = martial
}
}
add_character_modifier = {
modifier = skilled_puppeteer_modifier_martial
desc = skilled_puppeteer_behavior_tt
}
}
else_if = {
limit = {
scope:actor = {
highest_skill = stewardship
}
}
add_character_modifier = {
modifier = skilled_puppeteer_modifier_stewardship
desc = skilled_puppeteer_behavior_tt
}
}
else_if = {
limit = {
scope:actor = {
highest_skill = intrigue
}
}
add_character_modifier = {
modifier = skilled_puppeteer_modifier_intrigue
desc = skilled_puppeteer_behavior_tt
}
}
else_if = {
limit = {
scope:actor = {
highest_skill = learning
}
}
add_character_modifier = {
modifier = skilled_puppeteer_modifier_learning
desc = skilled_puppeteer_behavior_tt
}
}
else = {
add_character_modifier = {
modifier = skilled_puppeteer_modifier_general
desc = skilled_puppeteer_behavior_tt
}
}
custom_tooltip = skilled_puppeteer_behavior_tt
}
}
if = {
limit = {
scope:piety_support ?= yes
}
scope:recipient = {
if = {
limit = { is_playable_character = yes } # Only playable characters have spiritual fulfillment
change_spiritual_fulfillment = medium_spiritual_fulfillment_value
}
if = {
limit = {
is_clergy = yes
}
add_character_modifier = {
modifier = spiritual_puppeteer_modifier_cleric
desc = spiritual_puppeteer_behavior_tt
}
}
else = {
add_character_modifier = {
modifier = spiritual_puppeteer_modifier_secular
desc = spiritual_puppeteer_behavior_tt
}
}
custom_tooltip = spiritual_puppeteer_behavior_tt
}
}
if = {
limit = {
scope:dread_support ?= yes
}
scope:recipient = {
if = {
limit = {
OR = {
has_trait = compassionate
has_trait = forgiving
has_trait = generous
has_trait = just
}
}
add_stress = medium_stress_gain
}
add_character_modifier = {
modifier = dreadful_puppeteer_modifier
desc = dreadful_puppeteer_behavior_ttAs written in game/common/scripted_effects/pam_effects.txt.
The first 120 of its 257 lines; the rest is in game/common/scripted_effects/pam_effects.txt from line 13674.
Where it is used
Every place in common/, events/ and history/ that calls pam_generic_set_puppet_interaction_side_effects.
Character interactions (3)
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.