Scripted effect
add_to_court_and_entourage_only_effect
add_to_court_and_entourage_only_effect = yesgame/common/scripted_effects/00_activity_effects.txt, line 4471 (25 lines). No parameters.
add_to_court_and_entourage_only_effect is a scripted effect in Crusader Kings III, written at line 4471 of its file. It takes no parameters: add_to_court_and_entourage_only_effect = yes. The game's script calls it in 3 places, among them A Party of Peasants (event bp2_adult_education.9100), Raiding Peasants (event governor_contract_event.2031) and The …, United! (event chariot_race.4040). Patch 1.20.1.2, from game/common/scripted_effects/00_activity_effects.txt.
What it does
If
NOT = { is_courtier_of = root }
Then
- You:
add_courtier = scope:companion
• 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 (25 lines of game script)
add_to_court_and_entourage_only_effect = {
save_scope_as = companion
if = {
limit = {
NOT = {
is_courtier_of = root
}
}
root = {
add_courtier = scope:companion
}
}
hidden_effect = {
if = {
limit = {
root.current_travel_plan ?= {
NOT = {
any_entourage_character = { this = scope:companion }
}
}
}
root.current_travel_plan = { add_companion = scope:companion }
}
}
}As written in game/common/scripted_effects/00_activity_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls add_to_court_and_entourage_only_effect.
Events (3)
- A Party of Peasants
bp2_adult_education.9100 - Raiding Peasants
governor_contract_event.2031 - The …, United!
chariot_race.4040
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.