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

Scripted effect

assign_diplomacy_education_from_squires_quality_effect

assign_diplomacy_education_from_squires_quality_effect = yes

game/common/scripted_effects/00_accolades_scripted_effects.txt, line 3878 (89 lines). No parameters.

assign_diplomacy_education_from_squires_quality_effect is a scripted effect in Crusader Kings III, written at line 3878 of its file. It takes no parameters: assign_diplomacy_education_from_squires_quality_effect = yes. The game's script calls it in 6 places, among them accolade_contender_character (scripted character templates), accolade_house_knight_character (scripted character templates) and accolade_idealist_character (scripted character templates). Patch 1.20.1.2, from game/common/scripted_effects/00_accolades_scripted_effects.txt.

What it does

• 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 (89 lines of game script)
assign_diplomacy_education_from_squires_quality_effect = {
	remove_trait = education_martial_1
	if = {
		limit = {
			OR = {
				scope:succeeding_accolade = { accolade_squires_quality_value >= accolade_squires_accomplished_minimum_value }
				scope:succeeding_accolade = {
					accolade_squires_quality_value >= accolade_squires_capable_minimum_value
					initial_type = accolade_type:politicker_attribute
				}
			}
		}
		random_list = {
			1 = {
				add_trait = education_diplomacy_5
			}
			4 = {
				add_trait = education_diplomacy_4
			}
			1 = {
				add_trait = education_diplomacy_3
			}
		}
	}
	else_if = {
		limit = {
			OR = {
				scope:succeeding_accolade = { accolade_squires_quality_value >= accolade_squires_capable_minimum_value }
				scope:succeeding_accolade = {
					accolade_squires_quality_value >= accolade_squires_capable_minimum_value
					initial_type = accolade_type:politicker_attribute
				}
			}
		}
		random_list = {
			1 = {
				add_trait = education_diplomacy_4
			}
			1 = {
				add_trait = education_diplomacy_3
			}
		}
	}
	else_if = {
		limit = {
			OR = {
				scope:succeeding_accolade = { accolade_squires_quality_value >= accolade_squires_inexperienced_minimum_value }
				scope:succeeding_accolade = {
					accolade_squires_quality_value >= accolade_squires_feckless_minimum_value
					initial_type = accolade_type:politicker_attribute
				}
			}
		}
		random_list = {
			1 = {
				add_trait = education_diplomacy_3
			}
			1 = {
				add_trait = education_diplomacy_2
			}
		}
	}
	else_if = {
		limit = {
			scope:succeeding_accolade = { accolade_squires_quality_value >= accolade_squires_feckless_minimum_value }
		}
		random_list = {
			1 = {
				add_trait = education_diplomacy_3
			}
			1 = {
				add_trait = education_diplomacy_2
			}
			1 = {
				add_trait = education_diplomacy_1
			}
		}
	}
	else = {
		random_list = {
			1 = {
				add_trait = education_diplomacy_2
			}
			1 = {
				add_trait = education_diplomacy_1
			}
		}
	}
}

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

Where it is used

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

Scripted character templates (6)

  • accolade_contender_character
  • accolade_house_knight_character
  • accolade_idealist_character
  • accolade_master_of_revels_character
  • accolade_politicker_character
  • accolade_scoundrel_character

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