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

Scripted trigger

age_ranked_health_vulnerability_threshold_trigger

age_ranked_health_vulnerability_threshold_trigger = yes

game/common/scripted_triggers/20_health_triggers.txt, line 26 (31 lines). No parameters.

age_ranked_health_vulnerability_threshold_trigger is a scripted trigger in Crusader Kings III, written at line 26 of its file. It takes no parameters: age_ranked_health_vulnerability_threshold_trigger = yes (or no). The game's script calls it in 9 places, among them Internal Trouble: Can't Think (event harm.0532), Internal Trouble: The World Slipping (event harm.0531) and Not So Young: Growing Fragility (event harm.0562). Patch 1.20.1.2, from game/common/scripted_triggers/20_health_triggers.txt.

The comment above it in the file

Will this character suffer age-related health issues, factoring how healthy they actually are vs. what their age is?

What it checks

  • One of these

    • Has the Trait: Infirm
    • or

      Is at least 80 years old
    • or

      All of these

      • Health at most 5
      • Is at least 70 years old
    • or

      All of these

      • Health at most 4
      • Is at least 60 years old
    • or

      All of these

      • Health at most 3
      • Is at least 50 years old
    • or

      All of these

      • Health at most 1
      • Is at least 40 years old
    • or

      All of these

      • Health at most 0
      • Is at least 30 years old
  • Does not have the trait Immortal

• 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 (31 lines of game script)
age_ranked_health_vulnerability_threshold_trigger = {
	OR = {
		# If you're already having problems...
		has_trait = infirm
		# Otherwise, we check health crossed against age.
		## Characters that are this old are vulnerable regardless of health.
		age >= 80
		## Else, the higher your health is, the older you need to be to suffer age-related health problems.
		AND = {
			health <= good_health
			age >= 70
		}
		AND = {
			health <= medium_health
			age >= 60
		}
		AND = {
			health <= fine_health
			age >= 50
		}
		AND = {
			health <= poor_health
			age >= 40
		}
		AND = {
			health <= dying_health
			age >= 30
		}
	}
	NOT = { has_trait_with_flag = is_immortal }
}

As written in game/common/scripted_triggers/20_health_triggers.txt.

Where it is used

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

Scripted triggers inside an event file (3)

  • harm_0001_general_requirements_trigger
  • harm_0541_bad_winter_trigger
  • harm_0631_bonk_enthusiast_trigger

Source: game/common/scripted_triggers/20_health_triggers.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?