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

RavenCurow

Private
53 Badges
Oct 23, 2013
12
0
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Rights of Man
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Pre-order
  • Cities: Skylines Deluxe Edition
  • Crusader Kings II
  • Sword of the Stars II
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Age of Wonders III
  • Stellaris: Federations
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Stellaris: Megacorp
  • Europa Universalis IV: Golden Century
  • Stellaris: Ancient Relics
  • Age of Wonders: Planetfall Sign Up
  • Stellaris: Lithoids
  • Europa Universalis 4: Emperor
  • Stellaris: Necroids
  • Europa Universalis IV: Mandate of Heaven
  • Cities: Skylines - Mass Transit
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Galaxy Edition
  • Stellaris
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
Is there any way to make buildable pops the same races as your player race. I'm wanting to make a robot race, but at the moment the starting robots and the built robots are considered a different race. Its kind of annoying.
 

Aye. So you don't need to dissect the mod OP, here's the event that does the deed you want to do:

Code:
planet_event = {
   id = clonedev.1
   hide_window = yes

   trigger = {
     has_owner = yes
     num_pops > 0
     any_pop = {
       is_species = CLONE_POP_MATURE
     } 
   }

   immediate = {
     every_owned_pop = {
       limit = {
         is_species = CLONE_POP_MATURE
         is_growing = no
       }
       kill_pop = yes
       from = {
         create_pop = {
           species = owner_main_species
           ethos = owner
         }
       }
     }
   }
}

Replace CLONE_POP_MATURE with whatever the species is you defined for your custom robots. You'll need a namespace just cos but there's no call from a source. It's self-triggering. I've found no performance issues and since many many vanilla events go off every tick too, I'm not surprised.

EDIT every_pop was too wide a scope, which is why I used every_owned_pop. The spurious error logged then went away.
 
Last edited: