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

set_family_accomplishment_effect

set_family_accomplishment_effect = { ACCOMPLISHMENT = … }

game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt, line 2397 (27 lines). Parameters: $ACCOMPLISHMENT$.

set_family_accomplishment_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 2397 of its file. A call passes 1 parameter: ACCOMPLISHMENT. The game's script calls it in 6 places, among them The Dynastic Cycle (situation), on_set_relation_disciple (on action) and on_set_relation_elder (on action). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt.

The comment above it in the file

Effect to keep track of family accomplishments for the Ancestral Gate domicile building

What it does

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

The script as written (27 lines of game script)
set_family_accomplishment_effect = {
	# ACCOMPLISHMENT = the accomplishment you want to save
	if = {
		limit = {
			NOT = { has_variable = $ACCOMPLISHMENT$ }
		}
		set_variable = {
			name = $ACCOMPLISHMENT$
			value = yes
		}
		if = {
			limit = {
				has_variable = family_accomplishments
			}
			change_variable = {
				name = family_accomplishments
				add = 1
			}
		}
		else = {
			set_variable = {
				name = family_accomplishments
				value = 1
			}
		}
	}
}

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

Where it is used

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

Situations (1)

On actions (the game's own hooks) (3)

  • on_set_relation_disciple
  • on_set_relation_elder
  • on_title_gain

Scripted effects (1)

Domiciles (1)

  • east_asian_estate_gate_01

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