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

Chilled Legumes

Second Lieutenant
84 Badges
Jan 16, 2016
185
169
  • Arsenal of Democracy
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Reapers Due
  • Stellaris: Galaxy Edition
  • Warlock: Master of the Arcane
  • Victoria 2: A House Divided
  • Teleglitch: Die More Edition
  • Sword of the Stars
  • Ship Simulator Extremes
  • Semper Fi
  • Rome Gold
  • Victoria: Revolutions
  • Majesty 2
  • Magicka
  • The Kings Crusade
  • Leviathan: Warships
  • Impire
  • Crusader Kings II
  • Stellaris: Apocalypse
  • Stellaris: Synthetic Dawn
  • Steel Division: Normand 44 - Second Wave
  • Ancient Space
  • Europa Universalis III
  • Lead and Gold
  • For The Glory
  • Hearts of Iron III
  • Heir to the Throne
  • Steel Division: Normandy 44
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • BATTLETECH
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Stellaris: Necroids
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • Crusader Kings II: Jade Dragon
  • Victoria 2
  • Supreme Ruler 2020
  • Hearts of Iron IV: Death or Dishonor
  • Surviving Mars
Hello!

I am trying to make a random choice. I've noticed that the random and random_list effects choose a random effect listed within.

I am trying to do this to specify a planet has at least one of a specific set of orbital deposits, however, nothing seems to be working.

Ive looked through the wiki, other mods, the game files itself, etc, nothing seems to be working.

What is the correct way to choose a random orbital deposit from a select set of deposits?

Alternatively, what is the correct way to use random_list, or random?

Code:
[15:35:34][effect_impl.cpp:293]:  effect at  file: common/solar_system_initializers/strong_start_initializer.txt line: 28 accepts only yes or no as values
[15:35:34][effect_impl.cpp:293]:  effect at  file: common/solar_system_initializers/strong_start_initializer.txt line: 34 accepts only yes or no as values

This is the error that i got before i gave up for the forums. Those lines are hjighlighted below:

Code:
    planet = {
        count = 6
        class = random_non_colonizable
        orbit_distance = 20
        orbit_angle = { min = 45 max = 315 }
        size = { min = 8 max = 11 }
        init_effect = {
            orbital_deposit_tile = {
                random_list = {
                    50 = {
                        >add_deposit = { bsi_mineral_deposit }
                    }

                    50 = {
                        >add_deposit = { bsi_energy_deposit }
                    }
                }
            }
        }