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

Adrik Thorsen

Ché
47 Badges
May 16, 2016
439
314
www.leftvoice.org
  • Crusader Kings II: Legacy of Rome
  • Victoria 3 Sign Up
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Way of Life
  • Cities: Skylines Deluxe Edition
  • Crusader Kings II: Sword of Islam
  • Cities: Skylines
  • Crusader Kings III: Royal Edition
  • Europa Universalis IV
  • Stellaris: Galaxy Edition
  • Stellaris: Nemesis
  • Stellaris: Necroids
  • Battle for Bosporus
  • Imperator: Rome - Magna Graecia
  • Stellaris: Federations
  • Hearts of Iron IV: La Resistance
  • Imperator: Rome
  • Stellaris: Galaxy Edition
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Ancient Relics
  • Stellaris: Megacorp
  • Stellaris: Lithoids
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings III
  • Crusader Kings III Referal
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Age of Wonders: Planetfall
  • Age of Wonders: Planetfall Deluxe edition
  • Age of Wonders: Planetfall Sign Up
  • Age of Wonders III
  • Tyranny: Gold Edition
  • Tyranny - Tales from the Tiers
  • Tyranny - Bastards Wound
  • Crusader Kings II
  • Crusader Kings II: The Old Gods
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Stellaris
- How can I add anomaly events to specific planetary bodies? I originally assumed that something like this would work when tagged on an asteroid in my system:
Code:
            init_effect = {
                add_anomaly = {
                event = "precursor.2005"
                days = -1
            }
        }
This does not work, and broke my entire system when I tried adding it to one of the asteroids in my home system. Any advice on getting this working?
 
You add anomalies by adding an appropriate anomaly category, not by directly adding an anomaly event. So in this case, your code block would look like
Code:
    init_effect = {
        add_anomaly = cybrex_habitable_category
    }
where I determined that cybrex_habitable_category was the appropriate anomaly category for this anomaly event by searching the 00_anomalies... files in the anomalies folder for precursor.2005.

Note that anomaly categories may be associated with more than one anomaly, in which case you will not necessarily get the specific anomaly event you are looking for. In this case, for example, there appear to be five possible anomalies for cybrex_habitable_category, and which one you get depends in part on whether the cybrex_intro country flag is set and in part on luck.
 
So the following:

Code:
   planet = {
        count = { min = 2 max = 5 }
        orbit_distance = 20
        change_orbit = @base_moon_distance
   
        moon = {
            count = { min = 3 max = 9 }
            orbit_distance = 5

            init_effect = {
            add_anomaly = cybrex_uninhabitable_category
            }
        }
    }

Would add that anomaly to at least 1 of the 3-9 moons in question? Or to ALL of them?
 
Last edited:
Also, that doesn't precisely work. Breaks the entire system. Played with it a bit and concluded that the proper syntax should be:

Code:
init_effect = {
add_anomaly = {
 category = "cybrex_habitable_category"
   }
}

Except that that removes the custom moon from my system, although it doesn't break anything else. Is this a weight issue? Should I use a line such as

Code:
init_effect = {
add_anomaly = {
 category = "cybrex_habitable_category"
 weight = 500
   }
}

perhaps?
 
Code:
planet = {
count = { min = 2 max = 5 }
orbit_distance = 20
change_orbit = @base_moon_distance

moon = {
   name = ""
   count = 1
   orbit_distance = 3

   init_effect = {
        anomaly = {
        event = precursor.2000
        category = "cybrex_asteroid_category"
   
        weight = 500
   
        potential = {
            always = yes
                }
            }
        }
    }
moon = {
count = { min = 3 max = 9 }
orbit_distance = 5

init_effect = {
add_anomaly = cybrex_uninhabitable_category
   }
 }
}

Should work for spawning both a random number of moons and the anomalous one?
 
Actually adding the anomaly to an asteroid in my home system removed all the planets which spawn after that asteroid. Is there a system flag I'm missing for precursor anomalies?
 
Does the error log say anything?

Each system gets a precursor flag from the precursor file. You can see which precursor will spawn in what system with "-debug" turned on. So there might be a conflict.