Can't figure out how to add modifiers to planets

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

DerelictDawn

Recruit
14 Badges
Jan 19, 2020
1
0
  • Stellaris
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Imperator: Rome
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Imperator: Rome - Magna Graecia
Hello, I've been trying to make my own custom home system and as the title states, the one thing that has caused a roadblock in my plans is adding a modifier to planets, Lush, or High gravity for example. Could some kind soul perhaps give me an example of an up to date planet with a modifier added (or link me to an up to date post where that is explained)? Any help would me much appreciated.
 

Mitchz95

Field Marshal
17 Badges
Feb 4, 2016
3.535
2.571
  • Stellaris: Synthetic Dawn
  • Stellaris: Humanoids Species Pack
  • Stellaris: Nemesis
  • Stellaris: Necroids
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Stellaris: Megacorp
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Stellaris
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Major Wiki Contributor
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
One of the game start events removes modifiers (except Terraforming Candidate) from all home systems. You'll have to write your own event, firing after that one, which adds the modifiers to the targeted planets.
 

Qilue

Captain
70 Badges
Jun 20, 2004
467
58
  • Stellaris: Galaxy Edition
  • Mount & Blade: Warband
  • Mount & Blade: With Fire and Sword
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Magicka 2
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Magicka 2: Ice, Death and Fury
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Magicka: Wizard Wars Founder Wizard
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Europa Universalis IV: Cradle of Civilization
  • Crusader Kings II: Jade Dragon
  • Stellaris: Nemesis
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Crusader Kings II
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Magicka
  • Pirates of Black Cove
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • 500k Club
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Europa Universalis III: Collection
Or, create a custom modifier like this

From 00_planet_modifiers.txt
Code:
pm_custom_lush = {
   spawn_chance = {
       modifier = {
           factor = 0
           has_planet_modifier = "pm_bleak"
       }
       modifier = {
           factor = 0
           has_planet_modifier = "pm_lush"
       }
       modifier = {
           factor = 0
           num_modifiers < 10
       }
   }
   modifier = "custom_lush_planet"
}
From 00_static_modifiers.txt
Code:
custom_lush_planet = {
   pop_environment_tolerance = 0.10
   planet_jobs_food_produces_mult = 0.20
   district_farming_max = 4
 
   icon = "gfx/interface/icons/planet_modifiers/pm_lush.dds"
   icon_frame = 1
}
You'll need to add localization as well.

This will allow you to have that modifier on your homeworld and avoid the startup event which removes modifiers