Scripted effect · All Under Heaven files
mandala_built_piety_building_effect
mandala_built_piety_building_effect = yesgame/common/scripted_effects/tgp_mandala_scripted_effects.txt, line 1715 (42 lines). No parameters.
mandala_built_piety_building_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 1715 of its file. It takes no parameters: mandala_built_piety_building_effect = yes. The game's script calls it in 56 places, among them Baray (building), Bas-Reliefs (building) and Basin (building). Patch 1.20.1.2, from game/common/scripted_effects/tgp_mandala_scripted_effects.txt.
The comment above it in the file
Building Effects
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 = minor_piety_value multiply = 1.5 }- Your county’s holder:
add_piety = { value = miniscule_piety_value multiply = 1.5 }
- Else, if government uses the Mandala Capital Temple Complex Great Project and Great Building:
add_piety = { value = minor_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 (42 lines of game script)
mandala_built_piety_building_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 = minor_piety_value
multiply = 1.5
}
root.county.holder = {
if = {
limit = { government_has_flag = government_is_mandala }
}
add_piety = {
value = miniscule_piety_value
multiply = 1.5
}
}
}
#Vassal paid for the building
else_if = {
limit = {
government_has_flag = government_is_mandala
is_alive = yes
}
add_piety = {
value = minor_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_building_effect.
Buildings (56)
50 more
- Colonnaded Chapels
- Continental System
- Copying Chambers
- Devaraja Image
- Divine Statuary
- Grand Halls
- Great Archives
- Great Baray
- Great Hospital
- Holy Reservoir
- Hospices
- Hospital
- Hospital Gardens
- House of Scribes
- Infirmaries
- Large Megalith
- Legendary Megalith
- Leper Colony
- Libraries
- Local Temples
- Lotus Pond
- Mandapa
- Megalithic Altars
- Megalithic Mausoleum
- Megalithic Tombs
- Minor Megalith
- Moat
- Monastic Gardens
- Monastic Schools
- Monastic University
- Nāga Guardians
- Observatory
- Petty Baray
- Philosophy Department
- Pilgrim's Cairns
- Pilgrim's Quarters
- Prang Spire
- Prasada Tower
- Prayer Halls
- Prayer Shrine
- Reliquaries
- Sacred Baray
- School of Translation
- Scripture Library
- Secret Archives
- Shala Pavilion
- Sick House
- Sima Stones
- Singha Statues
- Translation House
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.