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

de_jure_shifting_effect

de_jure_shifting_effect = { LOWER_TIER = … UPPER_TIER = … }

game/common/scripted_effects/09_dlc_mpo_scripted_effects.txt, line 5652 (68 lines). Parameters: $LOWER_TIER$, $UPPER_TIER$.

de_jure_shifting_effect is a scripted effect in Crusader Kings III, in the Khans of the Steppe files, written at line 5652 of its file. A call passes 2 parameters: LOWER_TIER and UPPER_TIER. The game's script calls it in 1 place, among them mpo_de_jure_shift (on action). Patch 1.20.1.2, from game/common/scripted_effects/09_dlc_mpo_scripted_effects.txt.

What it does

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

The script as written (68 lines of game script)
de_jure_shifting_effect = {
	while = {
		count = 25
		limit = {
			OR = {
				any_realm_de_jure_$LOWER_TIER$ = {
					mpo_de_jure_shifting_triggers = { UPPER_TIER = $UPPER_TIER$ }
				}
				any_tributary = {
					highest_held_title_tier < root.highest_held_title_tier
					any_realm_de_jure_$LOWER_TIER$ = {
						mpo_de_jure_shifting_triggers = { UPPER_TIER = $UPPER_TIER$ }
					}
				}
			}
		}
		random_realm_de_jure_$LOWER_TIER$ = {
			limit = {
				mpo_de_jure_shifting_triggers = { UPPER_TIER = $UPPER_TIER$ }
			}
			set_de_jure_liege_title = root.primary_title
			add_to_list = de_jure_shifted_title
		}
		random_tributary = {
			limit = {
				highest_held_title_tier < root.highest_held_title_tier
				any_realm_de_jure_$LOWER_TIER$ = {
					mpo_de_jure_shifting_triggers = { UPPER_TIER = $UPPER_TIER$ }
				}
			}
			random_realm_de_jure_$LOWER_TIER$ = {
				limit = {
					mpo_de_jure_shifting_triggers = { UPPER_TIER = $UPPER_TIER$ }
				}
				set_de_jure_liege_title = root.primary_title
				add_to_list = de_jure_shifted_title
			}
		}
	}
	while = {
		count = 25
		limit = {
			list_size = {
				name = de_jure_shifted_title
				value >= 1
			}
		}
		root = {
			send_interface_message = {
				type = msg_mpo_de_jure_shifting
				title = msg_mpo_de_jure_shifting
				left_icon = root
				ordered_in_list = {
					order_by = {
						value = 1
					}
					max = 3
					check_range_bounds = no
					list = de_jure_shifted_title
					show_as_tooltip = {
						set_de_jure_liege_title = root.primary_title
					}
					remove_from_list = de_jure_shifted_title
				}
			}
		}
	}
}

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

Where it is used

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

On actions (the game's own hooks) (1)

  • mpo_de_jure_shift

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