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_spread_tenet_flat_popularity_once_effect

pam_spread_tenet_flat_popularity_once_effect = { TENET = … }

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

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

The comment above it in the file

Root = preacher, $TENET$ = the tenet
Once per preacher per activity, and we keep the record on the activity so it cannot leak

What it does

  • If

    • Their activity:
      • Not all of these

        • is_target_in_variable_list = { name = pam_spread_tenet_flat_paid target = scope:pam_spread_flat_preacher }

    Then

• 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 (26 lines of game script)
pam_spread_tenet_flat_popularity_once_effect = {
	save_temporary_scope_as = pam_spread_flat_preacher
	if = {
		limit = {
			involved_activity ?= {
				NAND = {
					has_variable_list = pam_spread_tenet_flat_paid
					is_target_in_variable_list = {
						name = pam_spread_tenet_flat_paid
						target = scope:pam_spread_flat_preacher
					}
				}
			}
		}
		involved_activity = {
			add_to_variable_list = {
				name = pam_spread_tenet_flat_paid
				target = scope:pam_spread_flat_preacher
			}
		}
		pam_tenet_popularity_on_evangelized_tenet_effect = {
			TENET = $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_spread_tenet_flat_popularity_once_effect.

Activity pulse actions (2)

  • apa_pam_spread_tenet_guest
  • apa_pam_spread_tenet_host

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?