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

Scripted effect

add_failed_treatment_of_kin_opinions_effect

add_failed_treatment_of_kin_opinions_effect = yes

game/common/scripted_effects/20_health_effects.txt, line 3810 (70 lines). No parameters.

add_failed_treatment_of_kin_opinions_effect is a scripted effect in Crusader Kings III, written at line 3810 of its file. It takes no parameters: add_failed_treatment_of_kin_opinions_effect = yes. The game's script calls it in 2 places, among them disease_treatment_results_effect (scripted effect) and wound_treatment_results_effect (scripted effect). 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 (70 lines of game script)
add_failed_treatment_of_kin_opinions_effect = {
#Physician scope is set in the events that reference this effect
	hidden_effect = {
		if = {
			limit = {
				scope:physician = {
					is_alive = yes
				}
				court_physician_available_trigger = yes
				this != scope:physician
			}
			every_close_family_member = {
				add_to_temporary_list = failed_treatment_opinion
			}
			every_heir_title = {
				limit = {
					exists = holder
				}
				holder = {
					if = {
						limit = {
							player_heir = scope:sick_character
							NOT = { is_in_list = failed_treatment_opinion }
						}
						add_to_temporary_list = failed_treatment_opinion
					}
				}
			}
			every_in_list = {
				list = failed_treatment_opinion
				limit = {
					this != scope:physician
				}
				if = {
					limit = {
						scope:sick_character = {
							has_character_flag = die_risky_treatment
							is_alive = no
							has_character_flag = physician_used_wrong_method
							scope:physician = { has_character_modifier = chastised_physician_modifier }
							trigger_if = {
								limit = { has_variable = treatment_strategy }
								OR = {
									var:treatment_strategy = flag:amputation
									var:treatment_strategy = flag:disfigurement
									var:treatment_strategy = flag:eye
									var:treatment_strategy = flag:castration
									var:treatment_strategy = flag:occult
									var:treatment_strategy = flag:occult_cannibal
									var:treatment_strategy = flag:occult_deviant
								}
							}
						}
					}
					
					add_opinion = {
						target = scope:physician
						modifier = botched_treatment_of_kin_crime_opinion
					}
				}
				else = {
					add_opinion = {
						target = scope:physician
						modifier = failed_to_treat_kin_crime_opinion
					}
				}
			}
		}
	}
}

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

Where it is used

Every place in common/, events/ and history/ that calls add_failed_treatment_of_kin_opinions_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?