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

Scripted effect

torture_memory_effect

torture_memory_effect = { TORTURER = … TYPE = … VICTIM = … }

game/common/scripted_effects/00_interaction_effects.txt, line 5625 (38 lines). Parameters: $TORTURER$, $TYPE$, $VICTIM$.

torture_memory_effect is a scripted effect in Crusader Kings III, written at line 5625 of its file. A call passes 3 parameters: TORTURER, TYPE and VICTIM. The game's script calls it in 6 places, among them blind_recipient_effect (scripted effect), disfigure_recipient_effect (scripted effect) and ep3_child_castration_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_interaction_effects.txt.

What it does

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

The script as written (38 lines of game script)
torture_memory_effect = {
	$VICTIM$ = {
		create_character_memory = {
			type = tortured_memory
			participants = { torturer = $TORTURER$ }
		}
		ordered_memory = {
			memory_type = tortured_memory
			limit = {
				any_memory_participant = { this = $TORTURER$ }
			}
			order_by = memory_creation_date
			save_scope_as = tortured_memory
			set_variable = {
				name = type
				value = flag:$TYPE$
			}
		}
	}
	$TORTURER$ = {
		create_character_memory = {
			type = torturer_memory
			participants = { victim = $VICTIM$ }
		}
		ordered_memory = {
			memory_type = torturer_memory
			limit = {
				any_memory_participant = { this = $VICTIM$ }
			}
			order_by = memory_creation_date
			save_scope_as = torturer_memory
			set_variable = {
				name = type
				value = flag:$TYPE$
			}
		}
	}
}

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

Where it is used

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

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