Scripted trigger · Tours and Tournaments files
accolade_can_train_knight_trigger
accolade_can_train_knight_trigger = yesgame/common/scripted_triggers/04_ep2_accolade_triggers.txt, line 1547 (20 lines). No parameters.
accolade_can_train_knight_trigger is a scripted trigger in Crusader Kings III, in the Tours and Tournaments files, written at line 1547 of its file. It takes no parameters: accolade_can_train_knight_trigger = yes (or no). The game's script calls it in 1 place, among them three_year_playable_pulse (on action). Patch 1.20.1.2, from game/common/scripted_triggers/04_ep2_accolade_triggers.txt.
What it checks
acclaimed_knight = { is_incapable = no is_imprisoned = no }- Lifetime glory at least major glory value
acclaimed_knight = { … }
• 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 (20 lines of game script)
accolade_can_train_knight_trigger = {
exists = acclaimed_knight
acclaimed_knight = {
is_incapable = no
is_imprisoned = no
}
exists = var:lifetime_glory
#Has done enough glorious stuff to be boosted
var:lifetime_glory >= major_glory_value
#Don't want to train the same knight too many times
acclaimed_knight = {
trigger_if = {
limit = {
has_variable = acc_knight_trained
}
var:acc_knight_trained < 4
}
}
}As written in game/common/scripted_triggers/04_ep2_accolade_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls accolade_can_train_knight_trigger.
On actions (the game's own hooks) (1)
- three_year_playable_pulse
Source: game/common/scripted_triggers/04_ep2_accolade_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.