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_variable_remove_at_zero_effect

increment_variable_remove_at_zero_effect = { VALUE = … VAR = … }

game/common/scripted_effects/00_debug_and_shortcut_effects.txt, line 24 (13 lines). Parameters: $VALUE$, $VAR$.

increment_variable_remove_at_zero_effect is a scripted effect in Crusader Kings III, written at line 24 of its file. A call passes 2 parameters: VALUE and VAR. The game's script calls it in 1 place, among them mandala_contract_clean_up_location_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_debug_and_shortcut_effects.txt.

What it does

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

The script as written (13 lines of game script)
increment_variable_remove_at_zero_effect = {
	if = {
		limit = { exists = var:$VAR$ }
		change_variable = {
			name = $VAR$
			add = $VALUE$
		}
		if = {
			limit = { var:$VAR$ <= 0 }
			remove_variable = $VAR$
		}
	}
}

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_variable_remove_at_zero_effect.

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?