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

Scripted effect

attempted_murder_opinion_effect

attempted_murder_opinion_effect = { MURDERER = … VICTIM = … }

game/common/scripted_effects/00_murder_effects.txt, line 641 (76 lines). Parameters: $MURDERER$, $VICTIM$.

attempted_murder_opinion_effect is a scripted effect in Crusader Kings III, written at line 641 of its file. A call passes 2 parameters: MURDERER and VICTIM. The game's script calls it in 23 places, among them … Guile (event bp1_yearly.8131), …: Murder Rival (event tournament_events.6011) and …: Murder Rival (event tournament_events.6012). Patch 1.20.1.2, from game/common/scripted_effects/00_murder_effects.txt.

What it does

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

The script as written (76 lines of game script)
attempted_murder_opinion_effect = {
	$VICTIM$ = {
		if = {
			limit = { is_alive = yes }
			add_opinion = {
				target = $MURDERER$
				modifier = attempted_murder_me_crime
			}
			hidden_effect = {
				add_opinion = {
					target = $MURDERER$
					modifier = murder_personal_grudge_opinion
					years = 2
				}
			}
		}

		every_spouse = {
			limit = { NOT = { this = $MURDERER$ } }
			add_to_temporary_list = close_family_murder_opinion_list
		}
		every_close_family_member = {
			limit = { NOT = { this = $MURDERER$ } }
			add_to_temporary_list = close_family_murder_opinion_list
		}

		if = {
			limit = {
				any_in_list = {
					list = close_family_murder_opinion_list
					count >= 1
					NOT = {
						is_scheming_against = {
							target = $VICTIM$
							type = murder
						}
					}
				}
			}
			every_in_list = {
				list = close_family_murder_opinion_list
				limit = {
					NOT = {
						is_scheming_against = {
							target = $VICTIM$
							type = murder
						}
					}
				}
				custom = all_close_family_and_spouses
				add_opinion = {
					target = $MURDERER$
					modifier = attempted_murder_close_family_crime
					years = 20
				}
			}
		}

		if = {
			limit = {
				exists = house
				exists = $MURDERER$.house
			}
			house = {
				change_house_relation_effect = {
					HOUSE = $MURDERER$.house
					VALUE = house_relation_damage_medium_value
					REASON = murder_attempt
					CHAR = $MURDERER$
					TARGET_CHAR = $VICTIM$
					TITLE = scope:dummy_gender
				}
			}
		}
	}
}

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

Where it is used

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

Events (18)

12 more

Scripted effects inside an event file (1)

  • yearly_1081_reveal_guilt_effect

History files (the start of the game) (1)

  • easteregg_fenni_johansson (characters)

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