I'm trying to make script that replaces player's starting system with another when player has chosen certain trait for the empire. This is how it looks now:
Triggers work correctly, but starting system isn't replaced.
Code:
namespace = ffu_il_gameinit
event = {
id = ffu_il_gameinit.1
hide_window = yes
is_triggered_only = yes
immediate = {
every_country = {
limit = { is_ai = no has_trait = trait_legacy_ancient }
country_event = { id = ffu_il_gameinit.6 }
}
}
}
event = {
id = ffu_il_gameinit.6
title = "ffu_il_gameinit.06.name"
desc = ffu_il_gameinit.06.desc
picture = GFX_evt_space_station
show_sound = event_mystic_reveal
#hide_window = yes
is_triggered_only = yes
option = {
name = AMAZING
this = {
hidden_effect = {
owner = {
starting_system = {
spawn_system = {
initializer = "advanced_system_initializer"
}
}
}
}
}
}
}