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_investiture_flip_voters_effect

pam_investiture_flip_voters_effect = { COUNT = … SIDE = … }

game/common/scripted_effects/pam_investiture_council_effects.txt, line 287 (21 lines). Parameters: $COUNT$, $SIDE$.

pam_investiture_flip_voters_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 287 of its file. A call passes 2 parameters: COUNT and SIDE. The game's script calls it in 1 place, among them pam_investiture_persuade_flip_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/pam_investiture_council_effects.txt.

The comment above it in the file

Expects scope:activity, root = the acting player

What it does

  • scope:activity › One attending character, picked in order:

• 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 (21 lines of game script)
pam_investiture_flip_voters_effect = {
	scope:activity = {
		# We use ordered_* with a maximum to limit how many we pick
		# A counter in the limit of every_* errors in the tooltip preview
		# Highest target-side sort first so prominent voters flip and show in the Major list
		ordered_attending_character = {
			limit = {
				is_ai = yes
				this != root
				pam_valid_ecumenical_council_voter_trigger = yes
				NOT = { is_in_guest_subset = { name = $SIDE$ } }
			}
			order_by = ecumenical_council_$SIDE$_sort_value
			max = $COUNT$
			# Inside scope:activity a bare this is the activity
			save_scope_as = pam_flip_target
			ecumenical_council_become_$SIDE$_effect = { CHARACTER = scope:pam_flip_target }
			root = { change_variable = { name = investiture_swayed_count add = 1 } }
		}
	}
}

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

Where it is used

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

Source: game/common/scripted_effects/pam_investiture_council_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?