• 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.

anexgohan

Sergeant
28 Badges
Jan 16, 2010
97
22
  • Crusader Kings II: Legacy of Rome
  • Stellaris: Galaxy Edition
  • Sword of the Stars II
  • Sword of the Stars
  • Semper Fi
  • Europa Universalis IV: Res Publica
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: The Republic
  • Europa Universalis IV: Call to arms event
  • Crusader Kings II
  • Prison Architect
  • Cities: Skylines - Parklife
  • Cities: Skylines - Parklife Pre-Order
  • Age of Wonders III
  • Hearts of Iron IV Sign-up
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris
  • Europa Universalis IV: Pre-order
  • Cities: Skylines
Hey everyone,
I'm trying to mod some things and I was looking into \Stellaris\common\opinion_modifiers "00_opinion_modifiers.txt" file
can anyone explain to me what "unique = yes" and "accumulative = yes" does
Also, how do I add a modifier so that it decreases in value over distance.
What i'm trying to do is, i'm trying to make it so that no matter how much aggressive I am or any other AI the threat does not exceed -100 value so our relations are not affected by more than -100 points but no matter what I do I cannot put a cap on it it just keeps on going.
Thankyou.
 
Last edited:
If you add a modifier i.e. 3 times, it will look like this:
Likes Modders +30
Likes Modders +30
Likes Modders +30

"unique = yes" will cause it to do the first add, but ignore the second add and third add and will look like this:
Likes Modders +30

"accumulative = yes" will cause it to merge the 3 adds, and it will look like this:
Likes Modders +90

"unique = yes" and "accumulative = yes" will ... I have no idea, maybe it explodes.

"decreases in value over distance", I also don't know, sorry.
 
If you add a modifier i.e. 3 times, it will look like this:
Likes Modders +30
Likes Modders +30
Likes Modders +30

"unique = yes" will cause it to do the first add, but ignore the second add and third add and will look like this:
Likes Modders +30

"accumulative = yes" will cause it to merge the 3 adds, and it will look like this:
Likes Modders +90

"unique = yes" and "accumulative = yes" will ... I have no idea, maybe it explodes.

"decreases in value over distance", I also don't know, sorry.

Thankyou, i think it makes it more clear to me now,
Also i'm trying to make it so that no matter how much aggressive I am or any other AI the threat does not exceed -100 value but no matter what I do I cannot put a cap on it.
 
In opinion_modifiers.txt, if I set "base = -1" to "base = 1" then in game the threat becomes a positive modifier so I think it is the correct value, but for some weird reason "min = -100" value just doesnt do anything
 
so I tried

# Threat opinion modifier
opinion_threat = {
opinion = {
base = -1
}

min = -100

accumulative = yes
}

this gives the same result as soon as I win a war conquering planets from AI the threat shoots to -613, what I want is it to remain at the cap value of -100 never going up anlo decaying over time
 
How do you add 613 of this modifier? All at once? Or a loop of 613 iterations?

Ok, I just realized this is a vanilla modifier and it even has min = -1000 in vanilla. Does this even work?

Maybe the minimum check only applies if you add the opinion modifier with add_opinion_modifier. But this modifier is added by the c++ core and ignores the limit.