I'm trying to create a trait that gives some psionic affinity from the start and gives the Psionic Theory tech. I've been unable to make the event trigger. The test code looks like this:
Currently neither outcome happens.
The on_actions bit looks like this:
So I don't think the problem is with on_actions, but I'm not sure.
Code:
country_event = {
id = savant.1
is_triggered_only = yes
immediate = {
if = {
limit = {
main_species = {
has_trait = { "trait_savant" }
}
}
give_technology = { tech = "tech_solar_panel_network" }
else = {
give_technology = { tech = "tech_shields_1" }
}
}
}
}
Currently neither outcome happens.
The on_actions bit looks like this:
Code:
on_game_start_country = {
events = {
#game_start.6
savant.1
}
}
So I don't think the problem is with on_actions, but I'm not sure.