Scripted trigger
education_points_and_focus_equals_education_rank
education_points_and_focus_equals_education_rank = { FOCUS = … RANK = … }game/common/scripted_triggers/00_education_triggers.txt, line 152 (29 lines). Parameters: $FOCUS$, $RANK$.
education_points_and_focus_equals_education_rank is a scripted trigger in Crusader Kings III, written at line 152 of its file. A call passes 2 parameters: FOCUS and RANK. The game's script calls it in 1 place, among them education_points_equals_education_rank (scripted trigger). Patch 1.20.1.2, from game/common/scripted_triggers/00_education_triggers.txt.
The comment above it in the file
Takes RANK and FOCUS
What it checks
save_temporary_scope_value_as = { name = education_rank value = $RANK$ }One of these
All of these
has_focus = education_$FOCUS$One of these
All of these
var:education_$FOCUS$_variable <= education_level_1scope:education_rank = 1
or
All of these
var:education_$FOCUS$_variable <= education_level_2scope:education_rank = 2
or
All of these
var:education_$FOCUS$_variable <= education_level_3scope:education_rank = 3
or
All of these
var:education_$FOCUS$_variable > education_level_3scope:education_rank = 4
• 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 (29 lines of game script)
education_points_and_focus_equals_education_rank = {
save_temporary_scope_value_as = {
name = education_rank
value = $RANK$
}
OR = {
AND = {
has_focus = education_$FOCUS$
OR = {
AND = {
var:education_$FOCUS$_variable <= education_level_1
scope:education_rank = 1
}
AND = {
var:education_$FOCUS$_variable <= education_level_2
scope:education_rank = 2
}
AND = {
var:education_$FOCUS$_variable <= education_level_3
scope:education_rank = 3
}
AND = {
var:education_$FOCUS$_variable > education_level_3
scope:education_rank = 4
}
}
}
}
}As written in game/common/scripted_triggers/00_education_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls education_points_and_focus_equals_education_rank.
Scripted triggers (1)
Source: game/common/scripted_triggers/00_education_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.