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

Scripted effect

add_kinslayer_trait_or_nothing_effect

add_kinslayer_trait_or_nothing_effect = { VICTIM = … }

game/common/scripted_effects/00_secret_effects.txt, line 433 (66 lines). Parameters: $VICTIM$.

add_kinslayer_trait_or_nothing_effect is a scripted effect in Crusader Kings III, written at line 433 of its file. A call passes 1 parameter: VICTIM. The game's script calls it in 15 places, among them Trial-by-Combat (interaction), A Disgrace to the Gods (event fp1_jomsvikings.0041) and A Long Awaited Coup: Gleaming Swords (event diarchy.9021). Patch 1.20.1.2, from game/common/scripted_effects/00_secret_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 (66 lines of game script)
add_kinslayer_trait_or_nothing_effect = {
	save_scope_as = slayer
	if = {
		limit = {
			murdering_character_is_kinslaying_in_my_or_same_dynasty_lieges_rite_trigger = { CHARACTER = $VICTIM$ }
		}
		if = {
			limit = {
				is_available_quick = { advanced_ruler = yes }
				NOT = { knows_doctrine = doctrine_kinslaying_accepted }
			}
			add_known_doctrine = doctrine_kinslaying_accepted
		}
		if = {
			limit = {
				is_close_family_of = $VICTIM$
			}
			if = {
				limit = { this = scope:slayer }
				set_trait_rank = {
					trait = kinslayer
					rank = 3
				}
				remove_piety_level_for_shunned_or_criminal_trait_effect = { TRAIT = trait:kinslayer_3 }
			}
			else = {
				add_trait_force_tooltip = kinslayer_3 #This is to make sure trait appears in notification messages for other characters
			}
			shunned_or_criminal_sf_impact_effect = { TRAIT = trait:kinslayer_3 }
		}
		else_if = {
			limit = {
				is_extended_family_of = $VICTIM$
			}
			if = {
				limit = { this = scope:slayer }
				set_trait_rank = {
					trait = kinslayer
					rank = 2
				}
				remove_piety_level_for_shunned_or_criminal_trait_effect = { TRAIT = trait:kinslayer_2 }
			}
			else = {
				add_trait_force_tooltip = kinslayer_2 #This is to make sure trait appears in notification messages for other characters
			}
			shunned_or_criminal_sf_impact_effect = { TRAIT = trait:kinslayer_2 }
		}
		else_if = {
			limit = {
				dynasty ?= $VICTIM$.dynasty
			}
			if = {
				limit = { this = scope:slayer }
				set_trait_rank = {
					trait = kinslayer
					rank = 1
				}
				remove_piety_level_for_shunned_or_criminal_trait_effect = { TRAIT = trait:kinslayer_1 }
			}
			else = {
				add_trait_force_tooltip = kinslayer_1 #This is to make sure trait appears in notification messages for other characters
			}
			shunned_or_criminal_sf_impact_effect = { TRAIT = trait:kinslayer_1 }
		}
	}
}

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

Where it is used

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

Character interactions (1)

Scripted effects inside an event file (3)

  • diarchy_9021_liege_successful_effect
  • diarchy_9021_usurper_successful_effect
  • work_out_wounds_or_death_effect

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