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

Scripted trigger

pious_ai_builder_trigger

pious_ai_builder_trigger = yes

game/common/scripted_triggers/00_ai_value_triggers.txt, line 234 (25 lines). No parameters.

pious_ai_builder_trigger is a scripted trigger in Crusader Kings III, written at line 234 of its file. It takes no parameters: pious_ai_builder_trigger = yes (or no). The game's script calls it in 1 place, among them ai_has_pious_builder_personality (scripted trigger). Patch 1.20.1.2, from game/common/scripted_triggers/00_ai_value_triggers.txt.

What it checks

• 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 (25 lines of game script)
pious_ai_builder_trigger = {
	ai_zeal > 0
	ai_energy > 0
	OR = {
		has_focus = learning_theology_focus # Only this focus, which is 33% of all learning focused characters in the world
		has_trait = zealous
		has_trait = forgiving
		has_trait = improvident
		has_trait = humble
		has_trait = patient
		has_trait = diligent
		has_trait = generous		
		has_character_modifier = the_temple_builder_modifier
		government_has_flag = government_is_mandala
	}
	num_virtuous_traits >= 1
	num_sinful_traits = 0
	NAND = {
		has_trait = cynical
		has_trait = greedy
		house = {
			has_house_modifier = unity_house_organized_for_war_modifier
		}
	}
}

As written in game/common/scripted_triggers/00_ai_value_triggers.txt.

Where it is used

Every place in common/, events/ and history/ that calls pious_ai_builder_trigger.

Source: game/common/scripted_triggers/00_ai_value_triggers.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?