CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted trigger · By God Alone files

pam_church_event_background_is_grand_eastern_trigger

pam_church_event_background_is_grand_eastern_trigger = yes

game/common/scripted_triggers/pam_scripted_triggers.txt, line 3210 (41 lines). No parameters.

pam_church_event_background_is_grand_eastern_trigger is a scripted trigger in Crusader Kings III, in the By God Alone files, written at line 3210 of its file. It takes no parameters: pam_church_event_background_is_grand_eastern_trigger = yes (or no). The game's script calls it in 9 places, among them Ecumenical Council (activity), Pilgrimage (activity) and council_chamber (event backgrounds). Patch 1.20.1.2, from game/common/scripted_triggers/pam_scripted_triggers.txt.

The comment above it in the file

For using the Hagia Sophia background

What it checks

  • If

    • scope:activity.activity_location: Their religion is Christianity

    Then

    Else if a check the game hides passes: the same again (1 line)

    Otherwise

  • One of these

    • All of these

      • this = faith.religious_head
      • Highest held Title is at least Kingdom Rank
      • capital_county.faith ?= faith
    • or

      Their domicile:
      • has_domicile_building_or_higher = ecclesiastical_domicile_main_03
    • or

      Their capital county › Any county province:
      • has_building_with_flag = { flag = grand_cathedral_flag }
    • or

      holy_order ?= { num_leased_titles >= 12 }

• 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 (41 lines of game script)
pam_church_event_background_is_grand_eastern_trigger = {
	trigger_if = {
		limit = {
			scope:activity.activity_location ?= {
				faith.religion = religion:christianity_religion
			}
		}
		scope:activity.activity_location.rite = {
			rite_has_doctrine = special_doctrine_is_eastern_christian_faith
		}
	}
	trigger_else_if = {
		limit = {
			exists = scope:activity.activity_host
		}
		scope:activity.activity_host.rite = {
			rite_has_doctrine = special_doctrine_is_eastern_christian_faith
		}
	}
	trigger_else = {
		location.rite ?= {
			rite_has_doctrine = special_doctrine_is_eastern_christian_faith
		}
	}
	OR = {
		AND = {
			this = faith.religious_head
			highest_held_title_tier >= tier_kingdom
			capital_county.faith ?= faith
		}
		domicile ?= { has_domicile_building_or_higher = ecclesiastical_domicile_main_03 }
		capital_county ?= {
			any_county_province = {
				has_building_with_flag = { flag = grand_cathedral_flag }
			}
		}
		holy_order ?= {
			num_leased_titles >= 12
		}
	}
}

As written in game/common/scripted_triggers/pam_scripted_triggers.txt.

Where it is used

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

Event backgrounds (7)

  • council_chamber
  • pam_ecumenical_council_activity_background
  • Pilgrimage
  • temple
  • temple_scope
  • throne_room
1 more
  • throne_room_scope

Source: game/common/scripted_triggers/pam_scripted_triggers.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?