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_rekindle_iran_effects

fp3_struggle_rekindle_iran_effects = yes

game/common/scripted_effects/05_dlc_fp3_scripted_effects.txt, line 850 (207 lines). No parameters.

fp3_struggle_rekindle_iran_effects is a scripted effect in Crusader Kings III, in the Legacy of Persia files, written at line 850 of its file. It takes no parameters: fp3_struggle_rekindle_iran_effects = yes. The game's script calls it in 3 places, among them Iranian Resurgence (decision), … Foundation: A New Persia (event fp3_struggle.0091) and … Foundation: A New Persia (event fp3_struggle.0092). Its body carries 8 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.

The comment above it in the file

Strong independent iranian ruler becomes persian emperor, frees all the iranian subjects and has an easier time vassalizing and or converting them

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 (120 lines of game script)
fp3_struggle_rekindle_iran_effects = {
	give_nickname = nick_the_rekindler_of_iran
	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
	
	custom_tooltip = fp3_event_troops_reformer_effect_tt
	hidden_effect = {
		spawn_army = {
			name = persian_warriors
			men_at_arms = {
				type = asawira
				stacks = 5
			}
			men_at_arms = {
				type = ayyar
				stacks = 10
			}
			location = this.capital_province
			uses_supply = yes
			inheritable = yes
		}
		spawn_army = {
			name = persian_warriors
			men_at_arms = {
				type = asawira
				stacks = 5
			}
			men_at_arms = {
				type = ayyar
				stacks = 10
			}
			location = this.capital_province
			uses_supply = yes
			inheritable = yes
		}
	}
	add_prestige = 5000

	# increase the religious conversion demand and offer vassalage acceptance for this character
	dynasty = {
		add_dynasty_modifier = { modifier = fp3_rekindler_of_iran_modifier }
		custom_tooltip = fp3_rekindler_of_iran_modifier_vassalization_effect_tt
		custom_tooltip = fp3_rekindler_of_iran_modifier_conversion_effect_tt
		add_dynasty_prestige = 10000
	}

	if = {
		limit = {
			scope:struggle_persia_ending_rekindle_iran_decision_option_secret_faith = yes
		}
		set_character_faith_with_conversion = secret_faith
		hidden_effect = {
			remove_character_secret_faith = yes
		}
	}

	faith = {
		custom_tooltip = {
			text = fp3_iranian_faith_for_rekindle_persia_spread_to_fellow_iranians_tt
			struggle:persian_struggle = {
				every_involved_county = {
					limit = {
						culture = { has_cultural_pillar = heritage_iranian }
						rite != scope:propagated_rite
					}
					random = {
						chance = fp3_iranian_faith_for_rekindle_persia_conversion_chance_percent_value
						set_county_faith = scope:propagated_faith
						set_county_rite = scope:propagated_rite
					}
				}
				every_involved_ruler = {
					limit = {
						culture = { has_cultural_pillar = heritage_iranian }
						NOT = { religious_head_or_challenger ?= this }
						rite != scope:propagated_rite
						primary_title = { is_mercenary_company = no }
					}
					random = {
						chance = fp3_iranian_faith_for_rekindle_persia_conversion_chance_percent_value
						set_character_faith = scope:propagated_faith
						set_character_rite = scope:propagated_rite
					}
				}
			}
		}
	}

	struggle:persian_struggle = {
		every_involved_ruler = {
			limit = { culture = { has_cultural_pillar = heritage_iranian } }
			# Add a character modifiers for the Iranian to help them rise!
			custom = fp3_flame_of_iran_modifier_effect_tt
			add_character_modifier = { modifier = fp3_flame_of_iran_modifier }
			custom_tooltip = fp3_flame_of_iran_independence_effect_tt
			custom_tooltip = fp3_event_troops_effect_tt
			hidden_effect = {
				spawn_army = {
					name = persian_warriors
					men_at_arms = {
						type = asawira
						stacks = 2
					}
					location = this.capital_province
					uses_supply = yes
					inheritable = yes
				}
				spawn_army = {
					name = persian_warriors

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

The first 120 of its 207 lines; the rest is in game/common/scripted_effects/05_dlc_fp3_scripted_effects.txt from line 850.

Where it is used

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