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

Scripted effect

upgrade_infirm_to_incapable_effect

upgrade_infirm_to_incapable_effect = yes

game/common/scripted_effects/20_health_effects.txt, line 4248 (13 lines). No parameters.

upgrade_infirm_to_incapable_effect is a scripted effect in Crusader Kings III, written at line 4248 of its file. It takes no parameters: upgrade_infirm_to_incapable_effect = yes. The game's script calls it in 18 places, among them Ailing with Age: Enfeebled (event harm.0001), Broken by Battle (event harm.0011) and Ecstasy: A Rollicking Good Time (event harm.0631). Patch 1.20.1.2, from game/common/scripted_effects/20_health_effects.txt.

The comment above it in the file

Remove infirm when adding incapable so that the player doesn't just immediately die.

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 (13 lines of game script)
upgrade_infirm_to_incapable_effect = {
	# Stealthily remove infirm
	hidden_effect = {
		if = {
			limit = { has_trait = infirm }
			remove_trait = infirm
		}
	}
	# And add in capable.
	add_trait = incapable
	# Logging.
	log_harm_event_incapability_as_variable_effect = yes
}

As written in game/common/scripted_effects/20_health_effects.txt.

Where it is used

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

Source: game/common/scripted_effects/20_health_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?