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

fp3_struggle_ending_shia_caliphate_effects

fp3_struggle_ending_shia_caliphate_effects = yes

game/common/scripted_effects/05_dlc_fp3_scripted_effects.txt, line 267 (111 lines). No parameters.

fp3_struggle_ending_shia_caliphate_effects is a scripted effect in Crusader Kings III, in the Legacy of Persia files, written at line 267 of its file. It takes no parameters: fp3_struggle_ending_shia_caliphate_effects = yes. The game's script calls it in 3 places, among them Abbasid Humiliation (decision), … Ascension (event fp3_struggle.0095) and … Ascension (event fp3_struggle.0096). Its body carries 5 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/05_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 (111 lines of game script)
fp3_struggle_ending_shia_caliphate_effects = {
	### CHARACTER
	give_nickname = nick_the_righteous_caliph

	create_title_and_vassal_change = {
		type = created
		save_scope_as = title_change
		add_claim_on_loss = no
	}
	title:e_persia = {
		change_title_holder = {
			holder = root
			change = scope:title_change
		}
		save_scope_as = title_e_persia
	}
	resolve_title_and_vassal_change = scope:title_change

	save_scope_as = founder
	claim_the_imamate_scripted_effect = yes
	add_piety = 5000

	### FAITH
	faith = {
		change_fervor = {
			value = major_fervor_gain
			desc = fervor_gain_shia_caliphate
		}
	}
	rite = {
		if = {
			limit = { rite_has_doctrine = muhammad_succession_muhakkima_doctrine }
			# Muhakkima faiths gets a bonus for the rest of the game converting other counties
			custom_tooltip = {
				text = struggle_persia_ending_assertion_boost_muhakkima_county_conversion_tt
				set_global_variable = {
					name = fp3_struggle_ending_assertion_school
					value = flag:muhakkima
				}
			}
		}
		else_if = {
			limit = { rite_has_doctrine = muhammad_succession_zandaqa_doctrine }
			# Zandaqa faiths gets a bonus for the rest of the game converting other counties
			custom_tooltip = {
				text = struggle_persia_ending_assertion_boost_zandaqa_county_conversion_tt
				set_global_variable = {
					name = fp3_struggle_ending_assertion_school
					value = flag:zandaqa
				}
			}
		}
		else_if = {
			limit = { rite_has_doctrine = muhammad_succession_sunni_doctrine }
			# Sunni faiths gets a bonus for the rest of the game converting other counties
			custom_tooltip = {
				text = struggle_persia_ending_assertion_boost_sunni_county_conversion_tt
				set_global_variable = {
					name = fp3_struggle_ending_assertion_school
					value = flag:sunni
				}
			}
		}
		else = {
			# Shia faiths gets a bonus for the rest of the game converting other counties
			custom_tooltip = {
				text = struggle_persia_ending_assertion_boost_shia_county_conversion_tt
				set_global_variable = {
					name = fp3_struggle_ending_assertion_school
					value = flag:shia
				}
			}
		}
		# Propagate the Caliph's Faith in the struggle region
		custom_tooltip = {
			text = fp3_struggle_ending_shia_caliphate_spread_faith_through_struggle_region_tt
			struggle:persian_struggle = {
				every_involved_county = {
					limit = {
						rite != root.rite
					}
					random = {
						chance = fp3_shia_caliphate_ending_conversion_chance_percent_value
						set_county_faith = root.faith
						set_county_rite = root.rite
					}
				}
				every_involved_ruler = {
					limit = {
						NOT = { religious_head_or_challenger ?= this }
						rite != root.rite
						primary_title = { is_mercenary_company = no }
					}
					random = {
						chance = fp3_shia_caliphate_ending_conversion_chance_percent_value
						set_character_faith = root.faith
						set_character_rite = root.rite
					}
				}
			}
		}
	}

	if = {
		limit = { is_ai = no }
		add_character_flag = {
			flag = fp3_challenger_caliphate_achievement_unlocked
			years = 4
		}
	}
}

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

Where it is used

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

Decisions (1)

Events (2)

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