Scripted effect
remove_lack_of_sheriffs_modifier_effect
remove_lack_of_sheriffs_modifier_effect = yesgame/common/scripted_effects/00_county_corruption_effects.txt, line 1260 (25 lines). No parameters.
remove_lack_of_sheriffs_modifier_effect is a scripted effect in Crusader Kings III, written at line 1260 of its file. It takes no parameters: remove_lack_of_sheriffs_modifier_effect = yes. The game's script calls it in 3 places, among them marshal_remove_random_county_corruption_modifier_effect (scripted effect), remove_every_county_corruption_modifier_effect (scripted effect) and remove_random_county_corruption_modifier_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_county_corruption_effects.txt.
What it does
- Their holder:
If a check the game hides passes: the same again (1 line)
- scope:county: The county loses the modifier “Lack of Sheriffs”
Otherwise
- scope:county: The county loses the modifier “Lack of Sheriffs”
• 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 (25 lines of game script)
remove_lack_of_sheriffs_modifier_effect = {
save_scope_as = county
holder = {
if = {
limit = {
exists = scope:marshal_removal
}
send_interface_message = {
type = msg_county_corruption_good_increase_control
title = remove_county_corruption.message.marshal_removal
left_icon = scope:county
right_icon = scope:councillor
scope:county = {
remove_county_modifier = county_corruption_lack_of_sheriffs_modifier
}
}
}
else = {
scope:county = {
remove_county_modifier = county_corruption_lack_of_sheriffs_modifier
}
}
}
}As written in game/common/scripted_effects/00_county_corruption_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls remove_lack_of_sheriffs_modifier_effect.
Source: game/common/scripted_effects/00_county_corruption_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.