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

Scripted trigger

can_potentially_call_ally_trigger

can_potentially_call_ally_trigger = { JOINER = … WARRIOR = … }

game/common/scripted_triggers/00_war_and_peace_triggers.txt, line 166 (56 lines). Parameters: $JOINER$, $WARRIOR$.

can_potentially_call_ally_trigger is a scripted trigger in Crusader Kings III, written at line 166 of its file. A call passes 2 parameters: JOINER and WARRIOR. The game's script calls it in 2 places, among them Call to War (interaction) and can_potentially_call_ally (scripted rules). Patch 1.20.1.2, from game/common/scripted_triggers/00_war_and_peace_triggers.txt.

What it checks

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

The script as written (56 lines of game script)
can_potentially_call_ally_trigger = {
	# Can never call vassals to your own wars (their obligations are met via taxes and levies!)
	custom_description = {
		text = cannot_call_vassal_to_war
		$JOINER$ = {
			trigger_if = {
				limit = {
					NOT = {
						# Diarchs can join against other vassals.
						this ?= $WARRIOR$.diarch
						# Confederation members can join the confederation leader's defensive wars
						AND = {
							is_confederation_member = yes
							$WARRIOR$ = {
								is_member_of_confederation = $JOINER$.confederation
							}
						}
					}

				}
				NOT = {
					target_is_liege_or_above = $WARRIOR$
				}
			}
		}
	}

	# Can never call your liege to your own wars (they protect you only from foreign invaders, by being the war target instead of you) -- Unless you have the Nomadic Contract Right
	custom_description = {
		text = cannot_call_liege_to_war
		$JOINER$ = {
			trigger_if = {
				limit = {
					target_is_vassal_or_below = $WARRIOR$
					$WARRIOR$ = {
						vassal_contract_has_flag = vassal_contract_liege_forced_war_override
					}
				}
				always = yes
			}
			trigger_else_if = {
				limit = {
					$JOINER$ = {
						NOT = {
							target_is_vassal_or_below = $WARRIOR$
						}
					}
				}
				always = yes
			}
			trigger_else = {
				always = no
			}
		}
	}
}

As written in game/common/scripted_triggers/00_war_and_peace_triggers.txt.

Where it is used

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

Character interactions (1)

Scripted rules (1)

  • can_potentially_call_ally

Source: game/common/scripted_triggers/00_war_and_peace_triggers.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?