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

Scripted effect · Khans of the Steppe files

gok_upgrade_realm_and_government_effect

gok_upgrade_realm_and_government_effect = yes

game/common/scripted_effects/09_mpo_greatest_of_khans_effects.txt, line 7837 (229 lines). No parameters.

gok_upgrade_realm_and_government_effect is a scripted effect in Crusader Kings III, in the Khans of the Steppe files, written at line 7837 of its file. It takes no parameters: gok_upgrade_realm_and_government_effect = yes. The game's script calls it in 2 places, among them Reform the Great Khaganate (decision) and The Eternal … (event mpo_greatest_of_khans.0030). Its body carries 3 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/09_mpo_greatest_of_khans_effects.txt.

What it does

  • If

    a check the game hides

    Then

    • Their culture:
      • get_random_innovation_from = scope:realm_culture_1
  • If

    a check the game hides

    Then

    • Their culture:
      • get_random_innovation_from = scope:realm_culture_2
  • If

    a check the game hides

    Then

    • Their culture:
      • get_random_innovation_from = scope:realm_culture_3
  • Their capital county:
  • Every County Capital in your Domain gains a Castle Holding
  • Approving Nomadic Vassals (switching vassals value) also change their Government and Holding types

• 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)
gok_upgrade_realm_and_government_effect = {
	if = {
		limit = {
			exists = scope:realm_culture_1
		}
		culture = {
			get_random_innovation_from = scope:realm_culture_1
		}
	}
	if = {
		limit = {
			exists = scope:realm_culture_2
		}
		culture = {
			get_random_innovation_from = scope:realm_culture_2
		}
	}
	if = {
		limit = {
			exists = scope:realm_culture_3
		}
		culture = {
			get_random_innovation_from = scope:realm_culture_3
		}
	}

	capital_county = {
		if = {
			limit = {
				any_county_province = {
					OR = {
						has_holding_type = nomad_holding
						has_holding_type = herder_holding
					}
				}
			}
			add_county_modifier = {
				modifier = great_khans_capital_modifier
				years = 30
			}
		}
		custom_tooltip = gok_capital_holdings_switch_tt

		hidden_effect = {
			every_county_province = {
				limit = {
					has_holding = yes
					OR = {
						has_holding_type = nomad_holding
						has_holding_type = herder_holding
					}
				}
				holding_pre_feudalize_effect = yes
				set_holding_type = castle_holding
				add_building = castle_02
				if = {
					limit = {
						any_culture_global = {
							has_cultural_era_or_later = culture_era_high_medieval
						}
					}
					add_building = castle_03
				}
				if = {
					limit = {
						any_culture_global = {
							has_cultural_era_or_later = culture_era_late_medieval
						}
					}
					add_building = castle_04
				}
			}
			random_county_province = {
				limit = {
					has_holding = no
				}
				save_scope_as = capital_prov_1
				set_holding_type = church_holding

				if = {
					limit = {
						any_culture_global = {
							has_cultural_era_or_later = culture_era_high_medieval
						}
					}
					add_building = temple_03
				}
				if = {
					limit = {
						any_culture_global = {
							has_cultural_era_or_later = culture_era_late_medieval
						}
					}
					add_building = temple_02
				}
			}
			random_county_province = {
				limit = {
					exists = scope:capital_prov_1
					has_holding = no
					NOT = {
						this = scope:capital_prov_1
					}
				}
				set_holding_type = city_holding

				if = {
					limit = {
						any_culture_global = {
							has_cultural_era_or_later = culture_era_high_medieval
						}
					}
					add_building = city_03
				}
				if = {
					limit = {
						any_culture_global = {
							has_cultural_era_or_later = culture_era_late_medieval
						}
					}

As written in game/common/scripted_effects/09_mpo_greatest_of_khans_effects.txt.

The first 120 of its 229 lines; the rest is in game/common/scripted_effects/09_mpo_greatest_of_khans_effects.txt from line 7837.

Where it is used

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

Events (1)

Source: game/common/scripted_effects/09_mpo_greatest_of_khans_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?