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

Scripted effect · All Under Heaven files

natural_disaster_death_effect

natural_disaster_death_effect = { VICTIM = … }

game/common/scripted_effects/10_dlc_tgp_natural_disaster_scripted_effects.txt, line 817 (21 lines). Parameters: $VICTIM$.

natural_disaster_death_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 817 of its file. A call passes 1 parameter: VICTIM. The game's script calls it in 3 places, among them …: Last Moments (event natural_disaster.5101), …: Survivor (event natural_disaster.5102) and natural_disaster_death_damage_roll_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_natural_disaster_scripted_effects.txt.

The comment above it in the file

Effect to apply the correct death reason to a killed character

What it does

  • scope:situation › Depending on situation type:
    • When situation type is natural disaster earthquake:
      • $VICTIM$ = { … }
    • When situation type is natural disaster flood:
      • $VICTIM$ = { … }

• 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 (21 lines of game script)
natural_disaster_death_effect = {
	scope:situation = {
		change_variable = {
			name = fatalities
			add = 1
		}
		switch = {
			trigger = situation_type
			natural_disaster_earthquake = {
				$VICTIM$ = {
					death = { death_reason = death_consumed_by_earthquake }
				}
			}
			natural_disaster_flood = {
				$VICTIM$ = {
					death = { death_reason = death_swept_away_by_flash_flood }
				}
			}
		}
	}
}

As written in game/common/scripted_effects/10_dlc_tgp_natural_disaster_scripted_effects.txt.

Where it is used

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

Events (2)

Source: game/common/scripted_effects/10_dlc_tgp_natural_disaster_scripted_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?