I'm not an expert at modding, but I sometimes tweak numbers and values in the defines.lua and other files. So I was trying to find a modifier for threat level, with the aim of changing the minimum threat level before one can form a defensive pact against a character from 5% to something like 15%.
That's the closest thing I found, in the defines.lua
DEFENSIVE_PACT_THREAT_LIMIT = 0.05, -- The amount of provinces in a realm that is needed for beeing a valid target of a defensive pact
DEFENSIVE_PACT_SIZE_RATIO = 1.0, -- Relative size requirement is this at 100% threat
DEFENSIVE_PACT_MAX_RANGE = 400, -- At 100% threat characters are able to join defensive pacts against targets of this distance
DEFENSIVE_PACT_MAX_RANGE_SAME_GROUP = 300, -- At 100% threat characters are able to join defensive pacts against targets of this distance
DEFENSIVE_PACT_THREAT_SIZE_START = 0.0, -- Relative size requirement starts from this level of threat
DEFENSIVE_PACT_BASE_SIZE = 0.0, -- This is the base size requirement at 0% threat
MAX_INFAMY_GAIN = 50,
EVERY_DEFENSIVE_PACT_JOIN_THREAT = 0.95, -- If threat is this high, members of all defensive pacts against a target will join
EVERY_DEFENSIVE_PACT_EXCEPT_HEADS_JOIN_THREAT = 0.75, -- If threat is this high, members of all defensive pacts against a target will join, except religious heads that only joins when their own group is attacked
OTHER_DEFENSIVE_PACT_JOIN_THREAT = 0.50, -- If threat is this high, other religious groups band together when attacked, if it's lower every defensive pact acts on it's own
The last three are clearly the higher threat levels. But the "base" threat level, the level of infamy after which defensive pacts can be formed, doesn't seem to exist. So, the question is: does it exist? And where is it?
That's the closest thing I found, in the defines.lua
DEFENSIVE_PACT_THREAT_LIMIT = 0.05, -- The amount of provinces in a realm that is needed for beeing a valid target of a defensive pact
DEFENSIVE_PACT_SIZE_RATIO = 1.0, -- Relative size requirement is this at 100% threat
DEFENSIVE_PACT_MAX_RANGE = 400, -- At 100% threat characters are able to join defensive pacts against targets of this distance
DEFENSIVE_PACT_MAX_RANGE_SAME_GROUP = 300, -- At 100% threat characters are able to join defensive pacts against targets of this distance
DEFENSIVE_PACT_THREAT_SIZE_START = 0.0, -- Relative size requirement starts from this level of threat
DEFENSIVE_PACT_BASE_SIZE = 0.0, -- This is the base size requirement at 0% threat
MAX_INFAMY_GAIN = 50,
EVERY_DEFENSIVE_PACT_JOIN_THREAT = 0.95, -- If threat is this high, members of all defensive pacts against a target will join
EVERY_DEFENSIVE_PACT_EXCEPT_HEADS_JOIN_THREAT = 0.75, -- If threat is this high, members of all defensive pacts against a target will join, except religious heads that only joins when their own group is attacked
OTHER_DEFENSIVE_PACT_JOIN_THREAT = 0.50, -- If threat is this high, other religious groups band together when attacked, if it's lower every defensive pact acts on it's own
The last three are clearly the higher threat levels. But the "base" threat level, the level of infamy after which defensive pacts can be formed, doesn't seem to exist. So, the question is: does it exist? And where is it?