Scripted effect · The Royal Court files
employ_character_as_position_in_current_scope_camp_effect
employ_character_as_position_in_current_scope_camp_effect = { CHARACTER = … POSITION = … }game/common/scripted_effects/00_ep1_hold_court_effects.txt, line 67 (23 lines). Parameters: $CHARACTER$, $POSITION$.
employ_character_as_position_in_current_scope_camp_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 67 of its file. A call passes 2 parameters: CHARACTER and POSITION. The game's script calls it in 3 places, among them hire_for_court_position_journey_laamp_replacement_effect (scripted effect), hire_for_two_court_position_journey_laamp_replacement_effect (scripted effect) and journey_employ_in_camp_position (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_ep1_hold_court_effects.txt.
The comment above it in the file
hire scope as position but for laamps
What it does
If
can_appoint_char_to_court_position = { CHAR = $CHARACTER$ COURT_POS = $POSITION$_camp_officer }
Then
If
$CHARACTER$ = { is_pool_guest = yes }
Then
add_courtier = $CHARACTER$
camp_officer_grant_effect = { EMPLOYER = scope:current_scope POS = $POSITION$ CANDIDATE = $CHARACTER$ }
• 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 (23 lines of game script)
employ_character_as_position_in_current_scope_camp_effect = {
save_scope_as = current_scope
if = {
limit = {
can_appoint_char_to_court_position = {
CHAR = $CHARACTER$
COURT_POS = $POSITION$_camp_officer
}
}
#If character isn't already in your court, but a wandering guest, you recruit them
if = {
limit = {
$CHARACTER$ = { is_pool_guest = yes }
}
add_courtier = $CHARACTER$
}
camp_officer_grant_effect = {
EMPLOYER = scope:current_scope
POS = $POSITION$
CANDIDATE = $CHARACTER$
}
}
}As written in game/common/scripted_effects/00_ep1_hold_court_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls employ_character_as_position_in_current_scope_camp_effect.
Source: game/common/scripted_effects/00_ep1_hold_court_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.