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

Scripted effect

force_assign_character_to_random_agent_slot_effect

force_assign_character_to_random_agent_slot_effect = { CHAR = … SCHEME = … YEARS = … }

game/common/scripted_effects/00_scheme_scripted_effects.txt, line 21 (18 lines). Parameters: $CHAR$, $SCHEME$, $YEARS$.

force_assign_character_to_random_agent_slot_effect is a scripted effect in Crusader Kings III, written at line 21 of its file. A call passes 3 parameters: CHAR, SCHEME and YEARS. The game's script calls it in 5 places, among them … Revenge (event bp1_yearly.8140), bp1_house_feud.9500 (event) and The Jealous … (event diplomacy_family.2250). Patch 1.20.1.2, from game/common/scripted_effects/00_scheme_scripted_effects.txt.

What it does

Every line of it is script with no tooltip text: the script is below.

The script as written (18 lines of game script)
force_assign_character_to_random_agent_slot_effect = {
	$SCHEME$ = {
		random_scheme_agent_slot = {
			limit = {
				is_filled = no
				save_temporary_scope_as = slot_temp
				$CHAR$ = { is_valid_as_agent_in_slot = scope:slot_temp }
			}
			save_scope_as = valid_slot
		}
	}
	$CHAR$ = {
		force_add_to_agent_slot = {
			agent_slot = scope:valid_slot
			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 force_assign_character_to_random_agent_slot_effect.

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?