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_cautious_personality

ai_has_cautious_personality = yes

game/common/scripted_triggers/00_ai_value_triggers.txt, line 152 (45 lines). No parameters.

ai_has_cautious_personality is a scripted trigger in Crusader Kings III, written at line 152 of its file. It takes no parameters: ai_has_cautious_personality = yes (or no). The game's script calls it in 29 places, among them Enforce Intrigue Network (decision), Ask for Clerical Influence (interaction) and Sponsor Inspiration (interaction). Patch 1.20.1.2, from game/common/scripted_triggers/00_ai_value_triggers.txt.

What it checks

  • Ai boldness at most 0
  • One of these

  • None of these

    • Has the Trait: Fickle
    • Has the Trait: Lunatic
    • Their house:
      • One of these

        • The House their has the Organized for War modifier
        • or

          The House their has the Encouraged Economy modifier
        • or

          has_house_aspiration_parameter = aspect_of_creation
        • or

          has_house_aspiration_parameter = aspect_of_serenity
        • or

          has_house_aspiration_parameter = aspect_of_trickery
    • All of these

      • Any character struggle:
        • If

          • is_struggle_type = persian_struggle

          Then

          • is_struggle_phase = struggle_persia_phase_unrest

          Otherwise

          • Never
      • Has the Trait: Detractor of the Caliphate
    • vassal_contract_has_flag = admin_ai_is_warlike
    • vassal_contract_has_flag = admin_ai_is_builder
    • Has “conqueror” (a variable the game's script sets)

• 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 (45 lines of game script)
ai_has_cautious_personality = {
	ai_boldness <= 0
	
	OR = {
		has_trait = paranoid
		has_trait = craven
		AND = {
			ai_boldness <= -25
			OR = {
				has_trait = patient
				has_trait = calm
				has_trait = content
				culture = { has_cultural_pillar = ethos_stoic }
				culture = { has_cultural_tradition = tradition_stalwart_defenders }
			}
		}
	}
	NOR = {
		has_trait = fickle
		has_trait = lunatic
		house ?= {
			OR = {
				has_house_modifier = unity_house_organized_for_war_modifier
				has_house_modifier = unity_house_focused_on_economy_modifier
				#Weight the AI according to their Aspect
				has_house_aspiration_parameter = aspect_of_creation
				has_house_aspiration_parameter = aspect_of_serenity
				has_house_aspiration_parameter = aspect_of_trickery
			}
		}
		AND = { # They are Detractors during the FP3 Struggle in the Unrest Phase
			any_character_struggle = {
				trigger_if = {
					limit = { is_struggle_type = persian_struggle }
					is_struggle_phase = struggle_persia_phase_unrest
				}
				trigger_else = { always = no }
			}
			has_trait = fp3_struggle_detractor
		}
		vassal_contract_has_flag = admin_ai_is_warlike
		vassal_contract_has_flag = admin_ai_is_builder
		has_variable = conqueror
	}
}

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

Activities (2)

Story cycles (1)

  • Conqueror

Scripted triggers (1)

Script values (8)

  • ai_men_at_arms_chance_expense_below_min
  • ai_men_at_arms_expense_barter_goods_min
  • ai_men_at_arms_expense_gold_min
  • ai_men_at_arms_expense_prestige_min
  • ai_men_at_arms_expense_treasury_min
  • heroic_legend_create_ai
2 more
  • holy_legend_create_ai
  • legitimizing_legend_create_ai

Scripted modifiers (AI weights) (1)

  • marriage_ai_accept_politic_modifier

Customizable localization (1)

  • AIEconomicPersonality

House aspirations (3)

  • celestial_traditional
  • confident_schemers
  • political_meddlers

Subject contracts (3)

  • Available Administration Types
  • Available Administration Types
  • Available Administration Types

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?