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

Scripted effect · All Under Heaven files

damage_appointment_house_relation_effect

damage_appointment_house_relation_effect = { CANDIDATE = … INVESTOR = … TITLE = … }

game/common/scripted_effects/10_dlc_tgp_house_relation_scripted_effects.txt, line 417 (37 lines). Parameters: $CANDIDATE$, $INVESTOR$, $TITLE$.

damage_appointment_house_relation_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 417 of its file. A call passes 3 parameters: CANDIDATE, INVESTOR and TITLE. The game's script calls it in 2 places, among them Harm Candidacy (interaction) and Influence Candidacy (interaction). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_house_relation_scripted_effects.txt.

The comment above it in the file

Damaging an invested candidate of another noble family

What it does

  • If

    • scope:candidate_temp:
      • Their house:
        • Their house head:
          • top_liege = scope:investor_temp.top_liege
          • Any held title: The … is a Noble Family Title
        • NOT = { scope:investor_temp.house ?= this }
      • has_succession_appointment_investors = scope:title_temp
    • scope:title_temp:
      • place_in_line_of_succession = { target = scope:candidate_temp value <= 5 }

    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 (37 lines of game script)
damage_appointment_house_relation_effect = {
	$TITLE$ ?= { save_temporary_scope_as = title_temp }
	$CANDIDATE$ ?= { save_temporary_scope_as = candidate_temp }
	$INVESTOR$ ?= { save_temporary_scope_as = investor_temp }
	if = {
		limit = {
			scope:candidate_temp ?= {
				NOT = { this = scope:investor_temp }
				house ?= {
					house_head ?= {
						top_liege = scope:investor_temp.top_liege
						any_held_title = { is_noble_family_title = yes }
					}
					NOT = { scope:investor_temp.house ?= this }
				}
				has_succession_appointment_investors = scope:title_temp
			}
			# CANDIDATE IS ACTUALLY MUSCLING IN
			scope:title_temp = {
				place_in_line_of_succession = {
					target = scope:candidate_temp
					value <= 5
				}
			}
		}
		scope:investor_temp.house = {
			change_house_relation_effect = {
				HOUSE = scope:candidate_temp.house
				VALUE = house_relation_damage_minor_value
				REASON = appointment_competition
				CHAR = scope:investor_temp
				TARGET_CHAR = scope:candidate_temp
				TITLE = scope:title_temp
			}
		}
	}
}

As written in game/common/scripted_effects/10_dlc_tgp_house_relation_scripted_effects.txt.

Where it is used

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

Character interactions (2)

Source: game/common/scripted_effects/10_dlc_tgp_house_relation_scripted_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?