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_tenet_popularity_on_new_pope_effect

pam_tenet_popularity_on_new_pope_effect = yes

game/common/scripted_effects/pam_effects.txt, line 8419 (27 lines). No parameters.

pam_tenet_popularity_on_new_pope_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 8419 of its file. It takes no parameters: pam_tenet_popularity_on_new_pope_effect = yes. The game's script calls it in 1 place, among them on_title_gain (on action). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.

The comment above it in the file

The newly elected pope is root

What it does

  • If

    Then

    • Every personal tenet › scope:tp_new_pope_faith: Popularity of a tenet changes
    • Their rite › Every rite tenet:
      • status = core
      • scope:tp_new_pope_faith: Popularity of a tenet changes

• 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 (27 lines of game script)
pam_tenet_popularity_on_new_pope_effect = {
	if = {
		limit = { faith = { has_tenet_popularity_trigger = yes } }
		faith = { save_scope_as = tp_new_pope_faith }
		every_personal_tenet = {
			save_scope_as = tp_new_pope_tenet
			scope:tp_new_pope_faith = {
				change_tenet_popularity = {
					target = scope:tp_new_pope_tenet
					change = medium_tenet_popularity_gain
				}
			}
		}
		rite = {
			every_rite_tenet = {
				status = core
				save_scope_as = tp_new_pope_tenet
				scope:tp_new_pope_faith = {
					change_tenet_popularity = {
						target = scope:tp_new_pope_tenet
						change = medium_tenet_popularity_gain
					}
				}
			}
		}
	}
}

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

Where it is used

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

On actions (the game's own hooks) (1)

  • on_title_gain

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?