Scripted effect · All Under Heaven files
change_candidate_score_law_effect
change_candidate_score_law_effect = yesgame/common/scripted_effects/10_dlc_tgp_scripted_effects.txt, line 801 (13 lines). No parameters.
change_candidate_score_law_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 801 of its file. It takes no parameters: change_candidate_score_law_effect = yes. The game's script calls it in 2 places, among them grant_movement_petition_effect (scripted effect) and grant_movement_petition_tooltip_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_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 (13 lines of game script)
change_candidate_score_law_effect = {
scope:hegemon = {
if = {
limit = {
has_realm_law = candidate_score_merit_law
}
add_realm_law_skip_effects = candidate_score_prestige_law
}
else = {
add_realm_law_skip_effects = candidate_score_merit_law
}
}
}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 change_candidate_score_law_effect.
Scripted effects (2)
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.