Trying to run a script that changed the species of Commonwealth to that of UNE if both are in the same game.
The problem when i run this. all it does is remove the species_index from the pops, instead of changing it to the correct species.
I'm not quite sure what i am doing wrong here.
It does seem to correctly change the dominant species to species_index=1 when i look in the save file. Which is what the species is for UNE. So the event_target is saved correctly. But for some reason i cant use it with change_pop_species...
Code:
trigger = {
any_country = { has_country_flag = human_2 }
any_country = { has_country_flag = human_1 }
}
immediate = {
random_country = {
limit = {
has_country_flag = human_1
}
owner_species = { save_event_target_as = humans }
}
random_country = {
limit = {
has_country_flag = human_2
}
every_owned_pop = {
change_pop_species = event_target:humans
}
change_dominant_species = event_target:humans
}
}
The problem when i run this. all it does is remove the species_index from the pops, instead of changing it to the correct species.
I'm not quite sure what i am doing wrong here.
It does seem to correctly change the dominant species to species_index=1 when i look in the save file. Which is what the species is for UNE. So the event_target is saved correctly. But for some reason i cant use it with change_pop_species...