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_final_decision_list_setup

gok_final_decision_list_setup = yes

game/common/scripted_effects/09_mpo_greatest_of_khans_effects.txt, line 8067 (89 lines). No parameters.

gok_final_decision_list_setup is a scripted effect in Crusader Kings III, in the Khans of the Steppe files, written at line 8067 of its file. It takes no parameters: gok_final_decision_list_setup = yes. The game's script calls it in 1 place, among them Reform the Great Khaganate (decision). Patch 1.20.1.2, from game/common/scripted_effects/09_mpo_greatest_of_khans_effects.txt.

What it does

Every line of it is script with no tooltip text: the script is below.

The script as written (89 lines of game script)
gok_final_decision_list_setup = {
	#Switching vassals to feudalism or clan
	every_vassal_or_below = {
		limit = {
			gok_gov_switch_valid_vassal_trigger = yes
			mpo_greatest_of_khans_0030_willing_nomad_vassal = yes
		}
		add_to_list = switching_vassals
	}
	save_scope_value_as = {
		name = switching_vassals_value
		value = "list_size(switching_vassals)"
	}
	#Switching vassals TO nomadism
	every_vassal_or_below = {
		limit = {
			NOR = {
				government_has_flag = government_is_nomadic
				government_has_flag = government_is_herder
			}
			gok_gov_switch_valid_vassal_trigger = yes
		}
		#ones willing to switch can remain in power
		if = {
			limit = {
				OR = {
					has_trait = nomadic_philosophy
					culture = {
						has_cultural_tradition = tradition_horse_lords
					}
					culture = {
						has_cultural_tradition = tradition_devoted_horsemanship
					}
					AND = {
						highest_held_title_tier >= tier_kingdom
						mpo_greatest_of_khans_0030_dominated_sedentary_vassal = yes
					}
					AND = {
						highest_held_title_tier >= tier_duchy
						mpo_greatest_of_khans_0030_willing_sedentary_vassal = yes
					}
					highest_held_title_tier = tier_county
				}
			}
			add_to_list = sedentary_to_nomad_vassals
		}
		#The others must go
		else = {
			add_to_list = city_state_vassals
		}
	}
	save_scope_value_as = {
		name = sedentary_to_nomad_vassals_value
		value = "list_size(sedentary_to_nomad_vassals)"
	}
	save_scope_value_as = {
		name = city_state_vassals_value
		value = "list_size(city_state_vassals)"
	}
	#counties that will be switched from non-nomadic to nomadic
	every_realm_county = {
		limit = {
			NOR = {
				#Already nomadic
				any_county_province = {
					OR = {
						has_holding_type = nomad_holding
						has_holding_type = herder_holding
					}
				}
				#Holder is invalid for switching
				holder = { gok_gov_switch_valid_vassal_trigger = no }
				#De jure kingdom capital (probably important)
				this = kingdom.title_capital_county
				AND = {
					holder = {
						is_in_list = city_state_vassals
					}
					this = holder.capital_county
				}
			}
		}
		add_to_list = burned_to_nomadism
	}
	save_scope_value_as = {
		name = burned_to_nomadism_value
		value = "list_size(burned_to_nomadism)"
	}
}

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

Where it is used

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

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?