Scripted effect
assign_learning_education_from_squires_quality_effect
assign_learning_education_from_squires_quality_effect = yesgame/common/scripted_effects/00_accolades_scripted_effects.txt, line 4270 (104 lines). No parameters.
assign_learning_education_from_squires_quality_effect is a scripted effect in Crusader Kings III, written at line 4270 of its file. It takes no parameters: assign_learning_education_from_squires_quality_effect = yes. The game's script calls it in 2 places, among them accolade_fanatic_character (scripted character templates) and accolade_mentor_character (scripted character templates). Patch 1.20.1.2, from game/common/scripted_effects/00_accolades_scripted_effects.txt.
What it does
- Loses the Trait Misguided Warrior
- One random trait in category:
- Where › scope:owner: Has the Trait: prev
category = education
If
One of these
- scope:succeeding_accolade: Accolade squires quality at least 80
or
scope:succeeding_accolade:- Accolade squires quality at least 60
initial_type = accolade_type:mentor_attribute
Then
- 1 of 3 things will happen:
- 14%: Gains the Trait Erudite Oracle
- 57%: Gains the Trait Mastermind Philosopher
- 29%: Gains the Trait Astute Intellectual
Else if
One of these
- scope:succeeding_accolade: Accolade squires quality at least 60
or
scope:succeeding_accolade:- Accolade squires quality at least 60
initial_type = accolade_type:mentor_attribute
Then
- 1 of 2 things will happen:
- 50%: Gains the Trait Mastermind Philosopher
- 50%: Gains the Trait Astute Intellectual
Else if
One of these
- scope:succeeding_accolade: Accolade squires quality at least 40
or
scope:succeeding_accolade:- Accolade squires quality at least 20
initial_type = accolade_type:mentor_attribute
Then
- 1 of 2 things will happen:
- 50%: Gains the Trait Astute Intellectual
- 50%: Gains the Trait Insightful Thinker
Else if
- scope:succeeding_accolade: Accolade squires quality at least 20
Then
- 1 of 3 things will happen:
- 33%: Gains the Trait Astute Intellectual
- 33%: Gains the Trait Insightful Thinker
- 33%: Gains the Trait Conscientious Scribe
Otherwise
- 1 of 2 things will happen:
- 50%: Gains the Trait Insightful Thinker
- 50%: Gains the Trait Conscientious Scribe
• 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 (104 lines of game script)
assign_learning_education_from_squires_quality_effect = {
remove_trait = education_martial_1
random_trait_in_category = {
category = education
limit = {
scope:owner = {
has_trait = prev
}
}
save_scope_as = education_trait
}
if = {
limit = {
exists = scope:education_trait
}
remove_trait = scope:education_trait
}
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:mentor_attribute
}
}
}
random_list = {
1 = {
add_trait = education_learning_5
}
4 = {
add_trait = education_learning_4
}
2 = {
add_trait = education_learning_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:mentor_attribute
}
}
}
random_list = {
1 = {
add_trait = education_learning_4
}
1 = {
add_trait = education_learning_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:mentor_attribute
}
}
}
random_list = {
1 = {
add_trait = education_learning_3
}
1 = {
add_trait = education_learning_2
}
}
}
else_if = {
limit = {
scope:succeeding_accolade = { accolade_squires_quality_value >= accolade_squires_feckless_minimum_value }
}
random_list = {
1 = {
add_trait = education_learning_3
}
1 = {
add_trait = education_learning_2
}
1 = {
add_trait = education_learning_1
}
}
}
else = {
random_list = {
1 = {
add_trait = education_learning_2
}
1 = {
add_trait = education_learning_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_learning_education_from_squires_quality_effect.
Scripted character templates (2)
- accolade_fanatic_character
- accolade_mentor_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.