CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

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

• 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)

3 more

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.

Spotted a mistake on this page?