I have the code snippet in the solar system initializer that generates the species after planetary survey, which I got from a forum search. It is as follows:
With the above, a pre-sentient species is generated at random and visible once the planet is surveyed. However, I'm not clear on, and couldn't find someone being specific about doing it, how I add the survey anomaly/event that accompanies the finding of a pre-sentient species.
I can specify the an anomaly, but I'm not sure exactly which one, nor am I positive either about the syntax involved in putting that anomaly on the planet so that it always triggers.
Or maybe there's a better way to do this altogether? What I'm trying to do is mimic the normal "you found a pre-sentient race" you would encounter anywhere else in the game as closely as is possible. Preferably 100% the same, but maybe I just can't do that?
Code:
init_effect = {
prevent_anomaly = yes
random_list = {
100 = {
create_species = {
name = random
class = PRE_MOL
portrait = random
homeworld = THIS
sentient = no
traits = {
trait = random_presentient_trait
}
}
random_tile = {
limit = {
has_blocker = no
has_grown_pop = no
has_growing_pop = no
}
add_resource = {
resource = food
amount = 4
replace = yes
}
create_pop = {
species = last_created
ethos = owner
}
}
random_tile = {
limit = {
has_blocker = no
has_grown_pop = no
has_growing_pop = no
}
create_pop = {
species = last_created
ethos = owner
}
}
random_tile = {
limit = {
has_blocker = no
has_grown_pop = no
has_growing_pop = no
}
create_pop = {
species = last_created
ethos = owner
}
}
random_tile = {
limit = {
has_blocker = no
has_grown_pop = no
has_growing_pop = no
}
create_pop = {
species = last_created
ethos = owner
}
}
}
}
}
With the above, a pre-sentient species is generated at random and visible once the planet is surveyed. However, I'm not clear on, and couldn't find someone being specific about doing it, how I add the survey anomaly/event that accompanies the finding of a pre-sentient species.
I can specify the an anomaly, but I'm not sure exactly which one, nor am I positive either about the syntax involved in putting that anomaly on the planet so that it always triggers.
Or maybe there's a better way to do this altogether? What I'm trying to do is mimic the normal "you found a pre-sentient race" you would encounter anywhere else in the game as closely as is possible. Preferably 100% the same, but maybe I just can't do that?
Last edited: