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
is_available_healthy_ai_adult = yes- Not: Is Lowborn
- Is not landed
One of these
All of these
exists = involved_activityinvolved_activity = $ATTENDING_CHAR$.involved_activity
or
can_join_activity = $ATTENDING_CHAR$.involved_activity
location = $ATTENDING_CHAR$.location- Age more than 35
If
$ATTENDING_CHAR$ = { … }
Then
One of these
If
$ATTENDING_CHAR$ = { … }
Then
One of these
- Has the Trait: Skilled Tactician
or
Has the Trait: Brilliant Strategistor
Has the Trait: Exalted Warlord
- Martial at least 12
Else if
$ATTENDING_CHAR$ = { … }
Then
One of these
- Has the Trait: Fortune Builder
or
Has the Trait: Midas Touchedor
Has the Trait: Golden Sovereign
- Stewardship at least 12
Otherwise
One of these
- Has the Trait: Astute Intellectual
or
Has the Trait: Mastermind Philosopheror
Has the Trait: Erudite Oracle
- Learning at least 12
Otherwise
One of these
- Has the Trait: Astute Intellectual
or
Has the Trait: Mastermind Philosopheror
Has the Trait: Erudite Oracle
- Learning at least 12
$ATTENDING_CHAR$.involved_activity.activity_host.rite = { rite_has_dominant_ruling_gender = prev }
• 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)
- With A Little Help
imperial_examination.4000
Scripted effects (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.