Scripted trigger
can_appoint_char_to_court_position
can_appoint_char_to_court_position = { CHAR = … COURT_POS = … }game/common/scripted_triggers/00_court_position_triggers.txt, line 211 (20 lines). Parameters: $CHAR$, $COURT_POS$.
can_appoint_char_to_court_position is a scripted trigger in Crusader Kings III, written at line 211 of its file. A call passes 2 parameters: CHAR and COURT_POS. The game's script calls it in 43 places, among them Grand Tournament (activity), Hunt (activity) and … Passes …! (event chariot_race.3030). Patch 1.20.1.2, from game/common/scripted_triggers/00_court_position_triggers.txt.
The comment above it in the file
IMPORTANT: This should be used before most instances of appoint_court_position - CU Checks that you can employ a specific character to a specific court position at a given moment. This prevents errors from randomly trying to already hire the holder of that court position in some cases. Trigger should be used in the scope of the hiring liege $COURT_POS$ is the position to which you want to appoint a character $CHAR$ is the character you wish to appoint
What it checks
One of these
can_employ_court_position_type = $COURT_POS$or
Employs a $COURT POS$
$CHAR$ = { … }
• 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)
can_appoint_char_to_court_position = {
save_temporary_scope_as = hiring_liege
OR = { # can_employ_court_position_type will return false if we have the maximum amount of character for a given slot (like 2 bodyguard)
can_employ_court_position_type = $COURT_POS$
employs_court_position = $COURT_POS$
}
$CHAR$ = {
this != scope:hiring_liege
NOT = { has_court_position = $COURT_POS$ }
would_be_valid_for_court_position = {
court_position = $COURT_POS$
employer = scope:hiring_liege
}
trigger_if = {
limit = { is_ruler = yes }
liege ?= scope:hiring_liege
liege != this
}
}
}As written in game/common/scripted_triggers/00_court_position_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls can_appoint_char_to_court_position.
Activities (2)
Events (31)
- … Passes …!
chariot_race.3030 - …: … is in Trouble!
ep3_laamp_decision_event.1037 - …: the Armorer
ep3_laamp_decision_event.1063 - …: the Bodyguard
ep3_laamp_decision_event.1057 - …: The Hapless …
ep2_tournament_events.3503 - …: the Physician
ep3_laamp_decision_event.1047
25 more
- …: the Quartermaster
ep3_laamp_decision_event.1067 - …: the Training Grounds
ep3_laamp_decision_event.1051 - A Hunt Master
hunt.0540 - A Little Language
court.9500 - A Place at Court
hold_court.8090 - An Unconventional Preacher
hold_court.3010 - An Unlikely Triumph
chariot_race.3050 - Beware!
hunt.8060 - Borrowed Coin
tournament_events.1321 - Caravan Master
travel_events.1010 - Catching a Break
travel_events.2040 - Dynastic Duties
ach_coronation.0018 - Fireside Tales
fp2_yearly.4008 - From Beyond the Border
hold_court.6030 - I Need a Hero
court.4751 - Laughs Requested
hold_court.3040 - My Champion Charioteer
ep3_decisions_event.1000 - My Homesick …
court.3040 - Opportunity in Libation
coronation_events.1017 - Royal Service
hold_court.8050 - Scraping the Barrel
minor_decisions.0003 - The Feast of Fools
cultural_festival.3071 - The Gallant …
court.5060 - Where Is my Hermit?
travel_events.3062 - Year of the …
feast_tsagaan_sar_events.0290
Scripted effects (9)
Scripted triggers (1)
Source: game/common/scripted_triggers/00_court_position_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.