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

promote_persian_scripture_scripted_effect

promote_persian_scripture_scripted_effect = yes

game/common/scripted_effects/03_dlc_fp3_scripted_effects.txt, line 149 (110 lines). No parameters.

promote_persian_scripture_scripted_effect is a scripted effect in Crusader Kings III, in the Legacy of Persia files, written at line 149 of its file. It takes no parameters: promote_persian_scripture_scripted_effect = yes. The game's script calls it in 3 places, among them Promote Persian Scriptures (decision), … Objections (event fp3_decision.0013) and Persian Pride (event fp3_decision.0014). Its body carries 3 texts 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 (110 lines of game script)
promote_persian_scripture_scripted_effect = {

	if = { 
		limit = { 
			exists = faith.religious_head 
			this != faith.religious_head
		}
		custom_tooltip = fp3_promoted_scriptures_caliph_angry.tt
	}

	add_character_modifier = {
		modifier = fp3_promoted_persian_scripture_modifier
	}
	
	if = {
		limit = { is_ai = no } #this is so that we don't get AI converting Persia too quickly
		custom_tooltip = fp3_promoted_scriptures_conversion_bonus.tt
	}

	if = {
		limit = {
			rite = { rite_has_doctrine = doctrine_pluralism_fundamentalist }
			NOT = {
				has_trait = cynical 
				has_trait = excommunicated
			}
		}
		custom_tooltip = {
			text = promote_persian_scripture_fundamentalist_stress
			add_stress = promote_persian_scripture_fundamentalist_stress_value
		}
	}

	if = {
		limit = {
			any_realm_province = { 
				culture = { has_cultural_pillar = heritage_iranian }
				OR = {
					geographical_region = world_steppe_tarim
					geographical_region = world_persian_empire 
				}
			}
		}
		every_realm_province = {
			limit = {
					culture = { has_cultural_pillar = heritage_iranian }
				OR = {
					geographical_region = world_steppe_tarim
					geographical_region = world_persian_empire 
				}
			}
			county = {
				add_to_list = every_realm_county
			}	
		}

		every_in_list = {
			list = every_realm_county
			custom = every_iranian_county
			random = {
				chance = 33
				add_county_modifier = {
					modifier = fp3_persian_resurgence_county_modifier 
					years = 50
				}
			}
		}
	}

	if = {
		limit = {
			any_vassal_or_below = {
				is_ai = yes
				OR = {
					culture = { has_cultural_pillar = heritage_arabic }
					AND = {
						knows_language_of_culture = culture:levantine
						OR = {
							has_trait = zealous
							has_trait = stubborn
							has_trait = humble
						}
					}
				}
			}
		}
		every_vassal_or_below = {
			custom = every_contrarian_vassal
			limit = {
				is_ai = yes
				OR = {
					culture = { has_cultural_pillar = heritage_arabic }
					AND = {
						knows_language_of_culture = culture:levantine
						OR = {
							has_trait = zealous
							has_trait = stubborn
							has_trait = humble
						}
					}
				}
			}
			add_opinion = {
				target = scope:persian_fanboy
				modifier = fp3_disrespected_word_of_god_opinion
				opinion = -30
			}
		}
	}	
}

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 promote_persian_scripture_scripted_effect.

Events (2)

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?