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

Scripted effect

increment_global_variable_effect

increment_global_variable_effect = { VAL = … VAR = … }

game/common/scripted_effects/00_debug_and_shortcut_effects.txt, line 39 (17 lines). Parameters: $VAL$, $VAR$.

increment_global_variable_effect is a scripted effect in Crusader Kings III, written at line 39 of its file. A call passes 2 parameters: VAL and VAR. The game's script calls it in 69 places, among them Iranian Intermezzo (struggle), … Tithe (event ep3_laamp_flavour_ewan.4041) and A Friendly Clamor (event ep3_laamp_flavour_ewan.0051). Patch 1.20.1.2, from game/common/scripted_effects/00_debug_and_shortcut_effects.txt.

The comment above it in the file

Easily set-or-add to a _global_ variable - generally only for use in logging.

What it does

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

The script as written (17 lines of game script)
increment_global_variable_effect = {
	if = {
		limit = {
			NOT = { exists = global_var:$VAR$ }
		}
		set_global_variable = {
			name = $VAR$
			value = $VAL$
		}
	}
	else = {
		change_global_variable = {
			name = $VAR$
			add = $VAL$
		}
	}
}

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

Where it is used

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

Struggles (1)

  • Iranian Intermezzo

Events (66)

60 more

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