• 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.

Dark3rStrik3

Recruit
35 Badges
Nov 13, 2015
1
0
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Semper Fi
  • Prison Architect
  • Age of Wonders III
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Hearts of Iron IV: La Resistance
  • Stellaris: Federations
  • Stellaris: Synthetic Dawn
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris
  • Cities: Skylines
  • Magicka
  • Europa Universalis IV
  • Cities in Motion
  • Cities in Motion 2
Hey, maybe someone here can help me with a problem, I want to change the type of a megastructure from a functioning type to the ruined type via event but i couldn't find a way that works.

I tried to do it with this:
Code:
every_megastructure = {

    limit = { is_megastructure_type = crucible_project_4 }

    remove_megastructure = THIS

    from.planet = {

        spawn_megastructure = {

            type = "crucible_project_ruined"

            location = from.planet

        }

    }

}