Scripted effect · All Under Heaven files
mandala_built_temple_holding_effect
mandala_built_temple_holding_effect = yesgame/common/scripted_effects/tgp_mandala_scripted_effects.txt, line 1878 (55 lines). No parameters.
mandala_built_temple_holding_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 1878 of its file. It takes no parameters: mandala_built_temple_holding_effect = yes. The game's script calls it in 1 place, among them Temple Keep (building). Patch 1.20.1.2, from game/common/scripted_effects/tgp_mandala_scripted_effects.txt.
What it does
scope:character:If
- Your county’s holder: Is not an Independent Ruler
- Government uses the Mandala Capital Temple Complex Great Project and Great Building
Then
add_piety = { … }- Your county’s holder:
add_piety = { value = major_piety_value multiply = 1.5 }
- Else, if government uses the Mandala Capital Temple Complex Great Project and Great Building:
add_piety = { … }
• 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 (55 lines of game script)
mandala_built_temple_holding_effect = {
if = {
limit = {
NOT = { exists = scope:character }
}
save_scope_as = character
}
scope:character = {
#Liege paid for the holding
if = {
limit = {
root.county.holder = { is_independent_ruler = no }
this = scope:character
government_has_flag = government_is_mandala
}
add_piety = {
value = massive_piety_value
multiply = {
value = 1.5
}
if = {
limit = {
culture = { has_cultural_parameter = founding_temple_citadels_gives_more_piety }
}
multiply = 2
}
}
root.county.holder = {
if = {
limit = { government_has_flag = government_is_mandala }
}
add_piety = {
value = major_piety_value
multiply = 1.5
}
}
}
#Vassal paid for the holding
else_if = {
limit = { government_has_flag = government_is_mandala }
add_piety = {
value = massive_piety_value
multiply = {
value = 1.5
}
if = {
limit = {
culture = { has_cultural_parameter = founding_temple_citadels_gives_more_piety }
}
multiply = 2
}
}
}
}
}As written in game/common/scripted_effects/tgp_mandala_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls mandala_built_temple_holding_effect.
Buildings (1)
Source: game/common/scripted_effects/tgp_mandala_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.