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

Scripted effect

new_culture_created_vassal_conversion_effect

new_culture_created_vassal_conversion_effect = { CONVERTEE = … CONVERTER = … CULTURE = … }

game/common/scripted_effects/00_culture_effects.txt, line 778 (197 lines). Parameters: $CONVERTEE$, $CONVERTER$, $CULTURE$.

new_culture_created_vassal_conversion_effect is a scripted effect in Crusader Kings III, written at line 778 of its file. A call passes 3 parameters: CONVERTEE, CONVERTER and CULTURE. The game's script calls it in 4 places, among them Demand Conversion (interaction), Cultural Intermingling (event culture_emergence_events.0001) and The Enemy Within (event hold_court.8190). Patch 1.20.1.2, from game/common/scripted_effects/00_culture_effects.txt.

What it does

  • $CONVERTEE$ = { … }
  • If

    • $CONVERTEE$ = { … }

    Then

    • $CONVERTEE$ = { … }

• 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)
new_culture_created_vassal_conversion_effect = {

	# Save the hybrid culture for use with ai_will_do down the line
	if = {
		limit = {
			$CULTURE$ = { is_hybrid_culture = yes }
			NOT = {
				any_in_global_list = {
					variable = hybrid_cultures
					this = $CULTURE$
				}
			}
		}
		add_to_global_variable_list = { name = hybrid_cultures target = $CULTURE$ }
	}

	# Convert Counties (if of same culture as recipient's old culture)
	$CONVERTEE$ = {
		#every_held_title = {
		#	title_tier = county
		#	limit = {
		#		save_temporary_scope_as = county_check
		#		$CULTURE$ = {
		#			any_parent_culture = {
		#				this = scope:county_check.culture
		#			}
		#		}
		#	}
		#	set_county_culture = $CULTURE$
		#}
	}
	# Spouses convert
	$CONVERTEE$ = {
		every_spouse = {
			limit = {
				OR = {
					is_courtier_of = $CONVERTER$
					is_courtier_of = $CONVERTEE$
					is_vassal_or_below_of = $CONVERTER$
					is_vassal_or_below_of = $CONVERTEE$
				}
				save_temporary_scope_as = spouse_check
				$CULTURE$ = {
					any_parent_culture = {
						this = scope:spouse_check.culture
					}
				}
			}
			if = {
				limit = {
					exists = domicile.domicile_culture
					culture = domicile.domicile_culture
				}
				domicile = { set_domicile_culture = $CULTURE$ }
			}
			set_culture = $CULTURE$
			hidden_effect = {
				add_character_flag = converted_culture_this_lifetime
			}
		}
	}
	# Family in recipient's court also convert
	if = {
		limit = {
			$CONVERTEE$ = {
				is_ruler = yes
				any_close_or_extended_family_member = {
					court_owner ?= $CONVERTEE$
					culture != $CULTURE$
					is_ai = yes
				}
			}
		}
		$CONVERTEE$ = {
			every_close_or_extended_family_member = {
				custom = all_family_members_at_court
				limit = {
					court_owner ?= $CONVERTEE$
					culture != $CULTURE$
					is_ai = yes
					save_temporary_scope_as = family_check
					$CULTURE$ = {
						any_parent_culture = {
							this = scope:family_check.culture
						}
					}
				}
				if = {
					limit = {
						exists = domicile.domicile_culture
						culture = domicile.domicile_culture
					}
					domicile = { set_domicile_culture = $CULTURE$ }
				}
				set_culture = $CULTURE$
				hidden_effect = {
					add_character_flag = converted_culture_this_lifetime
				}
			}
		}
	}

	# Make sure relevant non-significant characters convert
	$CONVERTEE$ = {
		hidden_effect = {
			every_courtier_or_guest = {
				limit = {
					culture != $CULTURE$
					is_ai = yes
					has_no_particular_noble_roots_trigger = yes
					save_temporary_scope_as = family_check
					$CULTURE$ = {
						any_parent_culture = {
							this = scope:family_check.culture
						}
					}
				}
				if = {
					limit = {
						exists = domicile.domicile_culture

As written in game/common/scripted_effects/00_culture_effects.txt.

The first 120 of its 197 lines; the rest is in game/common/scripted_effects/00_culture_effects.txt from line 778.

Where it is used

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

Character interactions (1)

Events (2)

Source: game/common/scripted_effects/00_culture_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?