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

Scripted trigger

has_same_highest_skill

has_same_highest_skill = { CHARACTER = … }

game/common/scripted_triggers/00_general_trait_triggers.txt, line 1249 (24 lines). Parameters: $CHARACTER$.

has_same_highest_skill is a scripted trigger in Crusader Kings III, written at line 1249 of its file. A call passes 1 parameter: CHARACTER. The game's script calls it in 2 places, among them A New Course (event tgp_movement_events.0050) and tgp_movement_events_0070_valid_councillor (local trigger). Patch 1.20.1.2, from game/common/scripted_triggers/00_general_trait_triggers.txt.

What it checks

  • One of these

    • All of these

      • highest_skill = diplomacy
      • $CHARACTER$ = { highest_skill = diplomacy }
    • or

      All of these

      • highest_skill = martial
      • $CHARACTER$ = { highest_skill = martial }
    • or

      All of these

      • highest_skill = stewardship
      • $CHARACTER$ = { highest_skill = stewardship }
    • or

      All of these

      • highest_skill = intrigue
      • $CHARACTER$ = { highest_skill = intrigue }
    • or

      All of these

      • highest_skill = learning
      • $CHARACTER$ = { highest_skill = learning }

• 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 (24 lines of game script)
has_same_highest_skill = {
	OR = {
		AND = {
			highest_skill = diplomacy
			$CHARACTER$ = { highest_skill = diplomacy }
		}
		AND = {
			highest_skill = martial
			$CHARACTER$ = { highest_skill = martial }
		}
		AND = {
			highest_skill = stewardship
			$CHARACTER$ = { highest_skill = stewardship }
		}
		AND = {
			highest_skill = intrigue
			$CHARACTER$ = { highest_skill = intrigue }
		}
		AND = {
			highest_skill = learning
			$CHARACTER$ = { highest_skill = learning }
		}
	}
}

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

Where it is used

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

Events (1)

Scripted triggers inside an event file (1)

  • tgp_movement_events_0070_valid_councillor

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