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

Scripted effect · All Under Heaven files

update_modified_movement_power_effect

update_modified_movement_power_effect = yes

game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt, line 1600 (80 lines). No parameters.

update_modified_movement_power_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 1600 of its file. It takes no parameters: update_modified_movement_power_effect = yes. The game's script calls it in 1 place, among them The Dynastic Cycle (situation). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt.

The comment above it in the file

update the variables on yearly pulse towards 0 and remove it if they reach it

What it does

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

The script as written (80 lines of game script)
update_modified_movement_power_effect = {
	if = {
		limit = {
			exists = var:movement_power_increased_scheme
		}
		change_variable = {
			name = movement_power_increased_scheme
			add = movement_power_increased_scheme_decay_value
		}
		if = {
			limit = { var:movement_power_increased_scheme <= 0 }
			remove_variable = movement_power_increased_scheme
		}
	}
	if = {
		limit = {
			exists = var:movement_power_decreased_scheme
		}
		change_variable = {
			name = movement_power_decreased_scheme
			add = movement_power_decreased_scheme_decay_value
		}
		if = {
			limit = { var:movement_power_decreased_scheme >= 0 }
			remove_variable = movement_power_decreased_scheme
		}
	}
	if = {
		limit = {
			exists = var:movement_power_increased_event
		}
		change_variable = {
			name = movement_power_increased_event
			add = movement_power_increased_event_decay_value
		}
		if = {
			limit = { var:movement_power_increased_event <= 0 }
			remove_variable = movement_power_increased_event
		}
	}
	if = {
		limit = {
			exists = var:movement_power_decreased_event
		}
		change_variable = {
			name = movement_power_decreased_event
			add = movement_power_decreased_event_decay_value
		}
		if = {
			limit = { var:movement_power_decreased_event >= 0 }
			remove_variable = movement_power_decreased_event
		}
	}
	if = {
		limit = {
			exists = var:movement_power_increased_petition
		}
		change_variable = {
			name = movement_power_increased_petition
			add = movement_power_increased_petition_decay_value
		}
		if = {
			limit = { var:movement_power_increased_petition <= 0 }
			remove_variable = movement_power_increased_petition
		}
	}
	if = {
		limit = {
			exists = var:movement_power_decreased_petition
		}
		change_variable = {
			name = movement_power_decreased_petition
			add = movement_power_decreased_petition_decay_value
		}
		if = {
			limit = { var:movement_power_decreased_petition >= 0 }
			remove_variable = movement_power_decreased_petition
		}
	}
}

As written in game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt.

Where it is used

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

Situations (1)

Source: game/common/scripted_effects/10_dlc_tgp_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?