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

Scripted effect

inform_liege_about_wound_treatment_effect

inform_liege_about_wound_treatment_effect = { OUTCOME = … TREATMENT = … }

game/common/scripted_effects/20_health_effects.txt, line 4148 (50 lines). Parameters: $OUTCOME$, $TREATMENT$.

inform_liege_about_wound_treatment_effect is a scripted effect in Crusader Kings III, written at line 4148 of its file. A call passes 2 parameters: OUTCOME and TREATMENT. The game's script calls it in 1 place, among them Wounded: Disaster Strikes (event health.4105). Patch 1.20.1.2, from game/common/scripted_effects/20_health_effects.txt.

What it does

Every line of it is script with no tooltip text: the script is below.

The script as written (50 lines of game script)
inform_liege_about_wound_treatment_effect = {
	hidden_effect = {
		save_scope_value_as = {
			name = treatment
			value = flag:$TREATMENT$
		}
		save_scope_value_as = {
			name = outcome
			value = flag:$OUTCOME$
		}
		
		
		#Is liege generally responsible for our treatment?
		if = {
			limit = { liege_is_responsible_for_treatment_trigger = yes }

			#Success and minor failure: no message
			#Major failure and death: event

			liege = {
				#RISKY FAILURE
				if = {
					limit = {
						scope:outcome = flag:failure
						scope:treatment = flag:risky
					}
					save_scope_value_as = {
						name = disease_or_wound
						value = flag:wound
					}
					trigger_event = health.3200
				}
				#RISKY DEATH
				else_if = {
					limit = { scope:outcome = flag:death }
					
					save_scope_value_as = {
						name = disease_or_wound
						value = flag:wound
					}
					add_character_flag = {
						flag = sent_relevant_death_event #This blocks further death events triggered by death_management.0001
						days = 5
					}
					trigger_event = health.3200
				}
			}
		}
	}
}

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

Where it is used

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

Events (1)

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?