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_ending_effects_assertion

fp3_ending_effects_assertion = yes

game/common/scripted_effects/05_dlc_fp3_scripted_effects.txt, line 54 (212 lines). No parameters.

fp3_ending_effects_assertion is a scripted effect in Crusader Kings III, in the Legacy of Persia files, written at line 54 of its file. It takes no parameters: fp3_ending_effects_assertion = yes. The game's script calls it in 2 places, among them Renewed Caliphate (decision) and … Re-Asserts Dominance (event fp3_struggle.0071). 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

MISC STRUGGLE ENDING(s) STUFF ####

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_ending_effects_assertion = {
	# Save Sunni caliph or previous one as scope:struggle_liege
	fp3_save_sunni_caliph_or_previous_effect = yes

	dynasty ?= { add_dynasty_prestige = 10000 }
	
	if = {
		limit = {
			NOT = { title:e_arabia.holder.dynasty ?= dynasty }
		}
		title:e_arabia.holder.dynasty ?= { add_dynasty_prestige = 10000 }
	}

	custom_tooltip = fp3_struggle_assertion_subjugation_expanded_tt
	custom_tooltip = fp3_struggle_assertion_caliphal_muslim_faction_protection_tt

	hidden_effect = {
		destroy_title = title:e_persia
		title:d_sunni = {
			set_variable = {
				name = dar_al_islam
				value = yes
			}
		}
		house = {
			set_variable = {
				name = subjugations_expanded
				value = yes
			}
		}
		title:e_arabia.holder.house = {
			set_variable = {
				name = subjugations_expanded
				value = yes
			}
		}
	}

	struggle:persian_struggle = {
		title:e_arabia.holder = {
			add_prestige = 5000
			custom_tooltip = fp3_struggle_assertion_caliph_detractor_tt
			# Destroy Persia, make each of its kingdoms a de jure part of the Caliph's central title (assuming he still has an empire)
			custom_tooltip = {
				text = fp3_struggle_assertion_arabia_absorb_persia_swing_rewards_tt
				title:e_persia = {
					every_in_de_jure_hierarchy = {
						limit = { tier = tier_kingdom }
						set_de_jure_liege_title = title:e_arabia
					}
				}
			}
			# transfer the supporter trait to the next generation while detractors fade away
			custom_tooltip = {
				text = fp3_struggle_assertion_transfer_supporter_to_next_gen_tt
				struggle:persian_struggle = {
					every_involved_ruler = {
						limit = {
							has_trait = fp3_struggle_supporter
							NOT = {
								primary_title = { is_mercenary_company = yes }
							}
						}
						every_child = {
							if = {
								limit = {
									NOR = {
										has_trait = fp3_struggle_supporter
										primary_title ?= { is_mercenary_company = yes }
									}
								}
								if = {
									limit = { has_trait = fp3_struggle_detractor }
									remove_trait = fp3_struggle_detractor
								}
								add_trait = fp3_struggle_supporter
							}
						}
					}

					every_interloper_ruler = {
						limit = {
							has_trait = fp3_struggle_supporter
							NOT = {
								primary_title = { is_mercenary_company = yes }
							}
						}
						every_child = {
							if = {
								limit = {
									NOR = {
										has_trait = fp3_struggle_supporter
										primary_title ?= { is_mercenary_company = yes }
									}
								}
								if = {
									limit = { has_trait = fp3_struggle_detractor }
									remove_trait = fp3_struggle_detractor
								}
								add_trait = fp3_struggle_supporter
							}
						}
					}
				}
			}
			custom_tooltip = fp3_struggle_persia_ending_assertion_faction_reluctance_tt
		}
		hidden_effect = {
			every_involved_ruler = {
				limit = { has_trait = fp3_struggle_detractor }
				custom = every_detractor
				title:e_arabia.holder = {
					add_opinion = {
						modifier = caliphal_authority
						target = prev
					}
				}
			}
		}
		# Vassalize supporters

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

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

Where it is used

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

Decisions (1)

Events (1)

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?