Scripted effect · All Under Heaven files
tgp_update_wuking_element_effect
tgp_update_wuking_element_effect = yesgame/common/scripted_effects/10_dlc_tgp_dynastic_cycle_scripted_effects.txt, line 685 (30 lines). No parameters.
tgp_update_wuking_element_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 685 of its file. It takes no parameters: tgp_update_wuking_element_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_dynastic_cycle_scripted_effects.txt.
The comment above it in the file
Advances Dynastic Wuking element
What it does
- Dynastic Cycle:
If
- Has “wuking element” (a variable the game's script sets)
- title:h_china.holder.dynasty: Does not have “wuking element” (a variable the game's script sets)
Then
- Depending on wuking element:
- When wuking element is metal:
tgp_set_wuking_element_effect = { ELEMENT = water }
- When wuking element is water:
tgp_set_wuking_element_effect = { ELEMENT = wood }
- When wuking element is wood:
tgp_set_wuking_element_effect = { ELEMENT = fire }
- When wuking element is Fire:
tgp_set_wuking_element_effect = { ELEMENT = earth }
- When wuking element is earth:
tgp_set_wuking_element_effect = { ELEMENT = metal }
- When wuking element is metal:
• 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 (30 lines of game script)
tgp_update_wuking_element_effect = {
situation:dynastic_cycle = {
if = {
limit = {
has_variable = wuking_element
title:h_china.holder.dynasty ?= {
NOT = { has_variable = wuking_element }
}
}
switch = {
trigger = var:wuking_element
flag:metal = {
tgp_set_wuking_element_effect = { ELEMENT = water }
}
flag:water = {
tgp_set_wuking_element_effect = { ELEMENT = wood }
}
flag:wood = {
tgp_set_wuking_element_effect = { ELEMENT = fire }
}
flag:fire = {
tgp_set_wuking_element_effect = { ELEMENT = earth }
}
flag:earth = {
tgp_set_wuking_element_effect = { ELEMENT = metal }
}
}
}
}
}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_update_wuking_element_effect.
Situations (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.