Scripted effect · All Under Heaven files
local_examination_disburse_activity_host_rewards
local_examination_disburse_activity_host_rewards = yesgame/common/scripted_effects/tgp_imperial_examination_scripted_effects.txt, line 155 (97 lines). No parameters.
local_examination_disburse_activity_host_rewards is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 155 of its file. It takes no parameters: local_examination_disburse_activity_host_rewards = yes. The game's script calls it in 2 places, among them Local Examination (activity) and Releasing the Roll (event imperial_examination.7001). Patch 1.20.1.2, from game/common/scripted_effects/tgp_imperial_examination_scripted_effects.txt.
What it does
- Their activity › Activity log entry › scope:host:
change_influence = { … }- If has Legitimacy:
add_legitimacy = { … }
- Otherwise:
change_merit = { … }
add_prestige = { … }
pam_vows_of_poverty_host_completion_piety_effect = yes
• 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 (97 lines of game script)
local_examination_disburse_activity_host_rewards = {
involved_activity = {
add_activity_log_entry = {
key = imperial_examination_host_rewards
score = 100
tags = { completed }
show_in_conclusion = yes
character = scope:host
location = scope:host.location
scope:host = {
#Influence based on your... setup
change_influence = {
value = local_examination_influence_base_reward_value
#Lots of entrants
if = {
limit = { scope:activity = { activity_has_imperial_exams_trigger = yes } }
multiply = 4
}
#Smaller amount of entrants
else_if = {
limit = { scope:activity = { activity_has_grand_exams_trigger = yes } }
multiply = 2
}
}
if = {
limit = { has_legitimacy = yes }
#Legitimacy (for those who have it)
add_legitimacy = {
value = local_examination_legitimacy_base_reward_value
#Extreme Grade
if = {
limit = { scope:activity = { activity_has_extreme_grade_trigger = yes } }
multiply = 2
}
#High Grade is the default, as it were, so no post for that case
#Mediocre Grade
else_if = {
limit = { scope:activity = { activity_has_mediocre_grade_trigger = yes } }
multiply = 0.8
}
#Low Grade
else = {
limit = { scope:activity = { activity_has_low_grade_trigger = yes } }
multiply = 0.5
}
}
}
else = {
# Merit for the rest
change_merit = {
value = local_examination_legitimacy_base_reward_value
#Extreme Grade
if = {
limit = { scope:activity = { activity_has_extreme_grade_trigger = yes } }
multiply = 2
}
#High Grade is the default, as it were, so no post for that case
#Mediocre Grade
else_if = {
limit = { scope:activity = { activity_has_mediocre_grade_trigger = yes } }
multiply = 0.8
}
#Low Grade
else = {
limit = { scope:activity = { activity_has_low_grade_trigger = yes } }
multiply = 0.5
}
}
}
#Prestige
add_prestige = {
value = local_examination_prestige_base_reward_value
#Extreme Grade
if = {
limit = { scope:activity = { activity_has_extreme_grade_trigger = yes } }
multiply = 4
}
#High Grade
else_if = {
limit = { scope:activity = { activity_has_high_grade_trigger = yes } }
multiply = 2
}
#Mediocre Grade
#Low Grade
else = {
limit = { scope:activity = { activity_has_low_grade_trigger = yes } }
multiply = 0.8
}
}
}
}
}
pam_vows_of_poverty_host_completion_piety_effect = yes
}As written in game/common/scripted_effects/tgp_imperial_examination_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls local_examination_disburse_activity_host_rewards.
Activities (1)
Events (1)
- Releasing the Roll
imperial_examination.7001
Source: game/common/scripted_effects/tgp_imperial_examination_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.