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

Scripted trigger · The Royal Court files

ep1_courtier_valid_for_court_trait_2_trigger

ep1_courtier_valid_for_court_trait_2_trigger = { TYPE = … }

game/common/scripted_triggers/02_ep1_scripted_triggers.txt, line 44 (6 lines). Parameters: $TYPE$.

ep1_courtier_valid_for_court_trait_2_trigger is a scripted trigger in Crusader Kings III, in the The Royal Court files, written at line 44 of its file. A call passes 1 parameter: TYPE. The game's script calls it in 2 places, among them assign_court_type_traits_to_courtiers_effect (scripted effect) and court_trait_save_scopes_and_send_interface_message_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_triggers/02_ep1_scripted_triggers.txt.

The comment above it in the file

Court type trait 2 is unlocked by court_grandeur_level 8

What it checks

  • scope:cgv_value >= cgv_level_threshold_court_type_trait_2
  • Does not have the Trait: … court 2
  • Has the Trait: … court 1
  • Is an Adult

• 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 (6 lines of game script)
ep1_courtier_valid_for_court_trait_2_trigger = {
	scope:cgv_value >= cgv_level_threshold_court_type_trait_2
	NOT = { has_trait = $TYPE$_court_2 }
	has_trait = $TYPE$_court_1
	is_adult = yes
}

As written in game/common/scripted_triggers/02_ep1_scripted_triggers.txt.

Where it is used

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

Source: game/common/scripted_triggers/02_ep1_scripted_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?