CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted effect · By God Alone files

pam_generic_set_puppet_interaction_side_effects

pam_generic_set_puppet_interaction_side_effects = yes

game/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

        Else if

        • scope:actor:
          • highest_skill = martial

        Then

        Else if

        • scope:actor:
          • highest_skill = stewardship

        Then

        Else if

        • scope:actor:
          • highest_skill = intrigue

        Then

        Else if

        • scope:actor:
          • highest_skill = learning

        Then

        Otherwise

      • … will Behave somewhat more rationally and acquisitively
  • If

    • scope:piety_support ?= yes

    Then

  • If

    • scope:dread_support ?= yes

    Then

  • If

    • scope:friendly_support ?= yes

    Then

  • … (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_tt

As 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.

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.

Spotted a mistake on this page?