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

is_winning_competing_for_same_title_as

is_winning_competing_for_same_title_as = { CHARACTER = … }

game/common/scripted_triggers/07_ep3_triggers.txt, line 195 (13 lines). Parameters: $CHARACTER$.

is_winning_competing_for_same_title_as is a scripted trigger in Crusader Kings III, in the Roads to Power files, written at line 195 of its file. A call passes 1 parameter: CHARACTER. The game's script calls it in 4 places, among them Challenge Status (Scheme) (interaction), Ingratiate Family (Scheme) (interaction) and Promote (Scheme) (interaction). Patch 1.20.1.2, from game/common/scripted_triggers/07_ep3_triggers.txt.

What it checks

  • $CHARACTER$ = { save_temporary_scope_as = target_char }
  • is_competing_for_same_title_as = { CHARACTER = $CHARACTER$ }
  • Any heir title: The … is not a Noble Family Title
  • scope:temp_title:
    • place_in_line_of_succession(scope:root_scope) > place_in_line_of_succession(scope:target_char)

• 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 (13 lines of game script)
is_winning_competing_for_same_title_as = {
	$CHARACTER$ = { save_temporary_scope_as = target_char }
	is_competing_for_same_title_as = { CHARACTER = $CHARACTER$ }
	save_temporary_scope_as = root_scope
	any_heir_title = {
		exists = this
		is_noble_family_title = no
		save_temporary_scope_as = temp_title
	}
	scope:temp_title = {
		"place_in_line_of_succession(scope:root_scope)" > "place_in_line_of_succession(scope:target_char)"
	}
}

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

Where it is used

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

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?