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

Scripted effect

save_target_list_as_separate_scopes_effect

save_target_list_as_separate_scopes_effect = { TARGET_LIST = … }

game/common/scripted_effects/00_while_loop_effects.txt, line 34 (56 lines). Parameters: $TARGET_LIST$.

save_target_list_as_separate_scopes_effect is a scripted effect in Crusader Kings III, written at line 34 of its file. A call passes 1 parameter: TARGET_LIST. The game's script calls it in 1 place, among them Of Love and Lust (event intrigue_temptation_special.1003). Patch 1.20.1.2, from game/common/scripted_effects/00_while_loop_effects.txt.

The comment above it in the file

Needs the argument TARGET_LIST with the target_list name

What it does

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

The script as written (56 lines of game script)
save_target_list_as_separate_scopes_effect = {
	random_in_list = {
		list = $TARGET_LIST$
		save_scope_as = target_list_member_a
	}
	random_in_list = {
		list = $TARGET_LIST$
		limit = { scope:target_list_member_a != this }
		save_scope_as = target_list_member_b
	}
	random_in_list = {
		list = $TARGET_LIST$
		limit = {
			NOR = {
				scope:target_list_member_a = this
				scope:target_list_member_b = this
			}
		}
		save_scope_as = target_list_member_c
	}
	random_in_list = {
		list = $TARGET_LIST$
		limit = {
			NOR = {
				scope:target_list_member_a = this
				scope:target_list_member_b = this
				scope:target_list_member_c = this
			}
		}
		save_scope_as = target_list_member_d
	}
	random_in_list = {
		list = $TARGET_LIST$
		limit = {
			NOR = {
				scope:target_list_member_a = this
				scope:target_list_member_b = this
				scope:target_list_member_c = this
				scope:target_list_member_d = this
			}
		}
		save_scope_as = target_list_member_e
	}
	random_in_list = {
		list = $TARGET_LIST$
		limit = {
			NOR = {
				scope:target_list_member_a = this
				scope:target_list_member_b = this
				scope:target_list_member_c = this
				scope:target_list_member_d = this
			}
		}
		save_scope_as = target_list_member_f
	}
}

As written in game/common/scripted_effects/00_while_loop_effects.txt.

Where it is used

Every place in common/, events/ and history/ that calls save_target_list_as_separate_scopes_effect.

Events (1)

Source: game/common/scripted_effects/00_while_loop_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?