I need a way to check if the specific star in a system has a megastructure. How can I do this?

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

El Doctoro

Private
17 Badges
Mar 11, 2018
18
0
  • Stellaris: Synthetic Dawn
  • Stellaris: Apocalypse
  • Stellaris: Nemesis
  • Stellaris: Necroids
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Prison Architect
  • Stellaris: Megacorp
  • Stellaris: Distant Stars
  • Stellaris
  • Stellaris: Humanoids Species Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
For binary systems, has_star_flag checks the system, not the specific star being targeted. When I use has_planet_flag, the check always succeeds. In order to allow one dyson sphere for each star, I need a way to check if the specific target has either a megastructure, or a flag. Is there a way to do this? Is there anything I can do to the star with on_build_complete that can then be checked with the placement rules?