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

Scripted effect · Legacy of Persia files

start_wars_for_seljuk_empire_effect

start_wars_for_seljuk_empire_effect = yes

game/common/scripted_effects/01_dlc_fp3_scripted_effects.txt, line 413 (34 lines). No parameters.

start_wars_for_seljuk_empire_effect is a scripted effect in Crusader Kings III, in the Legacy of Persia files, written at line 413 of its file. It takes no parameters: start_wars_for_seljuk_empire_effect = yes. The game's script calls it in 1 place, among them try_to_settle_the_seljuk_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/01_dlc_fp3_scripted_effects.txt.

The comment above it in the file

Start war of conquest for the Seljuk heartland

What it does

  • One in list, picked in order › scope:seljuk_conqueror:
    • start_war = { cb = fp3_seljuk_invasion_cb target = scope:new_war_target target_title = scope:war_target_title }

• 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 (34 lines of game script)
start_wars_for_seljuk_empire_effect = {
	save_temporary_scope_as = seljuk_conqueror
	# Build a list of potential targets
	every_independent_ruler = {
		limit = {
			any_sub_realm_county = {
				title_province = { geographical_region = world_persian_empire }
			}
		}
		if = {
			limit = { NOT = { is_in_list = top_liege_targets } }
			add_to_temporary_list = top_liege_targets
		}
	}
	ordered_in_list = {
		list = top_liege_targets
		# Find the weakest target
		order_by = {
			value = current_military_strength
			# Inver the list so the weakest is at the top
			multiply = -1
		}
		save_temporary_scope_as = new_war_target
		primary_title = { save_temporary_scope_as = war_target_title }
		# Declare the war
		scope:seljuk_conqueror = {
			start_war = {
				cb = fp3_seljuk_invasion_cb
				target = scope:new_war_target
				target_title = scope:war_target_title
			}
		}
	}
}

As written in game/common/scripted_effects/01_dlc_fp3_scripted_effects.txt.

Where it is used

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

Source: game/common/scripted_effects/01_dlc_fp3_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?