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

Scripted trigger

camp_officer_generator_pickable_trigger

camp_officer_generator_pickable_trigger = { EMPLOYER = … POS = … }

game/common/scripted_triggers/00_court_position_triggers.txt, line 1191 (21 lines). Parameters: $EMPLOYER$, $POS$.

camp_officer_generator_pickable_trigger is a scripted trigger in Crusader Kings III, written at line 1191 of its file. A call passes 2 parameters: EMPLOYER and POS. The game's script calls it in 2 places, among them valid_adventurous_character (local trigger) and camp_officer_generator_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_triggers/00_court_position_triggers.txt.

What it checks

  • $EMPLOYER$ = { … }
  • NOT = { has_court_position = $POS$_camp_officer }
  • would_be_valid_for_court_position = { court_position = $POS$_camp_officer employer = $EMPLOYER$ }
  • If

    a check the game hides

    Then

    • Target court position is not $POS$
  • If

    a check the game hides

    Then

    • Second court position is not $POS$

• 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 (21 lines of game script)
camp_officer_generator_pickable_trigger = {
	$EMPLOYER$ = {
		OR = {
			can_employ_court_position_type = $POS$_camp_officer
			employs_court_position = $POS$_camp_officer
		}
	}
	NOT = { has_court_position = $POS$_camp_officer }
	would_be_valid_for_court_position = {
		court_position = $POS$_camp_officer
		employer = $EMPLOYER$
	}
	trigger_if = {
		limit = { exists = var:target_court_position }
		NOT = { var:target_court_position = flag:$POS$ }
	}
	trigger_if = {
		limit = { exists = var:second_court_position }
		NOT = { var:second_court_position = flag:$POS$ }
	}
}

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

Where it is used

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

Scripted triggers inside an event file (1)

  • valid_adventurous_character

Scripted effects (1)

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