Scripted effect
try_to_force_assign_character_to_random_agent_slot_effect
try_to_force_assign_character_to_random_agent_slot_effect = { CHAR = … SCHEME = … YEARS = … }game/common/scripted_effects/00_scheme_scripted_effects.txt, line 8 (12 lines). Parameters: $CHAR$, $SCHEME$, $YEARS$.
try_to_force_assign_character_to_random_agent_slot_effect is a scripted effect in Crusader Kings III, written at line 8 of its file. A call passes 3 parameters: CHAR, SCHEME and YEARS. The game's script calls it in 9 places, among them 'Haunted' Manor: a Way Forward (event travel_events.2018), Even … Fears Me (event intrigue_dread.2001) and Help (event intrigue_scheme_ongoing.1009). Patch 1.20.1.2, from game/common/scripted_effects/00_scheme_scripted_effects.txt.
What it does
If
$CHAR$ = { is_valid_as_agent_in_any_slot = $SCHEME$ }
Then
force_assign_character_to_random_agent_slot_effect = { SCHEME = $SCHEME$ CHAR = $CHAR$ YEARS = $YEARS$ }
• 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 (12 lines of game script)
try_to_force_assign_character_to_random_agent_slot_effect = {
if = {
limit = {
$CHAR$ = { is_valid_as_agent_in_any_slot = $SCHEME$ }
}
force_assign_character_to_random_agent_slot_effect = {
SCHEME = $SCHEME$
CHAR = $CHAR$
YEARS = $YEARS$
}
}
}As written in game/common/scripted_effects/00_scheme_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls try_to_force_assign_character_to_random_agent_slot_effect.
Events (9)
- 'Haunted' Manor: a Way Forward
travel_events.2018 - Even … Fears Me
intrigue_dread.2001 - Help
intrigue_scheme_ongoing.1009 - Inspiration: Not the Bees!
fund_inspiration.6507 - Life or Death
travel_events.2100 - Rule of the Sword
claim_throne_ongoing.1007
3 more
- Trimming the Dynasty
diplomacy_family.2300 - Welcome Home!
bp1_yearly.1081 - Winging It
court.7700
Source: game/common/scripted_effects/00_scheme_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.