Scripted effect
add_to_court_and_entourage_effect
add_to_court_and_entourage_effect = yesgame/common/scripted_effects/00_activity_effects.txt, line 4432 (38 lines). No parameters.
add_to_court_and_entourage_effect is a scripted effect in Crusader Kings III, written at line 4432 of its file. It takes no parameters: add_to_court_and_entourage_effect = yes. The game's script calls it in 30 places, among them … Washed Up (event pilgrimage.2050), …: Be A …! (event tournament_events.7000) and A Band of Two (event travel_events_bp3.50). Patch 1.20.1.2, from game/common/scripted_effects/00_activity_effects.txt.
What it does
If
scope:companion:NOT = { is_courtier_of = root }
Then
- You:
add_courtier = scope:companion
If
root.current_travel_plan ?= { … }
Then
root.current_travel_plan = { add_companion = scope:companion }
If
scope:activity:- No attending character:
scope:companion:can_join_activity = scope:activity
Then
scope:companion:add_to_activity = scope:activity
• 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 (38 lines of game script)
add_to_court_and_entourage_effect = {
save_scope_as = companion
if = {
limit = {
scope:companion = {
NOT = {
is_courtier_of = root
}
}
}
root = {
add_courtier = scope:companion
}
}
if = {
limit = {
root.current_travel_plan ?= {
NOT = {
any_entourage_character = { this = scope:companion }
}
}
}
root.current_travel_plan = { add_companion = scope:companion }
}
if = {
limit = {
scope:activity ?= {
NOT = {
any_attending_character = { this = scope:companion }
}
scope:companion = { can_join_activity = scope:activity }
}
}
scope:companion = {
add_to_activity = scope: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 add_to_court_and_entourage_effect.
Events (24)
- … Washed Up
pilgrimage.2050 - …: Be A …!
tournament_events.7000 - A Band of Two
travel_events_bp3.50 - A Broken Blacksmith
travel_events_oltner_2.1120 - A Foreign Treat
travel_events.3030 - A Talented Wanderer
host_dinner_events.3110
18 more
- A Travelling …
rite_travel_events.1000 - Dreams Brewing
travel_events_bp3.75 - ep3_travel_option_events.0004
- Equine Emissaries
travel_events_oltner_2.1050 - Life Among the Ruins
tgp_travel_danger_events.0001 - Oasis of Tranquility
travel_events_oltner_2.1040 - Peculiar Accent
cultural_festival.4000 - Purse Pursuit
travel_events_bp3.65 - Scout for Talent: A Willing Follower
ep3_travel_option_events.0001 - Sentry of the Silent Dunes
travel_events_oltner_2.1090 - The … of …
bp3_journey.2200 - The Horse Healer
travel_events_oltner_2.1070 - The Mercenaries of …
travel_events_bp3.30 - The Riders of …
feast_tsagaan_sar_events.0253 - The Sentinel …
travel_events_oltner_2.1130 - The Songs of …
travel_events_bp3.15 - The Teacher of Knights
travel_events_bp3.35 - The Wandering Knight
travel_events_bp3.45
Scripted effects inside an event file (1)
- runaway_found_effect
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.