Scripted effect · All Under Heaven files
assign_completed_exams_based_on_title_tier_effect
assign_completed_exams_based_on_title_tier_effect = yesgame/common/scripted_effects/10_dlc_tgp_scripted_effects.txt, line 3096 (44 lines). No parameters.
assign_completed_exams_based_on_title_tier_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 3096 of its file. It takes no parameters: assign_completed_exams_based_on_title_tier_effect = yes. The game's script calls it in 1 place, among them on_ruler_designer_finished (on action). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt.
What it does
- If highest held Title is at least Empire Rank:
- Gains the modifier “Passed Provincial Examination”
- Character max merit level +2
- Gains the modifier “Passed Metropolitan Examination”
- Character max merit level +2
- Gains the modifier “Passed Palace Examination”
- Character max merit level +3
- Gains the modifier “Passed Provincial Examination”
- Else, if highest held Title is exactly Kingdom Rank:
- Gains the modifier “Passed Provincial Examination”
- Character max merit level +2
- Gains the modifier “Passed Metropolitan Examination”
- Character max merit level +2
- Gains the modifier “Passed Provincial Examination”
- Else, if highest held Title is exactly Duchy Rank:
- 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 (44 lines of game script)
assign_completed_exams_based_on_title_tier_effect = {
if = {
limit = {
highest_held_title_tier >= tier_empire
}
add_character_flag = passed_child_exam
add_character_flag = passed_provincial_exam
add_character_modifier = {
modifier = tgp_passed_provincial_exam_modifier
}
add_character_flag = passed_metropolitan_exam
add_character_modifier = {
modifier = tgp_passed_metropolitan_exam_modifier
}
add_character_flag = passed_palace_exam
add_character_modifier = {
modifier = tgp_passed_palace_exam_modifier
}
}
else_if = {
limit = {
highest_held_title_tier = tier_kingdom
}
add_character_flag = passed_child_exam
add_character_flag = passed_provincial_exam
add_character_modifier = {
modifier = tgp_passed_provincial_exam_modifier
}
add_character_flag = passed_metropolitan_exam
add_character_modifier = {
modifier = tgp_passed_metropolitan_exam_modifier
}
}
else_if = {
limit = {
highest_held_title_tier = tier_duchy
}
add_character_flag = passed_child_exam
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 assign_completed_exams_based_on_title_tier_effect.
On actions (the game's own hooks) (1)
- on_ruler_designer_finished
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.