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_replace_personal_tenet_effect

pam_replace_personal_tenet_effect = { TENET = … }

game/common/scripted_effects/pam_effects.txt, line 9665 (20 lines). Parameters: $TENET$.

pam_replace_personal_tenet_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 9665 of its file. A call passes 1 parameter: TENET. The game's script calls it in 6 places, among them apa_pam_spread_tenet_guest (activity pulse), apa_pam_spread_tenet_host (activity pulse) and Evangelize … (event pam_decision_events.0020). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.

The comment above it in the file

Root is character that will have their personal tenet replaced with TENET

What it does

  • If

    • free_personal_tenet_slots = 0

    Then

    • One random personal tenet › scope:tenet_char:
      • remove_personal_tenet = prev
  • set_personal_tenet = $TENET$

• 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 (20 lines of game script)
pam_replace_personal_tenet_effect = {
	save_temporary_scope_as = tenet_char
	if = {
		limit = {
			free_personal_tenet_slots = 0
		}
		random_personal_tenet = {
			weight = {
				base = 10
				modifier = {
					add = pam_tenet_popularity_impact_value
				}
			}
			scope:tenet_char = {
				remove_personal_tenet = prev
			}
		}
	}
	set_personal_tenet = $TENET$
}

As written in game/common/scripted_effects/pam_effects.txt.

Where it is used

Every place in common/, events/ and history/ that calls pam_replace_personal_tenet_effect.

Activity pulse actions (2)

  • apa_pam_spread_tenet_guest
  • apa_pam_spread_tenet_host

Events (1)

Scripted effects inside an event file (1)

  • pam_spread_tenet_convert_listeners_effect

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?