GithubHelp home page GithubHelp logo

stellaris's Introduction

Useful console snippets for Stellaris

L-Gate creation

https://steamcommunity.com/sharedfiles/filedetails/?id=2309469555

Hyperlane modification

You can mark multiple systems, in this case all of them will get hyperlane created/deleted to target system.

  1. Select any object in source system and add hyperlane_manipulator_marker flag to it:
    effect solar_system = {
      set_star_flag = hyperlane_manipulator_marker
    }
    
  2. Select any object in target system
    1. Create new hyperlane between target system and source system(s):
      effect solar_system = {
        every_system = { 
          limit = {
            has_star_flag = hyperlane_manipulator_marker 
          }
          if = {
            limit = {
              NOT = {
                has_hyperlane_to = prev
              }
            }
            add_hyperlane = {
              from = this
              to = prev
            }
          }
          remove_star_flag = hyperlane_manipulator_marker
        }
      }
      
    2. Remove existing hyperlane between target system and source system(s):
      effect solar_system = {
        every_system = { 
          limit = {
            has_star_flag = hyperlane_manipulator_marker 
          }
          if = {
            limit = {
              has_hyperlane_to = prev
            }
            remove_hyperlane = {
              from = this
              to = prev
            }
          }
          remove_star_flag = hyperlane_manipulator_marker
        }
      }
      
  3. Clear hyperlane_manipulator_marker marker flag from all systems:
    effect every_system = {
      limit = {
        has_star_flag = hyperlane_manipulator_marker
      }
      remove_star_flag = hyperlane_manipulator_marker
    }
    

Wormhole creation

Trying to create wormhole in system that already has wormhole will break existing connections, so commans will prevent creation of another wormhole pair if either source or target system already has any.

  1. Select any object in source system and add wormhole_manipulator_marker flag to it:
    effect solar_system = {
      set_star_flag = wormhole_manipulator_marker  
    }
    
  2. Select any object in target system and create wormhole pair:
    effect solar_system = {
      if = {
        limit = {
          NOT = {
            has_natural_wormhole = yes
          }
        }
        random_system = {
          limit = {
            has_star_flag = wormhole_manipulator_marker
            NOT = {
              has_natural_wormhole = yes
            }
          }
          prev = {
            spawn_natural_wormhole = {
              bypass_type = wormhole
              random_pos = yes
              orbit_angle = 360
            }
          }
          spawn_natural_wormhole = {
            bypass_type = wormhole
            random_pos = yes
            orbit_angle = 360
          }
          link_wormholes = prev
        }
      }
    
      every_system = {
        limit = {
          has_star_flag = wormhole_manipulator_marker
        }
        remove_star_flag = wormhole_manipulator_marker
      }
    }
    
  3. Clear wormhole_manipulator_marker marker flag from all systems:
    effect every_system = {
      limit = {
        has_star_flag = wormhole_manipulator_marker
      }
      remove_star_flag = wormhole_manipulator_marker
    }
    

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.