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

Scripted effect

start_wars_for_mongolia_effect

start_wars_for_mongolia_effect = yes

game/common/scripted_effects/00_mongol_invasion_effects.txt, line 1910 (47 lines). No parameters.

start_wars_for_mongolia_effect is a scripted effect in Crusader Kings III, written at line 1910 of its file. It takes no parameters: start_wars_for_mongolia_effect = yes. The game's script calls it in 1 place, among them story_mongol_invasion (story cycle). Patch 1.20.1.2, from game/common/scripted_effects/00_mongol_invasion_effects.txt.

The comment above it in the file

Start war of conquest for the Mongolian heartland

What it does

  • Every in list:
    • If government is unplayable:
      • change_liege = { liege = scope:mongol_conqueror change = scope:change }
    • Otherwise › scope:mongol_conqueror:
      • start_war = { cb = mongol_realm_invasion_war target = scope:new_war_target.top_liege 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 (47 lines of game script)
start_wars_for_mongolia_effect = {
	save_temporary_scope_as = mongol_conqueror
	# Build a list of potential targets
	every_neighboring_top_liege_realm_owner = {
		limit = {
			any_sub_realm_county = {
				is_landless_type_title = no
				title_province = { geographical_region = special_mongol_empire_start_region }
			}
			is_landed = yes
		}
		if = {
			limit = { NOT = { is_in_list = top_liege_targets } }
			add_to_temporary_list = top_liege_targets
		}
	}
	every_in_list = {
		list = top_liege_targets
		if = {
			limit = {
				government_has_flag = government_is_herder
			}
			create_title_and_vassal_change = {
				type = swear_fealty
				save_scope_as = change
				add_claim_on_loss = no
			}
			change_liege = {
				liege = scope:mongol_conqueror
				change = scope:change
			}
			resolve_title_and_vassal_change = scope:change
		}
		else = {
			save_temporary_scope_as = new_war_target
			capital_county.empire = { save_temporary_scope_as = war_target_title }
			# Declare the war
			scope:mongol_conqueror = {
				start_war = {
					cb = mongol_realm_invasion_war
					target = scope:new_war_target.top_liege
					target_title = scope:war_target_title
				}
			}
		}
	}
}

As written in game/common/scripted_effects/00_mongol_invasion_effects.txt.

Where it is used

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

Story cycles (1)

  • story_mongol_invasion

Source: game/common/scripted_effects/00_mongol_invasion_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?