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

Scripted effect · Legacy of Persia files

claim_the_imamate_scripted_effect

claim_the_imamate_scripted_effect = yes

game/common/scripted_effects/03_dlc_fp3_scripted_effects.txt, line 1 (31 lines). No parameters.

claim_the_imamate_scripted_effect is a scripted effect in Crusader Kings III, in the Legacy of Persia files, written at line 1 of its file. It takes no parameters: claim_the_imamate_scripted_effect = yes. The game's script calls it in 1 place, among them fp3_struggle_ending_shia_caliphate_effects (scripted effect). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/03_dlc_fp3_scripted_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 (31 lines of game script)
claim_the_imamate_scripted_effect = {
	# Create a HoF title & assign it appropriately.
	if = {
		limit = {
			faith.religious_head != root
		}
		hidden_effect = {
			give_or_make_temporal_head_of_faith_title = { RITE = rite:maliki TITLE = title:d_muwalladi }
			give_or_make_temporal_head_of_faith_title = { RITE = rite:nizari TITLE = title:d_nizari }
			give_or_make_temporal_head_of_faith_title = { RITE = rite:zayidi TITLE = title:d_zayidi }
			give_or_make_temporal_head_of_faith_title = { RITE = rite:ismaili TITLE = title:d_ismaili }
			give_or_make_temporal_head_of_faith_title = { RITE = rite:imami TITLE = title:d_imami }
			
			# If not, follow the usual flow.
			if = {
				limit = { NOT = { exists = scope:hof_assigned } }
				set_up_dynamic_temporal_hof_title_effect = { NEW_HOLDER = scope:founder }
				faith = { set_religious_head_title = scope:new_title }
			}
		}
		custom_tooltip = appoint_a_righteous_caliph_decision.tt.you_become_caliph
	}
	dynasty = {
		add_dynasty_modifier = {
			modifier = fp3_light_of_the_walayah_modifier
			years = 100
		}
		# Also gain a large amount of dynasty prestige.
		add_dynasty_prestige = 5000
	}
}

As written in game/common/scripted_effects/03_dlc_fp3_scripted_effects.txt.

Where it is used

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

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