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_duchy_building_t2_effect

mandala_built_piety_duchy_building_t2_effect = yes

game/common/scripted_effects/tgp_mandala_scripted_effects.txt, line 1798 (39 lines). No parameters.

mandala_built_piety_duchy_building_t2_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 1798 of its file. It takes no parameters: mandala_built_piety_duchy_building_t2_effect = yes. The game's script calls it in 6 places, among them Excarnation Fields (building), Great Mosque of Damascus (building) and Maior Ecclesia (building). Patch 1.20.1.2, from game/common/scripted_effects/tgp_mandala_scripted_effects.txt.

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 (39 lines of game script)
mandala_built_piety_duchy_building_t2_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 = major_piety_value
				multiply = 1.5
			}
			root.county.holder = {
				if = {
					limit = { government_has_flag = government_is_mandala }
				}
				add_piety = {
					value = medium_piety_value
					multiply = 1.5
				}
			}
		}
		#Vassal paid for the building
		else_if = {
			limit = { government_has_flag = government_is_mandala }
			add_piety = {
				value = major_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_t2_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?