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

Scripted effect

roaming_tally_variable_effect

roaming_tally_variable_effect = { TYPE = … VALUE = … }

game/common/scripted_effects/00_roaming_effects.txt, line 39 (17 lines). Parameters: $TYPE$, $VALUE$.

roaming_tally_variable_effect is a scripted effect in Crusader Kings III, written at line 39 of its file. A call passes 2 parameters: TYPE and VALUE. The game's script calls it in 21 places, among them Hike (activity), … in … (event bp3_roaming.0110) and A … of Legends (event bp3_roaming.0120). Patch 1.20.1.2, from game/common/scripted_effects/00_roaming_effects.txt.

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)
roaming_tally_variable_effect = {
	if = {
		limit = {
			has_variable = roaming_tally_$TYPE$
		}
		change_variable = {
			name = roaming_tally_$TYPE$
			add = $VALUE$
		}
	}
	else = {
		set_variable = {
			name = roaming_tally_$TYPE$
			value = $VALUE$
		}
	}
}

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

Where it is used

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

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