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_claim_remembered_personality_trait_effect

pam_claim_remembered_personality_trait_effect = { TRAIT = … }

game/common/scripted_effects/pam_effects.txt, line 1853 (30 lines). Parameters: $TRAIT$.

pam_claim_remembered_personality_trait_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 1853 of its file. A call passes 1 parameter: TRAIT. The game's script calls it in 1 place, among them A Remembered Self (event pam_tenet_events.0008). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.

The comment above it in the file

PAM - Reincarnation: claim a forebear's personality trait.
Opposing traits are replaced first; otherwise the least-fulfilling personality trait is replaced.

What it does

  • If

    • $TRAIT$ = { … }

    Then

    • $TRAIT$ = { … }
  • Else, if number of personality traits at least 1: Loses the Trait scope:pam recall replaced personality
  • Gains the Trait …
  • Spiritual fulfillment +5

• 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 (30 lines of game script)
pam_claim_remembered_personality_trait_effect = {
	if = {
		limit = {
			$TRAIT$ = {
				any_opposite_trait = {
					root = { has_trait = prev }
				}
			}
		}
		$TRAIT$ = {
			every_opposite_trait = {
				limit = {
					root = { has_trait = prev }
				}
				root = { remove_trait = prev }
			}
		}
	}
	else_if = {
		limit = { number_of_personality_traits >= 1 }
		ordered_character_trait = {
			limit = { has_trait_category = personality }
			order_by = pam_recall_worst_personality_order_value
			save_scope_as = pam_recall_replaced_personality
		}
		remove_trait = scope:pam_recall_replaced_personality
	}
	add_trait = $TRAIT$
	change_spiritual_fulfillment = medium_spiritual_fulfillment_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_claim_remembered_personality_trait_effect.

Events (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.

Spotted a mistake on this page?