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

event_change_movement_power_effect

event_change_movement_power_effect = { VALUE = … }

game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt, line 1462 (59 lines). Parameters: $VALUE$.

event_change_movement_power_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 1462 of its file. A call passes 1 parameter: VALUE. The game's script calls it in 24 places, among them apa_movement_ridiculed (activity pulse), A Change of Favor (event tgp_dynastic_cycle_events.0050) and A Chorus of Doubt (event az_debate.0004). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt.

The comment above it in the file

use this in EVENTS to temporarily increase or decrease movement power of a character or movement

What it does

• the game's own tooltip text · ◦ our reading of the script line · code the script where neither exists

“They” is whatever it runs on (the scope it is called in). The scripted triggers and effects it calls link to their own pages; $PARAMETERS$ stay as written: each call fills them in.

The script as written (59 lines of game script)
event_change_movement_power_effect = {
	if = {
		limit = {
			$VALUE$ >= 0
		}
		if = {
			limit = {
				exists = var:movement_power_increased_event
			}
			set_variable = {
				name = movement_power_increased_event
				value = {
					value = var:movement_power_increased_event
					add = $VALUE$
				}
			}
		}
		else = {
			set_variable = {
				name = movement_power_increased_event
				value = $VALUE$
			}
		}

	}
	else = {
		if = {
			limit = {
				exists = var:movement_power_decreased_event
			}
			set_variable = {
				name = movement_power_decreased_event
				value = {
					value = var:movement_power_decreased_event
					add = $VALUE$
				}
			}
		}
		else = {
			set_variable = {
				name = movement_power_decreased_event
				value = $VALUE$
			}
		}
	}
	#force the update of variables to immediately show changes
	if = { #for characters
		limit = {
			exists = var:movement_power_individual
		}
		update_character_movement_power_effect = yes
		top_participant_group:dynastic_cycle ?= {
			update_movement_power_effect = yes
		}
	}
	else = { #for movements
		update_movement_power_effect = yes
	}
}

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

Activity pulse actions (1)

  • apa_movement_ridiculed

Events (20)

14 more

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?