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
If
a check the game hides
Then
update_character_movement_power_effect = yestop_participant_group:dynastic_cycle:
Otherwise
• 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)
- A Change of Favor
tgp_dynastic_cycle_events.0050 - A Chorus of Doubt
az_debate.0004 - A Misstep in the Hall
az_debate.0009 - A Potential Rival
debate_event.2050 - A Toast to Virtue
tgp_movement_events.0120 - A Welcome Visitor
tgp_movement_events.0010
14 more
- A Word of Advice
tgp_movement_events.0100 - For Our House
tgp_movement_events.0080 - Heaven's Gratitude
tgp_movement_events.0040 - Nefarious Ink
tgp_movement_events.0060 - Observing the Elder
az_debate.0011 - Old Wounds
tgp_movement_events.0090 - Onwards! Onwards!
tgp_movement_events.0020 - Public Challenge
debate_event.2060 - Scholarly Crossroads
az_debate.0008 - The Dilemma
az_debate.0003 - The Disciple's Gift
tgp_movement_events.0140 - The Elder's Last Choice
az_debate.0005 - The Way Forward
tgp_dynastic_cycle_events.0001 - Whet the Blade
tgp_movement_events.0001
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.