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

Scripted effect

set_while_counter_variable_effect

set_while_counter_variable_effect = yes

game/common/scripted_effects/00_while_loop_effects.txt, line 12 (6 lines). No parameters.

set_while_counter_variable_effect is a scripted effect in Crusader Kings III, written at line 12 of its file. It takes no parameters: set_while_counter_variable_effect = yes. The game's script calls it in 4 places, among them An Unexpected Visit (event yearly.1040), Hospitality (event diplomacy_foreign_special.1017) and yearly.5030 (event). Patch 1.20.1.2, from game/common/scripted_effects/00_while_loop_effects.txt.

The comment above it in the file

3 effects for managing while loops with counter

What it does

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

The script as written (6 lines of game script)
set_while_counter_variable_effect = {
	set_variable = {
		name = while_counter
		value = 0
	}
}

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

Where it is used

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

Events (3)

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