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

Deterock

Augustus/Freelance translator of EUV news
69 Badges
Aug 12, 2017
211
511
vk.com
  • Hearts of Iron 4: Arms Against Tyranny
  • Hearts of Iron IV: By Blood Alone
  • Stellaris: Necroids
  • Stellaris: Digital Anniversary Edition
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: La Resistance
  • Battle for Bosporus
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Nemesis
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Stellaris: Synthetic Dawn
  • Stellaris: Humanoids Species Pack
  • Stellaris: Megacorp
  • Stellaris: Leviathans Story Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Golden Century
  • Europa Universalis IV: Cradle of Civilization
  • Age of Wonders: Planetfall
  • Europa Universalis 4: Emperor
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Rule Britannia
  • Age of Wonders III
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV
  • Europa Universalis IV: Pre-order
  • Crusader Kings III: Royal Edition
  • Crusader Kings III
  • Imperator: Rome - Magna Graecia
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Crusader Kings II: Holy Fury
  • Crusader Kings II: The Old Gods
Hey there! I'm working on a mod and one of my goals is to deal with factions. I've noticed that fulfilled_effect boosts faction's approval and unfulfilled_effect lowers it, however I would like it to add/remove country flag or modifier. Is there any way to do it? Or at least is there a way to use faction approval somehow? Like you can count faction members (because it's basically pops with faction's ethic) I would like to count faction's approval and to use it for my purpose (f.e. if factions approval > 60, then do this and that). Also I think effect is not the case since it is used for actions and I'm working with demands (however I still can use it in actions if there's any way to check faction's approval). Thanks in advance!
 
Well, you can check a faction's approval via:

Code:
faction_approval - Checks the scoped faction's approval percentage
faction_approval < 0.9
Supported Scopes: pop_faction

You seem to have some basic knowledge of Stellaris code if you know to script, so I assume you just need that pointer?

In general, script documentation can be found in: Documents\Paradox Interactive\Stellaris\logs\script_documentation
 
  • 1Like
Reactions:
Well, you can check a faction's approval via:

Code:
faction_approval - Checks the scoped faction's approval percentage
faction_approval < 0.9
Supported Scopes: pop_faction

You seem to have some basic knowledge of Stellaris code if you know to script, so I assume you just need that pointer?

In general, script documentation can be found in: Documents\Paradox Interactive\Stellaris\logs\script_documentation
Much appreciate! Yep, I needed that. Usually I just copy-paste parts of code (since I'm new in modding but I have some programming experience) from different files, but I never saw faction approval check, so I was not sure if this simple way is possible. I presume I just need to use it inside faction's file and it checks that faction's approval, right? Also can I use every pointer in a similar way? That would be very handy!
 
Sorry for the late answer, must have missed the notification, but no, that won't work.

You can do these things, but you will need to do them via event modding. A general guide for it can be found here:

Essentially, the general idea is to use an on_action that triggers every month, make it trigger an event that then loops through all factions and does the checks and effects that you want to do.