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

Scripted effect

diarch_interaction_set_or_update_global_variable_effect

diarch_interaction_set_or_update_global_variable_effect = { VARIABLE = … }

game/common/scripted_effects/00_diarchy_scripted_effects.txt, line 36 (20 lines). Parameters: $VARIABLE$.

diarch_interaction_set_or_update_global_variable_effect is a scripted effect in Crusader Kings III, written at line 36 of its file. A call passes 1 parameter: VARIABLE. The game's script calls it in 19 places, among them … Imprison (interaction), … Retract Vassal (interaction) and … Revoke Title (interaction). Patch 1.20.1.2, from game/common/scripted_effects/00_diarchy_scripted_effects.txt.

The comment above it in the file

These two effects exist to allow quantitative tracking of how many characters in the world are actually using diarch interactions & in what numbers mid-game — left in case Design needs to do more frequency checking & doesn't want to re-script everything.

What it does

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

The script as written (20 lines of game script)
diarch_interaction_set_or_update_global_variable_effect = {
	if = {
		limit = { always = no }
		if = {
			limit = {
				NOT = { exists = global_var:$VARIABLE$ }
			}
			set_global_variable = {
				name = $VARIABLE$
				value = 1
			}
		}
		else = {
			change_global_variable = {
				name = $VARIABLE$
				add = 1
			}
		}
	}
}

As written in game/common/scripted_effects/00_diarchy_scripted_effects.txt.

Where it is used

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

Source: game/common/scripted_effects/00_diarchy_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?