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_ecumenical_council_send_ruling_letter_effect

pam_ecumenical_council_send_ruling_letter_effect = yes

game/common/scripted_effects/pam_ecumenical_council_effects.txt, line 1301 (63 lines). No parameters.

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

The comment above it in the file

Activity scope: reads faith off the activity so it still works once the host is dead

What it does

  • If

    a check the game hides

    Then

    • Every player:
      • Where:
        • faith = scope:ec_council_faith
        • NOT = { involved_activity ?= scope:ec_council }
        • Any character situation:
      • clear_saved_scope = ec_reporter
      • If

        a check the game hides

        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 (63 lines of game script)
pam_ecumenical_council_send_ruling_letter_effect = {
	if = {
		limit = { exists = var:ec_throttled_faith }
		save_scope_as = ec_council
		var:ec_throttled_faith = { save_scope_as = ec_council_faith }
		# Only players engaged with the Christian Church.
		every_player = {
			limit = {
				faith = scope:ec_council_faith
				NOT = { involved_activity ?= scope:ec_council }
				any_character_situation = {
					this = situation:the_christian_church
				}
			}
			# Cleared first so one ruler's correspondent is not inherited by the next in the loop.
			clear_saved_scope = ec_reporter
			# Chaplain first, then the most learned person answerable to us; the letter names no office.
			if = {
				limit = { exists = cp:councillor_court_chaplain }
				cp:councillor_court_chaplain = { save_scope_as = ec_reporter }
			}
			else_if = {
				limit = {
					any_courtier = {
						is_available_ai_adult = yes
						this != scope:host
					}
				}
				ordered_courtier = {
					order_by = learning
					max = 1
					limit = {
						is_available_ai_adult = yes
						this != scope:host
					}
					save_scope_as = ec_reporter
				}
			}
			else_if = {
				limit = {
					any_vassal = {
						is_available_ai_adult = yes
						this != scope:host
					}
				}
				ordered_vassal = {
					order_by = learning
					max = 1
					limit = {
						is_available_ai_adult = yes
						this != scope:host
					}
					save_scope_as = ec_reporter
				}
			}
			# With nobody to carry the news, the feed message stands on its own.
			if = {
				limit = { exists = scope:ec_reporter }
				trigger_event = ecumenical_council_events.0082
			}
		}
	}
}

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

Where it is used

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

Activities (1)

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