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_join_war_liege_vassal_check_trigger

can_join_war_liege_vassal_check_trigger = { JOINER = … WARRIOR = … }

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

can_join_war_liege_vassal_check_trigger is a scripted trigger in Crusader Kings III, written at line 844 of its file. A call passes 2 parameters: JOINER and WARRIOR. The game's script calls it in 9 places, among them Ask for Military Assistance (interaction), Call Dynasty Member To War (interaction) and Call Follower to War (interaction). 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 (51 lines of game script)
can_join_war_liege_vassal_check_trigger = {
	custom_description = {
		text = "basic_ally_can_join_because_liege_or_vassals"
		subject = $JOINER$

		# actor is defender, attackers do not include recipient's liege or vassals
		trigger_if = {
			limit = {
				$WARRIOR$ = { is_defender_in_war = scope:target }
			}
			$JOINER$ = {
				trigger_if = {
					limit = {
						# Diarchs can join against other vassals.
						NOT = { this ?= $WARRIOR$.diarch }
					}
					NOR = {
						any_liege_or_above = {
							is_attacker_in_war = scope:target
						}
						any_vassal_or_below = {
							is_attacker_in_war = scope:target
						}
					}
				}
			}
		}

		# actor is attacker, defenders do not include recipient's liege or vassals
		trigger_else_if = {
			limit = {
				$WARRIOR$ = { is_attacker_in_war = scope:target }
			}
			$JOINER$ = {
				NOR = {
					any_liege_or_above = {
						is_defender_in_war = scope:target
					}
					any_vassal_or_below = {
						is_defender_in_war = scope:target
					}
				}
			}
		}

		# it's fine, whatever
		trigger_else = {
			always = yes
		}
	}
}

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_join_war_liege_vassal_check_trigger.

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?