Scripted effect · All Under Heaven files
mandala_piety_gain_effect
mandala_piety_gain_effect = { PIETY_AMOUNT = … }game/common/scripted_effects/tgp_mandala_scripted_effects.txt, line 2453 (10 lines). Parameters: $PIETY_AMOUNT$.
mandala_piety_gain_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 2453 of its file. A call passes 1 parameter: PIETY_AMOUNT. The game's script calls it in 1 place, among them Aid Tribal Development (interaction). Patch 1.20.1.2, from game/common/scripted_effects/tgp_mandala_scripted_effects.txt.
The comment above it in the file
Reverence Decree Effects
What it does
- If has the Reverence Decree Law:
add_piety = { add = $PIETY_AMOUNT$ multiply = 1.5 }
- Otherwise: Gain … 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 (10 lines of game script)
mandala_piety_gain_effect = {
if = {
limit = { has_realm_law = mandala_decree_reverence }
add_piety = {
add = $PIETY_AMOUNT$
multiply = 1.5
}
}
else = { add_piety = $PIETY_AMOUNT$ }
}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_piety_gain_effect.
Character interactions (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.