I am adding several new species trait types that do not work the same as other traits in the game. So I must cycle through all races and add traits that I am adding based on a random list. This method works for the human player as it is not random, but picked by the player in response to a popup at the beginning of the game. I am having an issue with it not recognizing the "name = " line in the following code (this line works fine in a popup option's code.). What am I doing wrong?
NOTE: Functionally, not using the name option seems to work; but I don't want the game to rename the species. This code is placed in a non-specific "event", whereas the popup code is a country event... so that may have something to do with it?
This is the error I am getting: name effect at file: events/pmct_start_events.txt line: 45 accepts only yes or no as values
EDIT: I also need a way to add additional trait points (available slots) to the species when I add these traits so that it doesn't affect the number of traits that can be used when gene modification is researched. (My mod lowers the number of starting traits to compensate.)
NOTE: Functionally, not using the name option seems to work; but I don't want the game to rename the species. This code is placed in a non-specific "event", whereas the popup code is a country event... so that may have something to do with it?
Code:
immediate = {
every_country = {
limit = {
is_ai = yes
}
if = {
limit = {
owner_species = { is_species_class = whatever_class }
}
random_list = {
32 ={
every_owned_pop = {
limit = {
is_same_species = root
NOT = { has_trait = some_new_trait }
}
modify_species = {
species = this
name = this
add_trait = some_new_trait
}
}
change_dominant_species = { species = last_created change_all = yes }
}
...
}
...
}
...
}
...
}
This is the error I am getting: name effect at file: events/pmct_start_events.txt line: 45 accepts only yes or no as values
EDIT: I also need a way to add additional trait points (available slots) to the species when I add these traits so that it doesn't affect the number of traits that can be used when gene modification is researched. (My mod lowers the number of starting traits to compensate.)
Last edited: