Scripted effect · All Under Heaven files
tgp_set_wuking_element_effect
tgp_set_wuking_element_effect = { ELEMENT = … }game/common/scripted_effects/10_dlc_tgp_dynastic_cycle_scripted_effects.txt, line 717 (10 lines). Parameters: $ELEMENT$.
tgp_set_wuking_element_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 717 of its file. A call passes 1 parameter: ELEMENT. The game's script calls it in 3 places, among them The Elements of Virtue (event tgp_dynastic_cycle.9002), on_game_start (on action) and tgp_update_wuking_element_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_dynastic_cycle_scripted_effects.txt.
The comment above it in the file
Adds Wuking element variable
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (10 lines of game script)
tgp_set_wuking_element_effect = {
# Set from new creation
title:h_china.holder.dynasty ?= {
set_variable = { name = wuking_element value = flag:$ELEMENT$ }
}
situation:dynastic_cycle = {
# Set from the new or returning dynasty
set_variable = { name = wuking_element value = flag:$ELEMENT$ }
}
}As written in game/common/scripted_effects/10_dlc_tgp_dynastic_cycle_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls tgp_set_wuking_element_effect.
Events (1)
- The Elements of Virtue
tgp_dynastic_cycle.9002
On actions (the game's own hooks) (1)
- on_game_start
Scripted effects (1)
Source: game/common/scripted_effects/10_dlc_tgp_dynastic_cycle_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.