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

Scripted effect · All Under Heaven files

nomad_to_steppe_admin_new_capital_effect

nomad_to_steppe_admin_new_capital_effect = yes

game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt, line 4195 (178 lines). No parameters.

nomad_to_steppe_admin_new_capital_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 4195 of its file. It takes no parameters: nomad_to_steppe_admin_new_capital_effect = yes. The game's script calls it in 1 place, among them Become a Meritocratic Khanate (decision). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt.

What it does

  • If

    • capital_county != scope:new_capital

    Then

    • If

      • scope:new_capital.holder != root

      Then

      • scope:new_capital: Gains the … Title (root)
    • The realm capital moves
  • If a check the game hides passes: the same again (1 line)
    • scope:new_capital.kingdom: Gains the … Title (root)
  • If

    • primary_title = global_var:greatest_of_khans_title

    Then

    • Their primary title:
      • set_can_be_named_after_dynasty = yes
      • set_definitive_form = yes
      • set_capital_county = scope:new_capital

• 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)
nomad_to_steppe_admin_new_capital_effect = {
	every_sub_realm_county = {
		limit = {
			title_province = {
				NOR = {
					has_holding_type = nomad_holding
					has_holding_type = herder_holding
					has_holding_type = tribal_holding
				}
			}
		}
		add_to_list = potential_new_capitals
	}
	every_held_title = {
		limit = {
			tier = tier_county
			title_province = {
				NOR = {
					has_holding_type = nomad_holding
					has_holding_type = herder_holding
					has_holding_type = tribal_holding
				}
			}
		}
		add_to_list = potential_new_capitals
	}
	ordered_in_list = {
		order_by = development_level
		list = potential_new_capitals
		save_scope_as = new_capital
	}
	if = {
		limit = {
			capital_county = {
				title_province = {
					NOR = {
						has_holding_type = nomad_holding
						has_holding_type = herder_holding
						has_holding_type = tribal_holding
					}
				}
			}
		}
		capital_county = {
			save_scope_as = new_capital
		}
	}
	if = {
		limit = {
			exists = scope:new_capital
			capital_county != scope:new_capital
		}
		if = {
			limit = {
				scope:new_capital.holder != root
			}
			create_title_and_vassal_change = {
				type = usurped
				save_scope_as = change
				add_claim_on_loss = yes
			}
			scope:new_capital = {
				change_title_holder = {
					holder = root
					change = scope:change
				}
			}
			resolve_title_and_vassal_change = scope:change
		}
		set_realm_capital = scope:new_capital
	}
	scope:new_capital.duchy = { save_scope_as = nomad_duchy_for_name }
	#Should gain target title, if possible
	if = {
		limit = {
			scope:new_capital.kingdom = {
				NOT = {
					exists = holder
				}
			}
		}
		create_title_and_vassal_change = {
			type = created
			save_scope_as = change
			add_claim_on_loss = yes
		}
		scope:new_capital.kingdom = {
			save_scope_as = new_primary
			change_title_holder = {
				holder = root
				change = scope:change
			}
		}
		resolve_title_and_vassal_change = scope:change
	}
	if = {
		limit = {
			scope:new_capital.duchy = {
				NOT = {
					exists = holder
				}
			}
		}
		hidden_effect = {
			create_title_and_vassal_change = {
				type = created
				save_scope_as = change_1
				add_claim_on_loss = yes
			}
			scope:new_capital.duchy = {
				change_title_holder = {
					holder = root
					change = scope:change_1
				}
			}
			resolve_title_and_vassal_change = scope:change_1
		}
	}
	#For GoK, they keep using their Gok Title
	if = {

As written in game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt.

The first 120 of its 178 lines; the rest is in game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt from line 4195.

Where it is used

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

Source: game/common/scripted_effects/10_dlc_tgp_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?