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

Scripted trigger · Roads to Power files

ep3_adventurer_ai_valid_legitimist_target_trigger

ep3_adventurer_ai_valid_legitimist_target_trigger = { ADVENTURER = … }

game/common/scripted_triggers/07_ep3_triggers.txt, line 1466 (23 lines). Parameters: $ADVENTURER$.

ep3_adventurer_ai_valid_legitimist_target_trigger is a scripted trigger in Crusader Kings III, in the Roads to Power files, written at line 1466 of its file. A call passes 1 parameter: ADVENTURER. The game's script calls it in 3 places, among them story_adventurer_ai (story cycle), ep3_adventurer_ai_war_declare_effect (scripted effect) and ep3_adventurer_ai_war_find_target_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_triggers/07_ep3_triggers.txt.

What it checks

  • Is landed
  • NOT = { has_relation_friend = $ADVENTURER$ }
  • NOT = { is_at_war_with = $ADVENTURER$ }
  • NOT = { is_allied_to = $ADVENTURER$ }
  • Current strength with allies less than $ADVENTURER$.current strength with allies seventy five percent value
  • Any held title:
    • Title tier at least Kingdom
    • Any claimant:
  • $ADVENTURER$ = { … }

• 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 (23 lines of game script)
ep3_adventurer_ai_valid_legitimist_target_trigger = {
	is_landed = yes
	NOR = {
		has_relation_friend = $ADVENTURER$
		is_at_war_with = $ADVENTURER$
		is_allied_to = $ADVENTURER$
	}
	save_temporary_scope_as = target_temp
	current_strength_with_allies_value < $ADVENTURER$.current_strength_with_allies_seventy_five_percent_value
	any_held_title = {
		title_tier >= kingdom
		any_claimant = { this = $ADVENTURER$ }
		save_temporary_scope_as = claim_temp
	}
	$ADVENTURER$ = {
		can_declare_war = {
			defender = scope:target_temp
			casus_belli = claim_cb
			claimant = $ADVENTURER$
			target_titles = { scope:claim_temp }
		}
	}
}

As written in game/common/scripted_triggers/07_ep3_triggers.txt.

Where it is used

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

Story cycles (1)

  • story_adventurer_ai

Source: game/common/scripted_triggers/07_ep3_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?