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

Scripted trigger

ai_has_pious_builder_personality

ai_has_pious_builder_personality = yes

game/common/scripted_triggers/00_ai_value_triggers.txt, line 24 (29 lines). No parameters.

ai_has_pious_builder_personality is a scripted trigger in Crusader Kings III, written at line 24 of its file. It takes no parameters: ai_has_pious_builder_personality = yes (or no). The game's script calls it in 34 places, among them Reform Monastic Endowment (decision), Aid Tribal Development (interaction) and Destroy Artifact (interaction). Patch 1.20.1.2, from game/common/scripted_triggers/00_ai_value_triggers.txt.

What it checks

  • One of these

  • None of these

    • Has “conqueror” (a variable the game's script sets)
    • Their house:
      • One of these

        • has_house_aspiration_parameter = aspect_of_creation
        • or

          has_house_aspiration_parameter = aspect_of_destruction
        • or

          has_house_aspiration_parameter = aspect_of_trickery

• 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 (29 lines of game script)
ai_has_pious_builder_personality = {
	OR = {
		AND = {
			pious_ai_builder_trigger = yes
			ai_has_warlike_personality = no
		}
		#Or our Devaraja decrees it
		AND = {
			OR = {
				is_tributary = yes
				is_independent_ruler = no
			}
			overlord ?= { has_realm_law_flag = subjects_appear_more_pious }
		}	
		#Weight the AI according to their Aspect
		house ?= { has_house_aspiration_parameter = aspect_of_serenity }
	}
	NOR = { 
		has_variable = conqueror
		#Weight the AI according to their Aspect
		house ?= {
			OR = {
				has_house_aspiration_parameter = aspect_of_creation
				has_house_aspiration_parameter = aspect_of_destruction
				has_house_aspiration_parameter = aspect_of_trickery
			}		
		}
	}
}

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

Activity intents (3)

  • Altruism
  • Mourn
  • Zealotry

Legends (1)

  • holy

Events (1)

Script values (1)

  • holy_legend_create_ai

Scripted modifiers (AI weights) (2)

  • ai_pious_building_preference_modifier
  • ai_tier_1_pious_building_preference_modifier

Customizable localization (1)

  • AIEconomicPersonality

House aspirations (3)

  • aspect_of_serenity
  • celestial_governor
  • learned_philosophers

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?