Hi folks,
I've written an even to change the dominant species of a specific fallen empire via event. I want to change the specifics/theme of a particular FE to a specific combination *without* modifying 00_fallen_empire in order to maintain compatibility with as many mods as possible.
For reasons I can't pin down, it doesn't work.
An identical event targeting the Marauders *does* work. It seems to be some sort of problem with the event not firing and/or the effects not executing on the Fallen Empire.
From looking at vanilla events, I know that the country_event type fires for Fallen Empires. So I just genuinely have no idea why it doesn't work.
Just in case it matters, I've tried firing this on_country_start, as well as on_press_begin. I've also tried a version that fires on_start and is a general event just in case Fallen Empires don't get an "on_country_start". That version also does not seem to work.
Does anyone have any ideas?
I've written an even to change the dominant species of a specific fallen empire via event. I want to change the specifics/theme of a particular FE to a specific combination *without* modifying 00_fallen_empire in order to maintain compatibility with as many mods as possible.
For reasons I can't pin down, it doesn't work.
An identical event targeting the Marauders *does* work. It seems to be some sort of problem with the event not firing and/or the effects not executing on the Fallen Empire.
From looking at vanilla events, I know that the country_event type fires for Fallen Empires. So I just genuinely have no idea why it doesn't work.
Just in case it matters, I've tried firing this on_country_start, as well as on_press_begin. I've also tried a version that fires on_start and is a general event just in case Fallen Empires don't get an "on_country_start". That version also does not seem to work.
Does anyone have any ideas?
Code:
country_event = {
id = grimdarkify_events.2
hide_window = yes
is_triggered_only = yes
trigger = { has_civic = civic_lethargic_leadership }
immediate = {
create_species = {
class = "FUN"
portrait = "orkz"
name = "Testy"
plural = "Test"
adjective = "Test"
traits = random
extra_trait_points = 5
allow_negative_traits = no
}
last_created_species = { save_event_target_as = da_testz }
every_country = {
limit = {
is_country_type = fallen_empire
has_ethic = ethic_fanatic_xenophobe
}
change_dominant_species = {
species = event_target:da_testz
change_all = yes
}
}
}
}