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_declare_war_for_target_title_effect

almohads_declare_war_for_target_title_effect = yes

game/common/scripted_effects/00_almohad_invasion_effects.txt, line 303 (32 lines). No parameters.

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

What it does

  • If

    a check the game hides

    Then

    • start_war = { … }
    • If a check the game hides passes: the same again (1 line)
      • start_war = { … }

• 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 (32 lines of game script)
almohads_declare_war_for_target_title_effect = {
	save_scope_as = war_leader
	if = {
		limit = { exists = scope:first_target }
		start_war = {
			cb = claim_cb
			target = scope:first_target
			claimant = scope:war_leader
			target_title = scope:maghreb_target_title
		}

		if = {
			limit = {
				exists = scope:second_target
				NOT = { exists = global_var:almohads_do_not_attack_second_target }
			}
			start_war = {
				cb = claim_cb
				target = scope:second_target
				claimant = scope:war_leader
				target_title = scope:maghreb_target_title
			}
		}
	}
	if = {
		limit = { exists = global_var:almohads_do_not_attack_second_target }
		remove_global_variable = almohads_do_not_attack_second_target
	}
	else = {
		debug_log = "Failed to find a valid war target for the Almohads!"
	}
}

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_declare_war_for_target_title_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?