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

Scripted trigger

has_education_rank_trigger

has_education_rank_trigger = { OPERATOR = … RANK = … }

game/common/scripted_triggers/00_education_triggers.txt, line 7 (83 lines). Parameters: $OPERATOR$, $RANK$.

has_education_rank_trigger is a scripted trigger in Crusader Kings III, written at line 7 of its file. A call passes 2 parameters: OPERATOR and RANK. The game's script calls it in 4 places, among them Request New Court Chaplain (interaction), … in Despair (event court.0107) and councillor_spouse_learning_2601_tutoring_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_triggers/00_education_triggers.txt.

The comment above it in the file

Takes RANK and OPERATOR
OPERATOR can be "equals", "greater" or "less"

What it checks

  • save_temporary_scope_value_as = { name = operator value = flag:$OPERATOR$ }
  • One of these

    • All of these

      • scope:operator = flag:equals
      • One of these

        • has_trait_rank = { trait = education_diplomacy rank = $RANK$ }
        • or

          has_trait_rank = { trait = education_martial rank = $RANK$ }
        • or

          has_trait_rank = { trait = education_stewardship rank = $RANK$ }
        • or

          has_trait_rank = { trait = education_intrigue rank = $RANK$ }
        • or

          has_trait_rank = { trait = education_learning rank = $RANK$ }
    • or

      All of these

      • scope:operator = flag:greater
      • One of these

        • has_trait_rank = { trait = education_diplomacy rank > $RANK$ }
        • or

          has_trait_rank = { trait = education_martial rank > $RANK$ }
        • or

          has_trait_rank = { trait = education_stewardship rank > $RANK$ }
        • or

          has_trait_rank = { trait = education_intrigue rank > $RANK$ }
        • or

          has_trait_rank = { trait = education_learning rank > $RANK$ }

• 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 (83 lines of game script)
has_education_rank_trigger = {
	save_temporary_scope_value_as = {
		name = operator
		value = flag:$OPERATOR$
	}
	OR = {
		AND = {
			scope:operator = flag:equals
			OR = {
				has_trait_rank = {
					trait = education_diplomacy
					rank = $RANK$
				}
				has_trait_rank = {
					trait = education_martial
					rank = $RANK$
				}
				has_trait_rank = {
					trait = education_stewardship
					rank = $RANK$
				}
				has_trait_rank = {
					trait = education_intrigue
					rank = $RANK$
				}
				has_trait_rank = {
					trait = education_learning
					rank = $RANK$
				}
			}
		}
		AND = {
			scope:operator = flag:greater
			OR = {
				has_trait_rank = {
					trait = education_diplomacy
					rank > $RANK$
				}
				has_trait_rank = {
					trait = education_martial
					rank > $RANK$
				}
				has_trait_rank = {
					trait = education_stewardship
					rank > $RANK$
				}
				has_trait_rank = {
					trait = education_intrigue
					rank > $RANK$
				}
				has_trait_rank = {
					trait = education_learning
					rank > $RANK$
				}
			}
		}
		#AND = {
		#	scope:operator = flag:less
		#	OR = {
		#		has_trait_rank = {
		#			trait = education_diplomacy
		#			rank < $RANK$
		#		}
		#		has_trait_rank = {
		#			trait = education_martial
		#			rank < $RANK$
		#		}
		#		has_trait_rank = {
		#			trait = education_stewardship
		#			rank < $RANK$
		#		}
		#		has_trait_rank = {
		#			trait = education_intrigue
		#			rank < $RANK$
		#		}
		#		has_trait_rank = {
		#			trait = education_learning
		#			rank < $RANK$
		#		}
		#	}
		#}
	}
}

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

Where it is used

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

Character interactions (1)

Events (1)

Customizable localization (1)

  • GetEducationLifestylePercentageBoost

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