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

Scripted effect · Coronations files

coronation_save_anointer_effect

coronation_save_anointer_effect = yes

game/common/scripted_effects/10_ach_effects.txt, line 2397 (129 lines). No parameters.

coronation_save_anointer_effect is a scripted effect in Crusader Kings III, in the Coronations files, written at line 2397 of its file. It takes no parameters: coronation_save_anointer_effect = yes. The game's script calls it in 4 places, among them The … Consort (event coronation_events.6140), The Anointment (event coronation_events.6130) and The Crowning of … (event coronation_events.6101). Patch 1.20.1.2, from game/common/scripted_effects/10_ach_effects.txt.

What it does

  • scope:host:
    • If

      • One of these

        • NOT = { exists = scope:anointer }
        • or

          scope:anointer:
          • is_alive = no
        • or

          scope:anointer: Is imprisoned

      Then

      • create_character = { … }

• 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 (120 lines of game script)
coronation_save_anointer_effect = {
	scope:host = {
		if = {
			limit = {
				coronation_living_officiator_trigger = yes
				NOT = {
					scope:activity.var:officiator = {
						this = scope:host
					}
				}
			}
			scope:activity.var:officiator = {
				save_scope_as = anointer
			}
		}
		if = {
			limit = {
				OR = {
					NOT = { exists = scope:anointer }
					scope:anointer = {
						is_alive = no
					}
					scope:anointer = {
						is_imprisoned = yes
					}
				}
				scope:activity = {
					has_variable = anointment_authority
					any_attending_character = {
						scope:activity.var:anointment_authority ?= this
						this != scope:host
						is_alive = yes
						is_imprisoned = no
					}
				}
			}
			scope:activity.var:anointment_authority ?= {
				save_scope_as = anointer
			}
		}
		if = {
			limit = {
				OR = {
					NOT = { exists = scope:anointer }
					scope:anointer = { is_alive = no }
					scope:anointer = { is_imprisoned = yes }
				}
				NOT = { scope:activity = { has_variable = anointment_authority } }
				scope:activity = {
					any_attending_character = {
						this = scope:host.religious_head_or_challenger
						NOT = { this = scope:host }
						faith = scope:host.faith
						is_alive = yes
					}
				}
			}
			scope:host.religious_head_or_challenger = { save_scope_as = anointer }
		}
		if = {
			limit = {
				OR = {
					NOT = { exists = scope:anointer }
					scope:anointer = {
						is_alive = no
					}
					scope:anointer = {
						is_imprisoned = yes
					}
				}
				cp:councillor_court_chaplain ?= {
					is_alive = yes
					is_imprisoned = no
					is_incapable = no
					has_contagious_deadly_disease_trigger = no
				}
			}
			cp:councillor_court_chaplain ?= {
				save_scope_as = anointer
			}
		}
		if = {
			limit = {
				OR = {
					NOT = { exists = scope:anointer }
					scope:anointer = {
						is_alive = no
					}
					scope:anointer = {
						is_imprisoned = yes
					}
				}
			}
			ordered_vassal = {
				order_by = max_military_strength
				limit = {
					involved_activity ?= scope:activity
					government_has_flag = government_is_theocracy
					is_alive = yes
				}
				save_scope_as = anointer
			}
		}
		if = {
			limit = {
				OR = {
					NOT = { exists = scope:anointer }
					scope:anointer = {
						is_alive = no
					}
					scope:anointer = {
						is_imprisoned = yes
					}
				}
			}
			create_character = {
				template = priest_character_template
				location = scope:host.location
				culture = scope:host.location.culture
				faith = scope:host.faith

As written in game/common/scripted_effects/10_ach_effects.txt.

The first 120 of its 129 lines; the rest is in game/common/scripted_effects/10_ach_effects.txt from line 2397.

Where it is used

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

Events (4)

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