[Help/Question] Replace starting system on it?

  • We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

WarStalkeR

Sergeant
76 Badges
May 9, 2016
96
20
  • Crusader Kings II
  • Stellaris: Galaxy Edition
  • Stellaris
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Victoria 2: A House Divided
  • Teleglitch: Die More Edition
  • Supreme Ruler 2020
  • Sword of the Stars II
  • Rome Gold
  • Victoria: Revolutions
  • March of the Eagles
  • Leviathan: Warships
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Europa Universalis III Complete
  • Divine Wind
  • Ancient Space
  • Steel Division: Normand 44 - Second Wave
  • Magicka
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Stellaris - Path to Destruction bundle
  • Age of Wonders II
  • Steel Division: Normandy 44
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings Complete
  • BATTLETECH
  • Surviving Mars
  • Tyranny - Tales from the Tiers
  • Stellaris: Necroids
  • Age of Wonders: Shadow Magic
  • Age of Wonders
  • Tyranny: Gold Edition
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Stellaris Sign-up
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Cities: Skylines - Snowfall
  • Knights of Pen and Paper 2
  • Cities: Skylines - After Dark
  • Pillars of Eternity
  • Cities: Skylines
  • Rome: Vae Victis
  • Victoria 2
  • Europa Universalis III Complete
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:
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"
                        }
                    }
                }
            }
        }
    }
}
Triggers work correctly, but starting system isn't replaced.