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:
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 ?
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:
create_caste_lower has this code: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 = {
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 ?