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

Scripted effect

rank_up_education_effect

rank_up_education_effect = yes

game/common/scripted_effects/00_education_effects.txt, line 2127 (40 lines). No parameters.

rank_up_education_effect is a scripted effect in Crusader Kings III, written at line 2127 of its file. It takes no parameters: rank_up_education_effect = yes. The game's script calls it in 3 places, among them A Debt Repaid (event tgp_travel_events.0041), Educational Taxation (event clan_event.2001) and councillor_spouse_learning_2601_tutoring_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_education_effects.txt.

What it does

  • If

    Then

    • If has the Trait: Students of Diplomacy:
      • change_trait_rank = { trait = education_diplomacy rank = 1 }
    • Else, if has the Trait: Students of Warfare:
      • change_trait_rank = { trait = education_martial rank = 1 }
    • Else, if has the Trait: Students of Stewardship:
      • change_trait_rank = { trait = education_stewardship rank = 1 }
    • Else, if has the Trait: Students of Intrigue:
      • change_trait_rank = { trait = education_intrigue rank = 1 }
    • Else, if has the Trait: Students of Knowledge:
      • change_trait_rank = { trait = education_learning rank = 1 }

• 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 (40 lines of game script)
rank_up_education_effect = {
	if = {
		limit = { has_education_rank_4_trigger = no }
		if = {
			limit = { has_trait = education_diplomacy }
			change_trait_rank = {
				trait = education_diplomacy
				rank = 1
			}
		}
		else_if = {
			limit = { has_trait = education_martial }
			change_trait_rank = {
				trait = education_martial
				rank = 1
			}
		}
		else_if = {
			limit = { has_trait = education_stewardship }
			change_trait_rank = {
				trait = education_stewardship
				rank = 1
			}
		}
		else_if = {
			limit = { has_trait = education_intrigue }
			change_trait_rank = {
				trait = education_intrigue
				rank = 1
			}
		}
		else_if = {
			limit = { has_trait = education_learning }
			change_trait_rank = {
				trait = education_learning
				rank = 1
			}
		}
	}
}

As written in game/common/scripted_effects/00_education_effects.txt.

Where it is used

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

Events (2)

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