Scripted effect · All Under Heaven files
update_movement_leader_effect
update_movement_leader_effect = yesgame/common/scripted_effects/10_dlc_tgp_scripted_effects.txt, line 542 (15 lines). No parameters.
update_movement_leader_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 542 of its file. It takes no parameters: update_movement_leader_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
root = scope:situation_participant_group Fallback configuration of making sure we have a movement leader We run this on the yearly pulse through the dynastic cycle script and on character leaving a movement
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (15 lines of game script)
update_movement_leader_effect = {
ordered_situation_group_participant = {
limit = {
is_alive = yes # on_leave fires for a member who just died, and the dead keep no variables
has_variable = movement_power
}
order_by = var:movement_power # just set the character with highest movement_power
scope:situation_participant_group = {
set_variable = {
name = movement_leader
value = prev
}
}
}
}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_movement_leader_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.