Scripted effect
increase_wounds_no_death_effect
increase_wounds_no_death_effect = { REASON = … }game/common/scripted_effects/20_health_effects.txt, line 1101 (206 lines). Parameters: $REASON$.
increase_wounds_no_death_effect is a scripted effect in Crusader Kings III, written at line 1101 of its file. A call passes 1 parameter: REASON. The game's script calls it in 149 places, among them courtiers_got_into_fight (activity pulse), guest_brawl (activity pulse) and … …: A Handy Option (event ep2_tournament_events.0011). Patch 1.20.1.2, from game/common/scripted_effects/20_health_effects.txt.
What it does
- If fragile Bones (fragile bones) experience at least 50:
change_trait_rank = { trait = wounded rank = 3 max = 3 }
- Else, if has the Trait: Fragile Bones:
change_trait_rank = { trait = wounded rank = 2 max = 3 }
- Otherwise:
change_trait_rank = { trait = wounded rank = 1 max = 3 }
If
scope:exaltation_of_pain_wounded_spiritual_fulfillment = yeshas_trait_rank = { trait = wounded rank = 1 }
Then
- If played by a person: Spiritual fulfillment +3
- Otherwise: Spiritual fulfillment +3
Else if
scope:exaltation_of_pain_wounded_spiritual_fulfillment = yeshas_trait_rank = { trait = wounded rank = 2 }
Then
- If played by a person: Spiritual fulfillment +5
- Otherwise: Spiritual fulfillment +5
Else if
scope:exaltation_of_pain_wounded_spiritual_fulfillment = yeshas_trait_rank = { trait = wounded rank = 3 }
Then
- If played by a person: Spiritual fulfillment +10
- Otherwise: Spiritual fulfillment +10
- If the Personal Tenets unlock tenet mortification suffering sanctifies:
If
NOT = { scope:treatment_type = flag:treatment }
Then
Else if
has_trait_rank = { trait = wounded rank = 2 }has_recent_wound_treatment_trigger = no
Then
- Event health.0102 (after 2–3 days)
Else if
has_trait_rank = { trait = wounded rank = 3 }has_recent_wound_treatment_trigger = no
Then
- Event health.0104 (after 2–3 days)
epilepsy_brain_trauma_risk_effect = { CHANCE = 5 }
• 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 (120 lines of game script)
increase_wounds_no_death_effect = {
save_temporary_scope_value_as = {
name = treatment_type
value = flag:$REASON$
}
save_temporary_scope_value_as = {
name = exaltation_of_pain_wounded_spiritual_fulfillment
value = no
}
if = {
limit = {
has_personal_tenet_flag = tenet_exaltation_of_pain_wounded_spiritual_fulfillment
NOT = {
has_trait_rank = {
trait = wounded
rank = 3
}
}
}
save_temporary_scope_value_as = {
name = exaltation_of_pain_wounded_spiritual_fulfillment
value = yes
}
}
if = {
limit = {
has_trait_xp = { trait = fragile_bones track = fragile_bones value >= 50 }
}
change_trait_rank = {
trait = wounded
rank = 3
max = 3
}
}
else_if = {
limit = {
has_trait = fragile_bones
}
change_trait_rank = {
trait = wounded
rank = 2
max = 3
}
}
else = {
change_trait_rank = {
trait = wounded
rank = 1
max = 3
}
}
if = {
limit = {
scope:exaltation_of_pain_wounded_spiritual_fulfillment = yes
has_trait_rank = {
trait = wounded
rank = 1
}
}
if = {
limit = { is_ai = no }
send_interface_toast = {
type = event_generic_good
title = exaltation_of_pain_wounded_spiritual_fulfillment_toast
left_icon = this
change_spiritual_fulfillment = minor_spiritual_fulfillment_value
}
}
else = {
change_spiritual_fulfillment = minor_spiritual_fulfillment_value
}
}
else_if = {
limit = {
scope:exaltation_of_pain_wounded_spiritual_fulfillment = yes
has_trait_rank = {
trait = wounded
rank = 2
}
}
if = {
limit = { is_ai = no }
send_interface_toast = {
type = event_generic_good
title = exaltation_of_pain_wounded_spiritual_fulfillment_toast
left_icon = this
change_spiritual_fulfillment = medium_spiritual_fulfillment_value
}
}
else = {
change_spiritual_fulfillment = medium_spiritual_fulfillment_value
}
}
else_if = {
limit = {
scope:exaltation_of_pain_wounded_spiritual_fulfillment = yes
has_trait_rank = {
trait = wounded
rank = 3
}
}
if = {
limit = { is_ai = no }
send_interface_toast = {
type = event_generic_good
title = exaltation_of_pain_wounded_spiritual_fulfillment_toast
left_icon = this
change_spiritual_fulfillment = major_spiritual_fulfillment_value
}
}
else = {
change_spiritual_fulfillment = major_spiritual_fulfillment_value
}
}
# PAM - Mortification of the Flesh PT: offer the pain of the flesh to God
if = {As written in game/common/scripted_effects/20_health_effects.txt.
The first 120 of its 206 lines; the rest is in game/common/scripted_effects/20_health_effects.txt from line 1101.
Where it is used
Every place in common/, events/ and history/ that calls increase_wounds_no_death_effect — the first 120 of 149.
Activity pulse actions (2)
- courtiers_got_into_fight
- guest_brawl
Events (118)
- … …: A Handy Option
ep2_tournament_events.0011 - … …: Calculated Gambles
ep2_tournament_events.0010 - … …: Death From Above
ep2_tournament_events.0004 - … …: Feat of Strength
ep2_tournament_events.2006 - … …: Gashed
ep2_tournament_events.4001 - … Blocks Escape
fp1_shieldmaiden.0011
112 more
- … Caravaneers
travel_events.4036 - … Repenting
pilgrimage.2021 - …: Arm and a Leg
ep2_tournament_events.6502 - …: Going for the Throat
ep2_tournament_events.1005 - …: Honor Defended
tournament_events.1407 - …: Mis-loose
ep2_tournament_events.6503 - …: Teetering
pet_animal.0201 - …: The High Ground
ep2_tournament_events.1013 - …: The Loyal Steed
tour_grounds_events.1010 - …: Unhappy Fans
tournament_events.1410 - A Blow, Registered
bp2_yearly.5106 - A Duel Demanded
travel_events.2200 - A Fiery Evening
coronation_events.1013 - A Fiery Night
ep2_wedding.3040 - A Game of Chance
cultural_festival.2070 - A New Perspective
ep2_tournament_events.2506 - A Prospective …
fp1_shieldmaiden.0001 - A Question of Honor
host_dinner_events.3150 - A Ride At Midnight
martial_chivalry.4000 - A Roughing Up
tour_grounds_events.3050 - A Royal Trampling
tour_grounds_events.3009 - A Toast To...
feast.7202 - A Treacherous Tangle
chariot_race.3040 - A Tumbling …
tour_grounds_events.3006 - A Tumbling …
tour_grounds_events.3007 - A Watery Witch
bp1_yearly.9034 - Aristocratic Pretensions
court.8040 - At … Mercy
bp1_yearly.8062 - At My Mercy
bp1_yearly.8060 - Befriend: Friendly Offering
befriend_ongoing.9105 - Beware the Highwaymen!
tour_travel.9010 - bishop.1011
- Blades in the Mist
ep3_story_cycle_harrying.3005 - Brave …
playdate.3012 - Captured Beast
court_yearly.7100 - Challenge Met: House …
fp3_misc_decisions.0041 - Challenge Met: House …
fp3_misc_decisions.0042 - Climbing
playdate.3007 - Compassionate or Sadistic?
bp2_yearly.2160 - Contract: Fight Corruption
ep3_contract_event.0093 - Cornered
nomad_events.0110 - Crimes of Passion
ep3_laamp_flavour_ewan.2091 - Dancing Flames
tgp_japan_yearly_events.1000 - Danger: A Fire in the Night
travel_danger_events.3005 - Danger: A Murder of Crows
travel_events.3160 - Danger: A Quarrelsome Lot
travel_danger_events.5000 - Danger: Aftermath
travel_danger_events.1008 - Danger: Aftermath, Bad Intentions
travel_danger_events.1010 - Danger: Avalanche!
travel_danger_events.3001 - Danger: Fragile Passenger
travel_danger_events.9060 - Danger: On A Mountain Trail
travel_danger_events.3000 - Dangerous Interests
travel_events.3040 - Echoing Horns
travel_events_oltner_2.1150 - Every Parent's Duty
ep3_laamp_flavour_ewan.1091 - feast_main_live_fowl.9003
- Feeding Panic
coronation_events.1014 - For Honor and Glory!
bp2_yearly.5105 - From Above
mpo_hunt.0010 - Full Bellies
feast_main_stew_flood.0043 - Incognito
martial_authority_special.1100 - Into the …: Who's There...?
martial_chivalry.6003 - Just Desserts?
bp1_yearly.9049 - Lay of the Land
ep3_laamps.5035 - Leading by Example
fp1_yearly.0611 - Log Shortage
ep3_camp_party.1035 - Loyalty or Fear
diplomacy_majesty.1020 - Mutiny!
ep3_camp_temperament.0030 - Night Terrors
bp1_yearly.5001 - Night Terrors: Denied Ambitions
bp1_yearly.5002 - Night Terrors: Remus
bp1_yearly.5003 - On Top of the World
hunt.8500 - One Night in …
journey_events.52 - One Night in …
journey_events.55 - pam_generic_events.0007
- pam_holy_myron.0012
- Pikuach Nefesh
pam_secular_faith_events.0002 - Plague Trials: Shame
epidemic_events.1065 - Playing Rough
playdate.3001 - Poachers!
tour_grounds_events.3012 - Precarious Prey
tour_grounds_events.3003 - Predatory Beasts
governor_contract_event.2041 - Predatory Beasts
governor_contract_event.2043 - Prove Your Worth
tgp_japan_yearly_events.0027 - Rare Trinkets
travel_events.4005 - Ready Your Bowstrings
ep3_camp_party.1015 - Reign of Terror: People's Justice
harm.1111 - Rescuer
ep3_contract_event.0570 - Rites of Passage
bp2_decision.0002 - Rites of Passage: Seclusion
bp2_yearly.7024 - Rites of Passage: Seclusion
bp2_yearly.7025 - Rivals' End
travel_events_oltner_2.1220 - Romance: A …'s Honor
court_ongoing.1010 - Single Combat: Defeat!
single_combat.0031 - Single Combat: Victory!
single_combat.0041 - Smuggling Sweets
bp2_yearly.5103 - Snared
hunt.8530 - Snow Day
playdate.3009 - Stampede!
hunt.8570 - Sticky Fingers: Lost
tour_grounds_events.6205 - The Devil's Due
ep3_story_cycle_harrying.3054 - The Dream is Real
wanderer_lifestyle_events.35 - The Duelist Returns
yearly.1051 - The Fanatic
travel_events.4001 - The Final Challenge
tgp_japan_yearly_events.1120 - The Fire Spreading
bp3_survey.1040 - The Great Duelist
yearly.1050 - The Holy Tree
travel_events.4022 - The Language of the People
bp2_adult_education.1010 - The Ruffians in …
bp3_survey.1010 - The Stairway To...
elder_events.1100 - Thundering Feet
playdate.5009 - Till the Bitter End
bp1_yearly.1030
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.