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_county_and_holder_if_in_region_effect

convert_county_and_holder_if_in_region_effect = { NEW_CULTURE = … OLD_CULTURE = … REGION = … }

game/common/scripted_effects/00_culture_effects.txt, line 2 (25 lines). Parameters: $NEW_CULTURE$, $OLD_CULTURE$, $REGION$.

convert_county_and_holder_if_in_region_effect is a scripted effect in Crusader Kings III, written at line 2 of its file. A call passes 3 parameters: NEW_CULTURE, OLD_CULTURE and REGION. The game's script calls it in 5 places, among them global_culture.0001 (event), global_culture.0011 (event) and global_culture.0031 (event). Patch 1.20.1.2, from game/common/scripted_effects/00_culture_effects.txt.

What it does

  • If

    • culture = $OLD_CULTURE$
    • Their province: Is in the $REGION$ region

    Then

    • set_county_culture = $NEW_CULTURE$
    • Their holder:
      • If

        • culture = $OLD_CULTURE$
        • Their capital province: Is in the $REGION$ region

        Then

• 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 (25 lines of game script)
convert_county_and_holder_if_in_region_effect = {
	if = {
		# If this county is of the old culture and is in the designated region, flip it to the new culture.
		limit = {
			culture = $OLD_CULTURE$
			title_province = {
				geographical_region = $REGION$
			}
		}
		set_county_culture = $NEW_CULTURE$

		# If the holder is also of the old culture, and their capital is in the designated region, we flip them along with the county.
		holder = {
			if = {
				limit = {
					culture = $OLD_CULTURE$
					capital_province = {
						geographical_region = $REGION$
					}
				}
				set_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_county_and_holder_if_in_region_effect.

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?