Scripted trigger
councillor_is_skilled_trigger
councillor_is_skilled_trigger = { EMPLOYER = … }game/common/scripted_triggers/00_councillor_triggers.txt, line 1365 (19 lines). Parameters: $EMPLOYER$.
councillor_is_skilled_trigger is a scripted trigger in Crusader Kings III, written at line 1365 of its file. A call passes 1 parameter: EMPLOYER. The game's script calls it in 2 places, among them Down With …! (event chariot_race.4010) and Unpopular Favorite (event bp1_yearly.8100). Patch 1.20.1.2, from game/common/scripted_triggers/00_councillor_triggers.txt.
What it checks
If
$EMPLOYER$.cp:councillor_chancellor ?= this
Then
- Diplomacy more than 12
Else if
$EMPLOYER$.cp:councillor_steward ?= this
Then
- Stewardship more than 12
Else if
$EMPLOYER$.cp:councillor_marshal ?= this
Then
- Martial more than 12
Else if
$EMPLOYER$.cp:councillor_spymaster ?= this
Then
- Intrigue more than 12
Otherwise
- Learning 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 (19 lines of game script)
councillor_is_skilled_trigger = {
trigger_if = {
limit = { $EMPLOYER$.cp:councillor_chancellor ?= this }
diplomacy > decent_skill_rating
}
trigger_else_if = {
limit = { $EMPLOYER$.cp:councillor_steward ?= this }
stewardship > decent_skill_rating
}
trigger_else_if = {
limit = { $EMPLOYER$.cp:councillor_marshal ?= this }
martial > decent_skill_rating
}
trigger_else_if = {
limit = { $EMPLOYER$.cp:councillor_spymaster ?= this }
intrigue > decent_skill_rating
}
trigger_else = { learning > decent_skill_rating }
}As written in game/common/scripted_triggers/00_councillor_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls councillor_is_skilled_trigger.
Events (2)
- Down With …!
chariot_race.4010 - Unpopular Favorite
bp1_yearly.8100
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.