Scripted effect · Coronations files
ach_remove_oaths_on_king_minus_effect
ach_remove_oaths_on_king_minus_effect = yesgame/common/scripted_effects/10_ach_effects.txt, line 6976 (142 lines). No parameters.
ach_remove_oaths_on_king_minus_effect is a scripted effect in Crusader Kings III, in the Coronations files, written at line 6976 of its file. It takes no parameters: ach_remove_oaths_on_king_minus_effect = yes. The game's script calls it in 1 place, among them on_rank_down (on action). 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)
ach_remove_oaths_on_king_minus_effect = {
if = {
limit = {
has_variable = diplomacy_oath_1
}
remove_variable = diplomacy_oath_1
remove_variable = diplomacy_oath_1_timer
}
if = {
limit = {
has_variable = diplomacy_oath_2
}
remove_variable = diplomacy_oath_2
remove_variable = diplomacy_oath_2_timer
}
# Martial
if = {
limit = {
has_variable = martial_oath_1
}
remove_variable = martial_oath_1
remove_variable = martial_oath_1_timer
remove_variable = oath_reconquest_title
}
if = {
limit = {
has_variable = martial_oath_2
}
remove_variable = martial_oath_2
remove_variable = martial_oath_2_timer
remove_variable = oath_conquest_size
}
# Stewardship
if = {
limit = {
has_variable = stewardship_oath_1
}
remove_variable = stewardship_oath_1
remove_variable = stewardship_oath_1_timer
}
if = {
limit = {
has_variable = stewardship_oath_2
}
remove_variable = stewardship_oath_2
remove_variable = stewardship_oath_2_timer
}
# Learning
if = {
limit = {
has_variable = learning_oath_1
}
remove_variable = learning_oath_1
remove_variable = learning_oath_1_timer
remove_variable = learning_oath_cost
remove_variable = learning_oath_1_university_exists
}
# De Jure rights
if = {
limit = {
has_variable = purge_pretenders_oath
}
remove_variable = purge_pretenders_oath
remove_variable = purge_pretenders_oath_timer
remove_variable = purge_pretenders_target_title
}
# End the struggle
if = {
limit = {
has_variable = end_the_struggle_oath
}
remove_variable = end_the_struggle_oath
remove_variable = end_the_struggle_oath_timer
remove_variable = end_the_struggle_oath_type_var
}
# Greatest Hunter
if = {
limit = {
has_variable = greatest_hunter_oath
}
remove_variable = greatest_hunter_oath
remove_variable = greatest_hunter_oath_timer
remove_variable = greatest_hunter_oath_l_counter
remove_variable = greatest_hunter_oath_r_counter
}
# Heir Preparation
if = {
limit = {
has_variable = heir_preparation_oath
}
remove_variable = heir_preparation_oath
remove_variable = heir_preparation_oath_timer
}
# Install Claimants
if = {
limit = {
has_variable = install_claimants_oath
}
remove_variable = install_claimants_oath
remove_variable = install_claimants_oath_timer
}
# Mend the Fracture
if = {
limit = {
has_variable = mend_the_fracture_oath
}
remove_variable = mend_the_fracture_oath
remove_variable = mend_the_fracture_oath_timer
}
# Provide for the Warriors
if = {
limit = {
has_variable = provide_for_the_warriors_oath
}
remove_variable = provide_for_the_warriors_oath
remove_variable = provide_for_the_warriors_oath_timer
}
# Provide for the Faithful
if = {
limit = {As written in game/common/scripted_effects/10_ach_effects.txt.
The first 120 of its 142 lines; the rest is in game/common/scripted_effects/10_ach_effects.txt from line 6976.
Where it is used
Every place in common/, events/ and history/ that calls ach_remove_oaths_on_king_minus_effect.
On actions (the game's own hooks) (1)
- on_rank_down
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.