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

Scripted effect

convert_player_realm_from_old_culture_to_new_effect

convert_player_realm_from_old_culture_to_new_effect = { NEW_CULTURE = … OLD_CULTURE = … }

game/common/scripted_effects/00_culture_effects.txt, line 43 (46 lines). Parameters: $NEW_CULTURE$, $OLD_CULTURE$.

convert_player_realm_from_old_culture_to_new_effect is a scripted effect in Crusader Kings III, written at line 43 of its file. A call passes 2 parameters: NEW_CULTURE and OLD_CULTURE. The game's script calls it in 3 places, among them Fate of the Norsemen (event global_culture.0012), Fate of the Visigoths (event global_culture.0002) and merge_cultures_in_player_realm_effect (scripted effect). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_culture_effects.txt.

What it does

  • All … counties and characters in your realm become …

• 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 (46 lines of game script)
convert_player_realm_from_old_culture_to_new_effect = {
	# For localization
	$OLD_CULTURE$ = { save_scope_as = old_culture }
	$NEW_CULTURE$ = { save_scope_as = new_culture }

	custom_tooltip = global_culture.custom.change_culture
	hidden_effect = {
		# Compile a list of everyone who will flip to the new culture.
		every_vassal_or_below = {
			limit = {
				culture = $OLD_CULTURE$
			}
			add_to_list = characters_to_convert
			every_courtier = {
				limit = {
					culture = $OLD_CULTURE$
				}
				add_to_list = characters_to_convert
			}
		}
		every_courtier = {
			limit = {
				culture = $OLD_CULTURE$
			}
			add_to_list = characters_to_convert
		}

		# Flip the player to the new culture.
		set_culture = $NEW_CULTURE$
		add_character_flag = converted_culture_this_lifetime

		# Flip their courtiers/vassals with a custom description.
		every_in_list = {
			list = characters_to_convert
			set_culture = $NEW_CULTURE$
		}

		# Then flip all their counties.
		every_sub_realm_county = {
			limit = {
				culture = $OLD_CULTURE$
			}
			set_county_culture = $NEW_CULTURE$
		}
	}
}

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

Where it is used

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

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?