Scripted effect
upgrade_infirm_to_incapable_effect
upgrade_infirm_to_incapable_effect = yesgame/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
- Gains the Trait Incapable
log_harm_event_incapability_as_variable_effect = yes
• 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.
Events (17)
- Ailing with Age: Enfeebled
harm.0001 - Broken by Battle
harm.0011 - Ecstasy: A Rollicking Good Time
harm.0631 - Fluid Intake: Some Slight Swelling
harm.0641 - Internal Trouble: The World Slipping
harm.0531 - Mid-Winter Maladies: Quiet & Still
harm.0541
11 more
- Necessary Training: A Chance Blow
harm.0571 - Not So Young: The Descent
harm.0561 - Pickled: A Jolly Good Time
harm.0621 - Playing Tall: A Thud & A Snap
harm.0551 - Rare Solitude: Careless Footing
harm.0581 - Rough Play: Consequences
harm.0601 - Sins of the Family: Best in Breed
harm.0501 - Tasting the Ground: A Little Tumble
harm.0511 - Too Far, Too Fast: Dizzying Heights
harm.0611 - Wave after Wave: Gurgling & Grasping
harm.0521 - Without Care: Death from Above
harm.0591
Scripted effects inside an event file (1)
- harm_0000_physic_rescue_chance_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.