CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted effect · All Under Heaven files

mandala_built_piety_building_effect

mandala_built_piety_building_effect = yes

game/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

• 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.

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.

Spotted a mistake on this page?