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

Scripted effect

almohads_find_target_titles_effect

almohads_find_target_titles_effect = yes

game/common/scripted_effects/00_almohad_invasion_effects.txt, line 268 (33 lines). No parameters.

almohads_find_target_titles_effect is a scripted effect in Crusader Kings III, written at line 268 of its file. It takes no parameters: almohads_find_target_titles_effect = yes. The game's script calls it in 2 places, among them story_almohad_invasion (story cycle) and create_almohads_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_almohad_invasion_effects.txt.

What it does

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

The script as written (33 lines of game script)
almohads_find_target_titles_effect = {
	if = {
		limit = { exists = title:k_maghreb.holder }
		title:k_maghreb = {
			save_scope_as = maghreb_target_title
			holder = {
				save_scope_as = first_target
			}
		}
		if = {
			limit = {
				NOT = { scope:almohad_county.holder.top_liege = title:k_maghreb.holder.top_liege }
				scope:almohad_county.holder.top_liege = {
					any_sub_realm_county = {
						this != scope:almohad_county
						kingdom = title:k_maghreb
					}
				}
			}
			scope:almohad_county.holder.top_liege = {
				save_scope_as = second_target
			}
		}
	}
	else = {
		ordered_independent_ruler = {
			limit = { highest_held_title_tier > tier_county }
			order_by = titles_held_in_k_maghreb
			position = 0
			save_scope_as = first_target
		}
	}
}

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

Where it is used

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

Story cycles (1)

  • story_almohad_invasion

Scripted effects (1)

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