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

nikkythegreat

Major
41 Badges
Dec 26, 2017
720
1.751
  • Crusader Kings II
  • Stellaris: Megacorp
  • Stellaris: Synthetic Dawn
  • Stellaris - Path to Destruction bundle
  • Imperator: Rome
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Surviving Mars: First Colony Edition
  • Cities: Skylines Industries
  • Cities: Skylines - Green Cities
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Ancient Relics
  • Age of Wonders: Planetfall
  • Stellaris: Lithoids
  • Hearts of Iron IV: La Resistance
  • Stellaris: Federations
  • Crusader Kings III
  • Battle for Bosporus
  • Empire of Sin
  • Stellaris: Necroids
  • Age of Wonders III
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Cities: Skylines
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Cities: Skylines - Mass Transit
  • BATTLETECH
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Imperator: Rome - Magna Graecia
  • Crusader Kings II: The Old Gods
So this is what I'm trying to do. I want to have a modifier that increases empire size by 6% for every planet that an empire owns. That way as your empire grows larger the more it taxes your bureaucracy.


So I'm thinking for doing this by a monthly on_action that counts the number of planets an empire has then applies the necessary modifier. I'm making 100 versions of the modifier for an empire having 1-100 planets.

So how do I create an on_action and event like this?
 

James Fire

Lt. General
55 Badges
Jan 30, 2018
1.519
988
  • Crusader Kings II
  • Magicka 2
  • Stellaris: Synthetic Dawn
  • Cities: Skylines - Green Cities
  • Stellaris
  • Crusader Kings II: Reapers Due
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • Surviving Mars
  • Age of Wonders III
  • Crusader Kings II: Conclave
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Surviving Mars: Digital Deluxe Edition
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Shadowrun: Dragonfall
  • Cities: Skylines Industries
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Cities: Skylines - Campus
  • Stellaris: Ancient Relics
  • Stellaris: Nemesis
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Cities: Skylines - Snowfall
  • Stellaris: Necroids
  • Semper Fi
  • Cities: Skylines
  • Europa Universalis III: Collection
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Majesty 2 Collection
  • Crusader Kings II: The Old Gods
  • Europa Universalis III
  • Divine Wind
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
You don't create an on_action for this. You use the existing on_monthly_pulse_country.

As for events, you can check out my Bureaucratic Test Mod for an event that does something similar. I have deposits on each planet that give sprawl penalties based on the capital building.

I believe it is linked in my signature.
 

nikkythegreat

Major
41 Badges
Dec 26, 2017
720
1.751
  • Crusader Kings II
  • Stellaris: Megacorp
  • Stellaris: Synthetic Dawn
  • Stellaris - Path to Destruction bundle
  • Imperator: Rome
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Surviving Mars: First Colony Edition
  • Cities: Skylines Industries
  • Cities: Skylines - Green Cities
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Ancient Relics
  • Age of Wonders: Planetfall
  • Stellaris: Lithoids
  • Hearts of Iron IV: La Resistance
  • Stellaris: Federations
  • Crusader Kings III
  • Battle for Bosporus
  • Empire of Sin
  • Stellaris: Necroids
  • Age of Wonders III
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Cities: Skylines
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Cities: Skylines - Mass Transit
  • BATTLETECH
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Imperator: Rome - Magna Graecia
  • Crusader Kings II: The Old Gods
You don't create an on_action for this. You use the existing on_monthly_pulse_country.

As for events, you can check out my Bureaucratic Test Mod for an event that does something similar. I have deposits on each planet that give sprawl penalties based on the capital building.

I believe it is linked in my signature.
I tried something like this but the problem is the empire sprawl UI would be filled by +6% empire sprawl data.

That's why I wanted to make it a single modifier to it does not clutter the UI.


Edit: nevermind I just found out how.
 
Last edited: