Death modding

From Crusader Kings II Wiki
Jump to: navigation, search

As of patch 2.6, death reasons and text displayed on sucession screen have become moddable.

Death reasons[edit]

Death reasons are defined in folder common/death/.

The format is:

<death_reason> = {
	long_desc = DEATH_REASON_DESC
	sound_list = {
		female = {
			"female_violent_death_01"
		}
		male = {
			"male_violent_death_01"
		}
	}
}

All are optionals, except for long_desc:

Configuration key Type Description
violent bool
long_desc key Localization key. Ex: DEATH_BY_MURDER_UNKNOWN (died under suspicious circumstances).
  • In case a killer is specified(e.g. death = { death_reason = death_battle killer = FROM}), the variable $KILLER$ will have its name.
  • death_trait is a bit special, as it will inject variable $TRAIT_DEATH$ in localization, with the <trait_name>_death text, defined for traits that reduce heath.
can_nokiller bool
murder_unknown bool
sound_list list<sfx> Female and male lists of death sounds.
  • For custom death sounds, sound files are placed in the sound folder and referenced by sound.sfx, within the interface folder.
execution bool

Execution methods[edit]


Succession screen[edit]

Some flavor text appears on succession screen with:

  • an epitaph of deceased ruler
  • a presentation of the heir

This is configured in common/death_text and common/heir_text respectively.

death_text_proud = {
	weight_multiplier = {
		factor = 10
	
		modifier = {
			factor = 0
			OR = {
				NOT = { trait = proud }
				is_wicked = no
			}
		}
	}
}
heir_text_traits_falconer = {
	weight_multiplier = {
		factor = 25
	
		modifier = {
			factor = 0
			is_adult = no
		}
		modifier = {
			factor = 0
			NOT = {
				trait = falconer
			}
		}
	}
}
Modding
Common
Gfx/Sfx/localisation