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

consecrate_kingdom_player_cleric_effect

consecrate_kingdom_player_cleric_effect = yes

game/common/scripted_effects/pam_effects.txt, line 12633 (40 lines). No parameters.

consecrate_kingdom_player_cleric_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 12633 of its file. It takes no parameters: consecrate_kingdom_player_cleric_effect = yes. The game's script calls it in 3 places, among them Consecrate Kingdom (interaction), pam_decision_events.0030 (event) and pam_interactions_events.0090 (event). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.

What it does

• 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 (40 lines of game script)
consecrate_kingdom_player_cleric_effect = {
    if = {
		limit = {
			is_ai = yes
		}
		if = {
			limit = {
				NOT = {
					exists = scope:interaction
				}
			}
    		add_opinion = {
				target = scope:religious_authority
				modifier = support_opinion
				opinion = 50
			}
		}
		else = {
			add_opinion = {
				target = scope:religious_authority
				modifier = support_opinion
				opinion = 25
			}
		}
		add_character_modifier = {
			modifier = consecrated_king_modifier
			desc = consecrated_king_ai_behavior_large_tt
			years = 20
		}
		custom_tooltip = consecrated_king_ai_behavior_large_tt
	}
	else = {
		add_character_modifier = {
			modifier = consecrated_king_modifier_small
			years = 20
		}
	}
	scope:religious_authority = { save_scope_as = cleric }
   	ecclesiastical_title_bestowing_clerical_hesitation_effect = yes
}

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

Where it is used

Every place in common/, events/ and history/ that calls consecrate_kingdom_player_cleric_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?