Scripted effect · Coronations files
coronation_upgrade_oath_value_effect
coronation_upgrade_oath_value_effect = yesgame/common/scripted_effects/10_ach_effects.txt, line 516 (209 lines). No parameters.
coronation_upgrade_oath_value_effect is a scripted effect in Crusader Kings III, in the Coronations files, written at line 516 of its file. It takes no parameters: coronation_upgrade_oath_value_effect = yes. The game's script calls it in 1 place, among them Coronation (activity). Patch 1.20.1.2, from game/common/scripted_effects/10_ach_effects.txt.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (120 lines of game script)
coronation_upgrade_oath_value_effect = {
save_scope_value_as = {
name = value_of_oath
value = {
value = 0
add = {
value = scope:activity.var:activity_special_type_progression
divide = 20
ceiling = yes
}
min = 1
}
}
# Diplomacy
if = {
limit = {
has_variable = diplomacy_oath_1
var:diplomacy_oath_1 = 0
}
set_variable = {
name = diplomacy_oath_1
value = scope:value_of_oath
}
}
if = {
limit = {
has_variable = diplomacy_oath_2
var:diplomacy_oath_2 = 0
}
set_variable = {
name = diplomacy_oath_2
value = scope:value_of_oath
}
}
# Martial
else_if = {
limit = {
has_variable = martial_oath_1
var:martial_oath_1 = 0
}
set_variable = {
name = martial_oath_1
value = scope:value_of_oath
}
}
else_if = {
limit = {
has_variable = martial_oath_2
var:martial_oath_2 = 0
}
set_variable = {
name = martial_oath_2
value = scope:value_of_oath
}
}
# Stewardship
else_if = {
limit = {
has_variable = stewardship_oath_1
var:stewardship_oath_1 = 0
}
set_variable = {
name = stewardship_oath_1
value = scope:value_of_oath
}
}
else_if = {
limit = {
has_variable = stewardship_oath_2
var:stewardship_oath_2 = 0
}
set_variable = {
name = stewardship_oath_2
value = scope:value_of_oath
}
}
# Intrigue
# Learning
else_if = {
limit = {
has_variable = learning_oath_1
var:learning_oath_1 = 0
}
set_variable = {
name = learning_oath_1
value = scope:value_of_oath
}
}
# De Jure rights
else_if = {
limit = {
has_variable = purge_pretenders_oath
var:purge_pretenders_oath = 0
}
set_variable = {
name = purge_pretenders_oath
value = scope:value_of_oath
}
}
# End the struggle
else_if = {
limit = {
has_variable = end_the_struggle_oath
var:end_the_struggle_oath = 0
}
set_variable = {
name = end_the_struggle_oath
value = scope:value_of_oath
}
}
# Greatest Hunter
else_if = {
limit = {
has_variable = greatest_hunter_oath
var:greatest_hunter_oath = 0
}
set_variable = {As written in game/common/scripted_effects/10_ach_effects.txt.
The first 120 of its 209 lines; the rest is in game/common/scripted_effects/10_ach_effects.txt from line 516.
Where it is used
Every place in common/, events/ and history/ that calls coronation_upgrade_oath_value_effect.
Activities (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.