Scripted effect · Coronations files
coronation_oath_legitimacy_effect
coronation_oath_legitimacy_effect = { VALUE = … }game/common/scripted_effects/10_ach_effects.txt, line 795 (17 lines). Parameters: $VALUE$.
coronation_oath_legitimacy_effect is a scripted effect in Crusader Kings III, in the Coronations files, written at line 795 of its file. A call passes 1 parameter: VALUE. The game's script calls it in 1 place, among them coronation_oath_reward_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/10_ach_effects.txt.
What it does
- Gains … Legitimacy
• 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 (17 lines of game script)
coronation_oath_legitimacy_effect = {
save_scope_value_as = {
name = base_value
value = {
value = $VALUE$
if = { # With higher legitimacy level, you are less in need of legitimacy, so we reduce the amount. In turn, we increase prestige gains later
limit = {
root.legitimacy_level >= 5
}
multiply = 0.5
}
#Balancing down because wow
multiply = 0.2
}
}
add_legitimacy = scope:base_value
}As written in game/common/scripted_effects/10_ach_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls coronation_oath_legitimacy_effect.
Scripted effects (1)
Source: game/common/scripted_effects/10_ach_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.