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

Scripted trigger

kurultai_is_skilled_trigger

kurultai_is_skilled_trigger = { EMPLOYER = … }

game/common/scripted_triggers/00_councillor_triggers.txt, line 1385 (31 lines). Parameters: $EMPLOYER$.

kurultai_is_skilled_trigger is a scripted trigger in Crusader Kings III, written at line 1385 of its file. A call passes 1 parameter: EMPLOYER. The game's script calls it in 1 place, among them is_valid_nomad_events_0001_councillor (local trigger). Patch 1.20.1.2, from game/common/scripted_triggers/00_councillor_triggers.txt.

What it checks

  • If

    • $EMPLOYER$.cp:councillor_kurultai_1 ?= this

    Then

    Else if

    • $EMPLOYER$.cp:councillor_kurultai_2 ?= this

    Then

    Else if

    • $EMPLOYER$.cp:councillor_kurultai_3 ?= this

    Then

    Else if

    • $EMPLOYER$.cp:councillor_kurultai_4 ?= this

    Then

    Otherwise

    • Intrigue more than 12

• 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 (31 lines of game script)
kurultai_is_skilled_trigger = {
	trigger_if = {
		limit = { $EMPLOYER$.cp:councillor_kurultai_1 ?= this }
		OR = {
			average_skill_rating >= sum_of_all_skills_threshold_average
			has_any_high_skill_rating = yes
		}
	}
	trigger_else_if = {
		limit = { $EMPLOYER$.cp:councillor_kurultai_2 ?= this }
		OR = {
			average_skill_rating >= sum_of_all_skills_threshold_average
			has_any_high_skill_rating = yes
		}
	}
	trigger_else_if = {
		limit = { $EMPLOYER$.cp:councillor_kurultai_3 ?= this }
		OR = {
			average_skill_rating >= sum_of_all_skills_threshold_average
			has_any_high_skill_rating = yes
		}
	}
	trigger_else_if = {
		limit = { $EMPLOYER$.cp:councillor_kurultai_4 ?= this }
		OR = {
			average_skill_rating >= sum_of_all_skills_threshold_average
			has_any_high_skill_rating = yes
		}
	}
	trigger_else = { intrigue > decent_skill_rating } # Spymaster
}

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

Where it is used

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

Scripted triggers inside an event file (1)

  • is_valid_nomad_events_0001_councillor

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