Scripted effect · All Under Heaven files
meritocratic_assign_completed_exams_based_on_merit_effect
meritocratic_assign_completed_exams_based_on_merit_effect = yesgame/common/scripted_effects/10_dlc_tgp_scripted_effects.txt, line 3285 (34 lines). No parameters.
meritocratic_assign_completed_exams_based_on_merit_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 3285 of its file. It takes no parameters: meritocratic_assign_completed_exams_based_on_merit_effect = yes. The game's script calls it in 1 place, among them on_game_start_after_lobby (on action). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt.
What it does
- If merit at least 2000:
- Gains the modifier “Passed Provincial Examination”
- Character max merit level +2
- Gains the modifier “Passed Provincial Examination”
- Otherwise › If played by the AI › …% chance of:
- Gains the modifier “Passed Provincial Examination”
- Character max merit level +2
- Gains the modifier “Passed Provincial Examination”
• 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 (34 lines of game script)
meritocratic_assign_completed_exams_based_on_merit_effect = {
if = {
limit = {
merit >= duchy_starting_merit_value
}
add_character_flag = passed_provincial_exam
add_character_modifier = {
modifier = tgp_passed_provincial_exam_modifier
}
}
# Everyone else have a chance to having passed the provincial exams
else = {
if = { # The AI has a chance to start with having passed the provincial exams
limit = {
is_ai = yes
}
random = {
chance = {
value = 40
if = {
limit = {
is_ruler = yes
}
add = 20
}
}
add_character_flag = passed_provincial_exam
add_character_modifier = {
modifier = tgp_passed_provincial_exam_modifier
}
}
}
}
}As written in game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls meritocratic_assign_completed_exams_based_on_merit_effect.
On actions (the game's own hooks) (1)
- on_game_start_after_lobby
Source: game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.