• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.
Status
Not open for further replies.

Robert Paulsen

Recruit
14 Badges
Mar 14, 2016
1
0
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Rome Gold
  • Victoria 2: A House Divided
  • Victoria 2
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Hearts of Iron IV: Cadet
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
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?
 

Aardvark Bellay

Lord Wuffington of Grumpytown by the barks
21 Badges
Apr 5, 2001
15.449
2.865
  • Divine Wind
  • Stellaris Sign-up
  • Hearts of Iron IV Sign-up
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria 2
  • Victoria: Revolutions
  • Heir to the Throne
  • Crusader Kings II
  • Europa Universalis III
  • Deus Vult
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
  • 1
Reactions:
Status
Not open for further replies.