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

Ralendil

Private
39 Badges
Apr 6, 2013
20
1
  • Cities in Motion 2
  • Surviving Mars: First Colony Edition
  • Surviving Mars: Digital Deluxe Edition
  • BATTLETECH - Digital Deluxe Edition
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Surviving Mars: First Colony Edition
  • Cities: Skylines Industries
  • BATTLETECH: Flashpoint
  • Stellaris: Megacorp
  • Stellaris: Humanoids Species Pack
  • Cities: Skylines - Campus
  • Stellaris: Ancient Relics
  • BATTLETECH: Season pass
  • Stellaris: Lithoids
  • BATTLETECH: Heavy Metal
  • Stellaris: Federations
  • Crusader Kings III
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Stellaris: Digital Anniversary Edition
  • Impire
  • Sword of the Stars
  • Cities: Skylines
  • Cities: Skylines - After Dark
  • Cities: Skylines - Snowfall
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Apocalypse
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • BATTLETECH
  • Surviving Mars
  • Stellaris: Synthetic Dawn
  • Cities: Skylines - Green Cities
Hello,

I want to use set_citizenship_type. It doesn’t seem to be difficult... but I have spent several hours and can’t get it to work.
I try to start the game and make that the origin created get 2 other species. So I create species in generate_start_pops (called in origin.55 called itself in game_start.1 event).

In generate_start_pops I have put these code lines:

if = {
limit = {
owner = { has_origin = origin_castes_system }
}
owner = { create_caste_lower = yes }

last_created_species = {
set_citizenship_type = {
country = root.owner
type = citizenship_slavery
}
}
while = {
count = 20
create_pop = {
species = last_created_species
}
}
}
create_caste_lower has this code:
create_caste_lower = {
create_species = {
name = random
class = this
namelist = this
portrait = this
traits = this
traits = {
ideal_planet_class = root
}
is_mod = no
effect = {
set_species_flag = caste_lower_species@prev
}
}
last_created_species = { save_event_target_as = last_created_species }

}

The result is that the game creates the species, it creates the pops, but do not change the citizenship type !!!! The empire can get slaves, I can even change manually the citizenship of the created species to slavery. But at the game start, the species has full citizenship. Can’t understand why, the code should work.

Anyone can help me and point me what I don’t see and that is surely evident ?