Scripted effect · All Under Heaven files
mandala_built_piety_duchy_building_t1_effect
mandala_built_piety_duchy_building_t1_effect = yesgame/common/scripted_effects/tgp_mandala_scripted_effects.txt, line 1758 (39 lines). No parameters.
mandala_built_piety_duchy_building_t1_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 1758 of its file. It takes no parameters: mandala_built_piety_duchy_building_t1_effect = yes. The game's script calls it in 8 places, among them Abbey of St Gall (building), Archbasilica of Saint John Lateran (building) and Cluny Abbey (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 = { value = medium_piety_value multiply = 1.5 }- Your county’s holder:
add_piety = { value = minor_piety_value multiply = 1.5 }
- Else, if government uses the Mandala Capital Temple Complex Great Project and Great Building:
add_piety = { value = medium_piety_value multiply = 1.5 }
• 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 (39 lines of game script)
mandala_built_piety_duchy_building_t1_effect = {
if = {
limit = {
NOT = { exists = scope:character }
}
county.holder = { save_scope_as = character }
}
scope:character = {
#Liege paid for the building
if = {
limit = {
root.county.holder = { is_independent_ruler = no }
this = scope:character
government_has_flag = government_is_mandala
}
add_piety = {
value = medium_piety_value
multiply = 1.5
}
root.county.holder = {
if = {
limit = { government_has_flag = government_is_mandala }
}
add_piety = {
value = minor_piety_value
multiply = 1.5
}
}
}
#Vassal paid for the building
else_if = {
limit = { government_has_flag = government_is_mandala }
add_piety = {
value = medium_piety_value
multiply = 1.5
}
}
}
}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_piety_duchy_building_t1_effect.
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.