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

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 = yes
    • has_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 = yes
    • has_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 = yes
    • has_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

• 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)

112 more

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?