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

Scripted trigger · All Under Heaven files

is_available_imperial_examiner_trigger

is_available_imperial_examiner_trigger = { ATTENDING_CHAR = … }

game/common/scripted_triggers/tgp_imperial_examination_triggers.txt, line 91 (66 lines). Parameters: $ATTENDING_CHAR$.

is_available_imperial_examiner_trigger is a scripted trigger in Crusader Kings III, in the All Under Heaven files, written at line 91 of its file. A call passes 1 parameter: ATTENDING_CHAR. The game's script calls it in 2 places, among them With A Little Help (event imperial_examination.4000) and imperial_examination_set_up_examiners_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_triggers/tgp_imperial_examination_triggers.txt.

The comment above it in the file

What's a good examiner

What it checks

• 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 (66 lines of game script)
is_available_imperial_examiner_trigger = {
	is_available_healthy_ai_adult = yes
	is_lowborn = no
	is_landed = no
	OR = {
		AND = {
			exists = involved_activity
			involved_activity = $ATTENDING_CHAR$.involved_activity
		}
		can_join_activity = $ATTENDING_CHAR$.involved_activity
	}
	location = $ATTENDING_CHAR$.location
	age > 35
	trigger_if = {
		limit = {
			$ATTENDING_CHAR$ = { 
				involved_activity = { has_activity_type = activity_imperial_examination }
			}
		}
		OR = {
			trigger_if = {
				limit = { 
					$ATTENDING_CHAR$ = { 
						involved_activity = { activity_is_martial_focus_trigger = yes }
					}
				}
				OR = {
					has_trait = education_martial_3
					has_trait = education_martial_4
					has_trait = education_martial_5
				}
				martial >= decent_skill_rating
			}
			trigger_else_if = {
				limit = { 
					$ATTENDING_CHAR$ = { 
						involved_activity = { activity_is_stewardship_focus_trigger = yes }
					}
				}
				OR = {
					has_trait = education_stewardship_3
					has_trait = education_stewardship_4
					has_trait = education_stewardship_5
				}
				stewardship >= decent_skill_rating
			}
			trigger_else = {
				OR = {
					has_trait = education_learning_3
					has_trait = education_learning_4
					has_trait = education_learning_5
				}
				learning >= decent_skill_rating
			}
		}
	}
	trigger_else = {
		OR = {
			has_trait = education_learning_3
			has_trait = education_learning_4
			has_trait = education_learning_5
		}
		learning >= decent_skill_rating
	}
	$ATTENDING_CHAR$.involved_activity.activity_host.rite = { rite_has_dominant_ruling_gender = prev }
}

As written in game/common/scripted_triggers/tgp_imperial_examination_triggers.txt.

Where it is used

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

Events (1)

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