Scripted effect · Roads to Power files
eparch_neglecting_duty_effect
eparch_neglecting_duty_effect = yesgame/common/scripted_effects/07_dlc_ep3_scripted_effects.txt, line 3810 (71 lines). No parameters.
eparch_neglecting_duty_effect is a scripted effect in Crusader Kings III, in the Roads to Power files, written at line 3810 of its file. It takes no parameters: eparch_neglecting_duty_effect = yes. The game's script calls it in 3 places, among them Eparch: Losing Control (event ep3_eparch_event.0005), Eparch: Sickness Strikes (event ep3_eparch_event.0010) and Eparch: University Needs Teachers (event ep3_eparch_event.0015). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.
What it does
- Continuous neglect of duty may cause your Liege to notice and take action
• 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 (71 lines of game script)
eparch_neglecting_duty_effect = {
custom_tooltip = {
text = eparch_neglecting_duty_warning_tt
# We check if you have neglected duties in the past
if = {
limit = {
exists = var:eparch_neglecting_duty
}
# If you have, let's first increase the variable
change_variable = { name = eparch_neglecting_duty add = 5 }
# Then check if the liege notices and decide to take action
random = {
chance = {
# Base value - Increases with each neglecting action
value = var:eparch_neglecting_duty
# Add the difference in intrigue skill
add = {
value = liege.intrigue
subtract = intrigue
}
# Add the difference in influence level
add = {
value = liege.influence_level
subtract = influence_level
multiply = 5
}
# Lower the chance if you belong to a powerful or dominant family
if = {
limit = {
house ?= { is_powerful_family = yes }
}
subtract = 10
}
if = {
limit = {
house ?= { is_dominant_family = yes }
}
subtract = 20
}
min = 5
max = 90
}
# The liege have noticed - We reduce the variable slightly as a result (but never below 0)
if = {
limit = {
exists = var:eparch_neglecting_duty
var:eparch_neglecting_duty >= 20
}
change_variable = { name = eparch_neglecting_duty subtract = 20 }
}
else = {
set_variable = { name = eparch_neglecting_duty value = 0 }
}
liege = {
trigger_event = { id = ep3_eparch_event.9000 days = { 10 90 } }
}
}
}
else = { # If you haven't, we'll set the variable and give you a free pass (you only get it for your very first time though)
set_variable = { name = eparch_neglecting_duty value = 0 }
}
}
}As written in game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls eparch_neglecting_duty_effect.
Events (3)
- Eparch: Losing Control
ep3_eparch_event.0005 - Eparch: Sickness Strikes
ep3_eparch_event.0010 - Eparch: University Needs Teachers
ep3_eparch_event.0015
Source: game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.