Scripted effect
recruit_to_entourage_court_and_activity_effect
recruit_to_entourage_court_and_activity_effect = { CHAR_TO_ADD = … NEW_COURT_OWNER = … }game/common/scripted_effects/00_activity_effects.txt, line 4549 (43 lines). Parameters: $CHAR_TO_ADD$, $NEW_COURT_OWNER$.
recruit_to_entourage_court_and_activity_effect is a scripted effect in Crusader Kings III, written at line 4549 of its file. A call passes 2 parameters: CHAR_TO_ADD and NEW_COURT_OWNER. The game's script calls it in 3 places, among them … A Matter of Safety (event pilgrimage.2003), A Skillful Courtier (event pilgrimage.6780) and The Feast of Fools (event cultural_festival.3071). Patch 1.20.1.2, from game/common/scripted_effects/00_activity_effects.txt.
The comment above it in the file
"You recruit X to your Court"
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (43 lines of game script)
recruit_to_entourage_court_and_activity_effect = {
#If the character is a pool character
$NEW_COURT_OWNER$ = {
if = {
limit = {
#Pool characters get automatically added as courtiers
$CHAR_TO_ADD$ = { is_pool_character = yes }
}
show_as_tooltip = { add_courtier = $CHAR_TO_ADD$ } #This already happens with add_companion
hidden_effect = { # This must go above activity effect, or they will try and make their own travel plan!
if = {
limit = { $CHAR_TO_ADD$ = { NOT = { exists = current_travel_plan } } }
current_travel_plan ?= { add_companion = $CHAR_TO_ADD$ }
}
}
if = {
limit = { exists = involved_activity }
$CHAR_TO_ADD$ = { add_to_activity = $NEW_COURT_OWNER$.involved_activity }
}
}
#If the character is NOT a pool character
else = {
if = {
limit = {
$CHAR_TO_ADD$ = {
NOT = { is_courtier_of = $NEW_COURT_OWNER$ }
}
}
add_courtier = $CHAR_TO_ADD$
}
hidden_effect = { # This must go above activity effect, or they will try and make their own travel plan!
if = {
limit = { $CHAR_TO_ADD$ = { NOT = { exists = current_travel_plan } } }
current_travel_plan ?= { add_companion = $CHAR_TO_ADD$ }
}
}
if = {
limit = { exists = involved_activity }
$CHAR_TO_ADD$ = { add_to_activity = $NEW_COURT_OWNER$.involved_activity }
}
}
}
}As written in game/common/scripted_effects/00_activity_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls recruit_to_entourage_court_and_activity_effect.
Events (3)
- … A Matter of Safety
pilgrimage.2003 - A Skillful Courtier
pilgrimage.6780 - The Feast of Fools
cultural_festival.3071
Source: game/common/scripted_effects/00_activity_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.