what is wrong here? I'm trying to get another species to spawn at game start in my empire. Eventually i want to spawn several species but cant seem to get the 1st one to work.
-on action file-
on_game_start_country = {
events = {
halo_game_start_event.1
}
}
-event file-
namespace = halo_game_start_event
country_event = {
id = halo_game_start_event.1
hide_window = yes
is_triggered_only = yes
trigger = {
is_country_type = default
}
immediate = {
every_planet_within_border = {
limit = {
is_capital = yes
owner = { has_trait = trait_cov }
}
while = {
count = 4
random_pop = {
limit = { is_pop_category = worker }
kill_pop = yes
}
}
create_species = {
name = "Sangheili"
plural = "Sangheili"
adjective = "Sangheili"
class = "REP"
portrait = sangheili_01
traits = {
trait = trait_pc_desert_preference
trait = trait_strong
trait = trait_resilient
trait = trait_adaptive
trait = trait_deviants
trait = trait_quarrelsome
}
}
while = {
count = 4
create_pop = { species = last_created_species }
}
}
}
}
-on action file-
on_game_start_country = {
events = {
halo_game_start_event.1
}
}
-event file-
namespace = halo_game_start_event
country_event = {
id = halo_game_start_event.1
hide_window = yes
is_triggered_only = yes
trigger = {
is_country_type = default
}
immediate = {
every_planet_within_border = {
limit = {
is_capital = yes
owner = { has_trait = trait_cov }
}
while = {
count = 4
random_pop = {
limit = { is_pop_category = worker }
kill_pop = yes
}
}
create_species = {
name = "Sangheili"
plural = "Sangheili"
adjective = "Sangheili"
class = "REP"
portrait = sangheili_01
traits = {
trait = trait_pc_desert_preference
trait = trait_strong
trait = trait_resilient
trait = trait_adaptive
trait = trait_deviants
trait = trait_quarrelsome
}
}
while = {
count = 4
create_pop = { species = last_created_species }
}
}
}
}